Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
Generalevent not picked up by form Pin
RomanD8-Jun-04 10:16
RomanD8-Jun-04 10:16 
GeneralRe: event not picked up by form Pin
Heath Stewart8-Jun-04 11:35
protectorHeath Stewart8-Jun-04 11:35 
GeneralRe: event not picked up by form Pin
RomanD8-Jun-04 12:09
RomanD8-Jun-04 12:09 
QuestionHow do I lock and Unlock files Pin
silverbullet8-Jun-04 8:32
silverbullet8-Jun-04 8:32 
AnswerRe: How do I lock and Unlock files Pin
Heath Stewart8-Jun-04 8:43
protectorHeath Stewart8-Jun-04 8:43 
GeneralTreeView context Menu C# Windows Forms Pin
OMalleyW8-Jun-04 8:27
OMalleyW8-Jun-04 8:27 
GeneralRe: TreeView context Menu C# Windows Forms Pin
bneacetp8-Jun-04 15:42
bneacetp8-Jun-04 15:42 
GeneralListView Scrollbars disappear Pin
Guinness4Strength8-Jun-04 7:59
Guinness4Strength8-Jun-04 7:59 
Sorry for the long decription...

Description:
I have a windows form which contains a ListView control. I'm automatically resizing the whole Form to fit the desktop. Basically, if the user dragged the form to the bottom of the desktop area, the ListView will shrink in size so that the whole window is still on the screen and none of the form extends past the Desktop bounds. To do this I have anchored the ListView control on all side and I change the Form's height during the LocationChanged Event, which in turn causes the ListView to change it's size due to the anchor. When the ListView shrinks the scrollbars are shown automatically which is what I want to occur. So everything works great up to this point.

Problem:
The problem occurs when I release the left mouse button after dragging the Form to the bottom of the desktop, the ListView Scrollbars disappear. It appears that the ListView is then resized past the bounds of the desktop, but I cannot be sure. When I click to drag the form the scroll bars reappear, but again disappear when I release the button.
Also, if I debug and step throught he code the scrollbars remain after the left mouse button is released....very odd

Any seems a similar problem ?


GeneralRe: ListView Scrollbars disappear Pin
Guinness4Strength8-Jun-04 10:35
Guinness4Strength8-Jun-04 10:35 
GeneralRe: ListView Scrollbars disappear Pin
Heath Stewart8-Jun-04 11:29
protectorHeath Stewart8-Jun-04 11:29 
GeneralRe: ListView Scrollbars disappear Pin
Guinness4Strength9-Jun-04 5:03
Guinness4Strength9-Jun-04 5:03 
GeneralLooping through all controls on a webform Pin
caheo8-Jun-04 7:29
caheo8-Jun-04 7:29 
GeneralRe: Looping through all controls on a webform Pin
Colin Angus Mackay8-Jun-04 7:50
Colin Angus Mackay8-Jun-04 7:50 
GeneralRe: Looping through all controls on a webform Pin
caheo8-Jun-04 8:12
caheo8-Jun-04 8:12 
GeneralRe: Looping through all controls on a webform Pin
Colin Angus Mackay8-Jun-04 8:22
Colin Angus Mackay8-Jun-04 8:22 
GeneralRe: Looping through all controls on a webform Pin
Heath Stewart8-Jun-04 8:41
protectorHeath Stewart8-Jun-04 8:41 
GeneralRe: Looping through all controls on a webform Pin
Dave Kreskowiak8-Jun-04 7:56
mveDave Kreskowiak8-Jun-04 7:56 
GeneralRe: Looping through all controls on a webform Pin
Heath Stewart8-Jun-04 8:18
protectorHeath Stewart8-Jun-04 8:18 
GeneralRe: Looping through all controls on a webform Pin
Dave Kreskowiak8-Jun-04 8:47
mveDave Kreskowiak8-Jun-04 8:47 
GeneralRe: Looping through all controls on a webform Pin
Heath Stewart8-Jun-04 8:48
protectorHeath Stewart8-Jun-04 8:48 
GeneralRe: Looping through all controls on a webform Pin
Andy Brummer8-Jun-04 8:40
sitebuilderAndy Brummer8-Jun-04 8:40 
GeneralPeriod key in numpad Pin
machocr8-Jun-04 5:34
machocr8-Jun-04 5:34 
GeneralRe: Period key in numpad Pin
Heath Stewart8-Jun-04 5:45
protectorHeath Stewart8-Jun-04 5:45 
GeneralRe: Period key in numpad Pin
machocr8-Jun-04 6:37
machocr8-Jun-04 6:37 
Questionwindows that don't receive focus?? Pin
jremignanti8-Jun-04 5:32
jremignanti8-Jun-04 5:32 

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.