473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Form completely closed.

Hi all.

I'm getting a problem with forms. I have a tradictional scene where the
first Form comes up with the login and if the user logs in, get the second
form with the whole system. Basic doesn't it? So what I want to do is, when
the user logs in, the login form is completely closed (not hidden) and calls
the second form passing the parameter "user loged". How can I do it?
Kind regards,

--
Fabio Negri Cicotti
Software Engineer
Nov 16 '05 #1
2 983
Why not turn it around?
Create the second form and from there call the login form.
And if the login is successfull send OK back to the second form
otherwise send NO (or smth. like that...).

saso

"Fabio Negri Cicotti [MCP]" <ci*****@hotmail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hi all.

I'm getting a problem with forms. I have a tradictional scene where the
first Form comes up with the login and if the user logs in, get the second
form with the whole system. Basic doesn't it? So what I want to do is,
when the user logs in, the login form is completely closed (not hidden)
and calls the second form passing the parameter "user loged". How can I do
it?
Kind regards,

--
Fabio Negri Cicotti
Software Engineer

Nov 16 '05 #2
Hi Fabio,

Before Application.Start, do your login, close the login form and if login
succeeds then start the application with
Application.Run(new YourMainForm());

instead of using login form.

The application will then run as long as this form is open.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

"Fabio Negri Cicotti [MCP]" <ci*****@hotmail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hi all.

I'm getting a problem with forms. I have a tradictional scene where the
first Form comes up with the login and if the user logs in, get the second
form with the whole system. Basic doesn't it? So what I want to do is,
when the user logs in, the login form is completely closed (not hidden)
and calls the second form passing the parameter "user loged". How can I do
it?
Kind regards,

--
Fabio Negri Cicotti
Software Engineer

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Citoyen du Monde | last post by:
Trying to get some ideas on a simple javascript project (to teach myself the language). I want to develop a client-side vocabulary practice application that would allow users to enter their own...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
2
by: Chien Lau | last post by:
Hi, At a certain point in my application, I have access to a Form object. I want to close that form: form.Close(); There are any number of reasons why this form might not close. A common...
7
by: Xero | last post by:
How do you detect whether a form has been closed or not? Thanks. -- Xero http://www.chezjeff.net My personal web portal
6
by: Jeremy | last post by:
I've spent many hours on this issue, so someone please either tell me I'm an idiot, or give me a hint on where to look. My mdi child has a shared execute method which creates and shows it. When I...
1
by: Ufit | last post by:
How do I detect if my webform was closed and destroyed. Also I have hard time with displaying a new form in a separate window. Can someone help me. Thanks Ufit
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
1
by: mirandacascade | last post by:
1) Module1 has the following delcaration: Public g_frmZZZ as Form Public g_txtForm2 as Variant 2) app has two forms: form1 and form2 3) a command button on form1 opens form2; it also has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.