What is the vb.net equivalent to accomplishing this?
Basically I want to be able to add a controller to my view. The problem is that vb.net forces me to use a form as a startup project. I know there is a different way I'm supposed to accomplish this, but I'm very used to java where I control what happens at startup. I looked into the My.Application.Startup event as seen in MSDN, but that doesn't accomplish what I need because the view isn't created at that point. What am I missing here?
thanks,
Phil
VB.NET:
static void Main()
{
frmCalcView view = new frmCalcView();
CalculatorModel model = new CalculatorModel();
CalcController controller = new CalcController(model, view);
[B]view.addController(controller);[/B]
Application.Run(view);
}
Basically I want to be able to add a controller to my view. The problem is that vb.net forces me to use a form as a startup project. I know there is a different way I'm supposed to accomplish this, but I'm very used to java where I control what happens at startup. I looked into the My.Application.Startup event as seen in MSDN, but that doesn't accomplish what I need because the view isn't created at that point. What am I missing here?
thanks,
Phil
Last edited: