-
Is it like a menu? Yes, it can be implemented with controls, and it will be implemented through blocks.
-
It can be achieved with the treeview control, and the landlord will find the specific usage of this control.
-
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.
-
Events when the treeview control is clicked.
private void treeview1_afterselect(object sender, treevieweventargs e)
node, depth", , hint", , Method
-
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.
-
Right-click in the toolbox to select it"Select an item"== Browse"Select the generated address of your custom control and just reference it.
-
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;
-
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.
-
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.
-
Hehe, the system has these controls, don't you just put them together?
-
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;
-
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.
-
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.
-
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.
-
I don't think it's very intuitive to use DataGridView, since you want to try TreeView for tree tables
-
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.
-
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.
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
#include
#define m 5 >>>More
The first way: Replace Samsung i9000 system sound files.
Eliminate the sound of taking pictures with your own camera. >>>More
private sub command1_click()dim i as integer
dim sum as long >>>More
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