How to call a method on another form
-
Hi, I'm quite new to C++/CLI and ran into a problem. I'm trying to get data from some textboxes on a form, for use in another source file. I think the best way to do this is to make a method in the form code which gets the textbox data and passes is to the source file when called. However, somehow I cannot get this working. Can anyone maybe point me in the right direction? Any help would be great!
-
Hi, I'm quite new to C++/CLI and ran into a problem. I'm trying to get data from some textboxes on a form, for use in another source file. I think the best way to do this is to make a method in the form code which gets the textbox data and passes is to the source file when called. However, somehow I cannot get this working. Can anyone maybe point me in the right direction? Any help would be great!
is there some reletion between the first form and the second form.... do the first form generate the second form or the second form generate the first?
-
is there some reletion between the first form and the second form.... do the first form generate the second form or the second form generate the first?
Actually the code in which the data from the form is needed is no form itself. There is no relation between the form and the source file in which the data from the form is to be used. I hope this makes it clear.
-
Actually the code in which the data from the form is needed is no form itself. There is no relation between the form and the source file in which the data from the form is to be used. I hope this makes it clear.
google for this....and you'll find the solution [DllImport("user32.dll")] extern IntPtr FindWindow(String^ lpClassName, String^ lpWindowName); once you have the pointer to the data's form, you have several way to get the data
-
google for this....and you'll find the solution [DllImport("user32.dll")] extern IntPtr FindWindow(String^ lpClassName, String^ lpWindowName); once you have the pointer to the data's form, you have several way to get the data
I'll have a go with that at Google. Thanks for your help!