Click here to Skip to main content
15,920,632 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Window resizing Pin
Lamazhab24-Jun-10 13:02
Lamazhab24-Jun-10 13:02 
GeneralRe: Window resizing Pin
Luc Pattyn24-Jun-10 13:08
sitebuilderLuc Pattyn24-Jun-10 13:08 
QuestionAutomatically add a new row when the user presses "Tab" Pin
sri_009915-Jun-10 23:40
sri_009915-Jun-10 23:40 
AnswerRe: Automatically add a new row when the user presses "Tab" Pin
Som Shekhar16-Jun-10 2:05
Som Shekhar16-Jun-10 2:05 
QuestionUSB drive reader Pin
S.Aijaz14-Jun-10 3:45
S.Aijaz14-Jun-10 3:45 
Answercross-post Pin
Luc Pattyn14-Jun-10 3:55
sitebuilderLuc Pattyn14-Jun-10 3:55 
QuestionCustom controll flickers! Pin
venomation9-Jun-10 9:28
venomation9-Jun-10 9:28 
AnswerRe: Custom controll flickers! [modified] Pin
Luc Pattyn9-Jun-10 9:43
sitebuilderLuc Pattyn9-Jun-10 9:43 
there are a few ways to reduce flickering, the most obvious one is to make your Paint handler cheaper, i.e. consume less CPU cycles and fewer objects. In your case, here are some suggestions:

1.
there seems to be an image file that gets loaded and decoded each and every time; I suggest you store that image as a class member and load it only once.

2.
you are calling panel1.HorizontalScroll.Value and panel1.VerticalScroll.Value over and over; you'd better store those in a couple of local variables (ADDED: within your Paint handler of course).

So try these, then re-evaluate the situation.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

modified on Wednesday, June 9, 2010 3:51 PM

GeneralRe: Custom controll flickers! Pin
venomation9-Jun-10 11:42
venomation9-Jun-10 11:42 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn9-Jun-10 12:06
sitebuilderLuc Pattyn9-Jun-10 12:06 
GeneralRe: Custom controll flickers! Pin
venomation9-Jun-10 13:37
venomation9-Jun-10 13:37 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn9-Jun-10 13:44
sitebuilderLuc Pattyn9-Jun-10 13:44 
GeneralRe: Custom controll flickers! Pin
venomation9-Jun-10 14:05
venomation9-Jun-10 14:05 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn9-Jun-10 14:40
sitebuilderLuc Pattyn9-Jun-10 14:40 
GeneralRe: Custom controll flickers! Pin
venomation10-Jun-10 4:11
venomation10-Jun-10 4:11 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn10-Jun-10 4:21
sitebuilderLuc Pattyn10-Jun-10 4:21 
GeneralRe: Custom controll flickers! Pin
venomation10-Jun-10 4:56
venomation10-Jun-10 4:56 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn10-Jun-10 5:16
sitebuilderLuc Pattyn10-Jun-10 5:16 
GeneralRe: Custom controll flickers! Pin
venomation10-Jun-10 5:27
venomation10-Jun-10 5:27 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn10-Jun-10 5:41
sitebuilderLuc Pattyn10-Jun-10 5:41 
GeneralRe: Custom controll flickers! Pin
venomation11-Jun-10 1:44
venomation11-Jun-10 1:44 
GeneralRe: Custom controll flickers! Pin
Luc Pattyn11-Jun-10 1:55
sitebuilderLuc Pattyn11-Jun-10 1:55 
QuestionDynamically data binding in tree view control in windows forms Pin
ims.sanjay1-Jun-10 9:11
ims.sanjay1-Jun-10 9:11 
AnswerRe: Dynamically data binding in tree view control in windows forms Pin
Peace ON1-Jun-10 21:47
Peace ON1-Jun-10 21:47 
AnswerRe: Dynamically data binding in tree view control in windows forms Pin
Mycroft Holmes1-Jun-10 22:27
professionalMycroft Holmes1-Jun-10 22:27 

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.