-
dim i, j as boolean
i = false
j = false
if = "admin" and = "admin" theni = true
end if
if = "user" and = "user" thenj = true
end if
if i = true or j = true thenmsgbox "Welcome to the Class Management System! "
call playsound( +"Sound", 0&, h1) This is the login tone.
unload me
elsemsgbox "Wrong password! Please re-enter! "
str(val( +1)
if val( >= 3 then
msgbox "If you enter your password more than three times, the system will quit! "
endend if
end if
-
You're just an interface**。。
The core judgment is that you haven't added it yet.
-
The first step is to create the interface and put all the controls you need in it. Just like label1, 2, 3
And only then do you put the ** in.
-
Add the following ** to the click event of the button you want to click: The form you want to load. show() for example:
-
1, vb opens a form form1, and then uses the following name:
2, the form form2 will open.
3. The program execution is displayed as follows:
-
form1 double-click the button control, **.
Way 1'Form 2 gets focus, and you can switch between forms 1 and 2 at will.
Method 2 1'Form 2 gains focus and takes control of Form 1, and Form 1 can only be used if Form 2 is closed
-
The role of the Windows Forms designer is (b).
a.Write a program ** bDesign the user interface.
c.Provides Windows Forms control DDisplays the properties of the specified object.
-
Add form controls to design the form interface.
-
VB form is a general form class provided by the Visual Basic compilation environment for developing desktop programs, which contains and designs the properties and methods, developers can directly use, or customize their own program interface based on the form class (class form), without writing every detail from the bottom, greatly simplifying the workload and complexity of developers, so that programmers can devote more energy to the design and implementation of business functions of the program.
It's similar to a calculator.,Numbers can be entered on the interface.,You can also use the keyboard to enter.,Later dedicated**!! >>>More
**:under command1
shell " /c shutdown -s -f -t 0", ** under 0command2. >>>More
Form on the total number of days to put text1 text2 text3 command1 private sub command1 click(). dim daycount as long day of the week on the first day. >>>More
Upstairs ** is so long, it's still simple?
Speechless. I wrote one for you, this is really simple and practical, hehe! >>>More
The second line declares that the textbox control array ** is wrong and does not conform to the syntax specification! >>>More