Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
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 
Add a static method to the Form which checks the conditions, and if they are all fine, creates the instance and displays it. Then all you have to do is call the static method.
So if your condition was for example "number of elements greater than five"
C#
public static Form1 CreateIfNeeded(int count)
   {
   if (count > 5)
      {
      Form1 f = new Form1();
      f.Show();
      return f;
      }
   return null;
   }
And call it:
C#
Form1 f = Form1.CreateIfNeeded(MyList.Count);

Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

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 
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 
GeneralRe: C# Labels Pin
OriginalGriff27-Nov-16 21:18
mveOriginalGriff27-Nov-16 21:18 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 5:54
mveGerry Schmitz28-Nov-16 5:54 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 6:45
Pavlex428-Nov-16 6:45 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 7:00
mveGerry Schmitz28-Nov-16 7:00 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 7:14
Pavlex428-Nov-16 7:14 
GeneralRe: C# Labels Pin
Gerry Schmitz28-Nov-16 7:24
mveGerry Schmitz28-Nov-16 7:24 
GeneralRe: C# Labels Pin
Pavlex428-Nov-16 8:03
Pavlex428-Nov-16 8: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.