Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
LoadPicture fails
Hi,
I have an image control on a Form and load the pictures with the command: Form1.img1.Picture = LoadPicture(MyPicture) A click on the form correctly assigns the next picture filename (and Path) to MyPicture and you see each picture in succession. However, if the image is clicked on, the next picture(s) isn't shown. The code still executes, with all the correct parameters for MyPicture but the LoadPicture instruction just seems to be ignored. I can step through and see this, and it occurs every time. There's no click event (or anything else) coded for the img1 control. Anyone know what's happening here? !! Thanks - Kirk |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
LoadPicture fails
after loading the picture do
Me.Repaint Regards, Peter T <kirkm wrote in message ... Hi, I have an image control on a Form and load the pictures with the command: Form1.img1.Picture = LoadPicture(MyPicture) A click on the form correctly assigns the next picture filename (and Path) to MyPicture and you see each picture in succession. However, if the image is clicked on, the next picture(s) isn't shown. The code still executes, with all the correct parameters for MyPicture but the LoadPicture instruction just seems to be ignored. I can step through and see this, and it occurs every time. There's no click event (or anything else) coded for the img1 control. Anyone know what's happening here? !! Thanks - Kirk |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
LoadPicture fails
On Thu, 16 Apr 2009 12:45:07 +0100, "Peter T" <peter_t@discussions
wrote: after loading the picture do Me.Repaint Regards, Peter T Thanks for the suggestion, Peter. I ttried that and also a 'full path' frmOne.img1.Picture.Repaint .... but neither make any difference. It does seem odd. I'm going to make a new workbook with just that routine by itself. Maybe you could run that and see what you get? Perhaps I'm making a mistake somehow that's causing the glitch. Cheers - Kirk |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
LoadPicture fails
On Thu, 16 Apr 2009 12:45:07 +0100, "Peter T" <peter_t@discussions
wrote: after loading the picture do Me.Repaint Regards, Peter T Peter, you're quite right - thank you. Originally I could get this to work but it does now! Cheers - Kirk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
LoadPicture(FileName) with size? | Excel Programming | |||
LoadPicture compile error | Excel Programming | |||
LoadPicture for a ControlButton help | Excel Programming | |||
conditional compile for LoadPicture? | Excel Programming | |||
LoadPicture - how to keep .jpg compression | Excel Programming |