Click here to Skip to main content
15,915,703 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# barcode decoding library Pin
Kornfeld Eliyahu Peter28-Nov-16 8:20
professionalKornfeld Eliyahu Peter28-Nov-16 8:20 
GeneralRe: C# barcode decoding library Pin
OriginalGriff28-Nov-16 8:43
mveOriginalGriff28-Nov-16 8:43 
GeneralRe: C# barcode decoding library Pin
Kornfeld Eliyahu Peter28-Nov-16 8:54
professionalKornfeld Eliyahu Peter28-Nov-16 8:54 
GeneralRe: C# barcode decoding library Pin
Dave Kreskowiak28-Nov-16 9:00
mveDave Kreskowiak28-Nov-16 9:00 
GeneralRe: C# barcode decoding library Pin
Richard MacCutchan28-Nov-16 21:38
mveRichard MacCutchan28-Nov-16 21:38 
GeneralRe: C# barcode decoding library Pin
Dzilupl28-Nov-16 21:52
Dzilupl28-Nov-16 21:52 
GeneralRe: C# barcode decoding library Pin
Richard MacCutchan28-Nov-16 22:19
mveRichard MacCutchan28-Nov-16 22:19 
GeneralRe: C# barcode decoding library Pin
Dzilupl28-Nov-16 22:48
Dzilupl28-Nov-16 22:48 
GeneralRe: C# barcode decoding library Pin
Richard MacCutchan28-Nov-16 23:01
mveRichard MacCutchan28-Nov-16 23:01 
GeneralRe: C# barcode decoding library Pin
Dave Kreskowiak29-Nov-16 5:48
mveDave Kreskowiak29-Nov-16 5:48 
AnswerRe: C# barcode decoding library Pin
Gerry Schmitz28-Nov-16 11:21
mveGerry Schmitz28-Nov-16 11:21 
AnswerRe: C# barcode decoding library Pin
Andrea Simonassi7-Dec-16 4:18
Andrea Simonassi7-Dec-16 4:18 
QuestionOpen the conditional form ? Pin
Member 245846727-Nov-16 17:56
Member 245846727-Nov-16 17:56 
AnswerRe: Open the conditional form ? Pin
Daniel Pfeffer27-Nov-16 20:57
professionalDaniel Pfeffer27-Nov-16 20:57 
AnswerRe: Open the conditional form ? Pin
OriginalGriff27-Nov-16 21:14
mveOriginalGriff27-Nov-16 21:14 
AnswerRe: Open the conditional form ? Pin
Member 245846729-Nov-16 17:42
Member 245846729-Nov-16 17:42 
QuestionC# Labels Pin
Pavlex427-Nov-16 3:21
Pavlex427-Nov-16 3:21 
GeneralRe: C# Labels Pin
Kornfeld Eliyahu Peter27-Nov-16 3:25
professionalKornfeld Eliyahu Peter27-Nov-16 3:25 
GeneralRe: C# Labels Pin
Pavlex427-Nov-16 3:44
Pavlex427-Nov-16 3:44 
GeneralRe: C# Labels Pin
Kornfeld Eliyahu Peter27-Nov-16 3:50
professionalKornfeld Eliyahu Peter27-Nov-16 3:50 
GeneralRe: C# Labels Pin
Pavlex427-Nov-16 3:53
Pavlex427-Nov-16 3:53 
AnswerRe: C# Labels Pin
OriginalGriff27-Nov-16 5:06
mveOriginalGriff27-Nov-16 5:06 
Create an array (or a List) of Labels, and add the instances to that:
C#
private List<Label> labels = new List<Label();
private int currentLabel = 0;
...
   labels.Add(myLabel1);
   labels.Add(myLabel2);
   labels.Add(myLabel3);
   labels.Add(myLabel4);
   ...
Then in your click handler get the current label from the index:
C#
if (currentLabel < labels.Count)
   {
   Label lab = labels[currentLabel++];
   ... 
   }
else
   {
   ... Stop your timer ...
   }
You can then access the label directly, and do what you want with it.
Your Timer event can also use the labels collection and the index to decide which ones it should be "changing" and which ones it should leave alone.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: C# Labels Pin
Pavlex427-Nov-16 20:27
Pavlex427-Nov-16 20:27 
GeneralRe: C# Labels Pin
OriginalGriff27-Nov-16 20:52
mveOriginalGriff27-Nov-16 20:52 
GeneralRe: C# Labels Pin
Pavlex427-Nov-16 21:07
Pavlex427-Nov-16 21:07 

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.