There is a button in C Form that prints the entire Form 15 after being pressed

Updated on technology 2024-05-21
11 answers
  1. Anonymous users2024-02-11

    Take a look for yourself, too lazy to write, a group of people in the Du Niang library.

  2. Anonymous users2024-02-10

    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:

  3. Anonymous users2024-02-09

    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)

  4. Anonymous users2024-02-08

    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.

  5. Anonymous users2024-02-07

    Make the specific requirements clear.

  6. Anonymous users2024-02-06

    It's easy to do with AJAX or JS.

  7. Anonymous users2024-02-05

    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!

  8. Anonymous users2024-02-04

    form2 fm = new form2();form2() is the name of the window you created to open.

    Open form2() to close the current window.

  9. Anonymous users2024-02-03

    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.

  10. Anonymous users2024-02-02

    Pass the text value of the first parameter as a parameter to the second form constructor to the second form!!

  11. Anonymous users2024-02-01

    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.

Related questions
20 answers2024-05-21

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

5 answers2024-05-21

See if you can understand no, just helped you do the first one. >>>More

11 answers2024-05-21

Isn't it, you don't know that C has a built-in system sound? >>>More

36 answers2024-05-21

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.

14 answers2024-05-21

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