Access Privileges By Buttons Enabled/desabled?
Mar 11, 2011
making a program that will have access privileges (for example, some users can add some kind of information but not other, or visualize some pages but not others). I want to make this access control by relating each button in my project and making it enabled or not to the users. For example, if the user can add only information A, the button "Add New A" will be enabled, but not "Add New B". For doing this, as my project have many buttons, i thought about a sub form relating every single button of every form in my project
View 13 Replies
ADVERTISEMENT
Nov 26, 2010
As i'm learning more and more about developing ive just got my head around creating classes and modules, i started wondering about something to do with configuration of applications where deployment is in a more diverse environment say in a company where different branches dont need access to all parts of a program, so i thought id throw the question out there in a basic sense and get some feedback. so i can go off and do some more reading and learning.
So the scenario in my head is like this.
So we have for arguments sake FrmConfig which is the master configuration form, then we have FrmMain which is the root menu our application general user interfaces with. So here based on what options are checked as enabled in FrmConfig effects what controls (like buttons/menu options) are enabled in FrmMain.
View 2 Replies
Nov 23, 2010
My app needs to delete and rewrite a text file called events.txt
now it used to work but now when i run the app it shows an error due not being to access the file in the "Program FIles (x86)/MyApp/" folder?
View 2 Replies
Mar 3, 2012
I have a piece of software with two tabs, inside each tab there are buttons (the user can add the buttons when they want). when tab1 is full tab2 should start to fill. I currently know how many buttons fit on the screen so I just say something like if buttons > 150 then start to populate tab 2 The problem i have now though is if the resolution is changed then a different amount of buttons can be displayed. so if I put my screen to 1280x720 some buttons are left of. I was thinking of detecting the resolution and then using different cases for different resolutions but this seems very inefficient im wondering if there is a different way?
View 5 Replies
Jan 23, 2012
I have a PlayStation USB controller and want to discover how to test the buttons and controls on the device from vb.net. Is there documentation anywhere on how to get info from a usb controller? I'm not even sure which department or category this falls
View 5 Replies
May 20, 2011
I'm using a repeater ListOfArticles and have controls inside it like ddlSizes and btnSelectArticle. Normally you can just double click the control and in the aspx.vb page you can specify an action. I have heard something about Findcontrol, but can't figure out or find much information that I understand. I don't want to sound like an ass, but I would really prefer help for the aspx.vb page and not in C# or Javascript.
An example of what I'm trying to do is, once you've clicked btnSelectArticle the label lblSelection receives the following values Amount: txtAmount - Size: ddlSizes.SelectedValue.
<asp:Repeater ID="rptListOfArticles" runat="server" DataSourceID="objdsArticleList">
<asp:DropDownList ID="ddlSizes" runat="server" AutoPostBack="True"
[Code]....
View 2 Replies
Aug 15, 2011
i am creating a game and i would like to record the score and name ounce the player is game over.. you can also view the records
View 2 Replies
Jul 18, 2011
I'm working on a server and i added a new function, to create a firewall rule for the connections. The problem is that when executed, it returns "The requested operation requires elevation (Run as administrator)."
How can i run the CMD at elevated privileges?
Here's the code.
Function ShellExec(ByVal command As String, Optional ByVal Elevated As Boolean = False)
Dim psi As New System.Diagnostics.ProcessStartInfo("cmd.exe", "/C " & command)
[Code]....
View 2 Replies
Jan 19, 2012
I have a gridview in wpf and have a two radio buttons and a button in template column. How do i access the status of radio buttons in the click event of the button?
<DataGrid>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding TrackingID}" Header="TrackingID" Visibility="Hidden" Width="50" />
<DataGridTextColumn Binding="{Binding UserFullName}" Header="Name" Width="140" />
[code]....
View 3 Replies
Sep 1, 2010
I am using following code to get a directory of files with a particular extension. It throws an error that you donot have administrator privileges.[code]...
View 3 Replies
Oct 15, 2011
I don't know how to run my application with system level privilleges, so that it does not encounter any UNAUTHORISED ACCESS in any case and when in seen in TASK MANAGER the user shown will be SYSTEM.
View 19 Replies
May 15, 2010
how can i set administrator privileges selectively in my application depending on whether it needs to write a registry value or not?my app needs the elevated privileges once, then each subsequent execution needs standard permission.
View 2 Replies
Feb 4, 2011
I have a database, added in data sources. I can manage records with automatically generated database toolbar.I want buttons for Add, Replace, Erase data from Database. So far i've seen some Tutorials but they are most likely for VB6 and also i'm really new on VB at all.
So i've uploaded all my project folder and my access database for you to rewiev it.Also excuse me for my englsih. It's not my native language. And again i'm new on VB, so i can ask dumm questions about basic. I can use some qualty VB 2008 tutorials links too.
View 8 Replies
Aug 20, 2010
Im am currently coding an application for auto updating ccleaner. Everything worked well until I enabled UAC.. I am using this project: [URL] to schedule the updating process, but when uac is enabled I get every time a message if I would let ccleaner installer make changes to my computer. The auto updating process must be done silently without bugging the user with prompts of uac.
When i manually check the "run with highest priviliges" box in task scheduler it does run without a prompt. But I can't seem to do this programmatically. Or I havent found it yet.
View 1 Replies
Mar 16, 2011
I wrote the code below to switch a user from DHCP to static networking (taking their DHCP assigned address and making it static). However on Vista and Windows 7 machines it does not work unless executed from within an escalated private command shell, even if the user executing it is a member of the local administrator group. I need to be able to email this script to users to execute on their computers (i.e. I have no remote access to them).
strComputer = "."
Set objWMIService = GetObject("winmgmts:\"& strComputer & "
ootcimv2")
[Code].....
View 4 Replies
Jan 31, 2010
I found that snippet, edited it a little bit and now im trying to use it...the problem that ocurres, is that its never going into the first IF... so already there seems to be an error.Im working on XP SP3 with admin privileges..
Private Shared Function GetCurrentPrivileges() As Privileges
If My.User.IsAuthenticated() Then
If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then
[code]......
View 7 Replies
Nov 3, 2009
I would like to save let's say "HKLM/SOFTWARE" into file using API. First I open the key using RegOpenKeyEx. This works fine as I see that the ReturnPointer is different from zero and differs also when I switch from "SOFTWARE" to other subkey, therefore I assume no problem there.The problem comes when I want to save into the file. It creates only a blank file with return code of 1314. I have googled for this, but only found that this error means that application has no privilege to perform the action and I need to setup "SeRestorePrivilege" & "SeBackupPrivilege" property somehow. I haven't been able to find a good VB.NET example for this and as I am very weak with APIs I wasn't able to construct one of my own, therefore I would like to ask you for advice on this.Could you please help me on how to set the privileges so that I can export/import registry? [code]
View 4 Replies
Nov 1, 2009
I want to display a prompt to the user as such: "Program requires Administrator privileges to continue, click OK to restart the program with administrator privileges". The question is how can I restart my program so that it asks for them?
View 7 Replies
Jun 22, 2010
i need a simple phonebook program using vb.net 2008 and access 2007 using ado.net with add , edit , delete buttons
View 2 Replies
Jun 21, 2010
Well on my application there is a check for update button and it needs administrative privileges in order for it to download the update (it needs to make a version change in the registry) and I don't have permission to. How can I make it so it asks for permission?
View 2 Replies
Apr 19, 2010
I am getting the above error when I attempt to run setup.exe as a non-administrator on Windows XP (sp3). This is for an application I created, and I would like to know what permissions the users need to install the application and updates. I am trying to understand the security issues when installing a vb.net desktop application, the .NET framework, and other resources such as the visual studio crystal reports engine. Any good resource which explains how this works for different operating systems and privilege levels?
View 6 Replies
Sep 22, 2011
how to elevate privileges when my program executes code through command prompt. My program will already prompt for administrator access when it is launched. This is the code from my manifest file that will allow it to prompt for UAC admin permissions/credentials (to elevate permissions)
VB .Net 2010
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
[Code]....
View 5 Replies
May 17, 2009
I am running a client-server application and am having problems with privileges (I assume). The application is developed using 2005 Express. The Client is running Win XP Home whilst the server is running Win 2003. When the user on the client has Admin rights on the local machine, everything is OK; however when the user has only User rights, an error occurs: VB will not run.
View 14 Replies
Feb 5, 2011
i want to excute this command in a guest account
Shell("net user new2 /ADD")
This needs administrator privelages
View 2 Replies
Apr 3, 2011
How can one obtain his/her database password with code while the admin privileges are proved to be sufficient by windows authentication?
View 1 Replies
Jan 11, 2010
I am trying to create a new folder in C:\Windows\System32\oobe but I cannot get sufficient privileges. Here is the bit of code that has the error
' I have "CreateDirectory("C:\Windows\System32\oobe\info\backgrounds") in the Form load sub
Sub CreateDirectory(ByVal Path As String)
Directory.CreateDirectory(Path)
End Sub
And then in Form Load I have:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
CreateDirectory("C:\Windows\System32\oobe\info\backgrounds")
End Sub
It keeps saying I don't have the privileges. Is there any way around this? I also need to put files in that folder later on.
View 5 Replies
May 22, 2009
A few months back I wrote a VB.net console application to migrate a group of about 100+ printers and the 1800+ users that use them from some old HP print appliances to a mixed Print Server and Direct to IP Printing solutions. The application uses a database to compare installed printers and remove old/invalid shares and remap to the new Win2K3 based print server OR create a TCPIP printer port and install the driver for direct to IP printing.
It worked really well, but users needed power user rights to create the TCPIP printer port. For the main campus this wasn't an issue, but the smaller remote sites need a solution that allows the app to be run by users without power user rights.
My solution was to take the "CreatePrinterIPPort" function and put it into it's own wrapper app and then call it as needed from the main app using a hard coded local admin account for the purpose, but I'm running into issues when spawning the createport app. If I run the app standalone it creates the port with no issue, but when I run it in my test app to spawn the createport using the CreateProcessWithLogon API the port creation fails with an "access denied" error. I'm limited to using .net 1.1 as 2.0 isn't in our environment throughly and I was told it wouldn't be pushed just for this app.
[Code]...
View 1 Replies
Jul 15, 2011
i am using vb.net express 2008, and i wanted to check if the user had opened the software as admin, or not. windows 7 and windows vista.
View 1 Replies
Mar 3, 2010
I have a video encoder app made with VB6 that users frequently have issues with. The problem that people encounter is that files do not show up in the output folder where my application is set to write them. The output folder is located in C:Program FilesMyAppOutput. Vista users can sometimes click "Compatibility Files" and see the outputted files. Sometimes I must tell users to "Run As Administrator.."
View 1 Replies
May 20, 2012
I understand all about giving Administrative Rights via the manifest. However...I'm sure I will have customers that may not want users to have Admin privileges. Is there a way I can grant rights to just the folder where I am writing data to(database and pdf files). The folder will be in Program Files/my company/....
View 5 Replies