C++ GUI: Exchange Data Between Forms | WinForms
Ғылым және технология
Most of the common issues beginners face with Windows Forms Applications are exchanging data between forms so that they can make Wizards, Query Windows, and such. Sending data from the main form to the secondary form is quite easy because you can easily include the Form2.h and make the object and Send data through the constructor. But, when it comes to getting data back from Form2 to the main form, you can’t do the same. Hence, you need some other method.
So, to do that, you are going to need a public method that will return the data you need. Then you just call that method in the main form. Pretty Easy!
If you are new here, make sure to subscribe and watch the whole C++ CLR Windows Forms Applications Series where I go over most of these kinds of situations and teach you how to make proper applications.
• C++ GUI With Visual St...
Also, make sure to watch this video where we discussed how to add new forms and work with them.
• C++ GUI: Make About Di...
Пікірлер: 34
Cool! Keep going with C++ CLR.
@wearesciber
3 жыл бұрын
Thanks man
Well this video is best and simple explanation in the whole universe! Thanks man , you got a new sub.
@wearesciber
3 жыл бұрын
HaHa thanks man 😊😉
Thankyou so much sir! You helped people a lot! Keep it up! We support you!
Great.....👍👍
These tutorials are saving my *ss lol THANK YOU!
Thank you so much, it is a very helpful video. Please consider to make a video that shows how to initialize radiobuttons, editboxes, labels, etc of a form when it opens up (data from a file) and save the data in the file when it closes.
I was wondering how to do this if it was data from MySQL i needed to show on the second screen. any help?
Could you please(Or anyone) tell me a way to use database for a small project in C++/CLR? Or any reference/resource to learn? Please, it's urgent
I don't know why but it throws me an error: undeclared identifier. while I have it declared
The Links to the file are dead. Can you please update them???
Great tutorial. how to change the bar tile into pink anyway?
@wearesciber
3 жыл бұрын
What 😅
Hello dude, where can I get CLR via C++ notes??Anyone to kindly assist me!
@wearesciber
3 жыл бұрын
I don't think so. This is kind of deprecated and there is almost no content in the subject.
how do I use data text in a button i mean whenever i click the button it will show the text
@wearesciber
2 жыл бұрын
You mean like a message box, if so i already have a video for that, if not could you please explain more
@Gamer-sd1uo
2 жыл бұрын
@@wearesciber how can I use main window Text in the Second window savefiledialog
@wearesciber
2 жыл бұрын
Can't you use the method mentioned in the video for that?
Why don't you show the two forms side by side? It would make it more understandable
@wearesciber
2 жыл бұрын
For the thumbnail right, yeah tried doing that, it got pixelated, should probably illustrate it myself. Thanks for the suggestion anyways.
Hey lblData is Undefined error. What can i do?
@ieetrn
3 жыл бұрын
you must type his id number (whichever label you want to change) like label1.
@solyhendawy5637
Жыл бұрын
@@ieetrn can you explain more because i have the same problem when i write lblData it's undefined.
@ieetrn
Жыл бұрын
@@solyhendawy5637 find label and look properties section
Hey lblData is Undefined error. What can i do? See Facebook please))
@wearesciber
3 жыл бұрын
OK
hey @Sciber i added a background image and then it shows below error , when I remove background pic it built sucseedfuly but why with picture..... """"""System.Resources.MissingManifestResourceException: 'Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CppCLRWinFormsProject.Form1.resources" was correctly embedded or linked into assembly "CppCLR_WinFormsProject1" at compile time, or that all the satellite assemblies required are loadable and fully signed.'"""""""""
Make sure to dislike guys! :))
Nice