This is possible using default .NET, so no other components are needed.
Check out following code:
Private Sub GDIPlus_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim myGraphicsPath As New Drawing.Drawing2D.GraphicsPath()
myGraphicsPath.AddString("Hello!", New Drawing.FontFamily("Trebuchet
MS"), _
Drawing.FontStyle.Bold, 100, New Drawing.PointF(10, 50),
Drawing.StringFormat.GenericDefault)
myGraphicsPath.AddRectangle(New Drawing.Rectangle(0, 0, 1000, 30))
Me.Region = New Drawing.[Region](myGraphicsPath)
End Sub
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
Dim myGraphicsPath As New Drawing.Drawing2D.GraphicsPath()
Dim rect As Rectangle = New Rectangle(10, 30, 600, 100)
Dim linGrBrush As System.Drawing.Drawing2D.LinearGradientBrush = New
System.Drawing.Drawing2D.LinearGradientBrush( _
rect, Color.Red, Color.Blue,
System.Drawing.Drawing2D.LinearGradientMode.Horizo ntal)
e.Graphics.FillRectangle(linGrBrush, rect)
End Sub
Source:
http://www.dotnet247.com/247referenc...22/113187.aspx
--
Greetz
Jan Tielens
________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Poppy" <pa**********@NOSPAMthemedialounge.com> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
A client of mine has asked if I could create customr forms for him. He
does not want them to be the typical rectangular shape.
Has anyone come across any tools or methods which can achieve this?
I have come across one control which claims to do this but at a hell of a
price !
TIA