473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Property 'FlowBreak' accessible only at design mode ?

The FlowLayoutPanel is useful for HTML-like layout.
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


Mar 2 '06 #1
2 7089
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)

Mar 2 '06 #2
I kiss you.
Thank you very much.

Philipe
"Chris Dunaway" <du******@gmail.com> a écrit dans le message de news:
11**********************@v46g2000cwv.googlegroups. com...
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)

Mar 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lecture Snoddddgrass | last post by:
Hi, When I create a UserControl-derived object, I often expose various public properties. One of the things that I hate about the WinForms designer is that if I decide to embed one of these...
7
by: Andrea Moro | last post by:
I'm writing my first windows control library. A simple textbox with some numeric facilities. Well, there is a strange thing that happen. I want to add a locked property. As many other property,...
3
by: Mark Jones | last post by:
I am quite new to ASP and .Net development and I am building a web-based multiple choice exam application. The web page displays the questions using a Repeater control and the answers are nested...
1
by: David | last post by:
Im having trouble tracking down a solution for the following. I have two properties on a custom textbox control I'm creating. If you change the value in PropertyA it may in code change the value of...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
0
by: Saimeera | last post by:
Hi, I am creating a custom control in asp.net 2.0. I want to add items in the collection property when i set the value for a property name 'code' during design mode. I can able to add items...
8
by: Jordi Rico | last post by:
Hi, I've made the next inherited class in Visual Studio 2005: Public Class LabelEx Inherits System.Windows.Forms.Label Sub New() MyBase.New() Me.ForeColor = Color.Black Me.AutoSize = False...
2
by: Lespaul36 | last post by:
I have a control that I have made that uses a custom class for storage of some of the information. I want it to display in the VS.Net 2003 property grid in the IDE like the Font property does, so...
1
by: --== Alain ==-- | last post by:
Hi, I have a huge problem... My property does not appear in the "propertyGrid" of "test Container", when i test my custom control. Here is the custom control code : namespace...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.