How to transfer data from Form1 to Form2 in Windows Form Application using static variables
ฝัง
- เผยแพร่เมื่อ 21 ก.ย. 2024
- #csharp #windowsformapp #form
In this lecture you will work with more than one Form control. We will program to learn data transfer from Form1 from Form2.
This time we are using static variable to transfer data. But as we know, data transfer can be done in many different way. We will cover all the possible ways in different videos. You can then chose a transfer technique which is best suit to you.
Other ways to transfer data between Winforms you learn here,
Data transfer from form1 to form2 using class properties.
• How to transfer data f...
Data transfer from form1 to form2 using class constructor.
• How to transfer data f...
Data transfer from form1 to form2 using static variables.
• How to transfer data f...
Don't forget to like the video and subscribe the channel.
Check the playlist How to C# Windows Form more tutorial on C# .NET programming. Here is the link:
• How To C# Windows Forms
Regards
#smartcode
Thankyou very much this help me a lot😭♥️♥️♥️
glad to help
Thank you so much
glad to help
how can you to change the values in real-time ?
your method is not recommended, your classe form and your global variable are not protected, so you can't to realise a great programme with your static method, because the satiic make your classe fragile