To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Jun 18th, 2007, 10:47 PM   #1
asekga
New Member
 
Join Date: Jun 07
Posts: 3
asekga is an unknown quantity at this point (<10)
[2005] Stupid Login Question [Resolved]

I'm sure this question is either so obvious it doesn't deserve asking, or has already been asked before, but I couldn't find it from searching, sorry.

I am planning to make an application with 3 user types; basic user, super user and admin.

From the login page (the first form to be displayed) the user will be presented with 2 text boxes for username and password. Depending on the usertype attached to the username will define which type of user they are.

Each user will be presented with a different version of the same page upon login, each having the same basic view (a tree view on the left, and a list view on the right) but with different options available depending on the user type.

My question is, other than using something like the factory method (which I only have a basic understanding of) is there any simple way to use the same form, but have it present the different views depending on user type, or would it be best to have 3 different forms, and for the application to point to a different form depending on user type?

Thanks for any help

Last edited by asekga; Jun 18th, 2007 at 11:19 PM.
asekga is offline   Reply With Quote
Old Jun 18th, 2007, 11:01 PM   #2
Lord Orwell
in the borderlands
 
Lord Orwell's Avatar
 
Join Date: Feb 01
Location: in evansville, IN, recently highlighted in an at&t commercial
Posts: 6,467
Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)
Re: [2005] Stupid Login Question

You could have one form and simply disable buttons or hide them if you aren't administrator. It is easy to hide and show whole blocks of controls at once if you put them in a frame.
__________________
"America" is a land-mass, not a country! I live in the United States. I'm a Yankee.
Lord Orwell is offline   Reply With Quote
Old Jun 18th, 2007, 11:06 PM   #3
asekga
New Member
 
Join Date: Jun 07
Posts: 3
asekga is an unknown quantity at this point (<10)
Re: [2005] Stupid Login Question

Thanks for the idea, but its the content of the tree view I want changed.

For the basic user there will only be one item listed in the tree view, and when selected a set of items shown in the list view.

For the super user there will be two items in the tree view, the basic user tree, and the super user tree with two drop downs (each with different items listed on in the list view)

and for the administrator the super user tree options and another main tree with two sub trees.
asekga is offline   Reply With Quote
Old Jun 18th, 2007, 11:12 PM   #4
Lord Orwell
in the borderlands
 
Lord Orwell's Avatar
 
Join Date: Feb 01
Location: in evansville, IN, recently highlighted in an at&t commercial
Posts: 6,467
Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)Lord Orwell is a glorious beacon of light (400+)
Re: [2005] Stupid Login Question

simple enough to load the treeview with all three trees to start with and delete the two unneeded trees. (although this is backwards in how you should do it)
__________________
"America" is a land-mass, not a country! I live in the United States. I'm a Yankee.
Lord Orwell is offline   Reply With Quote
Old Jun 18th, 2007, 11:19 PM   #5
asekga
New Member
 
Join Date: Jun 07
Posts: 3
asekga is an unknown quantity at this point (<10)
Re: [2005] Stupid Login Question

And its just that sort of backwards logic I was looking for :P

Thanks for your help.
asekga is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:56 AM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.