how can i load a form from a module created in d same project??...........What function should i use to do so???

Load formname

in the module paste the following code :-(the bolded parts only)

sub to load the form specified by you
Private Sub loadForm(frm As Form)
Load frm
frm.Show
End Sub

this is the main function that a module should have while you are trying to execute it from your project as a startup object

Sub main()
Call loadForm(Form1)
End Sub

where form1 is the name of the form you wish to load. after finishing the coding goto project->project properties->set sub main() from startup object->click ok->run the project

Hi,

Use :

Form1.Show

It will Load and Show (Not necessary to Load and Show)

Regards
Veena

how can i load a form from a module created in d same project??...........What function should i use to do so???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.