This is something I just can't figure out, I want to disable another applications window.

I'm wanting to achieve the same effect as this.Enable = False;

Can c# achieve this or will I have to look into doing it in c?

Recommended Answers

All 2 Replies

I can get HWND or IntPtr to active window (whatever it's your or not) if it helps you I'll send the code, but I don't know how to disable another application, how can I disable my application?? or you mean disable form?

there is a way to suspend all code execution of a thread. I'm not sure how its done. but ProccessExplorer from Microsoft does it, and it lasts even after the app closes, and can only be un suspended by processexplorer or closing the app via task manager and reopening it.

So if that would work, you might want to look into that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.