Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Set Specific Parameter

$
0
0
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

Code:

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
CustomButton1.Initialize(Width, Height, ButtonText)
End Sub

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:

Code:

MsgBox("MessageBoxText", MsgBoxStyle.Critical)
How would I go about doing this?

Viewing all articles
Browse latest Browse all 42220

Trending Articles