Disable Form Unless UserType Is Admin

Jan 19, 2012

My question is i have a table called tblLogin and it has Username and Password and Usertype in it Admin, Normal in usertype. How can i get when the user logs in as admin it shows cmsAdmin and if not admin they are normal it disables cmsAdmin this is the code i currently use for my login system.

[Code].....

View 1 Replies


ADVERTISEMENT

VS 2010 Way To Make Like 'admin' Form Where New Account Applies Will Pop-up When 'admin' Log In And Then Either Accept / Reject New Users?

Oct 10, 2010

i have a script with a login form that creates a folder per user with username.txt, password.txt, firstname.txt, and lastname.txt. - auto creates when creating new user.after i log in and change form i want an label showing the first and last name of the person logged in,how am i supposed to do that? is there any way to make like an "admin" form where new account applies will pop-up when "admin" log in and then either accept or reject new users?

View 8 Replies

Login Form With Three Fields - Username - Password & Usertype

Sep 26, 2010

i am new to this as i am learning. i have been assigned this project with vb express 2010 with access 2007 database (.accdb) my database has a table named users which contains username, password & usertype fields. the usertype contains either "admin" or "limited user". now i want to design a login form that has username, password fields as well as a field for usertype (this field obviously would be readonly),

View 5 Replies

Disable The Network Connection From .Net Without Needing Admin Priveledges?

Apr 2, 2010

I may be SOL on this but I thought I would give throw it out for possible solutions.I am writing a computer access control service tcontrol my kids' computer use. Plan on open sourcing it when I have it working. It is written in VB.Net and needs to work on XP through 7.I am running into all sorts of security and desktop access issues on Windows 7.The service needs to run as admin to execute the NetSh command to disable the network. But I cannot interact with the desktop from the service so I IPC to a UI to handle other stuff, but I still cannot detect from the service if the desktop is locked. Argghh!

View 1 Replies

Admin On Vista Doesn't Show As Admin Class?

Jun 9, 2009

on XP Pro, IsUserRole(eUserType.Administrator) returns true, if the class is administrator, and false if it's limited...

On Vista, it returns true, if it's the first administrator account, and false for anything else... I created a second administrator account on Vista, and it shows in code as "Standard" (or limited) user, the same as if I made a "Managed Account" on Vista...

My
#Region " [IsUserRole] "
Public Enum eUserType
Administrator = 0

[Code].....

View 7 Replies

Unable To Use 2 Different Login Authorities Which Are Admin And Non-Admin

Mar 11, 2010

I'm designing a system, whereby am unable to use 2 different login authorities, which are Admin and Non-Admin. I am using VB.NET and Ms. Access and need help for the codes.I want something like, if i click on admin/non admin (with different passwords) a dialog box pops onto the screen and asks for the password. If the password is correct it should take me to the form i want. Something of this sort please.

View 9 Replies

Parameter @UserType Has No Default Value?

Mar 30, 2011

im using data bound item with my combobox and this error pop up.

Parameter @UserType has no default value.

when i set the value,it stated that

"The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again."

should i edit my usertype column in my database or there have another solution?

View 6 Replies

Using A Table And Fields With Username And Password And Also Usertype In It?

Jan 23, 2012

What i'm trying to do here is login using a table and fields with username and password and also usertype in it. If the user is an Admin then it displays the the command button cmdAdmin and if not admin it disables it. This is the code that i currently have at the moment Hope someone can help me out and also i want to get rid of the username and password that's currently in it and use database instead.?

[Code]...

View 2 Replies

Run A Link Life From A Form As Admin

Oct 18, 2010

i have used vb to create some simple forms but my latest project has got me beat. The company i work for has just upgraded to Terminal Server 2008 and some of our old programs need administrators rights to open but i do not want to give all 200 users the administrators password, So i wanted to know is there anyway i can create a exe with vb.net that will run a .lnk file (located on all users desktops) as administrator.

[Code]...

View 3 Replies

