Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRuntime Error 406 Pin
sharon_s8-Dec-04 4:25
sharon_s8-Dec-04 4:25 
Generaloverloading == and != Pin
Jan R Hansen8-Dec-04 4:08
Jan R Hansen8-Dec-04 4:08 
GeneralRe: overloading == and != Pin
Daniel Turini8-Dec-04 5:21
Daniel Turini8-Dec-04 5:21 
GeneralRe: overloading == and != Pin
Jan R Hansen8-Dec-04 11:41
Jan R Hansen8-Dec-04 11:41 
GeneralRe: overloading == and != Pin
Skynyrd8-Dec-04 23:51
Skynyrd8-Dec-04 23:51 
GeneralDataGrid formatting Pin
wtdoor19658-Dec-04 3:27
wtdoor19658-Dec-04 3:27 
GeneralBitmap Rendering speed Pin
Tristan Rhodes8-Dec-04 3:17
Tristan Rhodes8-Dec-04 3:17 
GeneralRe: Bitmap Rendering speed Pin
Daniel Turini8-Dec-04 5:32
Daniel Turini8-Dec-04 5:32 
The Catalyst wrote:
And are there any techniques to increase the speed at which rendering occurs?
If you care about speed, use GDI or DirectX (in extreme cases) for drawing.
GDI calls should provide enough speed for most uses.

The Catalyst wrote:
Note: I'm rendering this image to a picturebox Image, and redrawing the image on every itteration. I'm still looking for a better way to do this.
Actually, you should only call Invalidate/Update on the control and let it redraw itself when needed (on the Paint event or an overrided OnPaint method). This will keep you from drawing faster than the video card/driver can handle. You'll need only to draw 60 times per second, as the video does not refresh more than this. This means that times you have around 160ms to draw, and flip the buffer when the monitor's vertical retrace happen. What do I mean about "flip the buffer"? Do a bit of search and read about double-buffering, and you'll understand better how to achieve high frame rates, even with a slow drawing.
The .NET framework offers suport for double-buffering, but I suggest you to read more about how it works before using it.


Yes, even I am blogging now!
GeneralRe: Bitmap Rendering speed Pin
Tristan Rhodes8-Dec-04 13:04
Tristan Rhodes8-Dec-04 13:04 
GeneralRe: Bitmap Rendering speed Pin
Tristan Rhodes9-Dec-04 4:06
Tristan Rhodes9-Dec-04 4:06 
GeneralRe: Bitmap Rendering speed Pin
Daniel Turini9-Dec-04 4:26
Daniel Turini9-Dec-04 4:26 
GeneralRe: Bitmap Rendering speed Pin
Tristan Rhodes9-Dec-04 5:21
Tristan Rhodes9-Dec-04 5:21 
GeneralRe: Bitmap Rendering speed Pin
Daniel Turini9-Dec-04 7:18
Daniel Turini9-Dec-04 7:18 
GeneralTextChanged vs Click Pin
realmontanakid8-Dec-04 2:23
realmontanakid8-Dec-04 2:23 
GeneralRe: TextChanged vs Click Pin
Stefan Troschuetz8-Dec-04 2:40
Stefan Troschuetz8-Dec-04 2:40 
GeneralRe: TextChanged vs Click Pin
realmontanakid8-Dec-04 4:14
realmontanakid8-Dec-04 4:14 
GeneralRe: TextChanged vs Click Pin
Stefan Troschuetz8-Dec-04 4:31
Stefan Troschuetz8-Dec-04 4:31 
GeneralRe: TextChanged vs Click Pin
realmontanakid8-Dec-04 4:59
realmontanakid8-Dec-04 4:59 
GeneralRe: TextChanged vs Click Pin
Dave Kreskowiak8-Dec-04 4:50
mveDave Kreskowiak8-Dec-04 4:50 
GeneralRe: TextChanged vs Click Pin
realmontanakid8-Dec-04 5:19
realmontanakid8-Dec-04 5:19 
GeneralRe: TextChanged vs Click Pin
Stefan Troschuetz9-Dec-04 21:59
Stefan Troschuetz9-Dec-04 21:59 
QuestionHow to create an array of textboxes with the disigner ? Pin
rgcolli8-Dec-04 2:22
rgcolli8-Dec-04 2:22 
GeneralBig DB problem Pin
Zamolxes8-Dec-04 1:51
Zamolxes8-Dec-04 1:51 
GeneralRe: Big DB problem Pin
turbochimp8-Dec-04 4:15
turbochimp8-Dec-04 4:15 
GeneralA DataGrid Problem Pin
A.Mohsen8-Dec-04 0:03
A.Mohsen8-Dec-04 0:03 

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.