why isn't this working? 
Author Message
 why isn't this working?

I tried this to load an image and there is no error, but it doesn't show
picture.

Private Sub Image1_Click()
Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")
End Sub

Any help would be much appreciated.

   -**** Posted from remarQ, Discussions Start Here(tm) ****-
http://www.*-*-*.com/ 's Discussions & Usenet



Mon, 17 Sep 2001 03:00:00 GMT  
 why isn't this working?
Tim,

Don't know.  I tried it and it works fine.  (different path tho)
Without a border, it might be difficult to find the image box.
Perhaps a command button to display the image rather than clicking on
the image box itself????

John

Quote:

> I tried this to load an image and there is no error, but it doesn't show
> picture.

> Private Sub Image1_Click()

> Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")

> End Sub

> Any help would be much appreciated.

>    -**** Posted from remarQ, Discussions Start Here(tm) ****-
> http://www.remarq.com/ - Host to the the World's Discussions & Usenet



Mon, 17 Sep 2001 03:00:00 GMT  
 why isn't this working?
One of the following is the cause of the problem.

1. Do you have the enabled and visible properties set to true? The click
event will never fire if either one is false.

2. Is there another object in front of the image control? The foremost
object receives the click.

3. Did you rename the image control? If yes then you have to change the name
for the click event manually and all previous references.

Quote:

>I tried this to load an image and there is no error, but it doesn't show
>picture.

>Private Sub Image1_Click()
>Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")
>End Sub

>Any help would be much appreciated.

>   -**** Posted from remarQ, Discussions Start Here(tm) ****-
>http://www.remarq.com/ - Host to the the World's Discussions & Usenet



Mon, 17 Sep 2001 03:00:00 GMT  
 why isn't this working?
If it doesn't show an error then try a Refresh.
Quote:

>I tried this to load an image and there is no error, but it doesn't show
>picture.

>Private Sub Image1_Click()
>Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")
>End Sub

>Any help would be much appreciated.

>   -**** Posted from remarQ, Discussions Start Here(tm) ****-
>http://www.remarq.com/ - Host to the the World's Discussions & Usenet



Mon, 17 Sep 2001 03:00:00 GMT  
 why isn't this working?
Try this:

Set Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")

--
John Tabor

http://members.bellatlantic.net/~jftabor
___________

Quote:

>I tried this to load an image and there is no error, but it doesn't show
>picture.

>Private Sub Image1_Click()
>Image1.Picture = LoadPicture("C:\WINNT\Images\Image2.bmp")
>End Sub



Mon, 17 Sep 2001 03:00:00 GMT  
 why isn't this working?
Forgot this one

4. Did you change the index property?
If index is not blank then Image1 is now Image1(x), see #3.



Tue, 18 Sep 2001 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Why isn't this working??

2. Why isn't this working?

3. Why isn't this working

4. Why isn't this working?

5. Why isn't this working?

6. why isn't this working

7. Why isn't his working correctly...?

8. Why isn't this working!! Help!!!

9. Why isn't this working? - mailing with outlook

10. SHELL command within VB5. WHY ISN'T IT WORKING

11. Why isn't my code working?

12. Why isn't my filter working in the Common Dialog ShowOpen Function

 

 
Powered by phpBB® Forum Software