E-Mail Component

B Rad

Member
Joined
Nov 20, 2004
Messages
10
Location
Goldsboro, NC
Programming Experience
1-3
I am designing a custom e-mail interface for an application I am developing. On my To, Cc, and Bcc recipient textboxes, I would like them to function like Outlook Express.

That is, my application adds e-mail addresses until the end of the textbox(es), automatically generates a new line in the textbox(es), shifting all other controls down to maintain distance apart, and continue adding addresses. After the third new line, I would like to automatically force scrollbars.

Any help is greatly appreciated.


B Rad
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,331
Location
Sydney, Australia
Programming Experience
10+
This is a bit of a fudge, but when I want to do something like this I put my text in a dummy Label, which is never added to the form, and use the PreferredWidth property. You might have to do some fancy footwork to determine exactly how the width of a label relates to the width of a text box, but it should be a consistent relationship as long as the fonts are the same.
 
Top Bottom