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.
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.
sorry, that was a c# example...
Where is the button you want to change? Your app or a different app?
ASKER
Thanks for the postings,
the button I want to change in on a different app (sample: on Windows default about box).
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.
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?
But I'm having problems with the 'using's.
Can you help me?
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.)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks DCD,
I'll read a little bit.
I'll read a little bit.
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#).
http://www.thecodeproject.com/cs/miscctrl/folderbrowser.asp#xx980424xx
This meets almost my requirements (it is in C#).
http://www.dotnet247.com/247reference/msgs/54/270465.aspx
hope this helps,
mcg