471,318 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Textbox with Single Line Border in c# 2003 or 2005

How do I create a textbox with a single line border so when I type text in
the box it will look like underlined?
Jun 27 '08 #1
1 1333
On Tue, 27 May 2008 07:35:01 -0700, Rick <Ri**@discussions.microsoft.com>
wrote:
How do I create a textbox with a single line border so when I type text
in
the box it will look like underlined?
Do you want the text to be underline? Or the edit area itself?

If the former, just set the font for the control to one that has
underlining. If the latter, IMHO the easiest approach would be to simply
add a Paint event handler and draw the line yourself.

Pete

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Adam Clauss | last post: by
1 post views Thread by fd123456 | last post: by
8 posts views Thread by tshad | last post: by
2 posts views Thread by A. Nonymous | last post: by
1 post views Thread by =?Utf-8?B?RGVkZ2U=?= | last post: by
1 post views Thread by =?Utf-8?B?d2NsYXJrZTEwMQ==?= | last post: by
2 posts views Thread by =?Utf-8?B?Umljaw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.