Picture Box resizing
Picture Box resizing
Picture Box resizing
Picture Box resizing
Picture Box resizing
Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing
Picture Box resizing Picture Box resizing
Picture Box resizing
Go Back  Xtreme Visual Basic Talk > > > Picture Box resizing


Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2010, 06:05 AM
tonymaclennan tonymaclennan is offline
Contributor
 
Join Date: Sep 2004
Location: Lincolnshire
Posts: 402
Default Picture Box resizing


Hi,

I have looked everywhere for details on how to resize and change picture URL from button click in asp.net vb.

Most say to change URL for example i need mypictureboxcontrol.image=...
But .image isn't an option.
There is .imageurl .height . width but I cannot figure out for the life of me how to se them.

Any ideas?
Reply With Quote
  #2  
Old 08-01-2010, 06:59 AM
Qua's Avatar
QuaPicture Box resizing Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

What are you having issues with? You want to set the width to 50 do img.Width = 50, and likewise with the other properties.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 08-01-2010, 07:19 AM
tonymaclennan tonymaclennan is offline
Contributor
 
Join Date: Sep 2004
Location: Lincolnshire
Posts: 402
Default

Quote:
Originally Posted by Qua View Post
What are you having issues with? You want to set the width to 50 do img.Width = 50, and likewise with the other properties.

I type in

imgImage.Width = 3 for example and it wont accept it for the followign reason:

"Vslue of type 'Integer' cannot be converted to 'System.Web.Ui.Webcontrols.Unit'"
Reply With Quote
  #4  
Old 08-01-2010, 07:28 AM
tonymaclennan tonymaclennan is offline
Contributor
 
Join Date: Sep 2004
Location: Lincolnshire
Posts: 402
Default

Just solved it

imgImage.Width = imgImage.WIdth.Pixel(VALUE)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Picture Box resizing
Picture Box resizing
Picture Box resizing Picture Box resizing
Picture Box resizing
Picture Box resizing
Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing Picture Box resizing
Picture Box resizing
Picture Box resizing
 
Picture Box resizing
Picture Box resizing
 
-->