Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
Questionsaving in C# Pin
Member 905483831-May-12 3:34
Member 905483831-May-12 3:34 
AnswerREPOST Pin
Dave Kreskowiak31-May-12 4:20
mveDave Kreskowiak31-May-12 4:20 
Questiona code for shorten a path in a grid Pin
Siren931-May-12 3:00
Siren931-May-12 3:00 
AnswerRe: a code for shorten a path in a grid Pin
Richard MacCutchan31-May-12 3:56
mveRichard MacCutchan31-May-12 3:56 
AnswerRe: a code for shorten a path in a grid Pin
BobJanova31-May-12 4:35
BobJanova31-May-12 4:35 
QuestionDataGridView Pin
panto_ph31-May-12 1:31
panto_ph31-May-12 1:31 
AnswerRe: DataGridView Pin
Dave Kreskowiak31-May-12 1:43
mveDave Kreskowiak31-May-12 1:43 
AnswerRe: DataGridView Pin
Luc Pattyn31-May-12 3:56
sitebuilderLuc Pattyn31-May-12 3:56 
Using any Control for individual bit samples is a horrible idea. What you need is one Control for the entire logic analyzer (or maybe one per channel), and within such Control paint all the time points yourself. I would use a Panel, and make extensive use of Graphics.DrawLine; there are only four cases to consider for previous and current sample:
- both 0: draw a horizontal line low;
- both 1: draw a hor line high;
- 0 becomes 1: draw a vertical line, then a hor line high;
- 1 becomes 0: draw a vertical line, then a hor line low.

And no, I don't have an example handy.
I do have an article[^] that gives the basics for graphics, and in essence it says store your data in some structures, then paint those structures inside the (On)Paint handler.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: DataGridView Pin
panto_ph31-May-12 9:35
panto_ph31-May-12 9:35 
AnswerRe: DataGridView Pin
Luc Pattyn31-May-12 12:22
sitebuilderLuc Pattyn31-May-12 12:22 
AnswerRe: DataGridView Pin
BobJanova31-May-12 4:33
BobJanova31-May-12 4:33 
Questioni want complete code for converting .aspx to pdf Pin
Rishali30-May-12 20:23
Rishali30-May-12 20:23 
AnswerRe: i want complete code for converting .aspx to pdf Pin
Roger Wright30-May-12 20:39
professionalRoger Wright30-May-12 20:39 
GeneralRe: i want complete code for converting .aspx to pdf Pin
jamshid0931-May-12 2:13
jamshid0931-May-12 2:13 
GeneralRe: i want complete code for converting .aspx to pdf Pin
Dave Kreskowiak31-May-12 3:39
mveDave Kreskowiak31-May-12 3:39 
AnswerRe: i want complete code for converting .aspx to pdf Pin
Eddy Vluggen30-May-12 20:59
professionalEddy Vluggen30-May-12 20:59 
AnswerRe: i want complete code for converting .aspx to pdf Pin
Dave Kreskowiak31-May-12 1:39
mveDave Kreskowiak31-May-12 1:39 
QuestionImplementing Progress Bar Pin
nEar_mO30-May-12 15:35
nEar_mO30-May-12 15:35 
AnswerRe: Implementing Progress Bar Pin
Mycroft Holmes30-May-12 17:00
professionalMycroft Holmes30-May-12 17:00 
AnswerRe: Implementing Progress Bar Pin
Marcus_231-May-12 1:16
Marcus_231-May-12 1:16 
AnswerRe: Implementing Progress Bar Pin
Philippe Mori31-May-12 7:22
Philippe Mori31-May-12 7:22 
QuestionWANT TO CREATE WIND OR RAIN EFFECT Pin
esaaco30-May-12 10:53
esaaco30-May-12 10:53 
AnswerRe: WANT TO CREATE WIND OR RAIN EFFECT Pin
Pete O'Hanlon30-May-12 11:38
mvePete O'Hanlon30-May-12 11:38 
GeneralRe: WANT TO CREATE WIND OR RAIN EFFECT Pin
esaaco30-May-12 11:53
esaaco30-May-12 11:53 
JokeRe: WANT TO CREATE WIND OR RAIN EFFECT PinPopular
Peter_in_278030-May-12 11:51
professionalPeter_in_278030-May-12 11:51 

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.