|
Gradient Backdrop in Visual Basic
|
|
11-19-2009, 04:51 AM
(This post was last modified: 10-12-2010 05:38 AM by drdebcol.)
Post: #1
|
|||
|
|||
|
Gradient Backdrop in Visual Basic
Making gradient visibility of objects is fun. I did that in Delphi and now i will explain how to do it in Visual Basic. You have Delphi code here :
http://www.pro9ramming.com/gradient-form-t-175.html I will do this by creating private sub, you have it here : Code: Private Sub DrawFormGradient( _Code: Private Sub Form1_Paint(ByVal sender As Object, _Here is the example of using this on green and red color. First you call function like this : Code: Private Sub Form1_Paint(ByVal sender As Object, _There is one function which you can use and that is Color.FromArgb() which means Alpha,Red,Green,Blue. You have 4 in arguments : Code: Alpha (0..255) Amount of transparencyAnd you can call this function like this : Code: Dim NewColor As Color = Color.FromArgb(aplha, red, green, blue)Hope that you like this tut ! There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
11-20-2009, 06:32 AM
Post: #2
|
|||
|
|||
|
RE: Gradiend Backdrop in Visual Basic
I never knew you coded in Visual Basic .net
![]() Nice work, keep it up! |
|||
|
11-20-2009, 06:33 AM
Post: #3
|
|||
|
|||
|
RE: Gradiend Backdrop in Visual Basic
I coded a bit in macros and i worked a bit in VB 6 2 years ago, but now i decided to get some of codes that i used and to explain them !
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
12-30-2009, 07:16 AM
Post: #4
|
|||
|
|||
|
RE: Gradient Backdrop in Visual Basic
Thats hot!
|
|||
|
12-30-2009, 07:01 PM
Post: #5
|
|||
|
|||
|
RE: Gradient Backdrop in Visual Basic
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
03-12-2010, 08:51 PM
Post: #6
|
|||
|
|||
|
RE: Gradient Backdrop in Visual Basic
Nice One I like it!
|
|||
|
« Next Oldest | Next Newest »
|







![[Image: pgsig copy.png]](http://projectghostt.com/images/pgsig copy.png)