In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "VB language how to achieve login operation", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "VB language how to achieve login operation" this article.
The knowledge in this section covers cases.
You need to be able to stop after typing
The most important thing for us in every exam is to save the file! Poor preservation of documents means that they will bring great losses to their own achievements. When saving files, we are most prone to save errors is the preservation of engineering files. When we open the project file again after the project is migrated, we will find that it is not well associated with the form forms file, which is a major saving mistake. So, how to verify that the project file is saved successfully? In fact, the method is very simple, as long as turn off the VB software, and then open the vbp project file in the project, if the display form is normal at this time is the correct save.
1. Event
In each software development process, it is found that most of the students in the process of making software, there are still many students for the learning events are not very good understanding and use.
The most basic and important of form startup events:
The sub process of form_load.
For example:
Private Sub Form_Load ()
'what is usually written here is some initialized configuration.
End Sub
two。 Symbol
There is also an important symbol, which must be used many times in the development process.
For example, the function of the equals sign here:
Form1.Caption = "TV"
Function: assign a value.
The process of assigning a value is to assign a value to a variable.
Written as follows:
Variable = value
You are actually assigning the value on the right to the custom variable on the left.
When the program is running, it is the variable that we can reassign to a certain amount.
3. Control
Load the picture control, after we carry on the project migration, some students will find that their pictures have disappeared in the interface. What is the reason for this? How do we solve this? Before loading a picture, the image control must copy the picture to the project directory, otherwise, it is easy for the picture to disappear when porting the project to another computer.
4. Important attribute
Backstyle sets the background style.
Transparent indicates transparency.
5. Important function
String length acquisition function len function.
Use format:
The len (string) result returns the length of the string.
6. Important jump out
Exit sub means to exit the event procedure. After this code is executed, the code behind this code will not be executed because sub has been exited.
7. Password control
How do I set my password?
Using the textbox control, set the value of the property passwordchar to "*".
8. Drop-down control
How do I add an item to the drop-down list?
You can add an item using the additem property of the combobox control.
Qq login interface title part of the source code:
Dim an As IntegerPrivate Sub Command1_Click () Form2.ShowEnd Sub
Private Sub Form_Load () Combo1.AddItem "22887651" End Sub
Private Sub Text1_Change ()
Text1.PasswordChar = "*" End Sub
Automatic typing case, you need to stop after typing.
Case source code:
Dim s As StringDim an As Integer
Private Sub Form_Load () Form1.Caption = "TV" s = "We are all handsome guys in the universe ~!!" A = 1
End Sub
Private Sub Timer1_Timer ()
If a > Len (s) Then Timer1.Enabled = False Exit SubEnd If
Label1.Caption = Left (s, a) a = a + 1Label2.Caption = aEnd Sub
The above is all the contents of the article "how to log in in VB language". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.