By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,335 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,335 IT Pros & Developers. It's quick & easy.

getting data from the user using textbox

P: 3
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,
Nov 9 '06 #1
Share this Question
Share on Google+
4 Replies


sivadhas2006
100+
P: 142
Hi,

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

Regards,
M.Sivadhas.
Nov 9 '06 #2

P: 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.
Nov 9 '06 #3

P: 3
by the way, i am using CLR project.
Nov 9 '06 #4

sivadhas2006
100+
P: 142
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.
Nov 9 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.