Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
suppose i have two forms i.e. login form and main form. i want to see the from overlapping... when i run the solution i want to see login form and main form behind it..and when i type id and password i want login for to disappear and only main form remains.. can anybody provide me code for that....
Posted
Comments
[no name] 17-Jun-12 14:29pm    
From your comments posted as solutions to your question I would have to ask, What have you done to even try to do your own homework before asking someone else to do it for you?

Call the login form from you main form using the ShowDialog method. It will remain in front of the main form until the user closes the form, at which point execution will continue in the main form from the instruction immediately after the ShowDialog call.
 
Share this answer
 
if you are using windows form :

inside your main form's form_load event :
C#
loginform objLogin = new loginform();
objLogi.show (); 


in case of asp.net

execute this script on page load of main form

JavaScript
window.open("loginform.aspx"


for more detail coding share more details abtt your code.

dont forget to click on accept as answer if you have found this useful :)
 
Share this answer
 
thanks for your suggestion but i could not make it.. so can you please.. provide me with code...plz
 
Share this answer
 
sorry guys your answer do not works out.. i want main form visible behind the login form and i want the code in bottom click event.. i am working on project and due within a week.. so please help me an provide me the code...waiting...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900