Re: Opinion wanted

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Jack White" <no_spam@xxxxxxxxxxx> wrote in message
news:exvixbMYHHA.4552@xxxxxxxxxxxxxxxxxxxxxxx
I was really looking for a mechanical solution on how to handle this in
.NET (if a mainstream way does in fact exist). I need to prevent users
from selecting certain menu items for instance whenever the current
control in my form is invalid. Simply disabling it until the control is
valid again doesn't cut it since users may become confused as to why it's
suddenly unavailable. The thread is now off-topic however.

If you really want to go with your approach then you could do something like
I did in visual basic 6 to implement security for my menus. I created a
wrapper collection for the menus. When the app started this collection was
populated by passing in a reference to each menu item. Additional
information could be passed into the collection to be associated with each
menu item. I could then iterate through the collection and hide/disable
different menu items based on these flags. You could have a flag to indicate
that the menu should be disabled during user input. If you don't want to
disable the menu the you could check this flag in the menu's click event.

This is starting to get complicated though for no real benefit to the user,
in fact it is a hassle to the user because if they are selecting that menu
they wanted to go to that menu for a reason. More than likely the very
reason is because of the error.

Michael


.



Relevant Pages

  • Re: PLEASE HELP....Post code
    ... You have to substitute the NAME property of your control in here... ... The properties window changes as you change what is selected. ... When you are getting started, change the library to "VBA" (for instance, instead of <all libraries>) and look at the classes of functions -- click on a class and then click on a function in the right pane. ...
    (microsoft.public.access.reports)
  • Re: Actions between user actions
    ... These problems seemed to go away when I started disabling the UserForm ... it during a series of events related to one control, ... UserForm both ensures that the OnTime event fires right away after the ...
    (microsoft.public.excel.programming)
  • Re: CComboBox losing selected value after performing multiple UpdateData
    ... >choose to add a new one or re-use an old one by selecting it. ... spontaneously, that the contents of the edit control will be complete, or even present. ... I'm not sure what bug you are fixing, but it appears that the fact that this code gives ...
    (microsoft.public.vc.mfc)
  • Re: CheckBoxList
    ... DataGrid is a good one for displayed multi-column and customized data. ... as for selecting, of course, it has buildin select feature let a user to ... template databound control which can only populate data through databinding ... Is this achievable using the checkbox list? ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: PLEASE HELP....Properties and Methods
    ... You have to substitute the NAME property of your control in here... ... The properties window changes as you change what is selected. ... To select the form (or report), ...
    (microsoft.public.access.reports)