Click here to Skip to main content
16,004,836 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Pin
ScottM126-Sep-11 20:40
ScottM126-Sep-11 20:40 
Questiondock a windows form into ppt application window Pin
shama_12325-Sep-11 21:08
shama_12325-Sep-11 21:08 
AnswerRe: dock a windows form into ppt application window Pin
BobJanova26-Sep-11 0:45
BobJanova26-Sep-11 0:45 
AnswerRe: dock a windows form into ppt application window Pin
Dave Kreskowiak26-Sep-11 3:47
mveDave Kreskowiak26-Sep-11 3:47 
QuestionRefrence VSTO Project Pin
Hamid Noahdi25-Sep-11 19:55
Hamid Noahdi25-Sep-11 19:55 
AnswerRe: Refrence VSTO Project Pin
Dalek Dave25-Sep-11 21:46
professionalDalek Dave25-Sep-11 21:46 
QuestionMaking custom (High performance) GUI elements. Pin
biojae25-Sep-11 17:32
biojae25-Sep-11 17:32 
AnswerRe: Making custom (High performance) GUI elements. Pin
BobJanova26-Sep-11 0:52
BobJanova26-Sep-11 0:52 
There are two parts to this question. You don't actually need very much for a custom control if it is simply output, and in fact I'd be tempted just to use a PictureBox and catch Paint. The correct way to do it though would be to inherit from UserControl and override OnPaint. There's some information about how to write general custom controls in my LineEditor article[^] (scroll about half way down), but you probably don't need the user input parts.

The second part is how to draw a 1 dimensional data series (if I'm understanding you correctly, that's just a stripe of pixels?) quickly. 30 fps still gives you 30ms per frame, though you don't want painting to take all of that (obviously), so my gut feeling is that you can just paint normally, with Graphics.FillRectangle, but it depends how many pixels are visible at once. If that is too slow, use one of the fast ways of mucking with bitmap data (a search for Bitmap.LockBits here on CP should find them) to put the frame data into a temporary buffer and then use Graphics.DrawImage to copy it to the control during the paint phase.
GeneralRe: Making custom (High performance) GUI elements. Pin
biojae26-Sep-11 19:33
biojae26-Sep-11 19:33 
QuestionSample C# project Pin
Software200725-Sep-11 12:26
Software200725-Sep-11 12:26 
AnswerRe: Sample C# project Pin
walterhevedeich25-Sep-11 14:13
professionalwalterhevedeich25-Sep-11 14:13 
AnswerRe: Sample C# project Pin
PIEBALDconsult25-Sep-11 14:22
mvePIEBALDconsult25-Sep-11 14:22 
AnswerRe: Sample C# project Pin
Mycroft Holmes25-Sep-11 16:15
professionalMycroft Holmes25-Sep-11 16:15 
AnswerRe: Sample C# project Pin
Abhinav S25-Sep-11 18:33
Abhinav S25-Sep-11 18:33 
AnswerRe: Sample C# project Pin
Richard MacCutchan25-Sep-11 23:12
mveRichard MacCutchan25-Sep-11 23:12 
AnswerRe: Sample C# project Pin
BobJanova26-Sep-11 0:56
BobJanova26-Sep-11 0:56 
AnswerRe: Sample C# project Pin
uspatel26-Sep-11 1:52
professionaluspatel26-Sep-11 1:52 
GeneralRe: Sample C# project Pin
Software200726-Sep-11 17:41
Software200726-Sep-11 17:41 
QuestionMonitor a txt log file for keyword Pin
Tom Remmert25-Sep-11 9:20
Tom Remmert25-Sep-11 9:20 
AnswerRe: Monitor a txt log file for keyword Pin
Luc Pattyn25-Sep-11 9:59
sitebuilderLuc Pattyn25-Sep-11 9:59 
GeneralRe: Monitor a txt log file for keyword Pin
Tom Remmert25-Sep-11 10:12
Tom Remmert25-Sep-11 10:12 
AnswerRe: Monitor a txt log file for keyword Pin
Luc Pattyn25-Sep-11 10:26
sitebuilderLuc Pattyn25-Sep-11 10:26 
GeneralRe: Monitor a txt log file for keyword Pin
BobJanova26-Sep-11 0:59
BobJanova26-Sep-11 0:59 
AnswerRe: Monitor a txt log file for keyword Pin
BillWoodruff25-Sep-11 10:36
professionalBillWoodruff25-Sep-11 10:36 
AnswerRe: Monitor a txt log file for keyword Pin
PIEBALDconsult25-Sep-11 16:49
mvePIEBALDconsult25-Sep-11 16:49 

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.