[2005] Able To Set Permissions For Users As They Log Into Our Software ?
Jan 31, 2009
My problem is that i want to be able to set permissions for users as they log into our software. When the program loads the users get the logon screen. Then once authenticated (in SQL)they can access all of the forms. What i want to know is can i create some sort of access levels. So for example if i was to login to the software as admin then i can see the "system" menu whereas if i login as someone else they cant see the menu. Can it be done in SQL, like my authentication. Even if we added an extra column called access then if it was set to 0 you are an admin and if it is set to 1 you are standard.
View 3 Replies
ADVERTISEMENT
Apr 12, 2010
Now i'm working with users so for each user there are many permissions like add, update, view and delete, but i was thinking create a bit type data for each authorization, then i would load each one with 0 or 1 and show only the authorized form for the user. Could I do this? or there a better way to do the same?
View 7 Replies
Feb 23, 2010
I have a program that uses a font that's not stored on many computers, so the font comes with the program, in its resources. Before I was writing to a file and loading the font from that location, but I remember now that sometimes you don't have permission to write to a file. My application will not write to any other files, and having this font available is very important. So, I decided to use Marshal.AllocHGlobal() to store the font in memory, then read it back. (I'm using a PrivateFontCollection object to store these fonts.)Does Marshal.AllocHGlobal() require permissions? Is it more likely that it will throw an exception than IO.File.WriteAllBytes()?
View 1 Replies
May 22, 2009
I have an app written on an xp pc which I want users to run on Vista
The app needs to delete a file on a portable drive in a particular folder
This folder was created on the xp machine and copied to the portable drive
The app will not delete a file in this folder on Vista but it will on xp
When I check folder security on vista (which does not exist on xp) I find that the folder does not have full control assigned
my app will write a file to that folder & delete it but will not delete a file put there from the xp pc
If I change the security in vista to full control it works
what I want to do is see if the folder has full control when the user selects it and advise them they need to alter security as I can not do it in the program
basically I want to advise them the moment they select the folder, not when it fails to delete the file after entering misc details in the app which are reuired before the file is deleted.
View 13 Replies
Jul 8, 2010
I'm working with a vb.net 2005 project that i converted from vb 6.0 last year. It's working fine in windows xp, but on vista and windows 7 i get an error saying 'Insufficient security permissions to set the system time.' Can you think of any way to replicate this error on windows xp? I'm trying to get a windows 7 box setup at work but I was wondering if there was anything I could try with xp in the meantime.
View 9 Replies
Jan 6, 2009
Does anyone have any experience in writing VB.Net apps that control Internet usage? I have a friend that needs to have her office computers monitored in order to prevent the users from playing on the internet. I'm not sure what the best approach to this issue is.
View 9 Replies
Aug 29, 2009
I have created a multiuser application and at different user login i want to create different instances of the application.How to do this? Can somebody give the concept of how to approach this?
View 14 Replies
Jul 28, 2011
I have someone who downloaded my program using click-once. My program allows user to read a .txt file and then manipulate data The user selects the file to open by goin gto File>Open on menu strip
I have a user who gets an error message upon clicking on File Open
It doesnt open up the OpenFileDialog return ans unhandled exception
Method not found System Windows.Forms OpenFileDialog get_SafeFileName
Anyone have an idea what i should be looking at I cant re-create it on my end
View 16 Replies
Apr 15, 2009
I have a vb.net (VS 2005) application which downloads files from my webserver and shows its contents to user. And I make files at my end and upload files to webserver so that the application and download & process it. This happens at fixed intervals. Now I intent to send an instant alert to users who are using that application. For example: If I type a message and send "Hello everyone" then all those people who are currently using that product should get a popup with this message. My webserver is a hosted on a unix based system. It enables me to show html content and post files & stuff online. In order to achieve my goal of sending an alert which users should get immediately what do I need to do?
View 6 Replies
Jan 20, 2009
In my application, I create data and log folders that must be shared by all users using this computer. I did a lot of research, and I found a function that is supposed to grant full access to every users of a folder and its children. However if right-click properties on my folder, the access is unchanged. ow should I grant full access to all users of a folder and its children (I don't care who created it, all users should be able to read and write to that folder)?
Public Sub GrantAllAccess(ByVal Folder As String)
Try
Dim DomainUser As String = Environment.UserDomainName & "" & Environment.UserName
[code].....
View 5 Replies
Oct 26, 2009
is there a way to tell if the record is currently open (for editing) by another useregclerk 1 gets recordset for a person. pessimisic lock, client cursor.
View 1 Replies
Apr 12, 2010
I want to authenticate each user every time. in vb 6.0 i used this
Private Sub cmdIngresar_Click()
Dim rs As New ADODB.Recordset
Dim strConsulta As String
[CODE]...
So, my question is how could i modify it for vb2005, because vb2005 don't use recordsets?
View 4 Replies
Mar 22, 2010
how to remove a Folder created in Users Program Menu under File System, when an application is uninstalled? During installation of the Application, a link is created at the users desktop and also in Users Program Menu. However during uninstallation the link for the Users Desktop and User Program Menu is removed, but the Folder created in the Users Program Menu remains.
View 4 Replies
Jan 25, 2010
I am trying to create a setup file which would automatically install a link to the executable in the User's Desktop and Startup--> Program. However despite following all the steps in the right order I do not see any short cut in the desktop and Start -> Program.
View 4 Replies
Feb 9, 2010
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
[code].....
View 3 Replies
Dec 29, 2010
I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.
I get this error
HTML
There is already an open DataReader associated with this Command which must be closed first.
Here is my code
vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",
[CODE]...
View 3 Replies
Apr 3, 2012
1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.
2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.
View 2 Replies
Apr 4, 2012
1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.
View 1 Replies
Jun 10, 2008
I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.
View 5 Replies
Dec 24, 2010
I need to create a directory with the permissions restricted to all users but only the program can modify in it. I want the program to create new files and write text in this texts files, but nobody should see or modify the content of this files and even better if nobody could see either inside the directory itself.
View 7 Replies
Sep 17, 2009
I created a Project, now i wanna publish it. I should copy a folder from the CD on C:ProgramsTest .... Now my problem, how can i put the permission on it:
For all Folders and Subfolders should be: Group: User Permission:
Change -- true
Read -- true
Write -- true
View 2 Replies
Jun 15, 2008
I have a small application that creates users in the AD. It adds the users fine, and creates them a home directory. My problem is with granting the user permission to the home directory and is two foldFirstly the code detailed below adds the user to the folder, but because the account is newly created it displays as the SID rather than the name, not such a big deal, but sometimes the code fails as the replication has not caught up and the user isnt found. I beleive the answer here is to use the SID rather than the users name to add permissions, however I am not sure how to retrieve and store this when the account is created using directory services. Secondly and more frustrating is that once the user is added to the folder ACL their permissions are all blank.
Try
Dim Dinfo As New DirectoryInfo(Directory)
Dim DS As DirectorySecurity = New DirectorySecurity()
Dim Rights As FileSystemRightsFileSystemRights = FileSystemRights.Modify
[Code]....
View 3 Replies
Feb 8, 2007
I have been working on creating a small application we can run that will add permissions to a folder during an installation of a new application. The application requires read/write access to the folder and all subfolders. For whatever reason I have been instructed to include this in and install package that will be pushed out using SMS. Below is a sample of the method I use to add the user to the folder and give the appropriate rights to that user:
[Code]...
This works fine adding the user account to the folder and with with appropriate rights. I need it to give rights to the folder I select and all subfolders and files, This is where I am stuck. Does anyone know how to grant permission to a selected directory and all subfolders and files?
View 4 Replies
May 18, 2009
With Vista we are having a permission denied error when an application tries to change properties of a file in Program Data folder... before replacing with a newer version of the file.Changing of security permissions for a standard user is not an option. Is there a way we can grant the premissions for an application developed in VB .net to give permission only to change properties of this file.
View 4 Replies
Mar 14, 2012
If default 'sa' account has sys_admin permissions for the whole SQL instance and all its databases. On the database itself, if I don't have db_datareader permission enabled, I would assume it doesn't need it as it is implied but I was wondering in .net, is there way to check if db_datareader has explicitly been enabled and not just implied from the 'sa' being a sys_admin.
View 1 Replies
Apr 22, 2010
I would like to SET ALL permissions to True for all users of a computer, while using Directory.CreateDirectory
View 1 Replies
Aug 25, 2009
I have a project that I am testing with Windows 7, its almost complete but doesnt function without elevating the users permissions, I've tried a few of the sample codes I've found online and they don't seem to work... This has been tested on a admin account, but still requires elevated privaliges... I believe becuase it directly effects critical and non-critical windows services (starting, stopping, retreiving the status, enabling or disabling them)
[Code]...
I understand the UAC could be used to implement this "admin only" restriction, but as I havent even tried using the UAC Settings area yet. As I said, a link to helpful content would be cool, an example would be great.Running Visual Studio 2005 under a Visual Basic Environment.
View 4 Replies
Jan 15, 2009
I'm trying to put together a simple "file search" app that lets the user specify where to look, what type of files to look for, what the minimum file size is, etc. (I know...sounds kinda like capabilities that already exist in Windows!). I'm running into "access" issues, even with directories that I wouldn't think I should have any trouble accessing.I'm doing something like this:
Dim f As New FileIOPermission(PermissionState.Unrestricted)
f.AllLocalFiles = FileIOPermissionAccess.Read
Try
[code].....
View 2 Replies
May 4, 2012
I am trying to change the permisions of the following registry key from within VB.net:-HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSLicensing.Basically need to change users to full control (rather than the default of read)Have read through forum, and replies to a previous post I made (n.b. have started a new one as that post covered various things and was getting a bit convulted) and lots of links but still cannot work out how to do it, please can someone help me further?
View 17 Replies
Jun 4, 2009
I'm getting the hang of most controls now, still a lot to learn (and I mean a LOT) but I'm thinking how about all the windows stuff how does one learn all that for example how to change the background how to control settings permissions etc...Is there a book on it? What is Shell Programming?
View 1 Replies