I have a DLL I made that is a custom button, and a regular form. To have the button display its properties (it will just show up as a regular button in the designer) the user must enter
However, I want to have a set parameter so the user can do: CustomButton1.Initialize(Textlocation.Top)
Such as what is done when creating a messagebox and setting the type:
How would I go about doing this?
Code:
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
CustomButton1.Initialize(Width, Height, ButtonText)
End Sub
Such as what is done when creating a messagebox and setting the type:
Code:
MsgBox("MessageBoxText", MsgBoxStyle.Critical)