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.
On top of what Duncan posted, CopyString has some SERIOUS limitations on it's use in the .NET Framework. Since an object can be moved at any time, CopyString can be passed invalid addresses unless the objects invloved are pinned in place.
What does this function do that you require the use of CopyString??
I ahve a rich text box on my form and I want it to, when you add text to it I want the program to dispaly the file size it will be when it is saved (hTM or RTF. i want it to display this on lblfilesize label.