I would really appreciate your advice on the following:
I'm working on Windows forms using VB.NET (even though the language is irrelevant to the question at hand).
I've got a main form and wish to call out another one, however depending on a given variable I need the text on some of the new form's elements to change as well as disable some of its controls.
There are two ways I see of doing it:
dim newform as new frmcalculate(byval type as string)
public sub getexplanation(byval type as string)
lblexplanation.text = "this is a sum"
lblexplanation.text = "this is a subtraction"
dim newform as new frmcalculate()
newform.lblexplanation.text = "This is a sum"
In the first approach the code is best managed and organized for further editing. So each form has it own code.
It is not best practice to use second approach. (Editing a form designer from another one)