In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to use C # Pocket PC 2003 equipment". In daily operation, I believe many people have doubts about how to use C # Pocket PC 2003 equipment. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use C # Pocket PC 2003 equipment". Next, please follow the editor to study!
Suppose we need to click a button in the main form FMMain to open the sub-form FMChild and pass a value to the sub-form FMChild. In general, the code that we click the button to display the sub-form FMChild is:
FMChild fmChild = new FMChild (); fmChild.ShowDialog (); fmChild.Dispose ()
If we need to pass the value of string strValueA in the main form FMMain to FMChild, then we first do the following for strValueA:
Private string strValueA; public string StrValueA {get {return strValueA;} set {strValueA = value;}}
Make it a property of the main form FMMain, and then modify the code that displays the sub-form to one of the following.
Method 1:
FMChild fmChild = new FMChild (); fmChild.ShowDialog (this); fmChild.Dispose ()
Method 2:
FMChild fmChild = new FMChild (); FMChild.Owner = this;fmChild.ShowDialog (); fmChild.Dispose ()
Then declare a main form FMMain object in the modified sub-form FMChild
FMMain fmMain
Add the following code where you need to use the string strValueA of the main form FMMain:
FmMain = (FMMain) this.Owner
In this way, you can get the value of strValueA in the main form FMMain.
At this point, if you need to pass the string strValueB in the sub-form FMChild to the main form FMMain, do the same with string strValueB.
Private string strValueB; public string StrValueB {get {return strValueB;} set {strValueB = value;}}
So after you close the sub-form code fmChild.Dispose ();, you can write some code to save or process the strValueB of FMChild, for example:
String strTmp = fmChild.StrValueB
Note that displaying the sub-form FMChild in the Visual C# smart device Pocket PC 2003 device application can only be used:
FMChild fmChild = new FMChild (); FMChild.Owner = this; fmChild.ShowDialog (); fmChild.Dispose ()
ShowDialog () is not overloaded in the Visual C# smart device Pocket PC 2003 device application.
At this point, the study on "how to use C # Pocket PC 2003 equipment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.