CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: informations

  1. #1
    Join Date
    May 1999
    Posts
    30

    informations

    Hi everyone.
    I would like to know how to validate an editbox and how to make work accelerator with command button. I did the relation beetween the accelerator and the button, it doesn't work. Also, my editbox is taking any numbers and i put the condition, maximum 9 digits.

    Thanx Gaetan. This is for my work. You have my email for home. could you answer me also at [email protected]





  2. #2
    Guest

    Re: informations

    Hello,

    1. Creating an Accelerator for a button
    Thats very easy - just add an ampersand character (&) in front
    of the letter from text for the button that you want to work as an
    accelerator. Example:
    Setting a buttons text to "E&xit" will cause the button to be pressed
    by using the shortcut Alt+x

    2. Control Editbox changes
    Go into class wizard and select the edit box element
    within your dialogs class, e.g. IDC_MYEDIT.
    Then search for the message EN_CHANGE in the
    Messages window and double-click on it.
    Class wizard now asks you for a function name.
    this function will be called whenever the content
    of the edit box is changed.
    Within this function you can then make your data
    validation.

    Uli


  3. #3
    Join Date
    May 1999
    Posts
    30

    Re: informations

    Ok, thank you Uli but it is working if I clicked on the edit box and then enter my number with the keyboard (notice that the cursor is showed in the dialog box) but if i am not doing that it won't work. Why???????????????


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured