C# is new to me so I'll be grateful if somebody can give me a hand on this
I'm workng on a C# application that works with a database.. I originally started it as a 'window form' (so normally it is displayed as an icon of a grey window in the treeview solution explorer), but somehow it 'converted' itself into another type of form, displaying itself as an icon that could be for a 'Component class' or 'window service' etc.. so here's my problem:
I created a new window form (lets call it Form2), and added a button in Form1 so the user can navigate themselves to Form2 via a button click from the Form1... however because the two forms seem to be of different 'type' now I can't seem to make a link between them for the users to be able to navigate from one form to another. Here's what I tried:
Form f = new Form2;
f.show();
etc etc..
..which i know works if i had two simpe window forms to work with rather than the two forms that are apparently of different types i've got at the moment:
the trouble is, I have no idea why Form1 had turned into another (unknown) type (I know because the icon is no longer the normal grey window), unfortunately i think this could be the reason why i can't open Form2 from Form1...
I hope this is clear enough.. I really dont know how else to explain it..
Any help is appreciated! thanks in advance