Click here to Skip to main content
16,020,459 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionContainer control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:35
Bashir Magomedov14-Jun-09 22:35 
AnswerRe: Container control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:57
Bashir Magomedov14-Jun-09 22:57 
QuestionArabic printing with "?" mark Pin
Ahamed Azeem13-Jun-09 20:35
Ahamed Azeem13-Jun-09 20:35 
AnswerRe: Arabic printing with "?" mark Pin
Mycroft Holmes14-Jun-09 19:05
professionalMycroft Holmes14-Jun-09 19:05 
GeneralRe: Arabic printing with "?" mark Pin
Ahamed Azeem14-Jun-09 20:58
Ahamed Azeem14-Jun-09 20:58 
Question[Solved partially work-around found]] VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear [modified] Pin
BillWoodruff13-Jun-09 2:02
professionalBillWoodruff13-Jun-09 2:02 
AnswerRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
Henry Minute15-Jun-09 0:45
Henry Minute15-Jun-09 0:45 
GeneralRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
BillWoodruff15-Jun-09 3:52
professionalBillWoodruff15-Jun-09 3:52 
Thanks, Henry,

Summary : turns out the problem was with the side-effects of using Dock = DockStyle.Fill on my Row Panels. Whether this is VS 2010 or me : don't know (my machine with VS 2008 is down). Fix turned out to be pretty easy : just manually set the tops of the Row Panel objects.

In fact I did play with both AutoScrollMargin and AutoScrollMinSize properties; tried setting them both 32,32, setting them both to 64,64, as well using them at their default values of 0,0 : no change in behavior in my panel.

So then I thought maybe the problem is related to the fact the Panel is being hosted inside a Panel of a SplitContainer. So I took the main panel out of the SplitContainer and put it directly on the form : same result.

So I set up a test program : no problem forcing horizontal scrollbars to appear with a Panel on the Form or inside one of the Panels of a SplitContainer !

Back to the drawing board : I discovered that what is suppressing the display of the Horizontal Scrollbar is setting the Dock property of the newly constructed Row Panel object (containing a bunch of Column Panel objects) to 'Top.

By taking out the call to set DockStyle to 'Top : the Horizontal scroll bar appears : of course then all the Row Panels appear on top of each other !

So I tried hard-coding setting the Row Panels height and width after using 'Dock, as well as before : no change. I experimented with many variations of setting Dock before and after adding the Row Panel object to the top-level container Panel, etc. No difference.

Seems like whenever I use Dock (followed by 'BringToFront) to cause correct vertical display of the Row Panel objects : it over-rides the width of the RowPanel object and sets it to the size of the container Panel.

Here's a hierarchy of what I am doing :

Outer Container Panel
Row Panel 1
Columm Panel 1
Column Panel 2
Row Panel 2

And so forth. Inside the Row Panel the Column Panels are docked Left.

best, Bill

"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

QuestionAliens stole my ToolStrip and ate it for breakfast. (Solution to previous post about a month ago) Pin
Baeltazor11-Jun-09 19:03
Baeltazor11-Jun-09 19:03 
QuestionSyntax error in query expression Pin
krinaljariwala11-Jun-09 3:44
krinaljariwala11-Jun-09 3:44 
AnswerRe: Syntax error in query expression Pin
led mike11-Jun-09 4:44
led mike11-Jun-09 4:44 
GeneralRe: Syntax error in query expression Pin
krinaljariwala11-Jun-09 4:49
krinaljariwala11-Jun-09 4:49 
QuestionVB.NET TableAdapter via Assembly loading Pin
MasterRipper11-Jun-09 0:55
MasterRipper11-Jun-09 0:55 
NewsWindows 7 Developer Training Kits Released Pin
brucedkyle10-Jun-09 6:55
brucedkyle10-Jun-09 6:55 
QuestionDeployment Error. Pin
FISH7869-Jun-09 12:56
FISH7869-Jun-09 12:56 
AnswerRe: Deployment Error. Pin
EliottA9-Jun-09 14:02
EliottA9-Jun-09 14:02 
GeneralRe: Deployment Error. Pin
FISH7869-Jun-09 14:30
FISH7869-Jun-09 14:30 
QuestionHow to restrict no of copies in printdialog of any printer Pin
manjari kar8-Jun-09 20:22
manjari kar8-Jun-09 20:22 
AnswerRe: How to restrict no of copies in printdialog of any printer Pin
Dave Kreskowiak9-Jun-09 3:08
mveDave Kreskowiak9-Jun-09 3:08 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
led mike9-Jun-09 4:46
led mike9-Jun-09 4:46 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
Dave Kreskowiak9-Jun-09 12:27
mveDave Kreskowiak9-Jun-09 12:27 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
manjari kar12-Jun-09 18:33
manjari kar12-Jun-09 18:33 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
manjari kar14-Jun-09 18:35
manjari kar14-Jun-09 18:35 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
Dave Kreskowiak15-Jun-09 0:53
mveDave Kreskowiak15-Jun-09 0:53 
GeneralRe: How to restrict no of copies in printdialog of any printer Pin
manjari kar17-Jun-09 1:18
manjari kar17-Jun-09 1:18 

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.