Hello.
I'm developing a Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#.
I have a custom control called PullDownMenu (it inherits from System.Windows.Form.Control). This is the code that I use on a WinForm to show it:
PullDownMenu menu = new PullDownMenu();
menu.Location = new Point(0, 0);
menu.Dock = DockStyle.Fill;
this.Controls.Add(menu);
I've noticed that it size changes during this process. How can I know when it gets its final size?
Yes, I know I can check OnResize event but this event it is called serveral times and I think it can downgrade the perfomance.
Is there an event that is thrown when the control is completely displayed? or when it is added to its parent (on this line: this.Controls.Add(menu);
).
Any adviced?