Hi all,


Is there a way to specify where the designer puts code?



I will try to explain...



I have an extender provider on my form that relies on the controls name
but the designer file puts the code "wherever" it likes.



So if I look, at the form.designer.vb file then I will see something
like

...

Me.dtStartDate.ControlIsReadOnly = False

Me.dtStartDate.DatePickerHeight = 22

Me.dtStartDate.DatePickerWidth = 427

Me.dtStartDate.DateValue = New Date(2010, 2, 2, 17, 12, 5, 917)

Me.ControlValueMonitor1.SetControlValueMonitor(Me.dtStartDate, True)

Me.dtStartDate.Name = "dtStartDate"

...



In this case the controls name is not set att the time the provider
(Me.ControlValueMonitor1) is set





What I want is that my
"Me.ControlValueMonitor1.SetControlValueMonitor(Me.dtStartDate, True)"
to be the last line



Me.dtStartDate.ControlIsReadOnly = False

Me.dtStartDate.DatePickerHeight = 22

Me.dtStartDate.DatePickerWidth = 427

Me.dtStartDate.DateValue = New Date(2010, 2, 2, 17, 12, 5, 917)

Me.dtStartDate.Name = "dtStartDate"

Me.ControlValueMonitor1.SetControlValueMonitor(Me.dtStartDate, True)





Any ideas?







Alastair

Reply via email to