Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the BorderStyle of an Textbox

Status
Not open for further replies.

TerDavis

Technical User
Sep 18, 2002
36
US
I would like to set the borderstyle for a textbox using code for a user-defined control based on a textbox.
It seems that I should be able to say :
this.BorderStyle=FixedSingle;
but this does not work. How can you set the style ??
 
This works:

textBox1.BorderStyle = BorderStyle.FixedSingle;

assuming that you are using System.Windows.Forms in that unit.

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top