-
Take a look for yourself, too lazy to write, a group of people in the Du Niang library.
-
Double-click button1 in the writing state, and write in the button1 click event:
form f2=new form2();Create instance variables for Form 2; The difference between showdialog and show is that the former needs to process the pop-up form 2 event before it can process other events.
If you want to hide form 1, you can continue to write:
-
First, create the click response method of the button in form1, which will generate the button1 click method, and then create an instance of form2 f2 in the button1 click method, and then call the show method of f2 to open it.
private void button1_click(object sender, routedeventargs e)
-
In another form, just provide a public method to control it.
For example, in form2 there is a method updatetextbox(string text).
Then you can write it in the onclick() event of form1, for example, button.
-
Make the specific requirements clear.
-
It's easy to do with AJAX or JS.
-
However, if the midifiers property of the previous form is set to public, it can be accessed!
I don't know if that's what you're asking for!
-
form2 fm = new form2();form2() is the name of the window you created to open.
Open form2() to close the current window.
-
When the main form is opened, read the database, and then use the reflection new to come out of each form, and then add all of them to a collection, and add the formclosed event to the forms in the collection in turn, and the event method realizes to show out the next form in the collection (if there is any), and then show out the first form, OK.
-
Pass the text value of the first parameter as a parameter to the second form constructor to the second form!!
-
public class form1: The form2 window needs to be displayed.
form2 f=new formw(this) corresponds to the following, pass the object in.
form2 If you want to have an object reference to form1, you can pass in public form2 (form1 form1) form1 f1 when displaying form2;
form2 button event.
If such a button existed, I don't think I would have pressed it, because I couldn't explain if I could love each other with all my heart. >>>More
See if you can understand no, just helped you do the first one. >>>More
Isn't it, you don't know that C has a built-in system sound? >>>More
In the case of no increase in the amount of food, it is likely that a part of the body fat is converted into muscle, and the specific gravity of muscle is larger than fat, and when your fat becomes muscle, the weight will increase, and at the same time, the muscle can consume more calories, and if you keep practicing, you will start to lose weight. Exercise** will be heavy first and then light.
Poisonous mosquitoes, the wound is inflamed and suppurated, it is very serious and hurry to the hospital!! If you feel like you're fine, you don't have to go! If it suppurates, I recommend rushing to it! >>>More