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

  • @augustoyulan9270
    @augustoyulan92703 жыл бұрын

    Cool! Keep going with C++ CLR.

  • @wearesciber

    @wearesciber

    3 жыл бұрын

    Thanks man

  • @refetbilalaktas177
    @refetbilalaktas1773 жыл бұрын

    Well this video is best and simple explanation in the whole universe! Thanks man , you got a new sub.

  • @wearesciber

    @wearesciber

    3 жыл бұрын

    HaHa thanks man 😊😉

  • @punky6320
    @punky63203 жыл бұрын

    Thankyou so much sir! You helped people a lot! Keep it up! We support you!

  • @BruceWayne-mf6xf
    @BruceWayne-mf6xf4 жыл бұрын

    Great.....👍👍

  • @jackmandelbeatz1043
    @jackmandelbeatz104311 ай бұрын

    These tutorials are saving my *ss lol THANK YOU!

  • @matteoverardo8005
    @matteoverardo80052 жыл бұрын

    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.

  • @walkingmead9578
    @walkingmead9578 Жыл бұрын

    I was wondering how to do this if it was data from MySQL i needed to show on the second screen. any help?

  • @darpansmemoir
    @darpansmemoir3 жыл бұрын

    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

  • @jonda_mc
    @jonda_mc7 ай бұрын

    I don't know why but it throws me an error: undeclared identifier. while I have it declared

  • @shivdoesmusic937
    @shivdoesmusic9377 ай бұрын

    The Links to the file are dead. Can you please update them???

  • @jane-ll3bs
    @jane-ll3bs3 жыл бұрын

    Great tutorial. how to change the bar tile into pink anyway?

  • @wearesciber

    @wearesciber

    3 жыл бұрын

    What 😅

  • @mackenzy5849
    @mackenzy58493 жыл бұрын

    Hello dude, where can I get CLR via C++ notes??Anyone to kindly assist me!

  • @wearesciber

    @wearesciber

    3 жыл бұрын

    I don't think so. This is kind of deprecated and there is almost no content in the subject.

  • @Gamer-sd1uo
    @Gamer-sd1uo2 жыл бұрын

    how do I use data text in a button i mean whenever i click the button it will show the text

  • @wearesciber

    @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

    @Gamer-sd1uo

    2 жыл бұрын

    @@wearesciber how can I use main window Text in the Second window savefiledialog

  • @wearesciber

    @wearesciber

    2 жыл бұрын

    Can't you use the method mentioned in the video for that?

  • @richardvoss2509
    @richardvoss25092 жыл бұрын

    Why don't you show the two forms side by side? It would make it more understandable

  • @wearesciber

    @wearesciber

    2 жыл бұрын

    For the thumbnail right, yeah tried doing that, it got pixelated, should probably illustrate it myself. Thanks for the suggestion anyways.

  • @sanelisodlaba7420
    @sanelisodlaba74203 жыл бұрын

    Hey lblData is Undefined error. What can i do?

  • @ieetrn

    @ieetrn

    3 жыл бұрын

    you must type his id number (whichever label you want to change) like label1.

  • @solyhendawy5637

    @solyhendawy5637

    Жыл бұрын

    @@ieetrn can you explain more because i have the same problem when i write lblData it's undefined.

  • @ieetrn

    @ieetrn

    Жыл бұрын

    @@solyhendawy5637 find label and look properties section

  • @wamisoltanov1685
    @wamisoltanov16853 жыл бұрын

    Hey lblData is Undefined error. What can i do? See Facebook please))

  • @wearesciber

    @wearesciber

    3 жыл бұрын

    OK

  • @aizazkhan586
    @aizazkhan586 Жыл бұрын

    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.'"""""""""

  • @karanshrivastava2628
    @karanshrivastava2628 Жыл бұрын

    Make sure to dislike guys! :))

  • @mail4ejaz
    @mail4ejaz2 ай бұрын

    Nice

Келесі