User Profile

Collapse

Profile Sidebar

Collapse
wimpos
wimpos
Last Activity: Mar 30 '08, 06:30 PM
Joined: Jan 25 '08
Location: Bruges Belgium
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wimpos
    replied to Voice over Wireless LAN
    in .NET
    There are some great posts about voip on codeproject.com
    just search for articles with key word voip

    need further help?don 't hesitate...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Help Needed SMS Receiving in C#
    in .NET
    That depends on the device you are connected with
    Using a cellphone you van use AT commands
    You can compose a string containing al the correct AT Commands and data (phone number, sms text) and write it the correct serial port

    When you 'r using a nokia phone connected to your pc,
    usabel at commands are listed here http://www.activexperts.com/activsms/atcommands/nokia/
    send these commands in clear text to your phone...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to I'm designing a multiple choice test...
    in .NET
    Hi Musty

    I'm using C# in visual studio 2005 so I cannot give code examples, though I will provide you with an idea.

    First what you don't want to do is create a new form for each question, but you already figured that one out didn't you :)

    What you need is a component "Question", for instance a panel with a question, answers, a type (radio's or checkboxes), ...

    You can create an array of...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to About certification exam
    in .NET
    search on www.microsoft.c om/learning
    for the MCTS, you have to start with the 70-536 exame

    regards
    Wim
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Best practices for object modelling
    in .NET
    Hi

    I can agree with your decision to not use properties, though I always do use properties to expose private members to the outside world. But that 's a personal decision.

    About your code. To save me a lot of blabla I rewrote your class in a way I would write it. Ofcourse it is not THE solution, but in my opinion it does what you want and it is "cleaner"

    Code:
    class MessageObject
    	{
    		private
    ...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Finding Broken Link in WebSite
    in .NET
    Tip:
    It might be not that important but I still recommend using a regular expression to search for the <a href="" >

    It's cleaner, it 's faster, more reliable

    regards
    See more | Go to post
    Last edited by Plater; Feb 20 '08, 10:34 PM. Reason: changed : to an =

    Leave a comment:


  • You will see that in the KeyDown/KeyPress/KeyUp event method
    there are 2 args: Object Sender and KeyEventArgs e

    It is the e that contains information about the key that is pressed.
    namely: KeyCode, KeyData, KeyValue
    KeyCode contains an enumeration of Keys.xxx
    KeyValue the Ascii Code

    i propose you use something like this: KeyPress Event

    Code:
    private void Form1_KeyPress(object sender, KeyPressEventArgs
    ...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to updating the main form from a 2nd form
    in .NET
    Hi

    you should use events.

    In your second form you declare

    Code:
     public delegate void MyUpdateEventHandler(string msg);
    public event MyUpdateEventHandler MyUpdateEvent;
    
    // in the buttonclick method you add
    if(MyUpdateEvent != null)
    {
        MyUpdateEvent(myTextBox.Text);
    }
    In your Main form you do

    Code:
     MySecondForm f = new MySecondForm();
    f.MyUpdateEventHandler
    ...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Starting a new project in solution file
    in .NET
    When you go to Tools>Options>P rojects & Solutions
    you can check the option: "always show solution"

    So you alwayse can use right mouse button to Add project

    Regards
    W....
    See more | Go to post

    Leave a comment:


  • I tried what you tried and I'm not having your issue.

    what I did
    Form1 with button to open Form2
    Form2 with button to open Form3
    Form3 with button to set diaglogresult to Cancel

    If fire my app, Form1 opens, I press the button, Form2 opens, I press the button Form3 opens, I press the button Form3 closes. Form2 remains open.

    Form1:
    Code:
    private void button1_Click(object sender, EventArgs e)
    ...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Finding Broken Link in WebSite
    in .NET
    You can download the website entered into the textbox.
    try using the webclient class
    Now you have the source html code of the webpage.
    Than find al the links in the webpages <a href="**"></a> (maybe a method in webclient, otherwise use a regex)
    extract the ** and try to download this website as you did before. If it succeeds the link is alive, otherwise it is dead.

    This is a guidline you...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to how to copy and paste image using c#?
    in .NET
    Why not simply using the File Class

    Code:
    File.Copy(oldPath, newPath);
    just 1 line of code that does it all: copy a file
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to About SMTP server
    in .NET
    Do you want to setup a mailserver? Or do you want to send mails from your application?

    In C# .net there is some namespaces you need to use for sending mails:
    Code:
    System.Net.Mail;
    System.Net.Mail.SmtpClient;
    System.Net.MailMessage;
    
    MailMessage myMessage = new MailMessage(sender, recipient);
    myMailMessage.Subject = "testMail";
    
    SmtpClient myServer = new SmtpClient(server);
    myServer.Credentials
    ...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to One instance of exe is run one time in c#
    in .NET
    With the following code:
    Code:
    Process.GetProcessByName(your exe process name);
    you can check if there is already an instance of your exe running. If it is, close the application again:
    Code:
    Application.Exit();
    W....
    See more | Go to post

    Leave a comment:


  • Do you mean from an Internet Explorer Window or an WebControl component?...
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to Password encyption
    in .NET
    For storing passwords you should use an algorithm that has one way encryption, so it can be decrypted. md5 or hash , ...

    User registers:
    - choose password: mypass
    - Hashed: o5d4g44f
    - stored in database

    User logs in
    - user types password: mypass
    - password hashed: o5d4g44f
    - check if hash in database is the same
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to executing a script file
    in .NET
    In .net it is possible to compile at runtime.
    Maybe this example will help: http://www.codeproject.com/KB/dotnet/DotNetScript.aspx
    See more | Go to post

    Leave a comment:


  • wimpos
    replied to C#: DOS commands
    in .NET
    1. Start/STop process
    System.Diagnost ics:

    Code:
     Process.GetCurrentProcess
     Process.GetProcessByName
     Process.GetProcesses
    4. change admin username password
    Code:
    Process.Start("cmd.exe", "net - params");
    correct params are found here:
    http://www.petri.co.il/change_user_p...and_prompt.htm

    5. change ip,subnet,gatew ay
    search for "netsh",...
    See more | Go to post

    Leave a comment:


  • wimpos
    started a topic keybd_event strange behaviour
    in .NET

    keybd_event strange behaviour

    Hi devs

    I'm develloping for Windows Mobile 6 (HTC TYTN II) in C# .NET 2.0

    Information:
    I defined a windows keyboard hook, so my application listens to all key hits.
    When one specific key is hit a method is called. This method invokes a ctrl+c keystroke.

    Code:
    keybd_event(0x11, 0, 0, 0);// press 
    keybd_event(0x43, 0, 0, 0); // press 
    keybd_event(0x43, 0, 2, 0); //release;
    keybd_event(0x11,
    ...
    See more | Go to post
No activity results to display
Show More
Working...