tool tip for variable

  • Thread starter Thread starter vinodhshere
  • Start date Start date
V

vinodhshere

Hi,
My application has a rich text box.When i hover the mouse over certain
keywords typed in the text box i want a tool tip to be displayed.Any
idea of how i can accomplish this????
i will be glad if someone can help me plz...
 
Josh said:
ToolTip tt = new ToolTip();

tt.SetToolTip(yourControl, "This is the tooltip");

You can also do this in the designer - see this article:
http://msdn2.microsoft.com/en-US/library/s894w4aa(VS.80).aspx

Josh
http://www.thejoyofcode.com/

I think the OP wanted to be able to specify a tooltip for certain
sections of text in the RichTextBox. That would set a tooltip to the
whole control wouldn't it?

Not sure how you *would* go about setting tooltips just for certain bits
of text though.
 
Larry wrote :

What exactly do you mean, Larry ? I know it can be difficult for some
to convert between languages, but unfortunately it was the only thing I
could find... ;-)

Regards,

Cerebrus.
 
Cerebrus said:
Larry wrote :


What exactly do you mean, Larry ? I know it can be difficult for some
to convert between languages, but unfortunately it was the only thing I
could find... ;-)

Well, I spend more time in the .vb group, and a very common theme there
is that someone has found a C# sample to do X, and needs help
translating it into VB.NET. It's refreshing to see a VB6 sample offered
to a C#er :) But I suppose it makes sense, as the way VB6 people have
had to access the Win32 API for all these years is very close in
feeling to P/Invoke and Interop.
 
Hi Larry,

To tell you the truth, I spend most of my time in the VB group too. So
much so, that when I found and was posting the link to the sample, only
then I realized that this question was in the C# group. I thought, "Oh
well... he can convert it if he likes."

BTW, I'm not so fluent with the Win32 API and interop thing, so if you
know any good links where I could learn this...

Regards,

Cerebrus.
 

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

Similar Threads


Back
Top