Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
QuestionRe: Animation for an Agent in C# Pin
Luc Pattyn27-Nov-11 11:46
sitebuilderLuc Pattyn27-Nov-11 11:46 
AnswerRe: Animation for an Agent in C# Pin
Mark Salsbery27-Nov-11 16:19
Mark Salsbery27-Nov-11 16:19 
GeneralRe: Animation for an Agent in C# Pin
Richard Andrew x6427-Nov-11 16:29
professionalRichard Andrew x6427-Nov-11 16:29 
GeneralRe: Animation for an Agent in C# Pin
macantony28-Nov-11 1:12
macantony28-Nov-11 1:12 
AnswerRe: Animation for an Agent in C# Pin
Eddy Vluggen28-Nov-11 8:30
professionalEddy Vluggen28-Nov-11 8:30 
QuestionWinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
BillWoodruff27-Nov-11 2:47
professionalBillWoodruff27-Nov-11 2:47 
AnswerRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
OriginalGriff27-Nov-11 3:16
mveOriginalGriff27-Nov-11 3:16 
GeneralRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
BillWoodruff27-Nov-11 4:06
professionalBillWoodruff27-Nov-11 4:06 
How I wish this would work ! In my innumerable experiments I found:

1. if AutoScroll is set to 'true, setting both Visible and Enabled properties of somePanel.HorizontalScroll will have no effect.

2. if AutoScroll is set to 'false: yes, the HorizontalScrollBar can be forced to appear, as you show, but does not move the Panel when scrolled, at least not in my OuterPanel, which is completely filled at any moment in time with Docked inner Panels.

So, okay, you implement the Scroll Event, and as I drag the scroller, I can monitor the changing values of its position: they are changing.

But, when I mouse-up on the scroller, after moving it: it snaps back to far-left position in the scrollbar, and the Panel is not scrolled at any time !

I also tried, in the code in the main Form that creates a new inner Panel, and inserts it in the OuterPanel, calling:
OuterPanel.ScrollIntoView(newInnerPanel);
OuterPanel.Invalidate();
No result, there, either.

Which is why I did not pursue use of the Scroll event, or ScrollIntoView.

I appreciate your response, and perhaps I should re-direct my attention to: when a new inner panel is added, calculating where its right border is in OuterPanel co-ordinates, and trying to somehow force the horizontal scrollbar position so that the newly added inner Panel is fully visible ?

But, will "forcing" the h-scrollbar scroller position require a pInvoke, and/or actually move the Panel ? mmmm ...

At least when AutoScroll is set to 'true, and the scrollbar appears, the Panel will be moved when you move the scroller.

Looking forward to your continuing exercise of your (greatly admired) skills in finding the 'blind spots' in code.

thanks, Bill
"Anyone who shows me my 'blind spots' gives me the gift of sight." ... a thought from the shallows of the deeply shallow mind of ... Bill

GeneralRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
OriginalGriff27-Nov-11 4:09
mveOriginalGriff27-Nov-11 4:09 
GeneralRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
Luc Pattyn27-Nov-11 11:15
sitebuilderLuc Pattyn27-Nov-11 11:15 
GeneralRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
OriginalGriff27-Nov-11 21:21
mveOriginalGriff27-Nov-11 21:21 
GeneralRe: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
Luc Pattyn27-Nov-11 22:06
sitebuilderLuc Pattyn27-Nov-11 22:06 
Answerpartial solution found : Re: WinForms: visual clipping of docked controls added at run-time to Panel with AutoScroll=true Pin
BillWoodruff27-Nov-11 4:50
professionalBillWoodruff27-Nov-11 4:50 
QuestionAbout this 3D graph in C# Pin
derek091927-Nov-11 1:27
derek091927-Nov-11 1:27 
AnswerRe: About this 3D graph in C# Pin
RobCroll27-Nov-11 16:31
RobCroll27-Nov-11 16:31 
GeneralRe: About this 3D graph in C# Pin
derek091928-Nov-11 0:03
derek091928-Nov-11 0:03 
GeneralRe: About this 3D graph in C# Pin
Alan Balkany28-Nov-11 6:01
Alan Balkany28-Nov-11 6:01 
GeneralRe: About this 3D graph in C# Pin
derek091928-Nov-11 13:37
derek091928-Nov-11 13:37 
Questionconvert IEnumerable to Datatable Pin
jojoba201127-Nov-11 0:11
jojoba201127-Nov-11 0:11 
QuestionMatch Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 7:13
nassimnastaran26-Nov-11 7:13 
AnswerRe: Match Two List Box By Sorting ... Pin
Not Active26-Nov-11 8:05
mentorNot Active26-Nov-11 8:05 
AnswerRe: Match Two List Box By Sorting ... Pin
Luc Pattyn26-Nov-11 8:14
sitebuilderLuc Pattyn26-Nov-11 8:14 
GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 8:42
nassimnastaran26-Nov-11 8:42 
AnswerRe: Match Two List Box By Sorting ... Pin
Luc Pattyn26-Nov-11 9:53
sitebuilderLuc Pattyn26-Nov-11 9:53 
GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 10:22
nassimnastaran26-Nov-11 10:22 

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.