VB.CommandButton.Style 
Author Message
 VB.CommandButton.Style

Hi all,
Using VB6.  I want to add CommandButtons to a form at run time.  By default,
the Style property of the CommandButton is vbButtonStandard.  I need it set
to vbButtonGraphical so I can show a graphic on the CommandButtons.
However, the Style property is read only by default at run time.  Any ideas
on how to do this.
Thanks in advance,
Ken Hutson
San Antonio, TX


Fri, 16 Dec 2005 19:48:04 GMT  
 VB.CommandButton.Style

Quote:
> Hi all,
> Using VB6.  I want to add CommandButtons to a form at run time.  By
> default, the Style property of the CommandButton is vbButtonStandard.
> I need it set to vbButtonGraphical so I can show a graphic on the
> CommandButtons. However, the Style property is read only by default
> at run time.  Any ideas on how to do this.

add one at design time and set the style as desired and the index property
to 0 (or any appropriate value); then use the Load and Unload statements to
handle the new instances.


Fri, 16 Dec 2005 21:25:30 GMT  
 VB.CommandButton.Style
Thanks Bob!
Ken Hutson
San ANtonio, TX

Quote:
>-----Original Message-----


>> Hi all,
>> Using VB6.  I want to add CommandButtons to a form at
run time.  By
>> default, the Style property of the CommandButton is
vbButtonStandard.
>> I need it set to vbButtonGraphical so I can show a
graphic on the
>> CommandButtons. However, the Style property is read
only by default
>> at run time.  Any ideas on how to do this.

>add one at design time and set the style as desired and
the index property
>to 0 (or any appropriate value); then use the Load and

Unload statements to

- Show quoted text -

Quote:
>handle the new instances.

>.



Sat, 17 Dec 2005 00:56:48 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CommandButton With Graphical Style

2. Opinions wanted: VB-style or dotnet-style?

3. No ForeColor property for CommandButton control in VB?

4. About VB CommandButton

5. scanning for existence of a style and saying what the style is

6. Customising behaviour of styles in Styles combobox

7. Working with Styles - Finding occurences of specific Styles

8. Browse a document style after style.

9. Replacing all paragraph marks in a certain style EXCEPT the last one in this style

10. Microsoft style icons & Excel style tabs

11. Flat Style text box (with encata style scroll bars)

12. Reading Auto-Numbered Word Paragraph Styles in VB

 

 
Powered by phpBB® Forum Software