I have an App which has a MDI main form and several children. The children are opened
from the menu of the MDI form like this:
Case "Nbr Pool List" ' ButtonTool
' Place code here
Dim frm2 As New frmnbrAllocationList
frm2.MdiParent = Me
frm2.Text = "Nbr Pool List"
Now everytime someone opens a form i check what rights they have like below
URstring = (UserRights(gstrUserID, Me.Name))
URread = Trim(URstring.Substring(0, 1))
If URread = 0 Then
My problem now is that i want to prevent the user from opening the form if he does not have the rights ? So in case
URread = 0 i want to prevent the form from opening at all. Buty since i dispose the form the code which opens the
form in the menu complains once it gets to frm2.Show() since the form has been disposed. So is there a better
way to do this ? I want to avoid querying at the calling code since there is many places which could call a form and
it is easyer to manage it when the form loads..
Also is there a way to check if a form has been disposed before i call the frm.show() that way i could
work arround my problem
It’s quite interesting for me as I worked with Excel using vb.net for some time.
Here are some topics which I know want to share with others whom this might help.
First of all if you are working with Excel then you need to Download the Following
Creating an analog clock UserControl seems fairly straight forward. It is, after all, essentially just a circle with several lines in it! Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form. If you have never written code or looked at an SQL statement before, no problem! ... give i…