Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Attach to correct object. Pin
Dave Kreskowiak13-Jun-07 2:48
mveDave Kreskowiak13-Jun-07 2:48 
GeneralRe: Attach to correct object. Pin
V.13-Jun-07 3:21
professionalV.13-Jun-07 3:21 
QuestionFunction doesn't make sense [SOLVED][modified] Pin
Richard Jones12-Jun-07 3:05
Richard Jones12-Jun-07 3:05 
AnswerRe: Function doesn't make sense Pin
Thomas Stockwell12-Jun-07 3:24
professionalThomas Stockwell12-Jun-07 3:24 
GeneralRe: Function doesn't make sense Pin
Richard Jones12-Jun-07 3:47
Richard Jones12-Jun-07 3:47 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak12-Jun-07 12:50
mveDave Kreskowiak12-Jun-07 12:50 
GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 1:38
Richard Jones13-Jun-07 1:38 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak13-Jun-07 3:09
mveDave Kreskowiak13-Jun-07 3:09 
Richard Jones wrote:
Only if the A value is low enough to NOT CAUSE AN OVERFLOW.


Strange, it works perfectly fine for me:
For A As Integer = 0 To 255
    Dim mycolor As Color = Color.FromArgb(A, 255, 255, 255)
    Dim x As Integer = mycolor.ToArgb()
    Console.WriteLine(x)
Next

Now, if you do any math on the very large values returned by ToArbg, such as adding a value to it, that can cause an overflow. The ToArbg method itself cannot cause an overflow.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 3:35
Richard Jones13-Jun-07 3:35 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak13-Jun-07 7:02
mveDave Kreskowiak13-Jun-07 7:02 
GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 7:36
Richard Jones13-Jun-07 7:36 
GeneralRe: Function doesn't make sense Pin
Steven J Jowett12-Jun-07 3:56
Steven J Jowett12-Jun-07 3:56 
QuestionCan't DeSerialize, but can Serialize with unknown object type :( Pin
twista12-Jun-07 3:00
twista12-Jun-07 3:00 
Questionwindows schedular is not working Pin
srinivassam12-Jun-07 2:19
srinivassam12-Jun-07 2:19 
AnswerFOUR instances of a question you asked on June 4th Pin
leckey12-Jun-07 4:03
leckey12-Jun-07 4:03 
GeneralRe: FOUR instances of a question you asked on June 4th Pin
Colin Angus Mackay12-Jun-07 4:08
Colin Angus Mackay12-Jun-07 4:08 
GeneralRe: FOUR instances of a question you asked on June 4th Pin
leckey12-Jun-07 4:23
leckey12-Jun-07 4:23 
Questionwindows based schedular not working Pin
srinivassam12-Jun-07 2:15
srinivassam12-Jun-07 2:15 
Questionwindows based schedular not working Pin
srinivassam12-Jun-07 2:15
srinivassam12-Jun-07 2:15 
AnswerRe: windows based schedular not working Pin
Tarakeshwar Reddy12-Jun-07 2:54
professionalTarakeshwar Reddy12-Jun-07 2:54 
QuestionPath Pin
Brendan Vogt12-Jun-07 1:18
Brendan Vogt12-Jun-07 1:18 
AnswerRe: Path Pin
PandemoniumPasha12-Jun-07 1:42
PandemoniumPasha12-Jun-07 1:42 
QuestionRe: Path Pin
Brendan Vogt12-Jun-07 1:58
Brendan Vogt12-Jun-07 1:58 
AnswerRe: Path Pin
Steven J Jowett12-Jun-07 2:01
Steven J Jowett12-Jun-07 2:01 
QuestionCombobox data connetivity [modified] Pin
Aman.Jen12-Jun-07 0:35
Aman.Jen12-Jun-07 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.