Click here to Skip to main content
16,016,067 members
Home / Discussions / C#
   

C#

 
GeneralRe: updating a database Pin
Hugo Hallman21-Oct-04 3:03
Hugo Hallman21-Oct-04 3:03 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 3:11
Colin Angus Mackay21-Oct-04 3:11 
GeneralRe: updating a database Pin
steve_rm21-Oct-04 3:53
steve_rm21-Oct-04 3:53 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 5:02
Colin Angus Mackay21-Oct-04 5:02 
QuestionHigh performance buffer pooling? Pin
Hugo Hallman21-Oct-04 2:40
Hugo Hallman21-Oct-04 2:40 
AnswerRe: High performance buffer pooling? Pin
Heath Stewart21-Oct-04 7:41
protectorHeath Stewart21-Oct-04 7:41 
GeneralScrollBar Problem Pin
ee9903521-Oct-04 2:07
ee9903521-Oct-04 2:07 
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 7:26
protectorHeath Stewart21-Oct-04 7:26 
Why are you removing all the PictureBoxes just to remove a single one? Use a little simple math and just reposition all the PictureBoxes after the one you removed consecutively. That's much more efficient and much less memory- and CPU-intensive. But if you really do have a around a thousand PictureBoxes then memory will alread be a problem for you. Use a more efficient application design where you don't allocate memory for a rich control like the PictureBox for each image when most won't even appear, but draw the images yourself (Graphics.DrawImage makes easy work of this) onto a single control based on the position of the scroll bar which you can manage yourself.

As for your immediately problem, set AutoScroll to false. You may loose the scrollbars temporarily but at least it isn't changing sizes constantly (which is eating even more CPU cycles than you already are by removing all your PictureBoxes and re-adding them).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: ScrollBar Problem Pin
ee9903521-Oct-04 8:46
ee9903521-Oct-04 8:46 
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 9:07
protectorHeath Stewart21-Oct-04 9:07 
GeneralChanging the Form icon Pin
Tony D. Abel21-Oct-04 2:03
Tony D. Abel21-Oct-04 2:03 
GeneralRe: Changing the Form icon Pin
perlmunger21-Oct-04 7:16
perlmunger21-Oct-04 7:16 
GeneralRe: Changing the Form icon Pin
Tony D. Abel22-Oct-04 5:36
Tony D. Abel22-Oct-04 5:36 
GeneralRegister Window Message Pin
ppp00121-Oct-04 1:42
ppp00121-Oct-04 1:42 
QuestionHow to find the window handle of MessageWindow instance of C# compact framework? Pin
ting66821-Oct-04 1:41
ting66821-Oct-04 1:41 
Generalcreate COM in c# Pin
ppp00121-Oct-04 1:32
ppp00121-Oct-04 1:32 
GeneralRe: create COM in c# Pin
perlmunger21-Oct-04 7:02
perlmunger21-Oct-04 7:02 
QuestionHow to convert a string to int ? Pin
Andres Coder21-Oct-04 0:39
Andres Coder21-Oct-04 0:39 
AnswerRe: How to convert a string to int ? Pin
Xiangyang Liu 刘向阳21-Oct-04 0:49
Xiangyang Liu 刘向阳21-Oct-04 0:49 
AnswerRe: How to convert a string to int ? Pin
Yuvaraj N21-Oct-04 1:00
Yuvaraj N21-Oct-04 1:00 
AnswerRe: How to convert a string to int ? Pin
J4amieC21-Oct-04 1:02
J4amieC21-Oct-04 1:02 
GeneralGetting Information about Windows Share Folders Pin
Yuvaraj N21-Oct-04 0:13
Yuvaraj N21-Oct-04 0:13 
GeneralMarshalling Inline Arrays Pin
David M. Kean20-Oct-04 22:42
David M. Kean20-Oct-04 22:42 
GeneralC# com interfacing with c++ Pin
Dylan van Heerden20-Oct-04 22:01
Dylan van Heerden20-Oct-04 22:01 
GeneralRe: C# com interfacing with c++ Pin
perlmunger21-Oct-04 7:22
perlmunger21-Oct-04 7: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.