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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form_activate function generates error

Status
Not open for further replies.

sjakiePP

Programmer
Apr 6, 2004
104
NL
Hi all,

In my vb6 program I have a number of forms with a Form_Activate function in them. The form has a toolbar and an imageList.

I use the Form_Activate function so that the images are shown on the toolbar. Unfortunatly with one it doesn't work. I get "Sub or Function not Defined" error.

What am I doing wrong? Should I declare something? This is not the case with the other forms.

thanks in advance
Sjakie

---------------------------------------------
Yes, the world is full of strange people.
 
already found it. sorry to bother you

---------------------------------------------
Yes, the world is full of strange people.
 
The problem was something else and I can't solve it. I have created a toolbar with an imagelist. But the images on the buttons are not showing. I can't even click on a button. Can any one help?

Here's the code:
Code:
SetToolbar myTB, tb_Save + tb_Delete + tb_Skip + _
                 tb_Find + tb_Print + tb_Switch, False
SetToolTips myTB

Dim B As Button
Set B = myTB.Buttons("butSwitch")
B.Value = tbrPressed
myTB_ButtonClick B 'catching

Thanks in advance

---------------------------------------------
Yes, the world is full of strange people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top