Link to home
Start Free TrialLog in
Avatar of sneeri_c
sneeri_c

asked on

Determining Sending Form

I have a form [frmNotes] that is called via different forms in my Windows Application.  Depending on which form calls it, I want the title of frmNotes to change and also I have a few different controls that I want to set as visible depending on the form which called it. For example:

if frmMain calls frmNotes:
    frmNotes.Text = "General Notes"
    button1.Visible = True

if frmSub calls frmNotes:
   frmNotes.Text = "Sub Notes"
   button2.Visible = True

I am not sure how to determine which form has called the frmNotes.

Thanks for the help.
ASKER CERTIFIED SOLUTION
Avatar of ozymandias
ozymandias
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or create a constructor that does the same thing...