in the dll

.after this the user clicks the command button...if the username and password matches any of the combinations present in the combo-boxes.....

This also in the dll?

then i want to run the function KRN_Startform() which is defined in the project.....

ya this is also done in the dll itself

Just remove the Brackets after Form1.Show() in you DLL

Make it
Form1.Show vbModal

Then get back to me

the form stopped on the screen amd it allowed me to make entries in the text boxes after doing the above step .......but when i clicked the command button it is showing "automation error"...

the form stopped on the screen amd it allowed me to make entries in the text boxes after doing the above step .......but when i clicked the command button it is showing "automation error"...

Just see it in the form1 property whether the name of the control, not its caption, is command1 or
Login

Hi Anud..

Why have u defined showform as a Function ...? Change it to a Procedure :

Public Sub ShowForm()
Form1.Show
End Sub

If it is a Function, u need to Assign it to a Variable..


Regards
Veena

Hi,

sorry make it

Form1.Show VbModal

Regards
Veena

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.