Click here to Skip to main content
15,881,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 6:43
professionalKevin Marois28-Mar-11 6:43 
GeneralRe: Read XML Into Class Hierarchy Pin
Pete O'Hanlon28-Mar-11 6:50
mvePete O'Hanlon28-Mar-11 6:50 
GeneralRe: Read XML Into Class Hierarchy Pin
Kevin Marois28-Mar-11 6:51
professionalKevin Marois28-Mar-11 6:51 
GeneralRe: Read XML Into Class Hierarchy Pin
SledgeHammer0128-Mar-11 8:20
SledgeHammer0128-Mar-11 8:20 
AnswerRe: Read XML Into Class Hierarchy Pin
Pete O'Hanlon28-Mar-11 6:36
mvePete O'Hanlon28-Mar-11 6:36 
GeneralRe: Read XML Into Class Hierarchy Pin
SledgeHammer0128-Mar-11 10:52
SledgeHammer0128-Mar-11 10:52 
AnswerRe: Read XML Into Class Hierarchy Pin
#realJSOP28-Mar-11 10:03
mve#realJSOP28-Mar-11 10:03 
QuestionDrag and drop not working in windows 7 if application is launched as administrator with UAC enabled Pin
abhinish28-Mar-11 4:09
abhinish28-Mar-11 4:09 
Hello guys,

Need some expert advise.

I am developing a c# windows application which runs as administrator.
The problem is on windows 7 and Vista, drag and drop on the application do not works when UAC is enabled. I researched a lot and found that this is because of UIPI (User Interface Privilege Isolation)

and on MSDN I found some information asking to allow the filtered messages again by using ChangeWindowMessageFilter API. I tried it and called it on form_load event some thing like this

private const uint WM_DROPFILES = 0x233;<br />
       private const uint WM_COPYDATA = 0x004A;<br />
       private const uint MSGFLT_ADD = 1;


//in form load i called

ChangeWindowMessageFilter(WM_DROPFILES, MSGFLT_ADD);<br />
    ChangeWindowMessageFilter(WM_COPYDATA, MSGFLT_ADD);<br />
    ChangeWindowMessageFilter(0x0049, MSGFLT_ADD);


But it still dont work.. may be i am missing some thing, I tried to set the property uiAccess="true" also in the manifest file and signed the exe but it still dont work.
Am i calling the ChangeWindowMessageFilter incorrectly or is there any another way ?

Can any one help me regarding this. I had to run the application as administrator as it modifies some registries
Any help would be great

Thanks in advance

Regards
abhinav

QuestionHow to enable disable Hibernation option by using C# code. Pin
Piyush Vaishnav27-Mar-11 23:33
Piyush Vaishnav27-Mar-11 23:33 
AnswerRe: How to enable disable Hibernation option by using C# code. Pin
Pravin Patil, Mumbai28-Mar-11 1:55
Pravin Patil, Mumbai28-Mar-11 1:55 
AnswerRe: How to enable disable Hibernation option by using C# code. Pin
PIEBALDconsult28-Mar-11 3:01
mvePIEBALDconsult28-Mar-11 3:01 
AnswerRe: How to enable disable Hibernation option by using C# code. Pin
Dave Kreskowiak28-Mar-11 4:17
mveDave Kreskowiak28-Mar-11 4:17 
AnswerRe: How to enable disable Hibernation option by using C# code. Pin
Shameel28-Mar-11 5:34
professionalShameel28-Mar-11 5:34 
QuestionExposing the running assembly to run-time compiled code Pin
Quiltfish27-Mar-11 9:56
Quiltfish27-Mar-11 9:56 
AnswerRe: Exposing the running assembly to run-time compiled code Pin
Bernhard Hiller27-Mar-11 21:14
Bernhard Hiller27-Mar-11 21:14 
AnswerRe: Exposing the running assembly to run-time compiled code Pin
Wayne Gaylard27-Mar-11 21:16
professionalWayne Gaylard27-Mar-11 21:16 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
Quiltfish27-Mar-11 23:36
Quiltfish27-Mar-11 23:36 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
Wayne Gaylard27-Mar-11 23:55
professionalWayne Gaylard27-Mar-11 23:55 
AnswerRe: Exposing the running assembly to run-time compiled code Pin
_Erik_28-Mar-11 4:17
_Erik_28-Mar-11 4:17 
GeneralRe: Exposing the running assembly to run-time compiled code [modified] Pin
Quiltfish28-Mar-11 22:28
Quiltfish28-Mar-11 22:28 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
BobJanova30-Mar-11 23:53
BobJanova30-Mar-11 23:53 
Questionproblem with sending message to serial port with timer [modified] Pin
Honeyboy_2027-Mar-11 8:36
Honeyboy_2027-Mar-11 8:36 
AnswerRe: problem with sending message to serial port with timer Pin
Luc Pattyn27-Mar-11 9:11
sitebuilderLuc Pattyn27-Mar-11 9:11 
GeneralRe: problem with sending message to serial port with timer Pin
Honeyboy_2027-Mar-11 12:39
Honeyboy_2027-Mar-11 12:39 
AnswerRe: problem with sending message to serial port with timer [modified] Pin
Luc Pattyn27-Mar-11 12:54
sitebuilderLuc Pattyn27-Mar-11 12: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.