Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
GeneralRe: Preventing some events from being occured Pin
James T. Johnson18-Mar-03 9:53
James T. Johnson18-Mar-03 9:53 
GeneralRe: Preventing some events from being occured Pin
Meysam Mahfouzi18-Mar-03 17:17
Meysam Mahfouzi18-Mar-03 17:17 
Generalcast rounding defaults Pin
grv57517-Mar-03 20:51
grv57517-Mar-03 20:51 
GeneralRe: cast rounding defaults Pin
BigAndy17-Mar-03 23:23
BigAndy17-Mar-03 23:23 
GeneralSystem.EnterpriseServices Pin
Giles17-Mar-03 12:08
Giles17-Mar-03 12:08 
GeneralRe: System.EnterpriseServices Pin
Jon Newman17-Mar-03 12:31
Jon Newman17-Mar-03 12:31 
GeneralRe: System.EnterpriseServices Pin
Giles17-Mar-03 21:10
Giles17-Mar-03 21:10 
QuestionDetermine results of DockStyle.Fill (size/width) during form initialization? Pin
Anonymous17-Mar-03 9:06
Anonymous17-Mar-03 9:06 
(Precursor)
http://www.codeproject.com/cs/menu/dockingcontrol.asp?target=dockstyle%7Csize
discusses adding controls to a form using AddRange in a specific order.

(The problem)
I am trying to do the following, dynamically in a form constructor:

1. Add TabControl to form. TabControl is set to DockStyle=Fill
2. Add TabPage to TabControl. (Automatically fills TabControl)
3. Add Panel to TabControl.

Problem: I need to access the size of the TabPage AFTER the DockStyle=Fill has come into effect. This is to precisely position the panel in a location on the TabPage.

But during initialization, the only Width/Size I can get from TabPage, is the DefaultSize (100 x 200)

Is there any command I can call to force the TabControl to fill the parent form, then retrieve the new size/width of the contained TabPage after the fill?

Thanks for suggestions.
AnswerRe: Determine results of DockStyle.Fill (size/width) during form initialization? Pin
A.Wegierski17-Mar-03 21:40
A.Wegierski17-Mar-03 21:40 
GeneralRe: Determine results of DockStyle.Fill (size/width) during form initialization? Pin
Anonymous18-Mar-03 7:21
Anonymous18-Mar-03 7:21 
GeneralUpdate a Treeview from a Listview click Pin
vlusardi17-Mar-03 8:49
vlusardi17-Mar-03 8:49 
GeneralRe: Update a Treeview from a Listview click Pin
Stephane Rodriguez.17-Mar-03 21:37
Stephane Rodriguez.17-Mar-03 21:37 
GeneralRe: Update a Treeview from a Listview click Pin
vlusardi18-Mar-03 5:31
vlusardi18-Mar-03 5:31 
GeneralMDI Question Pin
Cody C17-Mar-03 8:14
sussCody C17-Mar-03 8:14 
GeneralRe: MDI Question Pin
Don_s25-Mar-03 3:35
Don_s25-Mar-03 3:35 
GeneralRe: MDI Question Pin
codycaillet25-Mar-03 4:57
codycaillet25-Mar-03 4:57 
GeneralEasy Question for a Web Services Guru... really!! Pin
codeweenie17-Mar-03 7:18
codeweenie17-Mar-03 7:18 
GeneralRe: Easy Question for a Web Services Guru... really!! Pin
codeweenie18-Mar-03 3:08
codeweenie18-Mar-03 3:08 
GeneralOverriding ToString Pin
monrobot1317-Mar-03 5:39
monrobot1317-Mar-03 5:39 
GeneralRe: Overriding ToString Pin
Stephane Rodriguez.17-Mar-03 5:59
Stephane Rodriguez.17-Mar-03 5:59 
GeneralRe: Overriding ToString Pin
monrobot1317-Mar-03 7:02
monrobot1317-Mar-03 7:02 
GeneralRe: Overriding ToString Pin
se99ts17-Mar-03 21:12
se99ts17-Mar-03 21:12 
GeneralRe: Overriding ToString Pin
Stephane Rodriguez.17-Mar-03 21:29
Stephane Rodriguez.17-Mar-03 21:29 
GeneralRe: Overriding ToString Pin
se99ts17-Mar-03 21:35
se99ts17-Mar-03 21:35 
GeneralRe: Overriding ToString Pin
Stephane Rodriguez.17-Mar-03 21:46
Stephane Rodriguez.17-Mar-03 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.