Marook-Online
* 06.Feb.2012, 15:14 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
10-Dec-2007 04:03
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


If you want to draw a nice looking gradient on the form, you can use this...

Code
GeSHi (vbnet):
  1.    Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
  2.        'Leave a small border of 5px around the gradient
  3.        'Dim rect As New Rectangle(5, 5, Me.ClientRectangle.Width - 10, Me.ClientRectangle.Height - 10)
  4.  
  5.        'If you want to fill the whole window use this line instead
  6.        Dim rect As New Rectangle(0, 0, Me.ClientRectangle.Width, Me.ClientRectangle.Height)
  7.        ' If you want a single line border uncomment this
  8.        'Dim DrawingPen As New Pen(Color.Blue, 2)
  9.        'e.Graphics.DrawRectangle(DrawingPen, Rectangle)
  10.  
  11.        ' Do the gradient
  12.        Dim DrawingBrush As New System.Drawing.Drawing2D.LinearGradientBrush( _
  13.          rect, Color.LightGray, Color.Gray, Drawing2D.LinearGradientMode.ForwardDiagonal)
  14.        e.Graphics.FillRectangle(DrawingBrush, rect)
  15.  
  16.    End Sub
  17.  
  18.    Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
  19.        'Telling windows to repaint the window
  20.        Me.Invalidate()
  21.    End Sub
Created by GeSHI 1.0.7.20

Copy & Paste this code into your form and hit F5 Wink
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!