How To Make a Shutdown Application

                                  HOW TO MAKE  SHUTDOWN   SYSTEM   APPLICATION
                                             

                                            
If your sure want to make this Application then open then new project of visual studio 2010,2012
First of all you take a three labels And three Button in the Form
Change the labels names As you Wish
then then following coding three buttons

1-double click to the button1 then this code write
                     Shell("shutdown -s") 

2-double click to the button2 then this code write
                     Shell("shutdown -r") 

3-double click to the button3 then this code write
                     Shell("shutdown -l") 

                    TO Action This Application And Enjoy

                  (How to Make Login Form)

IF you want to make a login form  then you should apply following processfirst you take a two FORMS and take TWO LABELS and take two TEXTBOXES,andone BUTTON (label1=user name, label2=password and form name is login)

           Design view of FORM 1

                                                   

 We need the change the password text property. Right click on the textbox that will hold the password, click on properties, go to the properties window. Change the PasswordChar property to * :
                                                 

Now we Add Button in the Form 1 such as  (Design View)
                                             

Suppose we want the username = mudsar and the password = 7450224
Double click on the button and add the following highlighted code:

If  TextBox1.Text = "MUDSAR" And TextBox2.Text = "7450224" ThenForm2.Show()ElseMsgBox("SORRY, 

USERNAME or PASSWORD INVALD", MsgBoxStyle.OkOnly, "Invalid")End If


End Sub
              IF you enter a wrong USER NAME or PASSWORD then  this box is show
                                                 

If you enter the right username and the right password, the second form will appear:



How To Make A Sign UP FormDesing view of form signup form




           (Enjoy gyus this this and comments pass necessary and tell the friends)  

2 comments: