In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to write VB.NET pallet program, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Pallet program refers to such a kind of program: when the program runs, the icon of the program will be created in the tray area (also known as the status area) of the system, and the user can control the running status of the program by clicking the menu that appears in the icon. The tray program has many advantages, such as not occupying the screen, running in the background, easy to control and so on. So now more and more programs are made into pallet programs.
It is convenient and simple for VB.NET to write pallet program. This is because VB.NET does not have its own class library, and the class library it uses is the common class library provided by. Net framework for all. Net platform development languages -. Net framework sdk. In this class library, specific classes are provided for writing pallet programs, and the pallet effect of the program can be achieved by calling these classes. Thus it gets rid of the hassle of its predecessor vb in dealing with this kind of problem. The following is an example to understand and master how to write pallet programs with VB.NET.
VB.NET compiles pallet program
As a special kind of form, the shortcut icon of the tray program is displayed in the system tray, and the form itself is hidden and invisible. Writing pallet programs in VB prior to .NET is very difficult, but the new NotifyIcon components provided by VB.NET make it easy for VB beginners to write such a program:
Create a new "Windows Application" and set the main form Opacity property to 0MagneFormBorderStyle property to None,ShowInTaskbar property to False, so that the form will be hidden after startup. Place a NotifyIcon component NotifyIcon1 and a ContextMenu (pop-up menu) component ContextMenu1 on the form, and add menu items to ContextMenu1 as needed.
Set the ICON property of NotifyIcon1, which is the shortcut icon that the application appears in the system tray; set the Text property of NotifyIcon1 to "VB.NET tray program", which is the text description that pops up when the mouse moves over the tray icon; set the ContextMenu property of NotifyIcon1 to ContextMenu1, that is, the pop-up menu when you right-click the shortcut icon is ContextMenu1. OK, press F5 to run!
There is almost no need to write code, and a pallet program is easily implemented.
The above is all the contents of the article "how to write pallet programs in VB.NET". 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.