Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

ToolBar and ImageList in Visual Basic


  • Please log in to reply

#1
complete

complete

    Member

  • Member
  • PipPip
  • 15 posts
I am new to Visual Basic. So the differences between C++ and VB are striking to me. But even this seems like too much. Here is what I am talking about:

I got a project out of source safe and I started working with it.
The Graphics associated to an image list had been compiled into the project but the actual graphic files were missing.
So they appeared in the project at first but then the buttons associated with the image list went blank.
I thought all I had to do was to get the graphic image files and then reassign the image list and the toolbar. But NOOOOO. According to the book I have, once the image is set, you cannot change it and you will have to build the entire thing from scratch.

Is this right? :tazz:

------------------------------

OK, so I went ahead and wrote down all the key names and other data associated with the image list and the button bar and I went ahaead and deleted them. I have made a back-up copy of the project in case I want to go return to the version before I did this.

But now, after inserting each bitmap into the ImageList, I right-clicked on the new Toolbar and choose Properties and assigned it the ImageList.

Now, aren't the images supposed to pop into the toolbar?

What am I doing wrong? :)
  • 0

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts

According to the book I have, once the image is set, you cannot change it and you will have to build the entire thing from scratch.


the thing? what thing?

anyway, u cant just assign the imagelist to the toolbar... u have to initialize the toolbar with the image that is associated associated. I don't know the correct code but I think it would be something like this...well this is the wrong code but hopefully it will give u an idea. Im sorry because I dont have access to VB right now sorry

toolbar.image = ImageList.image(1).image

try looking ImageList and toolbar functions in google and or w8 for someone that has VB access and that is familiar with Imagelist. I am familar but not with toolbars

hopefully that solves ur issue 'cuz i really didn't understand ur post. If u would like to repost with what exactly ur doing and some pieces of code u are using that would clarify things up

Edited by stu_design, 26 January 2006 - 08:33 AM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP