Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFormatting Datagrid when its Datasource property is set to Collections Pin
Sachin Gokhale3-Sep-07 18:47
Sachin Gokhale3-Sep-07 18:47 
QuestionHow to clear text in combobox Pin
Mekong River3-Sep-07 18:44
Mekong River3-Sep-07 18:44 
AnswerRe: How to clear text in combobox Pin
Tom Deketelaere3-Sep-07 20:40
professionalTom Deketelaere3-Sep-07 20:40 
GeneralRe: How to clear text in combobox Pin
Mekong River3-Sep-07 21:47
Mekong River3-Sep-07 21:47 
QuestionStoring drawn graphics for repaint Pin
jensenx3-Sep-07 17:34
jensenx3-Sep-07 17:34 
AnswerRe: Storing drawn graphics for repaint Pin
Colin Angus Mackay4-Sep-07 0:54
Colin Angus Mackay4-Sep-07 0:54 
AnswerRe: Storing drawn graphics for repaint Pin
Dave Kreskowiak4-Sep-07 2:13
mveDave Kreskowiak4-Sep-07 2:13 
AnswerRe: Storing drawn graphics for repaint Pin
Luc Pattyn4-Sep-07 3:19
sitebuilderLuc Pattyn4-Sep-07 3:19 
Alternatively, you can split your code in two parts:

1. do the lengthy calculations and save their results in some data structure, without
drawing anything, then call Invalidate()

2. in your Paint handler, paint the drawing based on the content of your data structure


You have to balance this approach to the one based on a hidden bitmap: if you need lots
of resizing, this approach may be more appropriate since you can resize analytically
rather than by the pixels. If your output is more of a painting than a drawing, having
a bitmap probably would be better.

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: Storing drawn graphics for repaint Pin
jensenx4-Sep-07 7:16
jensenx4-Sep-07 7:16 
QuestionRegenerating Datasets and table adapters Pin
Mr Oizo3-Sep-07 10:55
Mr Oizo3-Sep-07 10:55 
AnswerRe: Regenerating Datasets and table adapters Pin
Christian Graus3-Sep-07 12:37
protectorChristian Graus3-Sep-07 12:37 
GeneralRe: Regenerating Datasets and table adapters Pin
Mr Oizo3-Sep-07 23:16
Mr Oizo3-Sep-07 23:16 
GeneralRe: Regenerating Datasets and table adapters Pin
Dave Kreskowiak4-Sep-07 4:20
mveDave Kreskowiak4-Sep-07 4:20 
QuestionAccessing Exchange server public folders Pin
manisghouri3-Sep-07 5:49
manisghouri3-Sep-07 5:49 
Questioncombobox: append Pin
Tom Deketelaere3-Sep-07 4:21
professionalTom Deketelaere3-Sep-07 4:21 
AnswerRe: combobox: append Pin
Johan Hakkesteegt4-Sep-07 2:11
Johan Hakkesteegt4-Sep-07 2:11 
GeneralRe: combobox: append Pin
Tom Deketelaere4-Sep-07 3:31
professionalTom Deketelaere4-Sep-07 3:31 
Questionlines in multiline rich text box Pin
BooleanTrue3-Sep-07 3:58
professionalBooleanTrue3-Sep-07 3:58 
AnswerRe: lines in multiline rich text box Pin
Luc Pattyn3-Sep-07 5:47
sitebuilderLuc Pattyn3-Sep-07 5:47 
GeneralRe: lines in multiline rich text box Pin
Paul Conrad3-Sep-07 7:12
professionalPaul Conrad3-Sep-07 7:12 
GeneralRe: lines in multiline rich text box Pin
Luc Pattyn3-Sep-07 7:30
sitebuilderLuc Pattyn3-Sep-07 7:30 
GeneralRe: lines in multiline rich text box Pin
Paul Conrad3-Sep-07 7:35
professionalPaul Conrad3-Sep-07 7:35 
QuestionMP3 Playlist Pin
Indra PR3-Sep-07 3:37
Indra PR3-Sep-07 3:37 
AnswerRe: MP3 Playlist Pin
plural3-Sep-07 4:41
plural3-Sep-07 4:41 
GeneralRe: MP3 Playlist Pin
plural3-Sep-07 4:43
plural3-Sep-07 4:43 

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.