Imports System.Windows.Forms.Form Public Class formProperties Public Sub FormProperty(ByRef myForm As System.Windows.Forms.Form) myForm.SuspendLayout() myForm.Text = "BLA BLA BLA" myForm.StartPosition = FormStartPosition.CenterScreen myForm.ShowInTaskbar = False myForm.MaximizeBox = False myForm.MinimizeBox = False myForm.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle End Sub End Class
Dim myf As formProperties = New formProperties myf.FormProperty(Form2) Form2.ShowDialog()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)