getting data from the user using textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ramy
    New Member
    • Nov 2006
    • 3

    getting data from the user using textbox

    Hi All,

    I want to build a windows form that gets x and y from the user into two textboxes controls and calculates the addition, after clicking a botton control, in a third textbox control. where i will use this form as a reference to build larger equations.

    so please, can anybody send me this source code that used for handling these events.

    waiting for reply,

    thanks in advance.

    Regards,
  • sivadhas2006
    New Member
    • Nov 2006
    • 142

    #2
    Hi,

    Try to use MFC.
    It may be easier for your task.

    Regards,
    M.Sivadhas.

    Comment

    • Ramy
      New Member
      • Nov 2006
      • 3

      #3
      please, I want the commands used to handle these events:

      1. getting data from the textbox to an entire variable.
      2. getting this variable from the textbox to be processed in the botton code.

      Comment

      • Ramy
        New Member
        • Nov 2006
        • 3

        #4
        by the way, i am using CLR project.

        Comment

        • sivadhas2006
          New Member
          • Nov 2006
          • 142

          #5
          Hi,

          Sorry, I don't know CLR.

          Anyway when you click the button, it will generate the follwing event.

          uMessage = WM_COMMAND, CONTROL_ID = LOWORD(wParam)
          using this you can able to capture the button click event.

          Use SetWindowText to set the text to the edit control.
          Use GetWindowText to get the text from the edit control.

          Regards,
          M.Sivadhas.

          Comment

          Working...