In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about VB.NET 's dialog box making skills. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
The application mode of VB.NET is flexible and simple, which can help developers to realize various functional requirements easily. Here for you to introduce the implementation of the VB.NET dialog box, can help you easily understand the relevant application skills of this language, easy for you to interpret.
How to use VB.NET dialog box production, used to dynamically display your program version information, then you may want to use the System.Reflection class to get these dynamic information, but in fact to achieve this function you do not need to edit complex code. A code example is included in program A.
Program A:
Private Sub DynamicAboutBox ()
Dim strAbout As String
Dim exeApp As System.Reflection.Assembly
ExeApp = System.Reflection.Assembly.GetExecutingAssembly ()
Dim exeName As System.Reflection.AssemblyName
ExeName = exeApp.GetName ()
StrAbout = "Application:" & exeName.Name & vbCrLf
StrAboutstrAbout = strAbout & "Version:"
& exeName.Version.ToString () & vbCrLf
StrAboutstrAbout = strAbout & "Code Base:"
& exeName.CodeBase & vbCrLf
StrAboutstrAbout = strAbout & "Company:" &
System.Windows.Forms.Application.CompanyName & vbCrLf
StrAboutstrAbout = strAbout & "Product:" &
System.Windows.Forms.Application.ProductName & vbCrLf
MessageBox.Show (strAbout)
End Sub
The running result of this VB.NET code example for the dialog box is similar to figure 1.
In this example of VB.NET about the dialog, I get the necessary application information by using the System.Reflection class. At the same time, I also use the class System.Windows.Forms.Application to get additional information directly.
Analysis of specific functions of VB.NET Monitoring Class
Summary of VB.NET error solution
Analysis of the implementation method of VB.NET initialization Grid
A brief discussion on the methods of obtaining current URL by VB.NET
Analysis of related Application methods of VB.NET Mid function
Here I define a string variable strAbout to store the application information that will be displayed. At the same time, I also define two other variables: exeApp as the variable of System.Reflection.Assembly and exeName as the variable of System.Reflection.AssemblyName.
The variable exeApp is the name used to get the collection. Then, I combine information such as exeName variables (name, version, code language), ProductName (product name), and (CompanyName) company name, where ProductName (product name) and (CompanyName) company name are obtained using the properties of the System.Windows.Forms.Application class.
The above is the VB.NET about dialog box making skills shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.