Click here to Skip to main content
15,900,477 members
Home / Discussions / C#
   

C#

 
AnswerRe: User32 SetFocus not working - any ideas? Pin
Nader Elshehabi30-Aug-06 12:12
Nader Elshehabi30-Aug-06 12:12 
GeneralRe: User32 SetFocus not working - any ideas? Pin
wbjohnson30-Aug-06 12:15
wbjohnson30-Aug-06 12:15 
QuestionGet the exact data types from a sql table Pin
Ista30-Aug-06 11:11
Ista30-Aug-06 11:11 
AnswerRe: Get the exact data types from a sql table Pin
mikone30-Aug-06 11:43
mikone30-Aug-06 11:43 
QuestionToolstrip redraw problem Pin
srev30-Aug-06 10:49
srev30-Aug-06 10:49 
AnswerRe: Toolstrip redraw problem Pin
Nader Elshehabi30-Aug-06 11:30
Nader Elshehabi30-Aug-06 11:30 
GeneralRe: Toolstrip redraw problem Pin
srev30-Aug-06 23:16
srev30-Aug-06 23:16 
GeneralRe: Toolstrip redraw problem Pin
Nader Elshehabi31-Aug-06 1:30
Nader Elshehabi31-Aug-06 1:30 
Hello

It looks like I got your question all wrong!!Roll eyes | :rolleyes: Now I get what you mean.

Why doesn't your ToolStrip draw itself?? Doesn't it fire paint events?

To demonstrate that, I made the same cascade that you did, then I added a ListBox, and then the following code for each paint event in the cascade:
private void toolStripButton1_Paint(object sender, PaintEventArgs e)
{
   listBox2.Items.Add("Button Paint");
}

private void toolStrip1_Paint(object sender, PaintEventArgs e)
{
   listBox2.Items.Add("ToolStrip Paint");
}

private void toolStripContainer1_ContentPanel_Paint(object sender, PaintEventArgs e)
{
   listBox2.Items.Add("Container Paint");
}


The listbox addes the item in the same order as the paint events should be fired. Al the Paint events are fired appropriately.

Try this demo in your code to see if the paint events are fired or not.

RegardsRose | [Rose]

GeneralRe: Toolstrip redraw problem Pin
srev31-Aug-06 3:34
srev31-Aug-06 3:34 
QuestionMultipage - pageview : Tabstrip Pin
shivarishxxxx30-Aug-06 10:16
shivarishxxxx30-Aug-06 10:16 
AnswerRe: Multipage - pageview : Tabstrip Pin
Nader Elshehabi30-Aug-06 11:26
Nader Elshehabi30-Aug-06 11:26 
GeneralRe: Multipage - pageview : Tabstrip Pin
shivarishxxxx30-Aug-06 17:58
shivarishxxxx30-Aug-06 17:58 
JokeRe: Multipage - pageview : Tabstrip Pin
Nader Elshehabi31-Aug-06 1:55
Nader Elshehabi31-Aug-06 1:55 
QuestionHow to wait for multiple STA threads to finish? Pin
SandeepN30-Aug-06 10:14
SandeepN30-Aug-06 10:14 
AnswerRe: How to wait for multiple STA threads to finish? Pin
Nader Elshehabi30-Aug-06 11:17
Nader Elshehabi30-Aug-06 11:17 
GeneralRe: How to wait for multiple STA threads to finish? Pin
SandeepN30-Aug-06 11:41
SandeepN30-Aug-06 11:41 
GeneralRe: How to wait for multiple STA threads to finish? Pin
SandeepN30-Aug-06 12:03
SandeepN30-Aug-06 12:03 
GeneralRe: How to wait for multiple STA threads to finish? Pin
Nader Elshehabi30-Aug-06 12:26
Nader Elshehabi30-Aug-06 12:26 
GeneralRe: How to wait for multiple STA threads to finish? Pin
SandeepN30-Aug-06 20:39
SandeepN30-Aug-06 20:39 
Questionhow to make a true copy of a reference-type object? Pin
michal.kreslik30-Aug-06 9:50
michal.kreslik30-Aug-06 9:50 
AnswerRe: how to make a true copy of a reference-type object? Pin
Nader Elshehabi30-Aug-06 10:12
Nader Elshehabi30-Aug-06 10:12 
GeneralRe: how to make a true copy of a reference-type object? Pin
michal.kreslik30-Aug-06 10:54
michal.kreslik30-Aug-06 10:54 
QuestionGenerics classes and object creation Pin
AndyHug30-Aug-06 8:31
AndyHug30-Aug-06 8:31 
AnswerRe: Generics classes and object creation Pin
Bruno M.T. Sousa30-Aug-06 10:30
Bruno M.T. Sousa30-Aug-06 10:30 
QuestionSockets or Remoting? Pin
mithrandiir4230-Aug-06 8:04
mithrandiir4230-Aug-06 8:04 

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.