Special form creation: implements a program interface similar to Windows XP

Source: Internet
Author: User

Train of Thought: two to three picturebox controls to control whether to display and determine the displayed coordinates.

: The upload speed is slow. The effect is similar to that on the left-side Navigation Pane of Windows XP.

As follows:

Using system;
Using system. Collections. Generic;
Using system. componentmodel;
Using system. Data;
Using system. drawing;
Using system. text;
Using system. Windows. forms;

Namespace WindowsXP
{
Public partial class form1: Form
{
Public form1 ()
{
Initializecomponent ();
}

Private void picturebox5_click (Object sender, eventargs E)
{
Int I;
I = 80;
Picturebox5.visible = false;
Picturebox4.visible = false;
Label2.visible = false;
Label3.visible = false;
Picturebox6.top-= I;
Picturebox8.top-= I;
Label4.top-= I;
Label5.top-= I;
Label6.top-= I;
Label10.top-= I;
Label7.top-= I;
Label8.top-= I;
Label9.top-= I;
Picturebox9.top-= I;
Picturebox11.top-= I;
}

Private void picturebox2_click (Object sender, eventargs E)
{
If (picturebox5.visible = false)
{
Int I;
I = 80;
Picturebox5.visible = true;
Picturebox4.visible = true;
Label2.visible = true;
Label3.visible = true;
Picturebox6.top + = I;
Picturebox8.top + = I;
Label4.top + = I;
Label5.top + = I;
Label6.top + = I;
Label10.top + = I;
Label7.top + = I;
Label8.top + = I;
Label9.top + = I;
Picturebox9.top + = I;
Picturebox11.top + = I;
}
}

Private void form1_load (Object sender, eventargs E)
{
Setstyle (controlstyles. supportstransparentbackcolor, true );
}

}
}

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.