all groups > dotnet windows forms > march 2005 >
You're in the

dotnet windows forms

group:

Label controls inside rich textbox


Label controls inside rich textbox Muthu
3/10/2005 11:45:01 PM
dotnet windows forms:
Hi all,
i have a situation to place label controls inside rich textbox
control and i have done that using richTextbox1.controls.add method. But the
problem is the controls are not part of the text which i type it is
overlapping my text.In simple words, Is it possible to make a label control
work just like a text inside the rich textbox. I did find out that this is
possible in java, to be exact it is achieveable using a TextPane java
control. Any inputs or ideas to acheive the same in .Net (C#) would be a
welcome.
Thanks in advance.

Regards
Muthu
muthuraman.m@polaris.co.in

RE: Label controls inside rich textbox dlgproc
3/11/2005 10:23:02 AM
What would be your reason for doing this? Perhaps there is another way to
accomplish your ultimate goal without using labels at all.

Regards

[quoted text, click to view]
RE: Label controls inside rich textbox Muthu
3/13/2005 8:03:04 PM
I am using the labels to get the event click inside the textbox.
for example,
the text would be the following inside rich textbox,

THIS IS TO ADD <AMOUNT> and <TEXT>

In that text, if i click the <AMOUNT> Text,i have to do some actions,
If i click <TEXT> i have to do some other actions,so i have placed the
controls inside the rich textbox,
i dont know any other ways, please tell me the another way of doing this.

Its really an urgent one.
Could u please tell me the another way of achieveing this using C#.

[quoted text, click to view]
AddThis Social Bookmark Button