C # Special Type form creation: Implementing a Windows XP-like program interface

Source: Internet
Author: User

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

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.