Applying Security On A Windows Form-Based?
Jul 8, 2010
I'm creating a windows application form in vs 2005 for a client.. It's a data-tracking application. I have a few questions.The client wants a logon screen to be added into the application (at least any way or method that'll ensure that security was applied). My question in regards to this topic would be; Is it necessary to create a logon screen (or even a user authorization) for a windows form? I realize that in a webform project, security should always be considered and should be applied in all areas. Although with a windows form, I thought you can authorize who can gain access to the application by defining which workstations to install the final production release of the application (when its time to deploy the file). Is this correct?
My next question is, what is the best method to exporting data from EXCEL to SQL tables? I have many Excel files that I'd like to take portions of data from each file and insert them to there proper table.
The last question is about deploying a windows form application. As you can tell, I don't have much experience when it comes to developing Windows Form projects. Anyways back to the topic, When deploying a project, does it provide a .EXE file (installation package) to install the application on the workstation? Or is it a .EXE file of the application, where you can run it and no need to install anything?
View 3 Replies
ADVERTISEMENT
Sep 5, 2011
I need to implement, Controls Based Security in a Windows Forms Application using VB.NET. I tried google but did not get anything much to work with.
I would like if someone, could suggest some books or tutorials.
View 1 Replies
Feb 24, 2011
In a vb 2010 project, I have 2 win forms: Form1 and Form2.
In the Form1 class there is a server-based timer: when the "elapsed event" fires, then I update the text of a Label1 on the Form2. A very simple code:
View 13 Replies
Apr 27, 2011
I have an ASP.Net portal like application with multiple roles. I have placed the subpages of that role in its own directory adding a web config with an authorization allowing only that role. I have css and javascript in the root directory that can not get access inside the protected role folders. How can I allow these folders css/js to have access to all roles. Sorry if this is easy question I have searched but I am rather new to ASP.NET
View 1 Replies
Jul 11, 2011
I work on a vb.net winforms app where we currently are using simple roles for security. We enable/disable specific controls based on if the current user has the required role. We are to the point where this is no longer granular enough.Our application is based on different physical locations we call sites. A user might have permission to do something (for example, edit a site's configuration) at one site but not another. Therefore, we now need to lookup permissions based on current user AND current site. Also, a certain user's permissions may be very specific to themselves ie. no other user's permissions are exactly the same as another user's. Therefore we need a security model that's more permissions based rather than role based.
What's the best way to design a new permissions model that can meet these requirements? I want to make sure that it's easy to implement the checking in the code (I don't want a million if statements sprinkled in our SetUIPermissions methods) and we don't want to have to update every user (400+ and counting) each time we add a new permission. Because of this last requirement I think we need to keep the idea of roles but possibly add/remove exceptions for particular permissions for specific users
View 1 Replies
Dec 23, 2010
how could I resize a window based on option? Its a pretty simple dialog box that I only want to display additional controls if an option is selected, and resize the window.
View 2 Replies
Jun 6, 2009
I've got 1 form, with a TextBox1, where I want the news to pop-up.Now, I've made a kind of admin menu, where there's another TextBox in another form, and I want it in such a way, that when I press the "Accept" button, the text saves itself and shows up in TextBox1.[code]Can I control form 1, with form 2?
View 3 Replies
Apr 3, 2012
I need some help in the creation of a program to generate a security code based on the current date. I need to create something that first multiplies the MMDDYY (ie X=MM * DD * YY) then also adds the MMDDYY then finds the remainder and then multiplies but a specified number. I would like to create a small program that sits in the system tray with this code displayed. The code will always need to be 6 characters, so I might need to pad it with zeros. It has been years since I took basic VB, and I am really rusty.
View 1 Replies
Nov 23, 2009
How to enable / disable menu items based on allowed security roles specified for an item.
View 6 Replies
Jun 15, 2011
I want to use automated testing using autoit for my existing windows form based application. Currently looking at the autoit documentation I couldnt figure out how to start a existing windows application in vb.net and then use it for further automation.
View 3 Replies
Dec 26, 2010
My registration form has to support multi laguages at runtime based on user selection language from combo box in windows based application using vb.net
View 2 Replies
Dec 10, 2010
I have a Windows form which contains a DataGridView within a GroupBox which is within a TabPage which is within a TabControl.The scrollbars property is set to 'Both' so that the user can scroll down to see all available rows in the grid.
I want the Windows Form to initialize to allow the user to see 7 rows but to expanded vertically to the size of 32 rows which is the maximum possible in this application.
Is there a way to size the form dynamically so the Form's Height property can be changed as the DataGridView's rowcount increases?
View 3 Replies
Jan 29, 2010
I use VB.Net 2003 and in my application I create a folder that I will use to create files in it.My problem is that under Windows 7 this folder dont have a full permissions and the files are not been created.Is there any way that I can give full access permissions to this folder?I can do it via VB.Net 200358 and via my Wise installation system.
View 3 Replies
Dec 10, 2010
One of my application is taking a lot of time on Windows 7 compared to XP. What application basically does is it creates some PDF files reads the content and emits on a form and then deletes the files. I ran ANT profiler on both XP and Win 7, and i could notice some differences. On win 7 some CAS related methods are widely called and those method calls were missing on XP.. Is this the reason ? If someone has faced similar issues,
View 4 Replies
Feb 16, 2010
I would like to know how to invoke the Windows Security Dialog (press ctrl+alt+del on a windows workstation NOTE: i dont want the task manager!) programatically.ON AN XP WORKSTATION, don't worry about Win7 or Vista with a quick example in C# (or VB.NET if you must)Ive searched many of the DLL's such as msgina.dll and i can't find it anywhere!
View 4 Replies
Sep 10, 2009
I'm looking for a straightforward means of pulling all the users who have access to a folder with vb.net.All I need is the user name, not the type of access they have.
View 1 Replies
Jan 6, 2011
I'm writing a backup program for personal (for the moment at least) use.
For some directories (network directories / protected directories) credentials are needed to access them.
I can setup different jobs in the program to run at specific times.
These jobs are stored in an XML file.
I want to also store the usernames and passwords which the jobs will need.
What and where would be the best way to store these?
Changing permissions on the directories is not an option.
View 2 Replies
Jun 12, 2011
I am trying to control the security board using the Windows Firewall which connects to my server that was made in VB.Net. My only problem is when I open the Windows Firewall my server crashes. It also displays this error: "Error, win%fir%90y4e does not support this server. upgrade you version of Winsock.". So I upgraded myself to the latest Winsock that there is out there. After doing so I try again and my server still crashes, but this time with a different error. The error this time was the following: "Error, no client is available for win%fir%90y4e. try again later.". What do I do?
View 5 Replies
Jun 2, 2009
I have a treeview control which is being used to browse various folder on the users system drive. It can also be set up to connect network folders using UNC paths e.g "serverfiles". At the moment I'm getting a list of Directories by using My.Computer.FileSystem.GetDirectories however this obviously fails when the folder is password protected.
Is there a way that I can get Windows to open the credentials dialog as you would see in Windows Explorer and deal with the credentials side so then the user name & password is cached as well?
View 2 Replies
Jul 21, 2009
Use the Windows 7 "Windows Security" Dialog Box in VB App?
View 1 Replies
Apr 1, 2009
I have a form which has a tabgroup with three tabs. One of the tabs has a bunch of utilities a domain admin would use. Is there any way to create a login form that grabs info from active directory, and based on the group you're in, the correct tabs will appear on the form. For example if you are in the domain admins group, that tab will appear, if you are in the helpdesk group it won't show.
View 12 Replies
Feb 9, 2012
How to integrate security in vb.net form. I am having a list of ip addresses which are authentic. How can I check if a particular ip address belongs to this group and give access or if the ip address is not from the group and disallow acess.
View 2 Replies
Feb 19, 2009
I'm creating what I believe is an mdi app.I have a login form.I have a class for security.My login form creates an instance of the security class. There are all kinds of security parameters for each user (permissions to different things, etc.)These parameters are part of my security class.Once the user logs in, many other forms will all be opened and closed within the main mdi frame.All of these other forms need the information of the security class to know what the user has permission to do.Do I have to create a new instance of security class for every form in my project? Isn't there a way to store this stuff globally somehow. Retrieve once from the db at the start of the app during login and just get it from this global area everytime?
View 2 Replies
Jun 21, 2010
what WPF based apps are?Is it an application that runs under Silverlight? If so, how?I know; Windows Forms based apps,console apps,DLL _ Class Library Projectsand I've had an introduction to ASP.Net.What I mostly want to know is, if WPF apps are for Silverlight then do they also run in a server based fashion like anASP.NET website would when you create ASP.Net webpages?Is it a way of creating what looks like a FORMS BASED application but it runs in a browser instead or what?Please enlighten me a bit further as I have no idea what WPF is all about.
View 3 Replies
Jul 13, 2010
the next issue, that is only shown when the server is a Windows server 2008 machine , this is the information that I've found
[Code]...
View 2 Replies
Jan 24, 2012
I am trying to build a simple AutoUpdate application using VB.NET. It was quite simple. That is, I put the newest ZIP file in my hosting site, and then download it using WebClient.DownloadFileAsync. After it get downloaded, I extract it using [URL]
But each time I run the unzip.exe using Process.start, Windows 7 always show Open File Security.
Is it possible for VB.NET to bypass such security restriction?
Btw, this is my code of using WebClient.DownloadFileAsync, in case any one google about it and landed on this page :
Public Class AutoUpdate
Dim installationFolder As String = "C:Program Filesxyzabc"
Dim updateFileNameTarget As String
Private Sub btnStartUpdte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStartUpdte.Click
[Code]...
View 1 Replies
Sep 4, 2009
we are making our program in other computer it runs, without errors, but then when we transfer the program to another computer it has an error that says
An error occurred creating the form. See Exception.InnerException for details.The error is: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
View 24 Replies
Nov 4, 2009
When I open VB projects in Visual Studio 2005 and attempt to view a form view designer I have started getting "File Download - Security Warning" Message prompting a .tmp file in the location of my project. If I close all open designers and rebuild the project I am then able to open the designers OK.I saw a suggestion to 'restore file associations' in Visual Studio and tried this but with no success.
View 1 Replies
Jul 27, 2010
I am getting the following error message when I try to call this program from a shared drive on our network;
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at EMAILVB.EmialVB.EmailVB_Load(Object sender, EventArgs e)
[code]....
View 5 Replies
Apr 5, 2012
Everything I know about .Net programming tells me that the behavior I see here is completely impossible. Simple code:
Structure WKSTA_USER_INFO_1
Dim wkui1_username As Integer
Dim wkui1_logon_domain As Integer
[Code]....
When I put a break point in here, I see that after RtlMoveMemory, my wk1 contains a pointer to a username, and all the others are 0. This is consistant. Now, if I change Dim test As String = "" to Dim login As String = "" and run it again, wk1 contains pointers to both username and logon_domain.
If I change it to Dim login As String, it contains a pointer to only the username. Depending on what I change that (completely unused) variable name to, I get a different result.
I have always been under the impression that it cannot possibly matter what you choose to name your variable. And that declaring a variable, and then never using it, cannot possible be different from not having a variable there at all.
I've tried this on 2 computers, with consistant results (one on .Net 3.5 and one on 4.0). When I tried converting it to C#, however, I was not able to reproduce it.
I am aware, by the way, that I can just use System.Environment to get what I need about the current user information; this was old VB6 code that was automatically upgraded (and I've edited it a little to make it more trivial).
View 1 Replies