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

Windows Forms

 
AnswerRe: mail body have to display in multiple lines Pin
Dave Kreskowiak15-Jun-09 3:57
mveDave Kreskowiak15-Jun-09 3:57 
Questionhow to add multiple envelopes in word doc Pin
srimail0915-Jun-09 0:51
srimail0915-Jun-09 0:51 
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 
[Edit #2]
Please see my reply to Henry Minute for a more detailed analysis of the behavior and a work-around.
[/Edit #2]

Hi,

[Edit #1]
Context : inside a SplitContainer SplitPanel (Panel1) is a Panel (the "Host Panel") which at run-time has other Panels added to it whose height and width may vary. The Host Panel has "Auto-Scroll" set to 'True.
[/Edit #1]

The Vertical Scrollbar appears okay when I put panels inside the Host Panel at run-time and the vertical space used exceeds the Host Panel's height.

But, the Horizontal Scrollbar just won't appear as expected when I put in Panels wider than the Host Panel's horizontal size.

I have tried explicit calls to set the HorizontalScroll Enabled and Visible properties in code with no success :

hostPanel.HorizontalScroll.Enabled = true;
hostPanel.HorizontalScroll.Visible = true;
I did some Googling, and searching here on CP on this, and it looks like a few years ago some folks had some probem with the HScrollbar not showing up if the Panel was docked to an enclosing Form or other Container. Appears that a few years ago many people were having the problem of having the scrollbars on a panel show up when they wanted them hidden Smile | :)

I found this KB[^] at Microsoft :

"Article ID: 908536 - Last Review: August 29, 2007 - Revision: 2.2
The horizontal scroll bar that is used in forms may not respond to mouse controls or actions when you use themes on a Windows XP SP2-based computer"

But that's from 2007 : surely that issue is not still open now (?).

There's an old CP article that uses Interop API calls control Panel scrolling, but I don't want to go there, either.

So I tried every combination of Docking and Anchoring I could think of, including "None" for both Dock and Anchor properties. I tried it with the Panel set to have a very large Maximum size, and a Maximum size set to its initial size at design-time. No change in behavior. I also experimented with setting AutoScroll on the SplitContainer to True and False and observed no change on the Host Panel.

Appreciate any ideas.

thanks, 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

modified on Monday, June 22, 2009 2:28 AM

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 
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 

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.