Click here to Skip to main content
16,007,885 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionimage passing via 3 form cause infinite loop.. Pin
campbells23-Feb-06 3:41
campbells23-Feb-06 3:41 
Questionupdateing datagrid Pin
microuser_200023-Feb-06 2:47
microuser_200023-Feb-06 2:47 
QuestionHow do I get a splash screen to transist from one color to another? Pin
Tyrone_whitey23-Feb-06 2:41
Tyrone_whitey23-Feb-06 2:41 
AnswerRe: How do I get a splash screen to transist from one color to another? Pin
Joshua Quick23-Feb-06 9:01
Joshua Quick23-Feb-06 9:01 
GeneralRe: How do I get a splash screen to transist from one color to another? Pin
Tyrone_whitey24-Feb-06 3:27
Tyrone_whitey24-Feb-06 3:27 
AnswerRe: How do I get a splash screen to transist from one color to another? Pin
Joshua Quick24-Feb-06 6:34
Joshua Quick24-Feb-06 6:34 
AnswerRe: How do I get a splash screen to transist from one color to another? Pin
Joshua Quick27-Feb-06 13:02
Joshua Quick27-Feb-06 13:02 
AnswerRe: How do I get a splash screen to transist from one color to another? Pin
Tyrone_whitey28-Feb-06 11:31
Tyrone_whitey28-Feb-06 11:31 
Thank You for helping me. And a last request if you don't mind. Here is the final code to the splash screen. Just look over it and see if i got the general idea right.


Private Sub frmSplash_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim graCurrent As Graphics = e.Graphics
Dim colCurrent As Color, colCurrent1 As Color
Dim penCurrent As Pen, penCurrent1 As Pen
Dim LineLoop As Integer, LineLoop1 As Integer

'Sets the first coordiante for the green triangle.
Dim Greenx1 As Integer = 0
Dim Greenx2 As Integer = 0
Dim Greeny1 As Integer = 0
Dim Greeny2 As Integer = Me.Height

'Sets the first coordiante for the blue triangle.
Dim Bluex1 As Integer = Me.Width
Dim Bluex2 As Integer = 0
Dim Bluey1 As Integer = Me.Height
Dim Bluey2 As Integer = 0


' Sets the "step value" or how far up and over for each line created.
Dim StepX As Integer = ToInt32(Me.Width / 255)
Dim StepY As Integer = ToInt32(Me.Height / 255)


' Darwing of the Green Triangle

For LineLoop = 0 To 255

colCurrent = Color.FromArgb(0, LineLoop, 0)
penCurrent = New Pen(colCurrent, 4)

graCurrent.DrawLine(penCurrent, Greenx1, Greeny1, Greenx2, Greeny2)

Greenx1 = Greenx1 + ToInt32(StepX)
Greeny1 = Greeny1 + ToInt32(StepY)


Greenx1 += 1
Greeny1 += 1
Greeny2 += 1

Next LineLoop

' Drawing of the Blue Triangle

For LineLoop1 = 255 To 0 Step -1

colCurrent1 = Color.FromArgb(0, 0, LineLoop1)
penCurrent1 = New Pen(colCurrent1, 4)

graCurrent.DrawLine(penCurrent1, Bluex1, Bluey1, Bluex2, Bluey2)

Bluex1 = Bluex1 + ToInt32(StepX)
Bluey1 = Bluey1 + ToInt32(StepY)


Bluey1 -= 1
Bluey2 -= 1
Bluex2 += 1

Next LineLoop1

End Sub

Smile | :)

Ty
AnswerRe: How do I get a splash screen to transist from one color to another? Pin
Joshua Quick28-Feb-06 11:58
Joshua Quick28-Feb-06 11:58 
Questionfurther question on show "now loading" form before Shell() Pin
cylix200022-Feb-06 23:46
cylix200022-Feb-06 23:46 
QuestionVBIDE Interop bug? Pin
daveekid22-Feb-06 22:54
daveekid22-Feb-06 22:54 
QuestionCan menus appear only upon right clicking? Pin
KaKa'22-Feb-06 21:50
KaKa'22-Feb-06 21:50 
AnswerRe: Can menus appear only upon right clicking? Pin
merlynml22-Feb-06 22:40
merlynml22-Feb-06 22:40 
Question[Resolved] Dataview .RowFilter = "PartNo = '123' AND Ave(Cost)" gives error Pin
RichardBerry22-Feb-06 21:25
RichardBerry22-Feb-06 21:25 
AnswerRe: Dataview .RowFilter = "PartNo = '123' AND Ave(Cost)" gives error Pin
Ritesh123422-Feb-06 23:02
Ritesh123422-Feb-06 23:02 
GeneralRe: Dataview .RowFilter = "PartNo = '123' AND Ave(Cost)" gives error Pin
RichardBerry22-Feb-06 23:42
RichardBerry22-Feb-06 23:42 
QuestionWhat am I missing here? Pin
Darshon22-Feb-06 20:47
Darshon22-Feb-06 20:47 
AnswerRe: What am I missing here? Pin
Christian Graus22-Feb-06 20:51
protectorChristian Graus22-Feb-06 20:51 
GeneralRe: What am I missing here? Pin
Darshon23-Feb-06 4:55
Darshon23-Feb-06 4:55 
GeneralRe: What am I missing here? Pin
Darshon23-Feb-06 6:21
Darshon23-Feb-06 6:21 
GeneralRe: What am I missing here? Pin
Christian Graus23-Feb-06 10:59
protectorChristian Graus23-Feb-06 10:59 
Questionwhat is this mean? Pin
pandapatin22-Feb-06 20:34
pandapatin22-Feb-06 20:34 
AnswerRe: what is this mean? Pin
Christian Graus22-Feb-06 20:38
protectorChristian Graus22-Feb-06 20:38 
GeneralRe: what is this mean? Pin
pandapatin22-Feb-06 20:46
pandapatin22-Feb-06 20:46 
GeneralRe: what is this mean? Pin
Christian Graus22-Feb-06 20:50
protectorChristian Graus22-Feb-06 20:50 

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.