G
Guest
hi, i was wondering how i could create my own buttons, like with unique
shapes and such. i kno theres a way but i dont kno how...
shapes and such. i kno theres a way but i dont kno how...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
else, it wont draw it, the program runs but nothings there
iwdu15 said:sure, heres the code that relates to it:
Class mybutton
Inherits Button
Public Sub New()
Dim intDiameter As Integer = 55
Me.Height = intDiameter
Me.Width = intDiameter
Dim p As New Drawing2D.GraphicsPath
p.AddEllipse(100, 100, intDiameter, intDiameter)
Me.Region = New Region(p)
Me.BackColor = Color.Red
End Sub
End Class
Dim WithEvents butt As New mybutton 'ive tired using "Public" also, but i
prefer using dim
Me.Controls.Add(butt)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.