Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFlash screen Pin
SamRST6-Oct-07 4:25
SamRST6-Oct-07 4:25 
AnswerRe: Flash screen Pin
pmarfleet6-Oct-07 5:25
pmarfleet6-Oct-07 5:25 
GeneralRe: Flash screen Pin
Paul Conrad6-Oct-07 9:29
professionalPaul Conrad6-Oct-07 9:29 
QuestionFading Form colours? Pin
Mr Oizo6-Oct-07 2:21
Mr Oizo6-Oct-07 2:21 
AnswerRe: Fading Form colours? Pin
Guffa6-Oct-07 2:50
Guffa6-Oct-07 2:50 
GeneralRe: Fading Form colours? Pin
Mr Oizo6-Oct-07 3:45
Mr Oizo6-Oct-07 3:45 
GeneralRe: Fading Form colours? Pin
Mr Oizo6-Oct-07 3:47
Mr Oizo6-Oct-07 3:47 
GeneralRe: Fading Form colours? Pin
Mr Oizo6-Oct-07 6:33
Mr Oizo6-Oct-07 6:33 
I managed to sort out what i needed using the following code. Unfortunately if i use it on a button in the paint event it clears the text off the button and the button isn't raised off the form like normal.... Any ideas on how i can fix that?


Dim rec As Rectangle = New Rectangle(0, 0, Me.Width, Me.Height) 'create a new recatangle<br />
<br />
        'Create a new brush. Make is a Gradient style brush.<br />
<br />
        Dim myBrush As Brush = New Drawing.Drawing2D.LinearGradientBrush(rec, Color.Silver, Color.SteelBlue, Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal)<br />
<br />
        'draw the gradient onto the form.<br />
<br />
        e.Graphics.FillRectangle(myBrush, rec)


Mr Oizo
GeneralRe: Fading Form colours? Pin
Patrick Etc.7-Oct-07 1:26
Patrick Etc.7-Oct-07 1:26 
GeneralRe: Fading Form colours? Pin
Mr Oizo7-Oct-07 2:05
Mr Oizo7-Oct-07 2:05 
QuestionVisual Basic Setup Creation Pin
nhss6-Oct-07 1:51
nhss6-Oct-07 1:51 
AnswerRe: Visual Basic Setup Creation Pin
GuyThiebaut6-Oct-07 3:38
professionalGuyThiebaut6-Oct-07 3:38 
Questionvb.net Pin
karthidheena6-Oct-07 0:43
karthidheena6-Oct-07 0:43 
AnswerRe: vb.net Pin
Abhijit Jana6-Oct-07 1:50
professionalAbhijit Jana6-Oct-07 1:50 
AnswerRe: vb.net Pin
Christian Graus6-Oct-07 2:07
protectorChristian Graus6-Oct-07 2:07 
GeneralRe: vb.net Pin
Abhijit Jana6-Oct-07 2:36
professionalAbhijit Jana6-Oct-07 2:36 
QuestionBar charts Pin
Cedrickdeorange6-Oct-07 0:10
Cedrickdeorange6-Oct-07 0:10 
AnswerRe: Bar charts Pin
Christian Graus6-Oct-07 0:34
protectorChristian Graus6-Oct-07 0:34 
AnswerRe: Bar charts Pin
Patrick Etc.7-Oct-07 1:42
Patrick Etc.7-Oct-07 1:42 
QuestionHow to restart a thread with new parameters Pin
Amer Rehman5-Oct-07 23:31
Amer Rehman5-Oct-07 23:31 
AnswerRe: How to restart a thread with new parameters Pin
Johan Hakkesteegt8-Oct-07 0:16
Johan Hakkesteegt8-Oct-07 0:16 
Questionbackup Pin
VAHINI025-Oct-07 19:51
VAHINI025-Oct-07 19:51 
AnswerRe: backup Pin
Christian Graus5-Oct-07 20:38
protectorChristian Graus5-Oct-07 20:38 
AnswerRe: backup Pin
GuyThiebaut6-Oct-07 0:40
professionalGuyThiebaut6-Oct-07 0:40 
AnswerRe: backup Pin
Abhijit Jana6-Oct-07 1:48
professionalAbhijit Jana6-Oct-07 1:48 

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.