Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27459

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 27459

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>