|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Property 'FlowBreak' accessible only at design mode ?But there is an important problem. 1. IN DESIGN MODE, all is normal. If you insert a Label control on a form, the FlowBreak proprety doe's not appear in property window of the Label. It's normal. If you drag this control on a FlowLayoutPanel (in design mode), the FlowBreak property appears in the property window of the Label control. That is very good BUT 2. IN PROGRAMMATION MODE, something is wrong : If I create dynamically my Label controls on the flowLayoutPanel using something like : Dim LabelControl as new Label Me.FlowLayoutPanel1.Controls.Add (LabelControl) then I CANNOT ACCESS to the FlowBreak property of the control. That is very sad for the dynamic layout of this panel... But someone can give me a solution ? It's important for me. Thanks by advance The FlowBreak property is not provided by the Label it is provided by
the FlowLayoutPanel. If you look in the designer generated code for the label, you will see the code necessary to set this value. It looks like this: Me.flowLayoutPanel1.SetFlowBreak(Me.label1, True) I kiss you.
Thank you very much. Philipe "Chris Dunaway" <dunaw***@gmail.com> a écrit dans le message de news: 1141308641.196325.128***@v46g2000cwv.googlegroups.com...Show quoteHide quote > The FlowBreak property is not provided by the Label it is provided by > the FlowLayoutPanel. If you look in the designer generated code for > the label, you will see the code necessary to set this value. It looks > like this: > > Me.flowLayoutPanel1.SetFlowBreak(Me.label1, True) >
Source and design in two windows
Convert double to string SELECT @@IDENTITY How to put all code generated by the designer in external files (VS2005) ? Setting an object to a UserControl .NET 2.0 Conversion Wizard Flags Me.Cursor? How to use a PDB file Read a text file word by word login/users/roles in ASP.Net? Intermittent VS.Net Pauses during VB.NET code writing |
|||||||||||||||||||||||