Send Feedback Of Contact Form To Mail Id Of Admin?

Feb 22, 2012

I have a Contact page in my resort website asp.net 3.5. I want to write code in VB.net to send my feedback to mail id.I have Name, Email Address, Contact Num and Message in the form. When the user enters all fields and the message, the message should be sent on admins mail id with all details. Is that possible? How can I do that in Visual Studio 2008 using VB.net?

View 1 Replies

Forms :: Database Driven Login Form With Admin Backend (Image Heavy)

Jul 19, 2008

How To on a database driven login form. I'll include the Administration Backend to go along with it soon. Dial-Up users should not use this thread, it is image heavy

[Code]...

View 17 Replies

Winforms - Disable The Parent Form When Call A Child Form?

May 14, 2010

How can I disable the parent form when I call a child form?This code doesn't disable the parent form like I thought it would:

frmChild.ShowDialog()

View 2 Replies

Disable Parent Form When A Child Form Is On Display

Mar 15, 2012

my application have a main form. i have set the isMDIcontainer to true on the form properties. How do i set other forms to child form of the parent. i need to do this because the other forms start position is CenterParent.but as it is now when i run the program the other forms start position is not the parent form centre.Secondly, how do i disable the parent form when a child form is on display. so that user cannot click on the parent form until the child form is closed.

View 1 Replies

Disable A Timer - Will Finish The Process And Then Disable Or Will It Immediately Disable Without Completing Process?

Dec 22, 2011

I am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example

[Code]....

I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.

View 3 Replies

Disable Form And Enable Form Using MDI?

Jan 15, 2012

I'm new in vb.net. enable and disable form using MDI

View 1 Replies

Disable All Form Controls?

Jul 29, 2009

on one of my form, if user press a button then it sync data with another database and it takes time. i show a hidden group box on form which show progress bar of processing. during this process i want to disable all the controls of the form so that user not able to do anything form until process if finished.because most control on the form has validation and if i do me.enabled = false, it disable the control but still use can click on any of text box and then depending on validation event get fired.in a nutshell, want to disable any kind of activity on form.

View 16 Replies

Disable An Entire Form?

Apr 25, 2009

I need to disable every control on my Form so that the user can not click or press any key that will change values of listboxes and other controls on the form. I need to be able to lock the whole Form like this because as part of the project I have to print the form 3times with 3 different colors and the only way I've been able to get it to work is with a timer. So for about 3 seconds the form is changing colors and printing itself, so in between that time the user could accidantely click something and change a value on the form when all three prints should be of the same form, only difference is in the color.I can't use disable as that will make all the controls look faded and messed up, I need a clean way to prevent anything from being changed.

View 39 Replies

Disable Keys Using A Form?

Feb 27, 2009

I need to disable keys using a form, when pressing a button, searching in the forum, I found this:

If (e.Alt = True) Then
If (e.KeyData = Keys.F4) Then
e.Handled = True
End If
End If

but I can't get it to work, is there a way to disable keys?I need to disable a, s, d , f keys?

View 4 Replies

Disable The Delete Key On VB Form?

May 26, 2009

This is a simple question, I am VB beginner. I was just wondering how I can disable the Delete Key on a form. Its simple question. I just want it completely disabled, preferably when the form is loaded.

View 4 Replies

How To Disable The Form Border

Feb 12, 2009

how to disable the form border, and just have 1 button when your form loads i put a button on my form and i changed the background image but i can still see the border i know how to remove the controls on the form but i wanna see just a picture like bellow..

as you can see the form doesnt have any borders and that is what it loads when you click on the program.

View 2 Replies

Cannot Disable The MDI Menustrip From The Login Form

Aug 16, 2009

I have a login form that opens during MDI form load event. What I want is during login process i want the MDI frm Menu strip to be disabled and can only be enbaled after succesful login. The login form is base on a table that I created with username and password and is working find. The only problem is i cannot disable the MDI menustrip from the login form. here is my code in login form that process the disabling of the menustrip1 from the MDI form

