Add a Gradient to the form!
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
7 posts
Page 1 of 1
Ok this is gonna be the tutorial! wahooo; wahooo;
Go to FORM1_PAINT
ADD THIS CODE ! :
Dim Rect As New Drawing.Rectangle(0, 0, Width, Height)
Dim Gradi As New Drawing2D.LinearGradientBrush(Rect, Color.Black, Color.White, 50, True)
e.Graphics.FillRectangle(Gradi, 0, 0, Width, Height)
THE BOLD :
Those are the colors for gradient,you can change them and your DONE!!
Also works for Panel_Paint ( I THINK)
EDIT: YES IT DOES! wahooo;
PLEASE +REP!!
Go to FORM1_PAINT
ADD THIS CODE ! :
Dim Rect As New Drawing.Rectangle(0, 0, Width, Height)
Dim Gradi As New Drawing2D.LinearGradientBrush(Rect, Color.Black, Color.White, 50, True)
e.Graphics.FillRectangle(Gradi, 0, 0, Width, Height)
THE BOLD :
Those are the colors for gradient,you can change them and your DONE!!
Also works for Panel_Paint ( I THINK)
EDIT: YES IT DOES! wahooo;
PLEASE +REP!!
Last edited by code it on Sat Mar 26, 2011 2:48 pm, edited 4 times in total.
Bold does not work in the
Code: Select all
tags.
I seem to think you should've made a GDI tutorial, and put this as one of the codes inside. Would've made it more... valid.
Code: Select all
are there for a reason! Use them! btw nice tut.Tags
tsuyoka wrote:I know but then the bold wont show :|Code: Select allare there for a reason! Use them! btw nice tut.Tags
You can probably do this:
Code: Select all
[/code][code]Dim Rect As New Drawing.Rectangle(0, 0, Width, Height)
Dim Gradi As New Drawing2D.LinearGradientBrush(Rect, [First Color], [Second Color], 50, True)
e.Graphics.FillRectangle(Gradi, 0, 0, Width, Height)
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023