I have a class that inherits the UserControl class, the class creates its own graphics such as a title bar and what not. Is it possible to show this class as a form/it's own window?
then be able to show this object as a window:
VB.NET:
Public Class CustomForm
Inherits System.Windows.Forms.UserControl
'create new instance, assign/declare vars here, blah blah
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
'graphics drawn here
End Sub
End Class
then be able to show this object as a window:
VB.NET:
Dim form as new CustomForm
form.show()