Common Windows controls

Source: Internet
Author: User

 

Bytes ---------------------------------------------------------------------------------------------

 

Taskbar bubble message yyicon Control

1. notifyicon2.showballoontip (10000, "hello", "world", tooltipicon. info );

2. contextmenustrip1, it seems that you still need to put this control

3. The policyicon must specify its ICO attribute so that the message will pop up.

 

---------------------------------

Right mouse show menu

1. contextmenustrip1. You need to find the mouseup method on the control.

 

Private void form=mouseup (Object sender, mouseeventargs E)
{
If (E. Button = mousebuttons. Right)
{

// Contextmenu menu = new contextmenu ();
// Menu. Show (this, new point (E. X, E. Y + _ lvhosts. Top ));
Contextmenustrip1.show (this, new point (E. X, E. Y + this. Top ));
}
}

----------------------------------------------------------------------

Do not show form

 

// Not displayed on the taskbar
This. showintaskbar = false;

--------------------------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.