Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Network Problem Pin
mav.northwind4-Oct-05 7:04
mav.northwind4-Oct-05 7:04 
GeneralRe: C# Network Problem Pin
4-Oct-05 8:01
suss4-Oct-05 8:01 
GeneralRe: C# Network Problem Pin
theDexter4-Oct-05 9:07
theDexter4-Oct-05 9:07 
QuestionCPU Usage Pin
manojk_batra4-Oct-05 6:32
manojk_batra4-Oct-05 6:32 
AnswerRe: CPU Usage Pin
Heath Stewart4-Oct-05 10:53
protectorHeath Stewart4-Oct-05 10:53 
GeneralRe: CPU Usage Pin
manojk_batra4-Oct-05 18:04
manojk_batra4-Oct-05 18:04 
AnswerRe: CPU Usage Pin
Heath Stewart5-Oct-05 6:47
protectorHeath Stewart5-Oct-05 6:47 
QuestionDisplaying an owned form when main form is shown Pin
Luis Alonso Ramos4-Oct-05 5:11
Luis Alonso Ramos4-Oct-05 5:11 
Hello,

I have an MDI application. At the start of Main I call EnableVisualStyles and DoEvents to enable XP theming and everything works fine.

But now, I'm trying to automatically simulate a click event for a menu item to display a login form on top of that MDI parent.

First I tried to display the form the first time the Activated event is fired for the MDI parent, and it kind of works, but the main form is displayed partially resized (titlebar is resized to saved position, but not client area) and only totally paints itself after the login form is closed.

I have a timer, so I tried setting a flag and displaying the form the first time the Tick event fires for the timer, before clearing the flag. This to wait for the form to process all the creation events. And it works perfect, except that I don't get visual styles in any of my application's dialogs (but I do in toolbars and message boxes.)

I'm using .NET 1.1 (VS 2003) on Windows XP.

So, any ideas?

-- LuisR




Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
AnswerSolved! Pin
Luis Alonso Ramos4-Oct-05 5:42
Luis Alonso Ramos4-Oct-05 5:42 
AnswerRe: Displaying an owned form when main form is shown Pin
mav.northwind4-Oct-05 7:07
mav.northwind4-Oct-05 7:07 
QuestionRemoting URI question ? Pin
Member 127995794-Oct-05 5:10
Member 127995794-Oct-05 5:10 
AnswerRe: Remoting URI question ? Pin
S. Senthil Kumar4-Oct-05 6:07
S. Senthil Kumar4-Oct-05 6:07 
QuestionAutocompletion Pin
PaulaM4-Oct-05 5:07
PaulaM4-Oct-05 5:07 
AnswerRe: Autocompletion Pin
Daniel Grunwald4-Oct-05 5:54
Daniel Grunwald4-Oct-05 5:54 
Questionwav file + c# Pin
g00fyman4-Oct-05 3:26
g00fyman4-Oct-05 3:26 
Questionhandling table SQL in 1 class? Pin
mpw_4-Oct-05 2:34
mpw_4-Oct-05 2:34 
AnswerRe: handling table SQL in 1 class? Pin
Wjousts4-Oct-05 3:26
Wjousts4-Oct-05 3:26 
GeneralRe: handling table SQL in 1 class? Pin
mpw_4-Oct-05 3:45
mpw_4-Oct-05 3:45 
AnswerRe: handling table SQL in 1 class? Pin
g00fyman4-Oct-05 3:31
g00fyman4-Oct-05 3:31 
GeneralRe: handling table SQL in 1 class? Pin
mpw_4-Oct-05 4:11
mpw_4-Oct-05 4:11 
QuestionForm Inheritance Pin
PHDENG814-Oct-05 2:08
PHDENG814-Oct-05 2:08 
AnswerRe: Form Inheritance Pin
spif20014-Oct-05 2:10
spif20014-Oct-05 2:10 
GeneralRe: Form Inheritance Pin
PHDENG814-Oct-05 2:21
PHDENG814-Oct-05 2:21 
GeneralRe: Form Inheritance Pin
PHDENG814-Oct-05 2:31
PHDENG814-Oct-05 2:31 
GeneralRe: Form Inheritance Pin
spif20014-Oct-05 2:32
spif20014-Oct-05 2:32 

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.