C Custom Tree Controls, C List and Tree Controls

Updated on technology 2024-03-28
17 answers
  1. Anonymous users2024-02-07

    Is it like a menu? Yes, it can be implemented with controls, and it will be implemented through blocks.

  2. Anonymous users2024-02-06

    It can be achieved with the treeview control, and the landlord will find the specific usage of this control.

  3. Anonymous users2024-02-05

    The list can be controlled with a listview, and if there are multiple rows, you can use a loop, which is illustrated with only one line:

    listviewitem lv = new listviewitem();Instantiate first.

    ”;The first element of a line, filled in the double quotation marks; The second element of a line, fill in the element in parentheses; The second element of a line, fill in the element inside the parenthetical number, and so on; Add the instantiation to the listview, and the listviewname is the name of the control used.

  4. Anonymous users2024-02-04

    Events when the treeview control is clicked.

    private void treeview1_afterselect(object sender, treevieweventargs e)

    node, depth", , hint", , Method

  5. Anonymous users2024-02-03

    Here's how it works: vs Right-click on your project file ->Add References --> Browse --> find your dll file.

    Regenerate OK once

    If that doesn't work, go to the toolbox and right-click > Selects --> Browse > find your DLL file.

  6. Anonymous users2024-02-02

    Right-click in the toolbox to select it"Select an item"== Browse"Select the generated address of your custom control and just reference it.

  7. Anonymous users2024-02-01

    Generate A, guaranteed error-free.

    Reference project A in B.

    Quote in the foreground:

    Add in page references.

    xmlns:local="clr-namespace:a"backend:using a;

  8. Anonymous users2024-01-31

    First of all, you need to make sure that the custom control is correct, because what you write in library A does not necessarily find a problem at compile time;

    Second, right-click on the reference file in library B to add a reference to library A.

  9. Anonymous users2024-01-30

    Create a new usercontrol and name it by the name you want, e.g. myui

    In this user control, set the length and width, drag and drop the 5 basic controls you need into it, and adjust it.

    In the future, you only need to call myui to get such a control directly.

  10. Anonymous users2024-01-29

    Hehe, the system has these controls, don't you just put them together?

  11. Anonymous users2024-01-28

    public partial class mylabel : usercontrol;}

    public event texteventhandler labelclick;

    void onlabelclick(object sender)}}

    public class texteventargs:eventargs

    public texteventargs(string text)

    public delegate void texteventhandler(object sender,texteventargs e);

    Use a custom labelclick event, pass the text value, and set the click event of this label to delegate(object sender, eventargs e) for each label added;

  12. Anonymous users2024-01-27

    In the toolbox in the upper right corner of the new project, pull some controls into Windows Forms, change the name of the control to the function you want to do, and design an interface. The functions of each control are omitted.

  13. Anonymous users2024-01-26

    This suggestion is to use a third-party control, and it will be troublesome to rewrite the control yourself, which is not a simple matter.

  14. Anonymous users2024-01-25

    If you don't need a third-party controller, you need to inherit the datagridview and generate a custom controller. It's more troublesome that way. If you have enough budget for the project premise.

    In fact, like everyone else, it is recommended to use a third-party control: such as spreadIt comes with examples of your needs. But he also charges a fee.

  15. Anonymous users2024-01-24

    I don't think it's very intuitive to use DataGridView, since you want to try TreeView for tree tables

  16. Anonymous users2024-01-23

    There are many ways to do this, but here are two to name you.

    1. Directly expose button1. In the form of a custom control.

    Publisher neutral, select button1, and set its modifier property to public. Go to the main form and write a response function:

    private void button1_click(object sender, eventargs e)

    Next, bind the new function load event in the main form

    custom control plus = new eventhandler(button1 click);

    That's it.

    2. Let button1 operate the main form.

    In the form designer of the main form (let's say form2), set the modifier of button2 to public. Then go to the click event of button1 in the custom control:

    form2 f2 = as form2;

    aa";Both of these methods couple forms and custom controls, which is fine if you're not striving for perfection. Otherwise, you can also make an interface with an event, let the custom control implement it, click button1 to trigger the event, and let the form bind.

  17. Anonymous users2024-01-22

    Get the button2 control in the click event of button1 and modify its text property, so you must have button1-related events in your custom control.

Related questions
8 answers2024-03-28

Clause. 1. Use graphics software (such as CorelDraw) to make the materials required for dynamic expressions, and export them to jpg format (you can also use the existing ** to combine them yourself). In Photoshop, remove the ** and put it in a folder in order of dynamic expression changes. >>>More

5 answers2024-03-28

#include

#define m 5 >>>More

12 answers2024-03-28

The first way: Replace Samsung i9000 system sound files.

Eliminate the sound of taking pictures with your own camera. >>>More

14 answers2024-03-28

private sub command1_click()dim i as integer

dim sum as long >>>More

8 answers2024-03-28

After selecting the main keyword in the excel sorting dialog box, click the option, you can choose the custom sequence as the sorting order, which makes the sorting convenient, fast and easier to control, so how to customize the sorting method for cell text or numbers in excel, let's take a look! >>>More