E
eBob.com
I've done usercontrols with constructors and usercontrols using the IDE.
But I guess I've never used the IDE to do a usercontrol with a constructor.
When I'm working in usercontrol.vb, under (Declarations) I can click on New
(although it's greyed out) and I'm taken to a New Sub but in
usercontrol.Designer.vb. I'm under the distinct impression that I really
shouldn't mess with xxxxxxxx.Designer.vb. So, question 1, how do I do a
constructor for a usercontrol using the IDE? Is it OK to modify the New sub
in usercontrol.Designer.vb? Can I add parameters? I'm pretty sure I can
get away with both but is that the right thing to do?
Also, while researching this problem I noticed that the existing New sub
does not do a MyBase.New. I thought that any class that Inherts a class
must issue MyBase.New. Question 2, how does the IDE's New Sub for a
usercontrol get away without doing that?
Can anyone help me with these questions?
Thanks, Bob
But I guess I've never used the IDE to do a usercontrol with a constructor.
When I'm working in usercontrol.vb, under (Declarations) I can click on New
(although it's greyed out) and I'm taken to a New Sub but in
usercontrol.Designer.vb. I'm under the distinct impression that I really
shouldn't mess with xxxxxxxx.Designer.vb. So, question 1, how do I do a
constructor for a usercontrol using the IDE? Is it OK to modify the New sub
in usercontrol.Designer.vb? Can I add parameters? I'm pretty sure I can
get away with both but is that the right thing to do?
Also, while researching this problem I noticed that the existing New sub
does not do a MyBase.New. I thought that any class that Inherts a class
must issue MyBase.New. Question 2, how does the IDE's New Sub for a
usercontrol get away without doing that?
Can anyone help me with these questions?
Thanks, Bob