Click here to Skip to main content
15,921,606 members
Home / Discussions / C#
   

C#

 
QuestionDisabling a button on one form from another. Pin
False Chicken14-Aug-09 0:28
False Chicken14-Aug-09 0:28 
AnswerRe: Disabling a button on one form from another. Pin
DaveyM6914-Aug-09 0:53
professionalDaveyM6914-Aug-09 0:53 
AnswerRe: Disabling a button on one form from another. Pin
DaveyM6914-Aug-09 1:00
professionalDaveyM6914-Aug-09 1:00 
GeneralRe: Disabling a button on one form from another. Pin
False Chicken14-Aug-09 1:06
False Chicken14-Aug-09 1:06 
AnswerRe: Disabling a button on one form from another. Pin
Hristo-Bojilov14-Aug-09 1:08
Hristo-Bojilov14-Aug-09 1:08 
GeneralRe: Disabling a button on one form from another. Pin
False Chicken14-Aug-09 1:15
False Chicken14-Aug-09 1:15 
GeneralRe: Disabling a button on one form from another. Pin
DaveyM6914-Aug-09 1:39
professionalDaveyM6914-Aug-09 1:39 
GeneralRe: Disabling a button on one form from another. Pin
Hristo-Bojilov14-Aug-09 2:01
Hristo-Bojilov14-Aug-09 2:01 
I've already read that DaveyM69 has explained to you how to use events/delegates for solving your problem.But sometimes you need to notify other instances of your app for something important.In this case events and delegates are not useful,because you can't get valid pointers of the forms belonging to another instance of the app.In this case you have to use custom WM messages.To register custom WM message call RegisterWindowMessage native function.
And to send message call SendMessage native function passing HWND_BROADCAST value for hWnd parameter.But this function doesn't seem to work with child windows,but it works with hidden top windows for example.
But be careful with that option-it could damage OS performance.
QuestionDelegateSerializationHolder is not permitted to be deserialized at this security level Pin
Nigel Mackay14-Aug-09 0:08
Nigel Mackay14-Aug-09 0:08 
AnswerRe: DelegateSerializationHolder is not permitted to be deserialized at this security level Pin
Hristo-Bojilov14-Aug-09 7:46
Hristo-Bojilov14-Aug-09 7:46 
GeneralRe: DelegateSerializationHolder is not permitted to be deserialized at this security level Pin
Nigel Mackay14-Aug-09 21:27
Nigel Mackay14-Aug-09 21:27 
Question'Mirror' ListView control Pin
kanchoette13-Aug-09 23:48
kanchoette13-Aug-09 23:48 
AnswerRe: 'Mirror' ListView control Pin
musefan14-Aug-09 2:33
musefan14-Aug-09 2:33 
QuestionCatching an Exception Pin
stancrm13-Aug-09 23:47
stancrm13-Aug-09 23:47 
AnswerRe: Catching an Exception Pin
Eddy Vluggen14-Aug-09 0:07
professionalEddy Vluggen14-Aug-09 0:07 
GeneralRe: Catching an Exception Pin
stancrm14-Aug-09 1:15
stancrm14-Aug-09 1:15 
QuestionClose Firefox with C# Pin
nhqlbaislwfiikqraqnm13-Aug-09 22:35
nhqlbaislwfiikqraqnm13-Aug-09 22:35 
AnswerRe: Close Firefox with C# Pin
Eddy Vluggen13-Aug-09 22:39
professionalEddy Vluggen13-Aug-09 22:39 
AnswerRe: Close Firefox with C# Pin
Rajesh R Subramanian13-Aug-09 22:42
professionalRajesh R Subramanian13-Aug-09 22:42 
GeneralRe: Close Firefox with C# Pin
nhqlbaislwfiikqraqnm13-Aug-09 22:51
nhqlbaislwfiikqraqnm13-Aug-09 22:51 
GeneralRe: Close Firefox with C# Pin
0x3c013-Aug-09 22:54
0x3c013-Aug-09 22:54 
GeneralRe: Close Firefox with C# Pin
nhqlbaislwfiikqraqnm13-Aug-09 22:59
nhqlbaislwfiikqraqnm13-Aug-09 22:59 
GeneralRe: Close Firefox with C# Pin
Eddy Vluggen13-Aug-09 23:14
professionalEddy Vluggen13-Aug-09 23:14 
GeneralRe: Close Firefox with C# Pin
nhqlbaislwfiikqraqnm13-Aug-09 23:41
nhqlbaislwfiikqraqnm13-Aug-09 23:41 
GeneralRe: Close Firefox with C# Pin
Eddy Vluggen13-Aug-09 23:55
professionalEddy Vluggen13-Aug-09 23:55 

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.