Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
QuestionUse of Datagrid for non database app Pin
ratinahat0018-Nov-05 22:41
ratinahat0018-Nov-05 22:41 
AnswerRe: Use of Datagrid for non database app Pin
Rody van Sambeek9-Nov-05 13:07
Rody van Sambeek9-Nov-05 13:07 
QuestionCRC-16 Convert to C vb.Net Pin
RichardBerry8-Nov-05 22:22
RichardBerry8-Nov-05 22:22 
QuestionRetreive file list from remote server using ftp - Error 226 - Urgent help required Pin
SheenSylesh8-Nov-05 22:03
SheenSylesh8-Nov-05 22:03 
QuestionHow to Bind ComboBox1 with DataSet1 ? Pin
majidbhutta8-Nov-05 21:54
majidbhutta8-Nov-05 21:54 
AnswerRe: How to Bind ComboBox1 with DataSet1 ? Pin
Susan Hernandez9-Nov-05 14:42
Susan Hernandez9-Nov-05 14:42 
AnswerRe: How to Bind ComboBox1 with DataSet1 ? Pin
n10sive10-Nov-05 12:04
n10sive10-Nov-05 12:04 
QuestionParent Form Child Form Problem Pin
ekynox8-Nov-05 20:37
ekynox8-Nov-05 20:37 
G'day folks,

I am stuck on a form design problem which I just cant seem to find any solution. I have an application (Parent Form) which requires another window (child form) to be open in a modeless mode (using Show()) and whose TopMost property is set to true. My problem becomes that if I switch applications in the taskbar, say from my application to Outlook (running in maximized mode), the child form still stays on top of Outlook. This is because the child form is set to TOPMOST being true.

One solution I had was to use the Deactivate and Activated event handlers for the parent form. In the Deactivate event handler I setup so that the child form would become invisible and in Activate Handler the child form would become visible. I didnt realise that once the parent form become active it will then make the child form visible thereby the child form become the active form thus firing the Deactivate handler for the parent form. Therefore getting stuck in an infinite loop of child form appearing and disappearing.

There has to be a solution since when the find window is open in notepad and another application is active the find window from notepad doesnt dominate.

Can anyone point out what mistake I am making, I realise this has to be a very elementary mistake.

I would really appreciate any feedback.

thanks
Vee


AnswerRe: Parent Form Child Form Problem Pin
hga_gi8-Nov-05 23:05
hga_gi8-Nov-05 23:05 
GeneralRe: Parent Form Child Form Problem Pin
ekynox8-Nov-05 23:36
ekynox8-Nov-05 23:36 
Questionhow to add module in c#.net? Pin
sarayumadhavan8-Nov-05 20:00
sarayumadhavan8-Nov-05 20:00 
AnswerRe: how to add module in c#.net? Pin
FriendlyFiend8-Nov-05 22:50
FriendlyFiend8-Nov-05 22:50 
QuestionRemoving Cookies and Temp Internet Files Pin
sonicsqwirl8-Nov-05 19:43
sonicsqwirl8-Nov-05 19:43 
QuestionError.....Net Remoting Pin
deep78-Nov-05 19:02
deep78-Nov-05 19:02 
QuestionCalling a C# COM Object from VC++ 6.0 Pin
E6AD8-Nov-05 17:16
E6AD8-Nov-05 17:16 
AnswerRe: Calling a C# COM Object from VC++ 6.0 Pin
Christian Graus8-Nov-05 17:36
protectorChristian Graus8-Nov-05 17:36 
GeneralRe: Calling a C# COM Object from VC++ 6.0 Pin
E6AD8-Nov-05 17:50
E6AD8-Nov-05 17:50 
QuestionShort Cuts Pin
picasso28-Nov-05 17:08
picasso28-Nov-05 17:08 
AnswerRe: Short Cuts Pin
Christian Graus8-Nov-05 17:15
protectorChristian Graus8-Nov-05 17:15 
QuestionHow to build a DLL in C#? Pin
E6AD8-Nov-05 16:31
E6AD8-Nov-05 16:31 
AnswerRe: How to build a DLL in C#? Pin
Allah On Acid8-Nov-05 16:39
Allah On Acid8-Nov-05 16:39 
AnswerRe: How to build a DLL in C#? Pin
Jon Rista9-Nov-05 10:57
Jon Rista9-Nov-05 10:57 
GeneralRe: How to build a DLL in C#? Pin
E6AD9-Nov-05 21:27
E6AD9-Nov-05 21:27 
QuestionDetect if control is being rendered in the forms designer ? Pin
Christian Graus8-Nov-05 14:38
protectorChristian Graus8-Nov-05 14:38 
AnswerRe: Detect if control is being rendered in the forms designer ? Pin
Christian Graus8-Nov-05 14:54
protectorChristian Graus8-Nov-05 14:54 

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.