Idea: 2 to 3 PictureBox controls that control whether the displayed coordinates are displayed and determined.
Screenshot: Upload slower, the effect is similar to the Windows XP left navigation interface
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 Windows XP
{
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 (controlsty Les. Supportstransparentbackcolor,true);
}
}
}
Article Source: http://www.cnblogs.com/ziyiFly/archive/2008/09/11/1288840.html