Results 1 to 5 of 5

Thread: command button with Backcolor

  1. #1
    Guest
    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.


  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    (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.))
    "It's cold gin time again ..."

    Check out my website here.

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Thumbs up

    You can change the back colour! but you also have to change the style to graphical or nothing happens

    Cheers


    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    DAMN!

    beaten again

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  5. #5
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width