Circular Controll
-
Hi All I Want To Create A Circular Control (In Visual Basic 6) Please Guide Me Tanks. Mogtabam
don't know if it exists in vb6 but in .net this can be done with the region property see if vb6 has one to
-
don't know if it exists in vb6 but in .net this can be done with the region property see if vb6 has one to
-
this is how to do it in vb.Net
Dim arrRegion As ArrayList 'fill the arraylist with points If Not arrRegion.Count = 0 Then Dim pntRegion(arrRegion.Count) As Point pntRegion = arrRegion.ToArray(GetType(Point)) Dim c As New System.Drawing.Drawing2D.GraphicsPath c.ClearMarkers() c.AddCurve(pntRegion) 'you can add other shapes If Not c Is Nothing Then Me.Region = New Region(c) 'here the control is redrawn with you'r points End If End If
hope this helps -
this is how to do it in vb.Net
Dim arrRegion As ArrayList 'fill the arraylist with points If Not arrRegion.Count = 0 Then Dim pntRegion(arrRegion.Count) As Point pntRegion = arrRegion.ToArray(GetType(Point)) Dim c As New System.Drawing.Drawing2D.GraphicsPath c.ClearMarkers() c.AddCurve(pntRegion) 'you can add other shapes If Not c Is Nothing Then Me.Region = New Region(c) 'here the control is redrawn with you'r points End If End If
hope this helps -
always glad to help