Friday, May 20, 2016

Gradient Form In VB.Net


Crting an appliion that is very interesting to look at and comfortable in use of course all the expectations of everyone who uses the appliion. All of the above expectations, is certainly a challenge for a programmer (Appliion Developers). On this occasion, I will introduce a syntax of programming for at lst the look of a form with a Gradient in VB.Net.
Here are the steps:
- Prepare a blank form. As in the picture:


- Double click on the Form, so it appr like this:


- On the Declarations ComboBox change into Paint. Are like the picture:


Fill in as follows:

Dim ObjekWarna As New Drawing2D.LinrGradientBrush(Me.DisplayRectangle, Color.Red, Color.Blue, Drawing2D.LinrGradientMode.Vertical)
Dim ObjekGrapik As Graphics = Me.CrteGraphics()
ObjekGrapik.FillRectangle(ObjekWarna, Me.DisplayRectangle)
ObjekWarna.Dispose()
ObjekGrapik.Dispose()
Description:
- The is underlined, is the color of the Gradient Form. You can change it as you wish.- In a bold , is a form and type of gradient. You can change it are like in the picture :

word : Cara mempercantik Form, Form Berwarna, Form Gradient, Form Dua Warna, Gradient Form in VB.Net 2010,How to butify Form, Form Color, Gradient Form, Form Two Color

No comments:

Post a Comment