Reputation: 335
How to I get the dimensions of a Control if it's using AutoSize? As I have a Panel and I need to know it's Width after it's auto re-sized and PanelName.Width only seems to give the original width.
This is with a Visual C# Windows Forms Application in Visual Studio 2013.
Upvotes: 0
Views: 1018
Reputation: 7445
It should give you an actual value, also you can subscribe for SizeChanged event of a control and get actual value in its handler.
Upvotes: 2