StrataFrame Forum

Inherits MicroFour.StrataFrame.UI.Windows.Forms.DateTimePicker

http://forum.strataframe.net/Topic29152.aspx

By Diu King,Tiong - 12/2/2010

Hi all,

I have create a new class and  Inherits MicroFour.StrataFrame.UI.Windows.Forms.DateTimePicker. I change some of my property of datetimepicker like below,

        Me.CustomFormat = "dd/MM/yyyy"
        Me.Format = System.Windows.Forms.DateTimePickerFormat.Custom
        Me.Size = New System.Drawing.Size(100, 20)
        Me.ResumeLayout(False)


when i build my project and use my custom datetimepicker class, Property still back to default.


Please advice
By Ivan George Borges - 12/2/2010

Hi Tiong. Try this:
  • add a Component to your project
  • edit the YourComponent.Designer.vb
  • Change the Inherits from System.ComponentModel.Component to MicroFour.StrataFrame.UI.Windows.Forms.DateTimePicker
  • Save it all
  • Open YourComponent.vb into its designer and change its properties
  • Rebuild your solution
  • Add your component into your form
By Diu King,Tiong - 12/5/2010

Hi Ivan,

Thanks again for your help. I use add a class instead of add a component and that's why cannot work.
By Ivan George Borges - 12/5/2010

You're welcome. Cool