WinForm How to do the startup page
Start Page Form2.cs
Add a pictureBox1 to the form and a Label1
PictureBox1 to display software images
Label1 used to display hints
Main Page Form1.cs
In the Page_Load event in Form1
private void Form1_Load (object sender, System.EventArgs e)
{
Form2 ff=new Form2 ();
Kaifeng Noodles
Ff. Show ();
Populating database names
ff.label1.text= "Populate database name ...";
Key locations Otherwise, the Label1 on the Form2 cannot be refreshed.
And every time you update Label1, you need
Application.doevents ();
Populating table information
ff.label1.text= "Fill table information ...";
Application.doevents ();
Filltableinfo ();
datagrid1.datasource=dataset11.tables["Tables"];
Fill field Information
ff.label1.text= "Fill field information ...";
Fillfiledinfo (dataset11.tables["Tables"). rows[datagrid1.currentrowindex]["table_name"]. ToString ());
datagrid2.datasource=dataset11.tables["COLUMNS"];
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.