Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitter Control Resizing Controls
Message
De
14/05/2008 22:37:33
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01316687
Message ID:
01317208
Vues:
9
Yep, I agree with Eric. Dock your two controls (Dock.Fill) and they'll always "fill" their respective panels automatically.

~~Bonnie


>I have a treeview in the left panel, and a tab strip control in the right panel:
>
>
>private void splitContainer_SplitterMoved(object sender, SplitterEventArgs e)
>{
>    treeView1.Width = splitContainer.Panel1.Width;
>    tabControl.Width = splitContainer.Panel2.Width;
>}
>
>
>
>The treeview resizes fine. The tabstrip control's width is not being set.
>
>If I move the splitter in very small increments, this works fine. Large changes are not
>working.
>
>Anyone know what I'm doing wrong?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform