-
Is there a CommandButton which has the backcolor changable?
The one with VB6 cannot change backcolor.
[I have used the button in Msforms2.OCX which does change backcolor, but the Deployment wizard doesnt put the required FM20.DLL into the shipping CAB (or doesnt install it on target machine.), hence the program crashes. I have to install/remove MSOFFICE to get the DLL onto the target machine. messy!
Also related Q:
When I have an object on a form (button,etc) how can I tell which OCX it comes from? There doesnt seem to be any way to tell this, except reading through the .frm files headers.
-
(1) You can change the backcolor of a standard VB command button if you first set its Style property to Graphical.
(2) I'm not sure what file the intrinsic VB controls are in, but you can tell where "ActiveX" controls come from (such as the Common Dialog, Masked Edit Box, Tree View, etc.) by going to Project -> Components, and highlighting the control in question. The OCX file should display at the bottom of that dialog box. (Note: The "Windows Common Controls" have several controls in one OCX - this one OCX contains the TreeView, ListView, ImageList, ToolBar, etc.))
-
You can change the back colour! but you also have to change the style to graphical or nothing happens
Cheers
-
-
You can also have a picture as the background..change the style of the command to graphical and go down in the properties list to "picture" and select something....
=p sorry i was bored so i thought i would add something.
Laterz,
D!m