Random Thoughtfulness
ContactFX :: Functions »

FlowLayoutPanel Bug

  23/12/10 00:16, by scribbly, Categories: Development, Software, VB.Net, ContactFX

The new year is fast approaching and I get this feeling like ContactFX isn't going to get done for NANY 2011 :(

But I'm trying to at least get a cut down version happening.

I've been working on the Address Control (which is admittedly fairly complex, but I thought it's a main field of an address card... surely?), and I thought that the layout code was just about done. But to my shock / horror / anger the control failed to layout correctly in the FlowLayOut Panel!! But only when the preceding control had a FlowBreak applied...

So, off to search the internet for an answer... and very quickly discovered that Yauhen Safrankou had only recently solved the same problem. Well, in fact, the problem was "solved" by LewisG over at Windows Forms General: Flowlayoutpanel flowbreak bug. It creates unwanted empty space.

To quote Yauhen:

It seems the height of the gap is the same as the height of the second control following after the flow break. And the workaround to get rid of the gap is to add an additional panel of zero size just after the flow break.

Quoted from Workaround an old bug in FlowBreak of FlowLayoutPanel (at Friday, 24 December 2010 12:13:13 AM).

The internet is a wonderful thing when it works :D

No feedback yet

October 2017
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Scribbly is derived from the common name of one of the 10 Eucalypts that have insect trails (scribbles) in the bark. Eucalyptus haemastoma is a dominant species where I live and is commonly known as "Scribbly Gum".

The scribbles on the bark of these magnificent trees often reminded me of the journey of many of my projects: somewhat random, but beautiful in the end.

Search

  XML Feeds

powered by b2evolution
 

©2017 by Perry MOWBRAY

Contact | Help | b2evo skins by Asevo | multi-blog | web hosting company