Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am displaying an .png file into image using gdi+.... its working fine but i need to place that picture in mid of the imagebox so pls some one tell me how to do this now???
Posted

1 solution

See the solution from "Merri" to this post[^] on VBForums

In case the link disappears here is the gist of it :
Image1.Move (Picture1.ScaleWidth - Image1.Picture.Width) \ 2, (Picture1.ScaleHeight - Image1.Picture.Height) \ 2, Image1.Picture.Width, Image1.Picture.Height
 
Share this answer
 
Comments
Sandeep Puvvadi 4-Jun-15 5:31am    
thanks for the assistance.... but here my image size is bigger them the picturebox so im getting half image displayed so can you pls let me know how to minimize and maximize the image before loading into picturebox
CHill60 4-Jun-15 5:50am    
Sorry I can't check this as I no longer have VB6, but there are some ideas on bytes.com post[^]
Sandeep Puvvadi 4-Jun-15 6:23am    
thnx bro:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900