Forum Post: Re: Parameterized constructor in Visual Designer

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
I assume, you need the constructor with parameters for a UserControl contained in a Form you are designing. You need to use PUBLIC properties instead. Those show up in the property sheet so that you can provide values. If you need to set multiple properties before you react on then, implement this interface: http://msdn.microsoft.com/en-us/library/system.componentmodel.isupportinitialize(v=vs.110).aspx And put your code into the EndInit method. The Visual Designer will generate code that calls this method after the properties are assigned. Gesendet von Surface Pro Von: alextrs82 Gesendet: ‎Mittwoch‎, ‎28‎. ‎Mai‎ ‎2014 ‎01‎:‎15 An: TU.OE.Architecture@community.progress.com Parameterized constructor in Visual Designer Thread created by alextrs82 Hello, Is there any way I can use parameterized constructor in Visual Designer. If not, what other options (so then we can still use Visual Designer to move control) we have? We use 10.2B SP08 Regards, Aliaks Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top