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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flat Controls (.NET 2.0)

Status
Not open for further replies.

Ator

Programmer
Jan 23, 2006
26
SE
Hi

Does anyone know how to make these controls flat?
- TextBox
- ComboBox
- CheckedListBox
- DateTimePicker

(ComboBox has a property "FlatStyle", but I can't change the border-color then)

Is there any free controls to download?
Kind regards
 
I presume by flat you mean the style?

if so you need to create appropriate css styles and assign these to your control.

eg.

.flat
{
border:1px solid #ccc;
}

then in your control:

<asp:textbox id=txt_Forename runat="server" cssclass="flat"></asp:textbox>

Affleck

there are 10 types of people in this world those who understand binary, and those who don't.
 
Sorry, I forgot to say that Im working with Windows Forms, not asp.net :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top