NotifyIcon in a form

H

Herfried K. Wagner [MVP]

David Thielen said:
I want a NotifyIcon type behavior but I want it in my form pointing to a
radio button if the user selects it. Basically if they select 1 radio
button
I want to pop up a message saying they better know what they are doing if
they choose it.

Check out the ToolTip component and its 'IsBalloon' property.
 
L

Linda Liu [MSFT]

Hi Dave,

I agree to what Herfried has suggested. Generally, we use ToolTip component
to display tool tip text for a control on a form.

To render the tool tip window as a balloon, set the IsBalloon property of
the ToolTip to true. When you'd like to display the ToolTip, call the Show
method of the ToolTip.

The appearance of ToolTip component's balloon window has a slight
difference with that of the NotifyIcon component's balloon window. The
latter has an X box in the upper right to close it. However, the former
hasn't such an X box in it.

Hope this helps.

If the suggestion is not what you want, please feel free to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu [MSFT]

Hi Dave,

Thank you for your response.

Yes, you're right. If we have set the ToolTip text for a control, the
ToolTip window shows up when we rest the pointer on the control. If we move
the pointer from the control or click the ToolTip window, it will disappear.

To make the ToolTip window show up again, we could call the SetToolTip
method of the ToolTip component.

In addition, if we have called the SetToolTip method to show up the ToolTip
window and then move the pointer from the RadioButton control, the ToolTip
window won't disappear immediately. To ensure the ToolTip window to
disappear in this case, I suggest that you handle the MouseLeave event of
the RadioButton controls to hide the ToolTip window.

The following is a sample.

void radioButton1_MouseLeave(object sender, EventArgs e)
{
this.toolTip1.Hide(this.radioButton1);
}

Hope this helps.
If you have anything unclear, please feel free to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top