mooman_fl Posted April 22, 2003 Posted April 22, 2003 I think the subject says it all. There is a disabled control in another program that I want to be able to enable. I had a program that did something similar before. I know it involves subclassing but I am not sure how it would be done. It is not a .NET program that contains the control. Any ideas? Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
*Experts* Nerseus Posted April 22, 2003 *Experts* Posted April 22, 2003 I'm sure your previous method involved hooking the window and finding the right window handle. You can do the same thing in .NET - you'll just have to import the DLL calls. Having said that, I hope you're not trying to get around any type of software restriction with this code. I'm sure whoever disabled the button had a good reason, right? :) -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
mooman_fl Posted April 23, 2003 Author Posted April 23, 2003 LOL.... no I am not trying to crack anything. There is a process running on my computer right now. I used a program called hide-window to unhide it. It has a button on it that is disabled... I want to enable it. I haven't hooked a control before to change its properties like that before. The only thing I have done along the lines of subclassing is intercepting events... and adding a child control. Was wondering if I could get an example or some pointers on how to accomplish this. Any ideas? Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.