Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: TCPListener over Internet Pin
Harvey Saayman2-Jul-08 1:50
Harvey Saayman2-Jul-08 1:50 
GeneralRe: TCPListener over Internet Pin
İsmail Durmaz2-Jul-08 1:53
İsmail Durmaz2-Jul-08 1:53 
QuestionApplication Projects model Pin
chenli05132-Jul-08 0:05
chenli05132-Jul-08 0:05 
AnswerRe: Application Projects model Pin
leppie2-Jul-08 0:16
leppie2-Jul-08 0:16 
QuestionUserControl and Inheritance Pin
koleraba1-Jul-08 23:41
koleraba1-Jul-08 23:41 
AnswerRe: UserControl and Inheritance Pin
Alan Balkany2-Jul-08 3:51
Alan Balkany2-Jul-08 3:51 
Questionstoring unicode text in mysql Pin
Jayawant Karale1-Jul-08 23:37
Jayawant Karale1-Jul-08 23:37 
AnswerRe: storing unicode text in mysql Pin
ChandraRam1-Jul-08 23:53
ChandraRam1-Jul-08 23:53 
GeneralRe: storing unicode text in mysql Pin
Jayawant Karale3-Jul-08 18:33
Jayawant Karale3-Jul-08 18:33 
GeneralRe: storing unicode text in mysql Pin
ChandraRam3-Jul-08 19:29
ChandraRam3-Jul-08 19:29 
QuestionDeserializing an object into another namespace. Pin
Syed Mehroz Alam1-Jul-08 23:10
Syed Mehroz Alam1-Jul-08 23:10 
AnswerRe: Deserializing an object into another namespace. Pin
Giorgi Dalakishvili1-Jul-08 23:14
mentorGiorgi Dalakishvili1-Jul-08 23:14 
GeneralRe: Deserializing an object into another namespace. Pin
Syed Mehroz Alam1-Jul-08 23:23
Syed Mehroz Alam1-Jul-08 23:23 
GeneralRe: Deserializing an object into another namespace. Pin
Syed Mehroz Alam2-Jul-08 0:15
Syed Mehroz Alam2-Jul-08 0:15 
GeneralRe: Deserializing an object into another namespace. Pin
Giorgi Dalakishvili2-Jul-08 8:12
mentorGiorgi Dalakishvili2-Jul-08 8:12 
QuestionData binding and form Pin
muharrem1-Jul-08 22:22
muharrem1-Jul-08 22:22 
AnswerRe: Data binding and form Pin
N a v a n e e t h1-Jul-08 22:33
N a v a n e e t h1-Jul-08 22:33 
AnswerRe: Data binding and form Pin
Elroy Dsilva2-Jul-08 0:42
Elroy Dsilva2-Jul-08 0:42 
Questionsorting DataGridView which is binded to BindingSource. Pin
jekak1-Jul-08 21:48
jekak1-Jul-08 21:48 
AnswerRe: sorting DataGridView which is binded to BindingSource. Pin
Harvey Saayman1-Jul-08 22:23
Harvey Saayman1-Jul-08 22:23 
Question3D Solid geometry library Pin
Hari_10101-Jul-08 21:26
Hari_10101-Jul-08 21:26 
AnswerRe: 3D Solid geometry library Pin
ajtunbridge2-Jul-08 2:48
ajtunbridge2-Jul-08 2:48 
QuestionDrawing line object in custom user control [modified] Pin
cocoonwls1-Jul-08 21:21
cocoonwls1-Jul-08 21:21 
AnswerRe: Drawing line object in custom user control Pin
Harvey Saayman1-Jul-08 22:33
Harvey Saayman1-Jul-08 22:33 
GeneralRe: Drawing line object in custom user control Pin
cocoonwls2-Jul-08 16:38
cocoonwls2-Jul-08 16:38 
Hi,

yes,i got your idea.But according to your suggestion,how can i put the onpaint method into each line object?Because i don't want all the line object repaint everytime when one of them changed(change location or line width). And the below description i was found is describe what i actually want..

store drawable objects in an array. Each drawable object knows how to draw itself. 
On repaint, just iterate over the array of drawable objects. 
So for a line, create a Line class that implements IDrawable. 
Store the state of the line in the line object so that the line knows where it goes and 
what it looks like. The OS clips the drawing to the dirty drawing rect so that 
only the dirty portion of the screen is redrawn. 
If you call invalidate the entire screen will be redrawn.


thanks in advance

regards
cocoonwls

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.