473,473 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Secure Windows Controls in VB.NET

Hi,

I'd like to show a window in VB.NET with 10 fields. I
want to be able to disable 5 fields if user A has view-
only rights. But if user B has full rights then user B
should be able to change those fields.

This would be a security system that could be applied to
many windows.

I have this in a previous 16-bit programminig language and
wondered what the .NET approach for something like this is
or do I need to bake my own.

Thanks,
Bill

Nov 20 '05 #1
2 881
* "Bill" <an*******@discussions.microsoft.com> scripsit:
I'd like to show a window in VB.NET with 10 fields. I
want to be able to disable 5 fields if user A has view-
only rights. But if user B has full rights then user B
should be able to change those fields.

This would be a security system that could be applied to
many windows.

I have this in a previous 16-bit programminig language and
wondered what the .NET approach for something like this is
or do I need to bake my own.


How did you do it in the 16-bit environment? What's exactly the
problem?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
In the 16-bit environment I had a product with 3 tables
defined - users, doors, access. You put your users in the
users table, doors (equate numbers) could be screens,
fields, whatever Window control that could be disabled or
hidden, and the access table would list what "doors" users
had access to.

When you were designing a screen, you would place a
template on the screen (let's say in .NET you could place
a control on the screen during development) then a list
would display the controls on your screen you were
developing. You would select what controls (fields, radio
buttons, check boxes, etc.) needed to be disabled or
hidden. Every "door" had a number assigned to it.

When you ran your program and the window opened, a piece
of code would check if the current user (determined by
logging in to an application) had access to what controls
on the screen. Depending on the user and access
the "doors" would be disabled or hidden.

Now when you have that situation in 10 applications for
300 users is there a product that does something like that
already?

Hope this all makes sense.

Thanks,
Bill

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sarah Tanembaum | last post by:
I was wondering if it is possible to create a secure database system using RDBMS(MySQL, Oracle, SQL*Server, PostgreSQL etc) and web scripting/programming language(Perl, PHP, Ruby, Java, ASP, etc)...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
2
by: Ron Weldy | last post by:
In the past, I have always handled secure sections of websites using IIS. You put the files you want to transfer data securely in a folder and you indicate that in IIS. If you really need to force...
3
by: Bill | last post by:
I'm running a C#.Net application that is using the HttpWebRequest to upload an xml file to a https site with FIPS complicancy turned on. On the "GetRequestStream()" method I get: "The underlying...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: =?Utf-8?B?TWljaGVsQFZvb3JidXJn?= | last post by:
Hi all, i've built a C# dll / component with some wonderful services to the clients Payroll service. As you might guess, i only want MY pogram to use this DLL. If some developer get's hold of a...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.