Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default when setting Imagelist for ImageCombot, Excel crash

Step to reproduce :
- launch excel (2003 in my case)
- insert an imageList (MSComctlLib.ImageListCtrl.2)
- add 1 picture in it : properties-Custom-Images-Insert Pictures
with index : 1 and key : "aa"
- insert an imageCombot (MSComctlLib.ImageComboCtl.2)
- insert a button
- add the following code to the button :
Private Sub CommandButton1_Click()
Sheet1.ImageCombo1.ImageList = Sheet1.ImageList1
Sheet1.ImageCombo1.ComboItems.Add 1, "aa", "captionaa", "aa"
Sheet1.ImageCombo1.ComboItems.Add 2, "bb", "captionbb", "bb"
End Sub

save your work
-- if you close sheet all is ok
-- if you push button (= if you execute the vba code) and you close sheet
excel crashes

- execute code by pusshing the

I have found this very similar support but it doens't speak about crash :
http://support.microsoft.com/?kbid=194910

What I have done wrong ?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default when setting Imagelist for ImageCombot, Excel crash


The only way I have over come this is to set your combobox @ design tim
and not run time.

Also once set, images etc , don't go back and try altering images etc
I have experienced crashes on close down when doing this

--
Ivan F Moal

-----------------------------------------------------------------------
Ivan F Moala's Profile: http://www.excelforum.com/member.php...nfo&userid=195
View this thread: http://www.excelforum.com/showthread.php?threadid=38393

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel crash HELP! Eric Excel Programming 0 November 5th 04 03:34 PM
ImageList must be initialized What-a-Tool Excel Programming 6 October 27th 04 12:39 AM
Treeview/imagelist problem ravi_cpt Excel Programming 0 July 9th 04 07:40 AM
How to use Treeview control with Imagelist kvenku[_2_] Excel Programming 0 April 7th 04 01:52 PM
Crash in excel.exe Burak[_2_] Excel Programming 0 November 5th 03 10:55 AM


All times are GMT +1. The time now is 02:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"