Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: EXCEPTION HANDLING Pin
Jimmanuel19-Jan-10 8:14
Jimmanuel19-Jan-10 8:14 
AnswerRe: EXCEPTION HANDLING Pin
Bardy8519-Jan-10 8:36
Bardy8519-Jan-10 8:36 
AnswerRe: EXCEPTION HANDLING Pin
Migounette19-Jan-10 12:15
Migounette19-Jan-10 12:15 
QuestionMobile webbrowser control not displaying local image... Pin
Jacob Dixon19-Jan-10 4:54
Jacob Dixon19-Jan-10 4:54 
AnswerRe: Mobile webbrowser control not displaying local image... Pin
OriginalGriff19-Jan-10 5:41
mveOriginalGriff19-Jan-10 5:41 
GeneralRe: Mobile webbrowser control not displaying local image... Pin
Jacob Dixon19-Jan-10 6:03
Jacob Dixon19-Jan-10 6:03 
AnswerRe: Mobile webbrowser control not displaying local image... Pin
Luc Pattyn19-Jan-10 5:46
sitebuilderLuc Pattyn19-Jan-10 5:46 
QuestionShow a modeless form from an app with no main form? Pin
John Whitmire19-Jan-10 4:40
professionalJohn Whitmire19-Jan-10 4:40 
Copying an example I found, I have a Windows application with no main form that just manages a NotifyIcon in the tray with its small context menu functions. As such, its Main has Application.Run() instead of Application.Run(someform). That part works fine.

Now I need it to conditionally show/hide a form. There are no user interaction controls on the form (it's display only) and the "default" condition is to have the form hidden. If I use Form.ShowDialog(), the form appears, but blocks the user interaction that is associated with the NotifyIcon.ContextMenu and I have no way to remove it. If I use Form.Show() to keep the user interaction with NotifyIcon functional, the form appears but none of its contained controls render and it forever shows the Wait cursor.

After much fruitless searching for a threading issue (even though InvokeRequired is always false), I came across a clue that it might instead be a message pump issue. This makes some sense (since I can fully show and hide the form if I do it within the ContextMenu event handlers), but I can't find enough info to compose a candidate solution.

How do I get this form to complete its rendering without making it modal?
AnswerRe: Show a modeless form from an app with no main form? Pin
John Whitmire20-Jan-10 6:41
professionalJohn Whitmire20-Jan-10 6:41 
GeneralRating my Article Pin
ADNANE-Dev19-Jan-10 3:08
ADNANE-Dev19-Jan-10 3:08 
GeneralSort of Repost of something that was flamed in the first place Pin
Keith Barrow19-Jan-10 3:12
professionalKeith Barrow19-Jan-10 3:12 
GeneralRe: Sort of Repost of something that was flamed in the first place Pin
OriginalGriff19-Jan-10 3:48
mveOriginalGriff19-Jan-10 3:48 
GeneralRe: Rating my Article Pin
Not Active19-Jan-10 3:45
mentorNot Active19-Jan-10 3:45 
RantRe: Rating my Article Pin
dan!sh 19-Jan-10 3:49
professional dan!sh 19-Jan-10 3:49 
GeneralRe: Rating my Article Pin
Muammar©19-Jan-10 4:41
Muammar©19-Jan-10 4:41 
GeneralRe: Rating my Article Pin
loyal ginger19-Jan-10 4:43
loyal ginger19-Jan-10 4:43 
GeneralRe: Rating my Article Pin
0x3c019-Jan-10 5:12
0x3c019-Jan-10 5:12 
QuestionImporting a win32 dll in C# Pin
yeah100019-Jan-10 1:57
yeah100019-Jan-10 1:57 
AnswerRe: Importing a win32 dll in C# Pin
Luc Pattyn19-Jan-10 2:14
sitebuilderLuc Pattyn19-Jan-10 2:14 
AnswerRe: Importing a win32 dll in C# Pin
Rhys Gravell19-Jan-10 2:37
professionalRhys Gravell19-Jan-10 2:37 
AnswerRe: Importing a win32 dll in C# Pin
KarstenK19-Jan-10 2:51
mveKarstenK19-Jan-10 2:51 
GeneralRe: Importing a win32 dll in C# Pin
Sunil G19-Jan-10 4:35
Sunil G19-Jan-10 4:35 
QuestionSimple profiling question Pin
el_scrub19-Jan-10 1:45
el_scrub19-Jan-10 1:45 
AnswerRe: Simple profiling question Pin
harold aptroot19-Jan-10 1:49
harold aptroot19-Jan-10 1:49 
GeneralRe: Simple profiling question Pin
harold aptroot19-Jan-10 1:59
harold aptroot19-Jan-10 1:59 

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.