Link to home
Create AccountLog in
Avatar of Orlando15767
Orlando15767

asked on

creating a procedure to do multiple things

I'm new to VB.NET and am creating an MDI application.

What I would like to do is create a procedure to accomplish a few simple tasks

the tasks that I want to complete by calling a procedure is:

        [form name]= New [form name]
        [form name].MdiParent = Me
        [form name].Show()

I want to do this because it seems pointless to write the 3 lines of code every time I want to create a new child form

thanks for the help
ASKER CERTIFIED SOLUTION
Avatar of appari
appari
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Orlando15767
Orlando15767

ASKER

yes exactly
thanks for the help