Many people face a problem when it comes to drawing the controls with rounded corners. So I got down and dirty with some simple drawing and came up with this. All you have to do is to call this Sub Procedure with the parameters passed to it and you are done. Enjoy! 1: Public Sub DrawRoundedRectangle( ByVal objGraphics As Graphics, _ 2: ByVal m_intxAxis As Integer , _ 3: ByVal m_intyAxis As Integer , _ 4: ByVal m_intWidth As Integer , _ 5: ByVal m_intHeight As Integer , _ 6: ByVal m_diameter As Integer , _ 7: ByVal g As Graphics) 8: 9: 10: Dim path As New GraphicsPath() 11: 'Dim g As Graphics 12: Dim BaseRect As New RectangleF(m_intxAxis, m_intyAxis, m_intWidth, 13:
Confessions of n00bs