| Visual basic programming help?

Visual basic programming help?

dalibor.suhanji asked:


I am using visual asic 6 enterprise edition.
Can anybody tell me how to customase window form and command button. I want to make form like vista or anything else, becouse standard forms are borring. If you can tell me some internet site where i can find this (with source code or anything else) and ocx or dll files to use to make this or recomand me program for creating forms.

Related posts:

  1. I have a question here about Visual Basic programming, hope you guys will answer:? bill asked: I want to create a program (in Standard...
  2. How to create a login form in visual basic which is linked to SQL server database? HELP? Zacken asked: I’m creating a database program in Visual basic...
  3. why my visual basic program not working ? mrlee asked: I just made a calculator with VB 2008,...
  4. Do you know Visual Basic Programming? ismashkhy asked: I want to create a warehouse maintenance and...
  5. How to write a program in Visual Basic to add, update, or delete records? Kevin asked: Okay, I’m about stressed to the limits right...

Filed Under Programming & Design |

Tagged With , ,

Comments

One Response to “Visual basic programming help?”

  1. Jeffrey C on May 4th, 2009 9:15 pm

    To customize the appearance of form components you can play with the textbox and button properties. For the buttons there is a STYLE listed in the properties box for that button control. Make it Graphical, that way you can add an image or bg color to the button. Make it flat instead of 3D. Same with textbox controls or combo boxes. Just make the controls flat, add bg coloring, change the font size, weight and color. You can get some very cool effects just doing that. Try something like this:

    ‘ Check for all controls ‘
    For Each ctl In frm.Controls ‘ your form name here ‘
    ‘ Change characteristics of controls ‘
    ‘ Check for error if control does not have ‘
    ‘ property change capabilites ‘
    On Error Resume Next
    ctl.Appearance = 0 ‘ Makes control flat ‘
    ctl.BackStyle = 0 ‘ Makes control transparent ‘
    ctl.BackColor = frm.BackColor ‘ Makes certain control same color as form backcolor ‘
    ‘ control individual controls with code like below ‘
    If TypeOf ctl Is TextBox Then
    ctl.BackColor = &HFFFFFF
    End If
    MsgBox ctl.Name & frm.Controls
    On Error GoTo 0
    ‘End If
    Next ctl

    Using code like this can allow your user to change appearance on the fly. I wrote this code a couple of years ago using VB6 but it still functions properly.