Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-08-2007, 03:34 PM   #1 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default VB 2005 query


I am facing two problems in VB 2005

1.)I want to change color of the form when I use the horizontal scrollbar. the code i use is

Code:
Me.backcolor=RGB(Hscrollbar1.value,Hscrollbar2.Value,Hscrollbar3.Value)
this doesnt work, though it works in VB 6.0

2.)I want to load a picture in a picture box when i click on a button. The code for the command button is:-

Code:
Picturebox1.Picture=LoadPicture("path")
This doesnt work either.
pls help
thnx
saurabh.sauron is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-08-2007, 03:53 PM   #2 (permalink)
Broken In
 
Join Date: Dec 2005
Location: goa
Posts: 161
Default Re: VB 2005 query

HI

Solution..

For 1st one use this Me.BackColor = Color.FromArgb(Hscrollbar1.value,Hscrollbar2.Value ,Hscrollbar3.Value)

for 2nd one, use
PictureBox1.Image=image.FromFile("path")
__________________
Keep :smile:ing
rajesh_nk22 is offline  
Old 02-08-2007, 05:01 PM   #3 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default Re: VB 2005 query

thnx a lot...it worked.

to make a correction,
Me.BackColor = Drawing.Color.FromArgb(HScrollBar1.Value, HScrollBar2.Value, HScrollBar3.Value)
saurabh.sauron is offline  
Old 02-08-2007, 07:12 PM   #4 (permalink)
Broken In
 
Join Date: Dec 2005
Location: goa
Posts: 161
Default Re: VB 2005 query

Drawing.Color

By default "Drawing" is not required there becoz drawing namespace is imported in VB 2005 by default,
__________________
Keep :smile:ing
rajesh_nk22 is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free MS SQL 2005 and Visual Studio 2005 from M$ rakeshishere Technology News 2 24-09-2006 03:24 PM
It is possible to patch EA Cricket 2005 and BLIC 2005. gaurav_indian Gamerz 8 17-05-2006 07:15 PM
EA Sports Cricket 2005 vs BLIC 2005 bharat_r Gamerz 20 16-09-2005 07:39 PM

 
Latest Threads
- by ico
- by Piyush
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2