They aren't identical because they are completly different objects Having the same properties and methods doesn't make two objects the same. What you need to do is define StockObj once publicly so that both forms know about it.
I am working in VB.NET for the last six months and thinking about getting certified, As the structure for certification has changed a bit, would you please point me in the right direction to start with and WHAT WOULD BE THE BEST BOOK FOR PREPARATION.
As the structure for the certifications have changed to MCTS (70-526, 70-536), I was wandering if there are any other resources than Microsofts own, provided on their website and would it be suitable for me to have a go on the certification with 6 months of expereience.
If you do this you are essentially trying to run another application but starting on Form2. You should create an instance of the form such as Dim frmForm2 as new Form2 then any number of variations of hiding the main form, setting it as the owner etc... but then frmForm2.Show().
Cleoko gave you the right answer. A form resides inside an application. Actually it is a class. If your aim is to call another form while the first forms is displayed, you can create an instance for the second form. It is very simple as shown below. application.run statement is used to run another application what resides under the same or a different directory.
Dim 2ndForm as new Form2
'If you want to hide first form, use the followin statement.
What is the equivalent now though? If they were doing FileOpen(86, whatever) what is the equivalent in 2.0? Actually I dont understand how they were actually doing anything with that file by just opening it.
Last Visit: 31-Dec-99 19:00 Last Update: 1-Dec-22 3:38