How can I bind to radio buttons. I have an object with a property called gender that can be either 1 or 2. 1 is male and 2 is female. On my form I have a gender group box with 2 radio buttons. One male and another female of course. How can I bind these. I know I can do it with if statements but since the rest of my form is binded, I figured it would be good to keep it consistent. Thanks
What if I wanted to use a value of a property in a specific object. In the current example I have a gender radio button. I have an property of an object that can be 1 or 2 and I would like 1 to be male and 2 to be female. I say this because I have many sets of radio buttons that are much more complex that just male and female. As in the text of each radio button will be in some cases 10-15 words.
You should be able to create a new form that looks like the messagebox that you desire. Then just show the new messagebox instead of the old.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
I created an application that opens Word documents inside an axwebbrowser object in the windows form. However, if i run 2 instances of the application and open 2 files - FileA.doc and FileB.doc, i lose control of the toolbar icons on FileA.doc as soon as i open FileB.doc in the second instance of the application....ie... i am no longer able to click on the toolbar buttons. The toolbar buttons are visible but do not function and cannot be clicked on. Please help.
1. Run 1st instance of the application and open FileA.doc - All toolbar icons of word for FileA.doc working
2. Open 2nd instance of application and open FileB.doc -All toobar icons working in FileB.doc
3. Coming back to FileA.doc(switching focus back to FileA) - Toolbar icons visible but not working.
4. note: no mater how many times i change focus between FileA and FileB it is only FileB word toolbar icons that is working now.
if i refresh or reopen FileA.doc in the First instance of the application, Control now shifts to FileA.doc and FileB loses functionality of the toolbar icons.
I want to ask a question about Acl .
When i run "cacls" to make access to a specific file in my computer for the first time as follow :
"cacls <path...> /e /d everyone"
it work properly
The problem when i use it to give the access to the file
"cacls <path...> /e /p everyone:f"
it doesn't work and give me "access denied error"
I will be happy to read ur reply.
I'm looking for a point in the right direction with regards to access control. What I mean by AC is the ability to set a View/Add/Edit/Delete restriction on a field in a windows form.
For example, lets say I have a contact screen with a Display name edit box. I only want this field editable for particular users.
Does anyone have any tips on how to achieve this? My initial thought was to store an identifier of all the controls in the db and have a base form loop through through all the controls on a form. It would then apply the access rights. ie. if you only have the right to view a field, set the control to readonly. If you don't have the right to view it, set the control to invisible. This seems like a really cumbersome approach.
Thanks in advance to anyone willing to provide tips and suggestions
I'll be interested in the results of this enquiry, heres my solution.
2 apps required 1 is user manager, 2nd is the client app.
User manager do store and manages the users and groups for each app (we have about 9 apps managed by this system)
Each app has a set of roles (public being the default), servers (we allow the user to select a target server) and objects (forms, buttons, panels/areas etc). Objects are requested by the user and defined by the developer.
Each object has and AEDX flag (add/edit/delete/execute) so a role can see the object (default) but the actions are managed.
User manager generates and enum to used in the development code
Each client app has a security function (using the object name) and death and mayhem to any junior dev who changes a controlled object.
Security function is applied to each object, yes hard coded, the user wants to control.
The business can then control the access to the object they have defined.
While I have built and used this method for over 10 years on ## apps, not once have I had to implement a tightly controlled environment. At most they want to restrict access to a number of forms or possible limit the group who can edit some data.
Shoulda done an article
Never underestimate the power of human stupidity
I've had a thought... what if somehow, a user can put a form into design mode? The user can then for example, set the property of a control to read only. It would then save the settings as a 'template' which could then be linked to a group of users. This template can then be loaded as a form is displayed. Do you think that's feasible?