HOW TO MAKE SHUTDOWN SYSTEM APPLICATION
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
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 * :
If TextBox1.Text = "MUDSAR" And TextBox2.Text = "7450224" ThenForm2.Show()ElseMsgBox("SORRY,
USERNAME or PASSWORD INVALD", MsgBoxStyle.OkOnly, "Invalid")End If
End Sub
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 FormChange 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
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
nice
ReplyDeleteGOOD
ReplyDelete