Wrox Programmer Forums
|
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2009, 12:36 PM
Authorized User
 
Join Date: Sep 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default How to use Images

Hii
I am a newbie...
i want to load image on clicking a Label...in VB.net

say there is Label1...and user clicks to that...an image must be loaded as its background image..please tell in detail..like from declaring image variable... Assigning it an actual image...then loading it as background image of label (on Click)


if any material regarding how to use images in VB.net please give me...

Thanks in Advance
Regards
Sweety
 
Old June 22nd, 2009, 01:17 PM
Authorized User
 
Join Date: Sep 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

No Problem...No body answered the question...

I figured it out
Code:
Dim cross = Image.FromFile("d:\cross.bmp")
Label1.Image = cross

But i am facing a new problem...
i am displaying the image on that label....
then i am disabling it from further use....
as i have used on_Click event over that lable....
but the image is becoming grayish as i have disabled the label...
i want that...like image shouldnt become grayish but Label should be disabled....at least for on_click event....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Images OldCoder ASP.NET 2.0 Professional 0 November 11th, 2007 09:17 PM
IMAGES chmosiii CSS Cascading Style Sheets 6 November 8th, 2005 10:09 AM
Images TomAsp Access ASP 2 September 11th, 2004 07:34 AM
Images rajanikrishna HTML Code Clinic 1 May 5th, 2004 10:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.