How does the C WINFORM program take values from the textBox1 control in the interface?

Updated on technology 2024-02-08
4 answers
  1. Anonymous users2024-02-05

    using system;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    namespace test

    public partial class form1 : formpublic form1()

    initializecomponent();

    private void button1_click(object sender, eventargs e)

    string ha = ;

    ha="+ha);

    I tried it though.

    string ha = ;

    It can also be assigned normally.

    The core (and need to be added) are the following two lines:

    string ha = ;

    ha="+ha);

  2. Anonymous users2024-02-04

    Don't use string

    That's what defines an array of strings.

    direct string ha=;

    Strange, you write like this and compile without error?

  3. Anonymous users2024-02-03

    To check. There is no initialization instance for textbox1.

    Is there a namespace that references textbox?

  4. Anonymous users2024-02-02

    A and B forms, first of all, it is not known who opens who or peers between A and B, and no one opens whom.

    In the first case, click Show out B from A! Then pass a in the constructor of b during the show, declare a global a in b, pass the constructor of b into a to assign this global variable, when setting string in b, use the global variable to set the same value of the textbox control of a, if you can't find the textbox, then please set the accessible property of the textbox to public.

    The same is true if B opens A.

    The second case is that both A and B are opened by the parent form. In this case, there are also two global A and B in the parent form! Then when you open A and B, you can pass A to B, and B to A, and then there must be a global B and A in A and B!

    This allows you to assign a value. Remember to judge whether it is empty or not. ยท

    Nunnery, renamed from 2000 on, is named after a nunnery from the previous Anding Mountain, the population is unknown, mainly composed of Gao, Wang, Li three surnames, farmers to plant onions, ginger-based, by the mountains and rivers, north by the Wen River, convenient transportation, west by Qingyunhu Road, north by Binhe Road, south has a small road, east of Anqiu East Outer Ring, rich in products, people live and work in peace and contentment.

Related questions
4 answers2024-02-08

In fact, it's not difficult to learn C, the key is that you have to find a teacher who suits you or self-study**, I didn't learn when I signed up for the class, and then I didn't learn it online**, I read it at the beginning, Mr. Xia's, I feel that the lecture is very concise and clear, the kind that you can understand when you listen to it, and what you talk about is the key, and there is a difference from others is that there are many difficult concepts with metaphorical examples, for example, the array I recently saw is compared to a box with things in order, and I understand the array variables and assignments at once. It's much better than what I read before, Hao Bin and Zeng Yi's cumbersome like reading a textbook.

8 answers2024-02-08

to add the drawing to the attachments folder in the Start menu. >>>More

14 answers2024-02-08

Innocent landlord pretty tenant.

Probably the genre should be campus light comedy?! >>>More

8 answers2024-02-08

I also have this under the C drive:

debug [02-20 main plugin created]: onconnectdebug [02-20 : new >>>More

22 answers2024-02-08

I'm really surprised you guys can hit 800......

I assassinated 1042, 147 hits, and hit the prince with deep pain 1200dps ......Talent 41 pain 10 destruction, other casual, starting talisman 4dot, and then start the shadow arrow, dot is gone, make up. It will not be less than 1100dps >>>More