Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Dave Kreskowiak20-Apr-22 3:51
mveDave Kreskowiak20-Apr-22 3:51 
AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Raphael Adeniji26-Apr-22 8:18
Raphael Adeniji26-Apr-22 8:18 
QuestionWindows.Devices.HumanInterfaceDevice Pin
Member 1556267619-Apr-22 4:29
Member 1556267619-Apr-22 4:29 
AnswerRe: Windows.Devices.HumanInterfaceDevice Pin
OriginalGriff19-Apr-22 6:52
mveOriginalGriff19-Apr-22 6:52 
Rant[REPOST] Windows.Devices.HumanInterfaceDevice Pin
Richard Deeming19-Apr-22 21:24
mveRichard Deeming19-Apr-22 21:24 
QuestionC# - How to capture when a user presses the "X" in the upper right corner Pin
Richard A Knox18-Apr-22 7:19
Richard A Knox18-Apr-22 7:19 
AnswerRe: C# - How to capture when a user presses the "X" in the upper right corner Pin
Victor Nijegorodov18-Apr-22 7:30
Victor Nijegorodov18-Apr-22 7:30 
AnswerRe: C# - How to capture when a user presses the "X" in the upper right corner Pin
Richard MacCutchan18-Apr-22 8:16
mveRichard MacCutchan18-Apr-22 8:16 
QuestionStart the Windows form app from Window service Pin
Member 1481278615-Apr-22 21:29
Member 1481278615-Apr-22 21:29 
AnswerRe: Start the Windows form app from Window service Pin
OriginalGriff15-Apr-22 21:43
mveOriginalGriff15-Apr-22 21:43 
AnswerRe: Start the Windows form app from Window service Pin
Gerry Schmitz16-Apr-22 6:03
mveGerry Schmitz16-Apr-22 6:03 
QuestionAccessing one of many possible objects passed to a function Pin
TNCaver15-Apr-22 11:24
TNCaver15-Apr-22 11:24 
AnswerRe: Accessing one of many possible objects passed to a function Pin
Tony Hill15-Apr-22 21:02
mveTony Hill15-Apr-22 21:02 
GeneralRe: Accessing one of many possible objects passed to a function Pin
TNCaver17-Apr-22 11:16
TNCaver17-Apr-22 11:16 
AnswerRe: Accessing one of many possible objects passed to a function Pin
Mycroft Holmes16-Apr-22 12:56
professionalMycroft Holmes16-Apr-22 12:56 
GeneralRe: Accessing one of many possible objects passed to a function Pin
TNCaver17-Apr-22 11:18
TNCaver17-Apr-22 11:18 
AnswerClarification Pin
TNCaver17-Apr-22 11:14
TNCaver17-Apr-22 11:14 
GeneralRe: Clarification Pin
Mycroft Holmes17-Apr-22 12:10
professionalMycroft Holmes17-Apr-22 12:10 
GeneralRe: Clarification Pin
TNCaver17-Apr-22 14:16
TNCaver17-Apr-22 14:16 
GeneralRe: Clarification Pin
Richard Deeming18-Apr-22 21:56
mveRichard Deeming18-Apr-22 21:56 
AnswerRe: Accessing one of many possible objects passed to a function Pin
Gerry Schmitz18-Apr-22 5:31
mveGerry Schmitz18-Apr-22 5:31 
string s1, s2;

if ( unknownClass is MyBase myBase ) {

   s1 = myBase.CommonProperty;

   if ( unknownClass is ClassOne one ) {
      s2 = one.ClassOneProperty;

   } else if ( unknownClass is ClassTwo two ) {
      s2 = two.ClassTwoProperty;
   }
}      


"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

QuestionHow to trigger an event with a COM port? Pin
Member 1405587913-Apr-22 2:10
Member 1405587913-Apr-22 2:10 
AnswerRe: How to trigger an event with a COM port? Pin
Ralf Meier13-Apr-22 2:47
mveRalf Meier13-Apr-22 2:47 
AnswerRe: How to trigger an event with a COM port? Pin
OriginalGriff13-Apr-22 2:48
mveOriginalGriff13-Apr-22 2:48 
AnswerRe: How to trigger an event with a COM port? Pin
Raphael Adeniji13-Apr-22 11:31
Raphael Adeniji13-Apr-22 11:31 

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.