Monday, March 29, 2010

Setting Object Properties at Design Time in VB6



Setting Properties of Object in VB6 programming

In the previous posting I've written that you can set the properties of an object at design time. The properties settings that you establish at design time are used as the initial settings each time your application runs. You can set the object properties by using Properties window.

Although it is not a must, because you set the properties of course according to your need. But some properties usually you set them at design time, such as:
BackStyle
BorderStyle
Caption
Enabled
FillColor
FillStyle
Name
Visible

How to set the value of property at design time, you can follow below steps:
  • At the Form Designer window, select the form or control which you want to set the property by clicking it.
    Visual Basic will activate the form or control, and displays the property for the object.
  • In the Propertis window, select the property you want to set.
  • Type or select the property setting value you want.
    Some property values can be selected from the list, but others must be typed.


  • 0 comments:

    Post a Comment