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 recCurrent As Rectangle, colCurrent As Color
Dim sbCurrent As SolidBrush, penCurrent As Pen
recCurrent = New Rectangle(0, 0, Me.Width, Me.Height)
sbCurrent = New SolidBrush(Color.Blue)
graCurrent.FillRectangle(sbCurrent, recCurrent)
Dim pintXCurrent As Integer = ToInt32(Me.Width * 1.1)
Dim pintYCurrent As Integer = ToInt32(Me.Height * 1.1)
penCurrent = New Pen(Color.White, 4)
graCurrent.DrawLine(penCurrent, 0, 0, pintXCurrent, pintYCurrent)
Dim fntSplash As New Font("Arial", 14, FontStyle.Bold)
graCurrent.DrawString("Depreciation Schedule", _
fntSplash, Brushes.Purple, 5, 265)
End Sub
Splash ScreenThis splash screen is divide into two side like triangles. I am trying
Page 1 of 1
3 Replies - 1238 Views - Last Post: 19 January 2009 - 08:17 PM
#1
Splash Screen
Posted 19 January 2009 - 07:34 PM
Replies To: Splash Screen
#2
Re: Splash Screen
Posted 19 January 2009 - 07:50 PM
Please, post your question in the main message body, not the topic description. Members cannot see what you are asking.
#3
Re: Splash Screen
Posted 19 January 2009 - 08:11 PM
I want to put two different colors on this splash screen. This splash screen is divided into two sides like triangles. I can only get one color on it. How do I add two different colors on this splash screen? This is my code.
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 recCurrent As Rectangle, colCurrent As Color
Dim sbCurrent As SolidBrush, penCurrent As Pen
recCurrent = New Rectangle(0, 0, Me.Width, Me.Height)
sbCurrent = New SolidBrush(Color.Blue)
graCurrent.FillRectangle(sbCurrent, recCurrent)
Dim pintXCurrent As Integer = ToInt32(Me.Width * 1.1)
Dim pintYCurrent As Integer = ToInt32(Me.Height * 1.1)
penCurrent = New Pen(Color.White, 4)
graCurrent.DrawLine(penCurrent, 0, 0, pintXCurrent, pintYCurrent)
Dim fntSplash As New Font("Arial", 14, FontStyle.Bold)
graCurrent.DrawString("Depreciation Schedule", _
fntSplash, Brushes.Purple, 5, 265)
End Sub
#4
Re: Splash Screen
Posted 19 January 2009 - 08:17 PM
Please don't post duplicate topics.
Merged.
Merged.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|