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!

Image disapper in inherited form

Status
Not open for further replies.

Korach

Programmer
Jun 2, 2003
303
IL
Hi everyone,

I have three forms that inherits each other.
On the parent form I have an image list. I use this image list to show images on toolbar buttons. I placed such toolbar in the child form and another in the child of the child form.
If I open the forms in the designer, I see the images, but if I open the child of the child form in the program, I see the images only in the toolbar of its own, but not in the toolbar of its parent.
If I open the child form in the program, I see the images.

Summary:

Form1:
Image List (Owner)

Form2: (Inherits Form1)
Image List (Inherited)
ToolBar (Owner) - Images appear

Form3: (Inherits Form2)
Image List (Inherited)
ToolBar1 (Inherited) - Images disappear
ToolBar2 (Owner) - Images appear

I once saw that the images on ToolBar1 appear and those on ToolBar2 don't. Then I set the ImageList property on ToolBar2, and after that the images disappered from ToolBar1.

????????????????????

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top