Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why my Win2k Server only run .aspx but no .asp files? Pin
y_seval26-Feb-04 0:53
y_seval26-Feb-04 0:53 
GeneralInitializing variables ... Pin
Andres Coder25-Feb-04 21:38
Andres Coder25-Feb-04 21:38 
GeneralRe: Initializing variables ... Pin
Corinna John25-Feb-04 22:58
Corinna John25-Feb-04 22:58 
GeneralRe: Initializing variables ... Pin
MJ Mirzazadeh26-Feb-04 0:41
MJ Mirzazadeh26-Feb-04 0:41 
GeneralRe: Initializing variables ... Pin
turbochimp26-Feb-04 2:19
turbochimp26-Feb-04 2:19 
GeneralRe: Initializing variables ... Pin
turbochimp26-Feb-04 2:22
turbochimp26-Feb-04 2:22 
GeneralBackground Image for ToolBar... Pin
Weiye Chen25-Feb-04 21:38
Weiye Chen25-Feb-04 21:38 
GeneralRe: Background Image for ToolBar... Pin
Heath Stewart26-Feb-04 4:20
protectorHeath Stewart26-Feb-04 4:20 
Not every control supports every property. The ToolBar control doesn't make use of the BackgroundImage property, so it hides it from design-time designers like the PropertyGrid and code editors (if they check the BrowsableAttribute and EditorBrowsableAttribute like they're supposed to).

The ToolBar uses the ControlStyles.AllPaintingInWmPaint, so you'll either have to paint your background in OnPaint, calling base.OnPaint after (to "z-order" correctly), or handle the WM_ERASEBKGND in an override of WndProc. Another way to accomplish the latter is to set the TBSTYLE_CUSTOMERASE in an override for CreateParams then handle NM_CUSTOMDRAW notification messages in an override of WndProc. For more information on these latter ways, see the Windows Controls documentation in the Platform SDK, which you can read on MSDN Library online[^] (under the UI section).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Background Image for ToolBar... Pin
Weiye Chen26-Feb-04 19:20
Weiye Chen26-Feb-04 19:20 
GeneralRe: Background Image for ToolBar... Pin
Heath Stewart27-Feb-04 2:52
protectorHeath Stewart27-Feb-04 2:52 
GeneralRe: Background Image for ToolBar... Pin
Weiye Chen27-Feb-04 17:48
Weiye Chen27-Feb-04 17:48 
GeneralRe: Background Image for ToolBar... Pin
Weiye Chen28-Feb-04 2:47
Weiye Chen28-Feb-04 2:47 
GeneralRe: Background Image for ToolBar... Pin
Heath Stewart28-Feb-04 3:39
protectorHeath Stewart28-Feb-04 3:39 
Generalform_load is not suitable Pin
hazzem elrefai25-Feb-04 20:48
hazzem elrefai25-Feb-04 20:48 
GeneralRe: form_load is not suitable Pin
Heath Stewart26-Feb-04 3:54
protectorHeath Stewart26-Feb-04 3:54 
GeneralSET SYSTEM TIME Pin
POKRI25-Feb-04 19:53
POKRI25-Feb-04 19:53 
GeneralRe: SET SYSTEM TIME Pin
Heath Stewart26-Feb-04 3:38
protectorHeath Stewart26-Feb-04 3:38 
General, Pin
Anonymous25-Feb-04 19:36
Anonymous25-Feb-04 19:36 
GeneralAnybody know whether ASP.NET ADO.NET and C# can be Pin
DengJW25-Feb-04 16:39
DengJW25-Feb-04 16:39 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
John Kuhn25-Feb-04 18:22
John Kuhn25-Feb-04 18:22 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
Verdant12325-Feb-04 18:45
Verdant12325-Feb-04 18:45 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
John Kuhn25-Feb-04 19:00
John Kuhn25-Feb-04 19:00 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
DengJW25-Feb-04 21:36
DengJW25-Feb-04 21:36 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
Heath Stewart26-Feb-04 3:08
protectorHeath Stewart26-Feb-04 3:08 
GeneralRe: Anybody know whether ASP.NET ADO.NET and C# can be Pin
Verdant12326-Feb-04 3:13
Verdant12326-Feb-04 3:13 

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.