Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't I display a form in the Form.Create? 1

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Hi all,

I have a form called frmLogin which I want to show when my application loads.

Where do I display the form? If I put in the FormCreate of the applications main form I get an 'Access Violation'.

Thanks in advance




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
Your getting that error because the second form hasnt been created yet and your already trying to show it. Try using your main forms OnShow event to show your senond form. If you show it modally (Your second form that is), it should pop up before your main form which wont appear until you close the second form.

[blue]"Now you see that evil will always triumph, because good is dumb" - Dark Helmet[/blue]
 
Is this the only form you want to show.
Have you saved it into a project.

" In the project options select the main form to load.
After selecting this it will automaticly show this form on startup." , which is what you probably did, make sure that all the files are in the correct project.

Do not change anything in your Project source.

If this doesn't work, let me know.

Peter
 
Thanks,

That really had me stumped.




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top