That doesn't sound like a commonplace ActiveX control. It may only exist on computers with a particular program installation.
There is no ForeColor property for command button controls. There is an article that discusses how to create the effect of another label placed directly over a command control, with forecolour support.
This code is lengthy, and I personally would not use it myself. A simple alternative is to create a picture of your own with text included for the command button; assign the picture to the command button's Picture property; set the Style property to "1 - Graphical"; and make sure that the Caption property is set to null (not used). You may also wish to assign a picture to the button's DownPicture property, which becomes visible when the command button is depressed/pushed down.
That doesn't sound like a commonplace ActiveX control. It may only exist on computers with a particular program installation.
There is no ForeColor property for command button controls. There is an article that discusses how to create the effect of another label placed directly over a command control, with forecolour support.
This code is lengthy, and I personally would not use it myself. A simple alternative is to create a picture of your own with text included for the command button; assign the picture to the command button's Picture property; set the Style property to "1 - Graphical"; and make sure that the Caption property is set to null (not used). You may also wish to assign a picture to the button's DownPicture property, which becomes visible when the command button is depressed/pushed down.
Why bother reinventing a wheel?
As I said above he can use Sheridan button instead that has this functionality.
Why bother reinventing a wheel?
As I said above he can use Sheridan button instead that has this functionality.
Could you please provide a link to the where-abouts of this particular ActiveX control that you speak of, so that he may download it? My first statement still stands.
Could you please provide a link to the where-abouts of this particular ActiveX control that you speak of, so that he may download it? My first statement still stands.
See my first two lines it is included with VB. No download required.
[PHP]Go to Project - Components
Select "Sheridan Active Threed Controls".[/PHP]
I don't think there is any point to continue this discussion because abhayasthana200 6 doesn't look to be interested in it any more.
simple use API... use changecolor and getcolor function, i cant giv you exactly the code was but i use api to untie the vb limits...follow the steps below..
1. Use FindWindow and FindWindowEx to Get the handle of your button
2. Use GetColor() to get specific Color of your taste
3. Us SetColor to Change the forecolor of your button... just make sure you find the text not the main button object and make sure you pick the right color or you all see is black..or maybe white..
Comment