Click here to Skip to main content
15,881,852 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: updating to framework 3.0 Pin
Darren Sim19-Feb-07 22:31
Darren Sim19-Feb-07 22:31 
QuestionMaking things secure enough to be cracked !!! Pin
fulbright18-Feb-07 19:17
fulbright18-Feb-07 19:17 
AnswerRe: Making things secure enough to be cracked !!! Pin
Dave Kreskowiak19-Feb-07 9:36
mveDave Kreskowiak19-Feb-07 9:36 
GeneralRe: Making things secure enough to be cracked !!! Pin
Heath Stewart19-Feb-07 13:26
protectorHeath Stewart19-Feb-07 13:26 
QuestionSystem Colours Pin
Simon P Stevens15-Feb-07 22:56
Simon P Stevens15-Feb-07 22:56 
AnswerRe: System Colours Pin
Thomas Stockwell16-Feb-07 18:45
professionalThomas Stockwell16-Feb-07 18:45 
GeneralRe: System Colours Pin
Simon P Stevens17-Feb-07 2:01
Simon P Stevens17-Feb-07 2:01 
AnswerRe: System Colours Pin
Heath Stewart17-Feb-07 6:07
protectorHeath Stewart17-Feb-07 6:07 
Visual themes are a different sort of beast. There are themes installed on your system that define way more categories of representations than SystemColors, and if you want to use themes you have to owner-draw these on your controls yourself. .NET 2.0 makes this fairly easy for controls in the base class library (BCL). For your Windows Forms application's entry point, use the Application.EnableVisualStyles() method like so:
class Application
{
  static void Main(string[] args)
  {
    Application.EnableVisualStyles();
    Application.DoEvents(); // Necessary for NDP 1.1 applications only.
    Application.Run(new MainForm());
  }
}
If you want to draw themed text, borders, etc., on your owner-drawn controls, read Rendering Controls with Visual Styles[^] and Custom Control Painting and Rendering[^].

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]

GeneralRe: System Colours Pin
Simon P Stevens18-Feb-07 22:02
Simon P Stevens18-Feb-07 22:02 
QuestionHow to write NUNIT Test Cases for Crystal Reports? Pin
Harshal Nemade15-Feb-07 22:19
Harshal Nemade15-Feb-07 22:19 
QuestionMonitor Chat Server Using WMI in c# .net Pin
Member 182410015-Feb-07 20:48
Member 182410015-Feb-07 20:48 
AnswerRe: Monitor Chat Server Using WMI in c# .net Pin
Dave Kreskowiak16-Feb-07 8:40
mveDave Kreskowiak16-Feb-07 8:40 
QuestionDeploying application forms of C# in VS.NET Pin
Eyungwah15-Feb-07 11:25
Eyungwah15-Feb-07 11:25 
AnswerRe: Deploying application forms of C# in VS.NET Pin
Zoltan Balazs15-Feb-07 13:04
Zoltan Balazs15-Feb-07 13:04 
QuestionDeployment question Pin
JoltWork15-Feb-07 7:01
JoltWork15-Feb-07 7:01 
AnswerRe: Deployment question Pin
Heath Stewart17-Feb-07 6:10
protectorHeath Stewart17-Feb-07 6:10 
GeneralRe: Deployment question Pin
JoltWork21-Feb-07 2:24
JoltWork21-Feb-07 2:24 
GeneralRe: Deployment question Pin
Heath Stewart21-Feb-07 4:13
protectorHeath Stewart21-Feb-07 4:13 
GeneralRe: Deployment question Pin
JoltWork21-Feb-07 6:19
JoltWork21-Feb-07 6:19 
AnswerRe: Deployment question Pin
perlmunger21-Feb-07 7:01
perlmunger21-Feb-07 7:01 
QuestionTransaction on Dataset in ADO.net Pin
Neeraj_Maurya15-Feb-07 5:35
Neeraj_Maurya15-Feb-07 5:35 
AnswerRe: Transaction on Dataset in ADO.net Pin
Colin Angus Mackay15-Feb-07 6:03
Colin Angus Mackay15-Feb-07 6:03 
QuestionGeneric Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:00
LukeHammond15-Feb-07 3:00 
QuestionRe: Generic Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:03
LukeHammond15-Feb-07 3:03 
QuestionRe: Generic Signatures on remoting objects Pin
LukeHammond15-Feb-07 3:11
LukeHammond15-Feb-07 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.