How To? import vb net forms ???

  • Thread starter Thread starter GerryLowry1\(905\)825-9582{AbilityBusinessComputer
  • Start date Start date
G

GerryLowry1\(905\)825-9582{AbilityBusinessComputer

In Microsoft Access, importing and exporting forms from one .mdb to another is very, very easy to
do.

VB.NET seems to be quite difficult, probably because I am doing something wrong.

Steps to recreate (Visual Studio 2003)
----------------------------------------

Create VB Project vb1
Add a few controls to the default form
Compile ... no problem

Create VB Project vb2
Rename the default form "Form2"
Add a few controls to the default form
Compile ... no problem

copy Form2.vb into vb1's folder.
compile vb1 .... you get compilation errors

????????????????????????

What is the correct technique to import and export vb forms?

thank you
regards
gerry
 
copy form2.vb and form2.resx to the first folder.

Add form2 from the solution explorer.

Make sure that form2 in code view is "public class form2". When you
simply rename the form it won't change the class name from "public
class form1"
 
GerryLowry1(905)825-9582{AbilityBusinessComputerServices) said:
copy Form2.vb into vb1's folder.
compile vb1 .... you get compilation errors

What are the compilation errors?
 
Right click on your project and choose add existing item, then browse to the
form folder you want to add and select the .vb file and the .resx files, if
you want changes you make in one of the forms to show up in the other one
choosel link file instead of open (click on the arrow next open)

Hth Greetz Peter
 
Back
Top