mainfrm.menustrip1.enable = false

View 4 Replies

Disable Atl+tab Keys In Windows Form?

Mar 26, 2009

I have been searching everywhere for code that will disable the Alt + Tab key press,
I am making a Lock PC program as a little project but I cannot find any way of disabling them.

I am using vb.net (Visual Basic 2008 Express)

View 2 Replies

Disable Close Button On A Form?

Jun 8, 2005

Can we disable the close button on a form ? I can remove the minimize/maximize, but cant find anyway to disable the close button.

View 11 Replies

Disable Dragging Of A Maximized Form?

Oct 30, 2011

After maximizing a form, if I drag the title bar, the form moves out of position. This seems to be normal in windows, since IE does it also, but can I disable this? so the form stays fixed and unmovable?

View 1 Replies

Disable Form's Context Menu?

Jan 8, 2012

I need to disable the form's context menu, when you right click on a form's caption bar a context menu appear.

View 5 Replies

Disable Form's Control(View Only)?

Jun 21, 2010

I had a form (says form A)with control on it, 2 buttons with text "View Process Flow"(Button1) and "Manual trigger Process"(Button2). Both button will load and shows Form A in Panel1 in Form1, but button1 will let user to see the action but block them on clicking on it, button2 will let User see and clickon the control.

In other software, I can use a transparency button or form block User by acess formA(so, they can see,but not click), But VB2008 transparentcy option kind of idiot(Or i dont know how to use it?)seem it just change the control back color to parent's backcolor(totaly useless, and the "tranparen key" as well)

I cant disable control cause it will stop the animation, only ways i can think off is add in a IF statement in every button, so it will do nothing when viewing = true.

View 4 Replies

Disable KeyStroke During Form Loading?

Dec 3, 2009

Problem: Form hasn't fully initialize but shortcut keys can be usedDetails: Launch an mdi child with database access retrieving data, and user is already using the shortcut keys while the data is still been retrieve which results to error since object hasn't fully initialize yet.

Goal: Hinder user from using shortcut keys by disabling the keys at initialization then enabling it after all objects are good to go.

Another Situation is:A form with a gridview and a button.I got a hotkey that when press, handles a gridview getfocus event.

The problem is that the gridview is still making its instance and when press the hotkey, it activates the getfocus property of that gridview(which is still creating its instance).

View 10 Replies

Disable The Close Button ('X') On A Form

Mar 25, 2008

I am attempting to disable the close button "X" in the controlbox of a form and keep the maximize and minimize buttons. There does not appear to be a way to accomplish this with conventional VB code or using the Form's Properties.

So I ventured into the realm of API's.

I declared the following API Calls and Constants:

Declare Function GetSystemMenu Lib "user32" Alias "GetSystemMenu" _
(ByVal hwnd As Long, ByVal bRevert As Long) As Long
Declare Function EnableMenuItem Lib "user32" Alias "EnableMenuItem" _

[Code].....

View 7 Replies

How To Disable Close Function (X) On Form

Oct 29, 2009

I have a form that the user must enter some important information and the only way of leaving of that form is to enter the correct info. By mistake I close that form from the X on the upper right side realizing that my code restrictions on that form was not enough. How can I disable close (X) of that form? I checked the form properties but I couldn't find anything about that just to disable maximize and minimize.

View 7 Replies

MDI Form - How To Disable FrmMainChild To Be Resized

Apr 12, 2005

i created 1 mdi parent form as frmMDI and 3 child forms as frmMainChild, frmChild2 and frmChild3. When the frmMDI is loaded, it will call the frmMainChild and set it to maximize. At here, i treat the frmMainChild as the base form of my application. in the frmMainChild, i can call other forms like frmChild2 and so on.

and now, my problems are: 1. how to disable the frmMainChild to be resized, restored? i just want to make it maximized only. 2. when i call the other child forms from frmMainChild, i notice that it always maximize the child form. can i make the child form to be in normal window state?

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved