Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
kourvoisier14-Nov-05 5:16
kourvoisier14-Nov-05 5:16 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
Curtis Schlak.14-Nov-05 5:51
Curtis Schlak.14-Nov-05 5:51 
GeneralRe: Creating forms on different threads EVEN BETTER Pin
kourvoisier14-Nov-05 12:18
kourvoisier14-Nov-05 12:18 
QuestionSet form's owner to a window outside the application? Pin
MogobuTheFool10-Nov-05 19:45
MogobuTheFool10-Nov-05 19:45 
AnswerRe: Set form's owner to a window outside the application? Pin
Dave Kreskowiak11-Nov-05 3:57
mveDave Kreskowiak11-Nov-05 3:57 
GeneralRe: Set form's owner to a window outside the application? Pin
MogobuTheFool7-Jul-06 8:32
MogobuTheFool7-Jul-06 8:32 
GeneralRe: Set form's owner to a window outside the application? Pin
Dave Kreskowiak7-Jul-06 10:16
mveDave Kreskowiak7-Jul-06 10:16 
GeneralRe: Set form's owner to a window outside the application? Pin
MogobuTheFool8-Jul-06 4:18
MogobuTheFool8-Jul-06 4:18 
Actually, I'm in pretty good shape. . .

I already have separate code which runs on a timer loop which checks the target window positions and moves my overlays to match. I've written code to adjust the z-order on each pass, but that looked kludgy because my overlays would disappear and then reappear every time the target windows were clicked (they would come to the fore, and then my overlay would be brought back in front.) I could avoid the blinking by setting them TopMost, but then my overlays would cause problem when windows are overlapped; any window opened in front, like a browser, would have my overlays popping through.

This solution fixes the z-order problem entirely, does not cause blinking or pop-through, and does not even require my code to do anything - windows handles the z-order processing efficiently for me.

The one problem - that of a failed refresh if I minimize one of my overlays - is not a major problem to me. It was only causing a problem when I hid an overlay window after some third window was interposed between the target window and the owned window, which is a rare condition (once I ensured that my own application didn't do this to me! When switching overlays, I needed to ensure I was hiding the old before showing the new, which is a simple fix.)

If, in some other circumstance, the condition isn't rare, the fix is a simple matter of adjusting the .Hide() call; it should include a SendMessage call which sends an invalidation method to the owner window. Voila!
Questionsetting the date format of the calendar in a datetimepicker Pin
microsoc10-Nov-05 19:28
microsoc10-Nov-05 19:28 
AnswerRe: setting the date format of the calendar in a datetimepicker Pin
krario10-Nov-05 20:07
krario10-Nov-05 20:07 
GeneralRe: setting the date format of the calendar in a datetimepicker Pin
microsoc10-Nov-05 20:20
microsoc10-Nov-05 20:20 
QuestionStatic and Dynaminc Assemblies ? Pin
webC#10-Nov-05 19:08
webC#10-Nov-05 19:08 
AnswerRe: Static and Dynaminc Assemblies ? Pin
J4amieC10-Nov-05 21:51
J4amieC10-Nov-05 21:51 
QuestionData Encryption in MySql Pin
Prashant Gadhave10-Nov-05 19:06
Prashant Gadhave10-Nov-05 19:06 
QuestionCapture Voice using DirectSound Pin
pakFari10-Nov-05 18:35
pakFari10-Nov-05 18:35 
Questionsql statement problem Pin
ppp00110-Nov-05 18:32
ppp00110-Nov-05 18:32 
AnswerRe: sql statement problem Pin
jonny511-Nov-05 0:31
jonny511-Nov-05 0:31 
Questionwhat is the complete code for downloading a file using FTP through ASP.NET/C# Pin
v.k.s10-Nov-05 17:26
v.k.s10-Nov-05 17:26 
AnswerRe: what is the complete code for downloading a file using FTP through ASP.NET/C# Pin
Ravi Bhavnani11-Nov-05 5:51
professionalRavi Bhavnani11-Nov-05 5:51 
QuestionC# App Error Pin
nosferatu200010-Nov-05 17:10
nosferatu200010-Nov-05 17:10 
AnswerRe: C# App Error Pin
J4amieC10-Nov-05 21:48
J4amieC10-Nov-05 21:48 
Questiondisplay from system tray issues Pin
lushgrass10-Nov-05 16:52
lushgrass10-Nov-05 16:52 
QuestionC# and mysql Pin
vandread110-Nov-05 13:18
vandread110-Nov-05 13:18 
AnswerRe: C# and mysql Pin
Christian Graus10-Nov-05 13:33
protectorChristian Graus10-Nov-05 13:33 
GeneralRe: C# and mysql Pin
vandread110-Nov-05 13:39
vandread110-Nov-05 13:39 

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.