views:

76

answers:

1

Hi All

I am not worried about whether this is in Winforms or WPF.

Is there ANY way at all that I could develop my own user control like the one found in Microsoft Paint, below:

TextBoxLabel Control

If you can't see the pic above, it's here: http://img232.imageshack.us/i/txtboxlblctrl.png/ Is there anyway at all I can do something like this in C#?

Thank you

+1  A: 

Sure you can. By developing your own Usercontrol you can do nearly anything. I think the easiest way would be to use a WPF TextBox and alternate it with a template.

This [http://img199.imageshack.us/i/textboxu.png/] is what you get by simply using [http://img163.imageshack.us/i/stipe.png/] as BorderBrush

Marks
And my final followup question: Can TextBox controls be made fully Transparent in WPF?
lucifer
Sure, you can change the Visibility property to hide it completely, and you can make the BackgroundBrush transparent for just no background.
Marks
yaaay i'm excited! than you for your answers :) i'll mark as answer when it decides to let me lol
lucifer
Your second link returned a 404 lol.
lucifer
Hmm, dont know why, but it works after visiting the gallery : http://img199.imageshack.us/gal.php?g=textboxu.png
Marks