The Straight Dope

Go Back   Straight Dope Message Board > Main > General Questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-05-2000, 05:41 PM
DougC DougC is offline
Guest
 
Join Date: Mar 1999
- - - Visual Basic 6.0: I want to draw lines in a picture box using the [line] method, but I want the lines to be in different colors. The help files give two ways:
1. - using the RGB (n,n,n) method at the end of the [line] statement, or,
2. - setting the pictureboxname.foreground value to one of the hex numbers in the default palette, before the [line] statement you wish it to affect.
- My problem is, neither works. All I get is black lines; I can't get any other color. I notice that if you try to use a hex number not in the existing (default) palette, when you try to move the cursor off that line the computer immediately returns an error. Am I doing this right? - MC
Reply With Quote
 

Bookmarks

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


All times are GMT -5. The time now is 03:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Send questions for Cecil Adams to: cecil@chicagoreader.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright © 2013 Sun-Times Media, LLC.