What is this?

F

Fabrizio Romano

Hi everybody.
If you load windows calculator and right-click one of its button you'll get
a context menu with just one link.
If you click on this link, a yellow "panel" shows up telling you all you
need to know about that button.
My question is:
1-what is that yellow panel? a control? something else?
2-how could I do something simlar using visual studio .net 2003 or 2005
(with C#)? (I mean the yellow panel stuff, I know how to do a context menu
on right click event)

Thank you in advance,

Romano Fabrizio
(e-mail address removed)
 
H

Herfried K. Wagner [MVP]

Fabrizio Romano said:
If you load windows calculator and right-click one of its button you'll
get a context menu with just one link.
If you click on this link, a yellow "panel" shows up telling you all you
need to know about that button.

Check out the HelpProvider component.
 
F

Fabrizio Romano

Yeah, ok, I saw it.
As I thougth, it is not the answer to my question, probably because I didn't
put the question correctly.
I would like to know how to implement something like that on my own.
For example open a file explorer in windows and lean the mouse on a file.
You'll see appearing another yellow panel with some properties of the file
written inside.
That is a tooltip popup right?
My question is: what is a tooltip? I mean that yellow panel what is it? Is
it a form without borders?
How can I implement one on my own? What class do I have to inherit from?

Hope the question is clearer now.
Thank you in advance,
Fabrizio Romano
(e-mail address removed)
 
J

JezB

I'd just inherit from Control, paint it as you need it, even add some
further controls to it if needed. Then add it to your base form's (or one of
it's container's) Controls collection and set the position as you need it.

Fabrizio Romano said:
Yeah, ok, I saw it.
As I thougth, it is not the answer to my question, probably because I
didn't put the question correctly.
I would like to know how to implement something like that on my own.
For example open a file explorer in windows and lean the mouse on a file.
You'll see appearing another yellow panel with some properties of the file
written inside.
That is a tooltip popup right?
My question is: what is a tooltip? I mean that yellow panel what is it? Is
it a form without borders?
How can I implement one on my own? What class do I have to inherit from?

Hope the question is clearer now.
Thank you in advance,
Fabrizio Romano
(e-mail address removed)
 
F

Fabrizio Romano

Ok, thank you, I'll try.
Fabrizio

(e-mail address removed)

JezB said:
I'd just inherit from Control, paint it as you need it, even add some
further controls to it if needed. Then add it to your base form's (or one
of it's container's) Controls collection and set the position as you need
it.
 
A

Alan Pretre

Fabrizio Romano said:
Ok, thank you, I'll try.

There is no need to develop this yourself. If you are using WinForms just
set the ToolTip property on your controls of interest. You need to add a
ToolTip control to your form from the ToolBox first to see the ToolTip
property.

-- Alan
 

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