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

C#

 
AnswerRe: strings help Pin
Ed.Poore24-Mar-06 9:08
Ed.Poore24-Mar-06 9:08 
QuestionAdding active icons to title-bar of common File Open dialog Pin
Saber Of Borg24-Mar-06 6:01
Saber Of Borg24-Mar-06 6:01 
QuestionHow to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 5:55
Saber Of Borg24-Mar-06 5:55 
AnswerRe: How to trigger when any window/dialog opens within Windows Pin
Bob_Sun24-Mar-06 6:13
Bob_Sun24-Mar-06 6:13 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 14:38
Saber Of Borg24-Mar-06 14:38 
AnswerRe: How to trigger when any window/dialog opens within Windows Pin
Dave Kreskowiak24-Mar-06 7:00
mveDave Kreskowiak24-Mar-06 7:00 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 14:35
Saber Of Borg24-Mar-06 14:35 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
mav.northwind24-Mar-06 21:50
mav.northwind24-Mar-06 21:50 
Hi!

You either poll the current windows (P/invoking EnumWindows) for a file dialog window (you can use Spy++ to find out the correct window class names), but that's not very elegant.
Or you create a system-wide hook to inform you application that a special window has appeared - I think CTBHOOKs can monitor the creation of windows.
The problem is that hook procedures in C# will not work in every case (injecting managed code into an unmanaged application can become a little tricky Poke tongue | ;-P ), but since the hook procedure only has to inform you that a special window has appeared and perhaps transmit the HWND of this window, it should be possible to put together the proc in C++ by adapting one of the samples flowing around the net.

HTH,

Regards,
mav

--
Black holes are the places where god divided by 0...
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Dave Kreskowiak25-Mar-06 2:45
mveDave Kreskowiak25-Mar-06 2:45 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg26-Mar-06 6:47
Saber Of Borg26-Mar-06 6:47 
QuestionHow do I create different sized toolbar buttons? Pin
pliu_200024-Mar-06 5:36
pliu_200024-Mar-06 5:36 
AnswerRe: How do I create different sized toolbar buttons? Pin
Ravi Bhavnani24-Mar-06 5:45
professionalRavi Bhavnani24-Mar-06 5:45 
GeneralRe: How do I create different sized toolbar buttons? Pin
pliu_200024-Mar-06 6:01
pliu_200024-Mar-06 6:01 
GeneralRe: How do I create different sized toolbar buttons? Pin
Ravi Bhavnani24-Mar-06 6:50
professionalRavi Bhavnani24-Mar-06 6:50 
QuestionC# and Windows Services Pin
hung_ngole24-Mar-06 4:24
hung_ngole24-Mar-06 4:24 
AnswerRe: C# and Windows Services Pin
shabonaa29-May-06 6:32
shabonaa29-May-06 6:32 
QuestionC# and 'SQL Server 2005 EE', going from VB to C# ? Pin
Inkimar24-Mar-06 3:48
Inkimar24-Mar-06 3:48 
AnswerRe: C# and 'SQL Server 2005 EE', going from VB to C# ? Pin
ToddHileHoffer24-Mar-06 6:43
ToddHileHoffer24-Mar-06 6:43 
GeneralRe: C# and 'SQL Server 2005 EE', going from VB to C# ? Pin
Colin Angus Mackay24-Mar-06 6:50
Colin Angus Mackay24-Mar-06 6:50 
AnswerRe: C# and 'SQL Server 2005 EE', going from VB to C# ? Pin
Dave Doknjas24-Mar-06 15:11
Dave Doknjas24-Mar-06 15:11 
QuestionRe: C# and 'SQL Server 2005 EE', going from VB to C# ? Pin
Inkimar25-Mar-06 5:45
Inkimar25-Mar-06 5:45 
QuestionUsing LinearGradientBrush Pin
JuanAlbertoMD24-Mar-06 3:44
JuanAlbertoMD24-Mar-06 3:44 
AnswerRe: Using LinearGradientBrush Pin
Ed.Poore24-Mar-06 7:44
Ed.Poore24-Mar-06 7:44 
GeneralRe: Using LinearGradientBrush Pin
mav.northwind24-Mar-06 8:53
mav.northwind24-Mar-06 8:53 
GeneralRe: Using LinearGradientBrush Pin
Ed.Poore24-Mar-06 9:02
Ed.Poore24-Mar-06 9:02 

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.