منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : كود لجعل الصورة تتلآئم تلقائيا مع النموزج
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
كاتب الموضوع : egyption-coder

السلام عليكم
اليكم الكود
zoomauto



كود:

كود :
private sub zoomauto_click(byval sender as system.object , _
byval e as system.eventargs)handles zoomauto.click
if picturebox1.image.width>picturebox1.image.height then
picturebox1.height = me.height
picturebox1.width = picturebox1.height*-
(picturebox1.image.width/picturebox1.image.height)
else
picturebox1.height = picturebox1.width*_
(picturebox1.image.height/picturebox1.image.width)
end if
end sub