Hi guys,
I have two projects in a solution: GUI and Controls.
Controls is supposed to have our company's custom controls, and all the forms live in the GUI. However back in the dark times before the Empire, some genius thought it would be a great idea to create a TextBoxLookup control. This has a custom property you can set (eg BankAccount) and a textbox with a button on the right. When you click on the button, it goes through a case statement and brings up the appropriate form, eg
select Case Me.LookupField
.
.
.
Case FieldsEnum.BankAccount
Dim x as new frmBankAccountLookup
x.ShowDialog
Case FieldsEnum...
.
.
.
End Select
Over time, this led to about 20 forms (that belong in the GUI) actually being crammed in the Controls project just so they can be referenced!
The GUI references the Controls project and has the textbox on the screen. I'm trying to clean this up and get them back in the GUI where they belong. When the button is pressed, how can I flick the Me.LookupField property back to the GUI project and have it bring up the form? Delegates? Events? Base forms? The lookup control is being used in zillions of forms so eliminating it is out...