Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommandButton bitmap

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
hi,
until now I had it like this:

cmdDo.Picture = PictureBox1.Image

if style-property is set to 1 it will put a bitmap on the CommandButton. works fine!

Now the commandbutton is created at runtime (using Form.Controls.Add) and the above statement won't show the
bitmap 'cause style-property can't be set.

Some idea what to do ?
 
Instead of using Form.Controls.Add you could create a control array with the style set appropriately and then you could do

Code:
Load Command1(1)
Load Command2(2)

and so on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top