N
nottarealaddress
(VB 2005)
I'm trying to end up with some nested properties for my MasterMDI
form.These will be boolean variables that will be read in at load time
and used throughtout the lifecycle of the application.
I already know how to create Properties for a form so that I can
reference and set, for example:
Me.Read = True
Me.Write = False
(I do this the redundant way, adding the property in each form.)
What I'd like to end up with is:
Me.Aspect1.Read = True
Me.Aspect1.Write = False
......
Me.Aspect7.Read = False
Me.Aspect7.Write = False
If it can't be done, then I'll just use (Note the lack of dots):
Me.Aspect1Read = True
Me.Aspect1Write = False
......
Me.Aspect7Read = False
Me.Aspect7Write = False
Why? Because there are 9 different aspects and there's not just Read &
Write, there's also Edit and Delete AND if I can get this to work I'll
have very reusable code for the future. This is something we're going
to be doing over and over in our future applications, which will have
dozens of Aspects, so I really only have this app as a learning curve.
I was experimenting with various imports and inherits statements, but
in not knowing what I'm doing, I blew out the MasterMDI form and now
it won't display in Design mode. It's icon has even changed from a
Form to something that's just VBCode (Note the difference between a
form and a module.) The design window only shows up as text and it's
got LOTS of errors.
Now I have to create a new MasterMDI and salvage what I can from the
old one before tackling this issue again. (I know: It's my own fault--
Back Up! Back Up! Back Up!)
Now, I'm a little gun-shy about trying this again without some outside
direction.
The other IMPORTANT info is do I use Imports/Inherits/Implements and
where do I place the statements:
<--Here?
Public Class frmMasterMDI
<--Here?
Dim str As String
<--Here?
Private Sub Button_Click
End Sub
End Class
I think once I find this out, I will be better able to wrap my head
around VB.NET
Thank you in Advance,
-Scott
I'm trying to end up with some nested properties for my MasterMDI
form.These will be boolean variables that will be read in at load time
and used throughtout the lifecycle of the application.
I already know how to create Properties for a form so that I can
reference and set, for example:
Me.Read = True
Me.Write = False
(I do this the redundant way, adding the property in each form.)
What I'd like to end up with is:
Me.Aspect1.Read = True
Me.Aspect1.Write = False
......
Me.Aspect7.Read = False
Me.Aspect7.Write = False
If it can't be done, then I'll just use (Note the lack of dots):
Me.Aspect1Read = True
Me.Aspect1Write = False
......
Me.Aspect7Read = False
Me.Aspect7Write = False
Why? Because there are 9 different aspects and there's not just Read &
Write, there's also Edit and Delete AND if I can get this to work I'll
have very reusable code for the future. This is something we're going
to be doing over and over in our future applications, which will have
dozens of Aspects, so I really only have this app as a learning curve.
I was experimenting with various imports and inherits statements, but
in not knowing what I'm doing, I blew out the MasterMDI form and now
it won't display in Design mode. It's icon has even changed from a
Form to something that's just VBCode (Note the difference between a
form and a module.) The design window only shows up as text and it's
got LOTS of errors.
Now I have to create a new MasterMDI and salvage what I can from the
old one before tackling this issue again. (I know: It's my own fault--
Back Up! Back Up! Back Up!)
Now, I'm a little gun-shy about trying this again without some outside
direction.
The other IMPORTANT info is do I use Imports/Inherits/Implements and
where do I place the statements:
<--Here?
Public Class frmMasterMDI
<--Here?
Dim str As String
<--Here?
Private Sub Button_Click
End Sub
End Class
I think once I find this out, I will be better able to wrap my head
around VB.NET
Thank you in Advance,
-Scott