c Reads the properties of the continuous name control

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

    If you want to take 10 checkboxes then it is recommended to use checkboxlist, which is relatively simple, and there are two ways to implement you pasted below. One is the value of 10 checkboxes, and the other is the value of checkboxlist, ** as follows, I hope it can help you.

    This is to verify multiple checkboxes.

    protected void button1_click(object sender, eventargs e)

    string content = "";

    aa is the name of the container where your checkbox is placed, and I use controlcollection cons = ;

    foreach (control con in cons)if (con is checkbox)

    checkbox chk = con as checkbox;

    if (content += ;

    content += ",";

    This is the inflammation checkboxlist.

    protected void button2_click(object sender, eventargs e)

    string content = "";

    for (int i = 0; i < i++)if (

    content += ;

    content += ",";

  2. Anonymous users2024-02-10

    1. Use the built-in method of C form public control find(string key, bool searchallchildren).

    2. Write a foreach loop method foreach (control control in.

    3. Direct parent search for child controls; If it is a nested child control, you need to write a recursive method method to get it.

    4. Finally, run and choose the search method according to your actual needs.

    Notes:

    C enables C++ programmers to develop programs efficiently without losing the power of C C++ by calling native functions written by C C++. Because of this inheritance, C is very similar to C C++, and developers who are familiar with similar languages can quickly move to C

  3. Anonymous users2024-02-09

    control control = "button1", true)[0];

    object o = "propertyname").getvalue(control, null);

    ev = "click");

    You're going to get the event, the second line is to get the property, and the third line is to get the event.

  4. Anonymous users2024-02-08

    Click on the control you need or right-click your control to select Properties, then find the event in the lower right corner of the property, select the one you need in the event, and double-click on the blank space to write. The system adds its own reference to the event in the designer.

  5. Anonymous users2024-02-07

    Use delegates to write a method for your click events.

  6. Anonymous users2024-02-06

    That's it, you have to instantiate it.

  7. Anonymous users2024-02-05

    This first depends on whether the form class where the control is located is instantiated, and if it has been instantiated, it can be done by constructing parameters or delegates.

    Constructing parameters: Pass the instantiated object of the form class where the control is located as a parameter to your new form.

  8. Anonymous users2024-02-04

    c There are hundreds of controls that come with the system, and the total number should be in the 10,000 level with the existing third-party control providers, so it is obviously unrealistic for you to ask about the total number and all the names and attributes.

    Controls fall into the following categories:

    1.Input control classes: text boxes, checkboxes, etc.

    2.Layout control classes: panels, containers, etc.

    3.Display Classes: **, graphics, etc.

    4.Output class: report, print, etc.

    5.Thread control classes: background services, etc.

    ps: c is read as c sharp

  9. Anonymous users2024-02-03

    If you don't read the well, it's called sharp

    c sharp。

    So many things to ask for just 5 points? It's kind of impossible.

  10. Anonymous users2024-02-02

    1 label City Machine Information Suspect Laughing Motor Vehicle Violation Inquiry System.

    2 combo 1-value motor vehicle license plate, driver's license slip with number.

    3 text

    4edit t.-True.

    5command query.

  11. Anonymous users2024-02-01

    I just solved this problem in the morning, I'll show you the **, I don't know if it's what you want.

    My xml data is simple :

  12. Anonymous users2024-01-31

    If you don't know how to speak English, you should know how to choose B.

    name is a word in an elementary school English textbook.

  13. Anonymous users2024-01-30

    Select the ba option for the title, c for the style, and d for the appearance.

  14. Anonymous users2024-01-29

    Specify the enable of the control directly according to the user permission setting, what is the use of you to get the control name, and what type of control do you want to get?

    Traverse through all control methods:

    foreach (control item in

  15. Anonymous users2024-01-28

    Each widget has a name, either you name it or the default name, and you can control whether it is displayed or hidden, available or not.

Related questions
6 answers2024-05-23

Just add these label attributes to the timer control.

I made one for you.,You research it.,Create a label on the form and a timer copy the following **.,Then run it and see the effect.。。 >>>More

10 answers2024-05-23

checked is used to determine whether checkbox or checkboxlist is selected by true or false. >>>More

4 answers2024-05-23

The date controls commonly used in C are the DateTimePicker and the MonthCalendar control, the former can only be used for one date, and the latter can choose the start date and end date, but the former is easier to use. >>>More

13 answers2024-05-23

You don't speak any language, it's usually the visible property of each control, that's the visible property of the control. >>>More

9 answers2024-05-23

I think it works, I did it once when I first started working, and I don't remember it very well, but you can try it with the seek function, locate it first, read it later, and I remember when I was doing this, I read the book The C Programmer, which is about 234 pages.