473,405 Members | 2,445 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,405 software developers and data experts.

login form question

My login form will call a main form with menu
in my button_OK click event
dim frmMain as new mainform
frmMain.show()
Me.dispose()


The login form didn't close by itself, Please help.. Thanks

Nov 21 '05 #1
3 1732
well how about instead.

Sub Main

in a main module.

dim flogin as new frmLogin

'check a Successful property--that you should create--on 'flogin
to see if successful--or better yet maybe you just want the login dialog to
get username and password and when user click OK, close form, and then in
Sub Main read a UID and PWD property from flogin form--that you would
create, do your login validation and allow entrance or exit the program
if flogin.Successful then
dim fMain as new frmMain
fMain.ShowDialog
end if
end Sub

HTH,

Shane
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:uD*************@TK2MSFTNGP12.phx.gbl...
My login form will call a main form with menu
in my button_OK click event
dim frmMain as new mainform
frmMain.show()
Me.dispose()


The login form didn't close by itself, Please help.. Thanks


Nov 21 '05 #2
You mean that I should set "module" as start but not a "login form" ???
Thanks

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> ¦b¶l¥ó
news:OM*************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
well how about instead.

Sub Main

in a main module.

dim flogin as new frmLogin

'check a Successful property--that you should create--on 'flogin to see if successful--or better yet maybe you just want the login dialog to get username and password and when user click OK, close form, and then in
Sub Main read a UID and PWD property from flogin form--that you would
create, do your login validation and allow entrance or exit the program
if flogin.Successful then
dim fMain as new frmMain
fMain.ShowDialog
end if
end Sub

HTH,

Shane
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:uD*************@TK2MSFTNGP12.phx.gbl...
My login form will call a main form with menu
in my button_OK click event
dim frmMain as new mainform
frmMain.show()
Me.dispose()


The login form didn't close by itself, Please help.. Thanks



Nov 21 '05 #3
Seems to work better.
that way login opens, closes and is gone.
then you decide on entrance to the main form or not.

Shane
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
You mean that I should set "module" as start but not a "login form" ???
Thanks

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> ¦b¶l¥ó
news:OM*************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
well how about instead.

Sub Main

in a main module.

dim flogin as new frmLogin

'check a Successful property--that you should create--on

'flogin
to see if successful--or better yet maybe you just want the login dialog

to
get username and password and when user click OK, close form, and then in Sub Main read a UID and PWD property from flogin form--that you would
create, do your login validation and allow entrance or exit the program
if flogin.Successful then
dim fMain as new frmMain
fMain.ShowDialog
end if
end Sub

HTH,

Shane
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:uD*************@TK2MSFTNGP12.phx.gbl...
My login form will call a main form with menu
in my button_OK click event
>dim frmMain as new mainform
>frmMain.show()
>Me.dispose()

The login form didn't close by itself, Please help.. Thanks




Nov 21 '05 #4

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

Similar topics

1
by: John Davis | last post by:
I put a little login (username and password textfields) in a web page, and once the user able to login, I want the username and password textfields will disappear, and replace with text " has...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
5
by: Ronald S. Cook | last post by:
It's been longer that I remember since writing windows (not web) apps. 1) I want to load a main form 2) User clicks login button which brings up login form (on top of main form) 3) Upon...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
9
by: Ben | last post by:
Hello, I'll bet this has been asked a million times but I can't seem to find a thread that gives the clear example I need. This PC has MySQL and IIS configured and running. The MySQL database is...
3
by: Jennifer.Berube | last post by:
okay...so I got this login script and I edited it all and it seems to run fine...IE it listens to the script as far as permissions go when I place a restriction on a page and when you login it...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
12
by: hotflash | last post by:
Hi Mark et. All, I have a question to see if you can educate me here since this is something new to me as well. I created a login page for the user to login and the ASP will check and redirect...
1
by: Kandiman | last post by:
Hiya, i made a asp page, and one of my divs (as a include) is as below. the problem is if the main page is resubmitted, i get logged out again?... heres the code.. i think its on the value=true...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.