-
April 15th, 2011, 01:31 PM
#1
GetWindowText and SendMessage
I am trying to read text from one textbox in a windows form, and then at the click of a button transfer the contents of that textbox to another form.
My thinking is that I need to use GetWindowText to find the text within the textbox and then use the SendMessage to send it to another form.
I cannot find any examples of this being done so would need a little bit of guidence in order to complete this.
If anyone is able to help that would be great!!
-
April 17th, 2011, 08:20 AM
#2
Re: GetWindowText and SendMessage
Maybe this can help.
Cheers
-
April 18th, 2011, 06:17 AM
#3
Re: GetWindowText and SendMessage
Golan, that link sent me to use MFC but I am using a windows form application rather than an MFC so when trying to follow the instructions on that I came to a dead end, plus I am using VC++ 2010 so a few of the instructions were out of date.
Cheers
-
April 18th, 2011, 06:22 AM
#4
Re: GetWindowText and SendMessage
When attempting to use the class wizard, (well this could also be because I am not using an MFC application right enough) I am not seeing some of the options that they are saying I take. I really need to figure this part out, its the last part of my system I need and I then need to right up a dissertation on it and it is due next tuesday, so apoligies if panic starts to set in
-
April 18th, 2011, 07:10 AM
#5
Re: GetWindowText and SendMessage
Originally Posted by Scott.Gallagher
Golan, that link sent me to use MFC but I am using a windows form application rather than an MFC so when trying to follow the instructions on that I came to a dead end, plus I am using VC++ 2010 so a few of the instructions were out of date.
Cheers
This is the wrong forum for Forms applications.
-
April 18th, 2011, 08:16 AM
#6
Re: GetWindowText and SendMessage
Then what forum is the right forum for forms applications?
-
April 18th, 2011, 08:22 AM
#7
Re: GetWindowText and SendMessage
Originally Posted by Scott.Gallagher
Then what forum is the right forum for forms applications?
It's not that hard to read the list of forums and figure it out.
http://www.codeguru.com/forum/forumdisplay.php?f=17
-
April 18th, 2011, 08:24 AM
#8
Re: GetWindowText and SendMessage
Originally Posted by Scott.Gallagher
Then what forum is the right forum for forms applications?
A forum in which you are clearly presenting your problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|