Hi Mike,
I am sorry that I may not understand your questions exactly.
Is there a way to prevent events form frying until a form initializes
(during component initialization) loads?
What events do you refer to in the above sentence? Are they the events of
the form? Could you tell me why you want this behavior?
I think you could subscribe these events in the form's Load event handler.
For example, we could subscribe the VisibleChanged event of the form in the
form's Load event handler as follows.
Private Sub FormMunicipalComplaint_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
AddHandler Me.VisibleChanged, AddressOf Form1_VisibleChanged
End Sub
Private Sub Form1_VisibleChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs)
'add your code
End Sub
Is there a way form keeping a form from redrawing its self until al the
updates and events are completed?
Do you mean that you want to redraw the form after all updates and event
are completed? I think you could call the form's SuspendLayout method
before the update begins and call ResumeLayout method after the update
finishes. As for the event, I think you could call Refresh method of the
form as the last line of code in the corresponding event handler.
If I have any misunderstanding or my suggestion doesn't apply to your
scenario, please feel free to point them out.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.