Home > System Tutorial > Windows Series > Please tell me, I want to use vs2010 to write a windows window application. I hope it can achieve

Please tell me, I want to use vs2010 to write a windows window application. I hope it can achieve

王林
Release: 2024-01-07 11:34:20
forward
518 people have browsed it

Excuse me, I want to use vs2010 to write a windows window application. I hope it can achieve

You can install the database on your own computer so that your computer can act as a server.

Other users only need to install this Windows window application and set the database connection string in the configuration file to your IP address.

For example, assume your IP address is 10.10.0.243, the database example is named kaifa, the database is named ftdata, the username is sa, and the password is 123456.

C in VS2010 windows

Add the following code under the InitializeComponent(); statement of the form's constructor

this.Location = new System.Drawing.Point(100, 100);

this.Cursor = System.Windows.Forms.Cursors.Hand;

// Defined on the form, the cursor is displayed as a hand

this.Text = "Transparent WinForm form!";

// Define the title name of the form

this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;

// Define the starting display position of the form to be the middle of the screen

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;

// The border of the form is of Fixed3D type

this.ForeColor = System.Drawing.SystemColors.Desktop;

//Use the foreground color of the desktop as the foreground color of the form

this.Font = new System.Drawing.Font("宋体", 9);

// Define font type and size

this.BackColor = System.Drawing.Color.Blue;

// Define the background color to be blue

this.ClientSize = new System.Drawing.Size(440, 170);

//Set the size of the form

//The Opacity attribute sets the transparency level of the form, only valid for Windows 2000

this.Opacity = 0.61;

The above is the detailed content of Please tell me, I want to use vs2010 to write a windows window application. I hope it can achieve. For more information, please follow other related articles on the PHP Chinese website!

source:docexcel.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template