Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

  • *Experts*
Posted

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

"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
Posted

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?

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...