Link to home
Start Free TrialLog in
Avatar of HStrix
HStrix

asked on

VB.Net modify text (caption) of an OK button

Hello experts,
I'm trying to modify the (default) text appearing on a button.
Sample:
The windows about dialog has an OK button.
Is there a way to modify the text 'OK' to 'Close Me'?

If you know a solution please supply a snippet.

   Thank you very much for any help.

   HStrix
 
A solution (if existing) in C# or VB6 is of interest as well.
Avatar of mcgants
mcgants

sorry to be the bearer of bad news but you can't change the dialog box button text, however this link explains and [hopefully] has some help at the bottom:
http://www.dotnet247.com/247reference/msgs/54/270465.aspx

hope this helps,
mcg
sorry, that was a c# example...
Avatar of Mike Tomlinson
Where is the button you want to change?  Your app or a different app?
Avatar of HStrix

ASKER

Thanks for the postings,
the button I want to change in on a different app (sample: on Windows default about box).
Honestly, you could change the text by intercepting windows messages (or subclassing) to the dialog box. This would be accomplished through API calls. It would require advanced coding and may not be worth your time to do.
Avatar of HStrix

ASKER

'mcgants' I tried to use the sample you're refrring to.
But I'm having problems with the 'using's.
Can you help me?
Avatar of HStrix

ASKER

Thanks DVD,
I'ld like to do this.
Can you refer me to website with some related code?

(I do NOT want to change the functionality behind the button but only its caption.)
ASKER CERTIFIED SOLUTION
Avatar of DCD
DCD

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HStrix

ASKER

Thanks DCD,
I'll read a little bit.
Avatar of HStrix

ASKER

I found another interesting information on
   http://www.thecodeproject.com/cs/miscctrl/folderbrowser.asp#xx980424xx
This meets almost my requirements (it is in C#).