system.windows.forms.monthcalendar

  • Thread starter Thread starter Brian
  • Start date Start date
this control has a tooltip property.. but i can't access it through code?
why is that?

Because the control doesn't really have that property. The ToolTip
object causes the IDE to add the ToolTip property in the Properties
window to the other objects in the class.

At runtime, you call the ToolTip objects's SetToolTip method. For
example, if your ToolTip object is called ToolTip1:

ToolTip1.SetToolTip(refToControl, "some text")

Set a tooltip at design time and look in the .designer.vb file for an
example of how it is done.
 
cool thanks...

Jack Jackson said:
Because the control doesn't really have that property. The ToolTip
object causes the IDE to add the ToolTip property in the Properties
window to the other objects in the class.

At runtime, you call the ToolTip objects's SetToolTip method. For
example, if your ToolTip object is called ToolTip1:

ToolTip1.SetToolTip(refToControl, "some text")

Set a tooltip at design time and look in the .designer.vb file for an
example of how it is done.
 

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

Back
Top