Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
AnswerRe: autocomplete selection Pin
dan!sh 20-Jun-09 21:42
professional dan!sh 20-Jun-09 21:42 
GeneralRe: autocomplete selection Pin
Iain Wiseman20-Jun-09 22:43
Iain Wiseman20-Jun-09 22:43 
GeneralRe: autocomplete selection Pin
dan!sh 20-Jun-09 23:19
professional dan!sh 20-Jun-09 23:19 
GeneralRe: autocomplete selection Pin
Iain Wiseman21-Jun-09 11:17
Iain Wiseman21-Jun-09 11:17 
QuestionGet PropertyGrid to update? Pin
FocusedWolf20-Jun-09 19:01
FocusedWolf20-Jun-09 19:01 
AnswerRe: Get PropertyGrid to update? Pin
dan!sh 20-Jun-09 23:55
professional dan!sh 20-Jun-09 23:55 
GeneralRe: Get PropertyGrid to update? Pin
FocusedWolf21-Jun-09 9:09
FocusedWolf21-Jun-09 9:09 
GeneralRe: Get PropertyGrid to update? Pin
FocusedWolf21-Jun-09 9:16
FocusedWolf21-Jun-09 9:16 
GeneralRe: Get PropertyGrid to update? Pin
dan!sh 21-Jun-09 16:46
professional dan!sh 21-Jun-09 16:46 
GeneralRe: Get PropertyGrid to update? Pin
FocusedWolf21-Jun-09 19:08
FocusedWolf21-Jun-09 19:08 
GeneralFocus losing in propertygrid Pin
VB 8.07-Jul-09 23:41
VB 8.07-Jul-09 23:41 
QuestionDatagridview combobox in column header Pin
desir10220-Jun-09 13:39
desir10220-Jun-09 13:39 
AnswerRe: Datagridview combobox in column header Pin
MarkB77720-Jun-09 17:40
MarkB77720-Jun-09 17:40 
AnswerRe: Datagridview combobox in column header Pin
Manas Bhardwaj20-Jun-09 21:33
professionalManas Bhardwaj20-Jun-09 21:33 
QuestionRemote desktop shown to another client? Pin
Member 465319820-Jun-09 12:38
Member 465319820-Jun-09 12:38 
QuestionExcel like Selection? Pin
Megidolaon20-Jun-09 12:21
Megidolaon20-Jun-09 12:21 
AnswerRe: Excel like Selection? Pin
Christian Graus20-Jun-09 12:47
protectorChristian Graus20-Jun-09 12:47 
Question?How add a database to my c# project? Pin
H.R(Hamid reza)20-Jun-09 11:12
H.R(Hamid reza)20-Jun-09 11:12 
AnswerRe: ?How add a database to my c# project? Pin
Christian Graus20-Jun-09 11:26
protectorChristian Graus20-Jun-09 11:26 
QuestionRe: ?How add a database to my c# project? Pin
H.R(Hamid reza)21-Jun-09 2:29
H.R(Hamid reza)21-Jun-09 2:29 
QuestionPassing a Graphics object Pin
Member 95042020-Jun-09 10:39
Member 95042020-Jun-09 10:39 
AnswerRe: Passing a Graphics object Pin
0x3c020-Jun-09 10:49
0x3c020-Jun-09 10:49 
GeneralRe: Passing a Graphics object Pin
Member 95042020-Jun-09 11:56
Member 95042020-Jun-09 11:56 
GeneralRe: Passing a Graphics object Pin
Luc Pattyn20-Jun-09 12:14
sitebuilderLuc Pattyn20-Jun-09 12:14 
Hi,


Member 950420 wrote:
I understood the debugger to be telling me that the Graphics object was Null


The exception provides line information when available (normally so while debugging); and of course you have set your Visual Studio editor to always show line numbers (menu Tools/Options/TextEditor/AllLanguages:display line numbers), so you immediately can tell which line went wrong.



Member 950420 wrote:
Why is CreateGraphics() wrong?


CreateGraphics() creates a new, large, complex object, whereas the one in PaintEventArgs is already there. And the one you got from CreateGraphics() needs to be Dispose()d of, otherwise you will run into delayed memory collection situations; anyhow it will slow down your app in case you have frequent repaints (e.g. when animating something).


Member 950420 wrote:
how to do it pages on Google


Whatever you find on the Internet may or may not be correct; lots of examples are incorrect, i.e. they seem to function but contain fundamental flaws that will show under some circumstances. Read a serious book on the topic of interest, read some top-notch articles, and read the documentation, then judge everything you encounter for yourself.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: Passing a Graphics object Pin
Christian Graus20-Jun-09 11:29
protectorChristian Graus20-Jun-09 11:29 

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.