A large number of third-party controls exist. These controls cover all aspects of development, but it is difficult for developers to select a suitable control, so today we recommend a control that can implement the function similar to the pop-up notification message function of MSN:
Download control: popupwin
Example
MSN has a good function, that is, whenever Your MSN friends go online, MSN will automatically pop up a message box in the lower right corner of the form tray to notify you, this function is very practical, for example, when you reply to your post in a forum, the system will automatically pop up a message box, or in an e-government system, when you receive a new email or work order, the system prompts the message box and so on. So how can this function be implemented in Web applications built by ASP. NET? In this article, we recommend a. Net control that can implement notification message window effects similar to MSN.
First, let's take a look at the implementation of the control, such:
We can see that this control can be used in various types of browsers (ie, Mozilla, Netscape, opera), and we can also customize the color and drag, such:
Summary three methods are used to implement message pop-up boxes similar to msn
The message pop-up box similar to MSN is implemented in three ways. The three methods have their own merits. Let's take a look at how they are implemented:
The first method is to use the shell_policyicon API function of windows;
Source code download
The second method is implemented by using the Windows showwindow API function and the redraw method of the form;
You can also customize the interface;
Source code download
The third method is to rewrite the Windows form, which is more active than the previous two methods;
Source code download
You can alsoGo to msdnLook