Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
QuestionUpdating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
jkirkerx17-Oct-19 12:50
professionaljkirkerx17-Oct-19 12:50 
AnswerRe: Updating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
Luc Pattyn17-Oct-19 16:09
sitebuilderLuc Pattyn17-Oct-19 16:09 
GeneralRe: Updating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
jkirkerx18-Oct-19 6:27
professionaljkirkerx18-Oct-19 6:27 
AnswerRe: Updating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
Richard Deeming18-Oct-19 1:44
mveRichard Deeming18-Oct-19 1:44 
AnswerRe: Updating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
Richard Deeming18-Oct-19 2:02
mveRichard Deeming18-Oct-19 2:02 
GeneralRe: Updating a List record within a record with c# and Linq, looking for something cleaner than add and remove Pin
jkirkerx18-Oct-19 6:41
professionaljkirkerx18-Oct-19 6:41 
AnswerI don't get this with IndexOf not finding the record Pin
jkirkerx18-Oct-19 8:24
professionaljkirkerx18-Oct-19 8:24 
SuggestionNeed help wind form code Pin
AlexJo198516-Oct-19 22:11
AlexJo198516-Oct-19 22:11 
Hi ,

I created an application (windovs form) where in the background of the application ping devices and report the results if they are online. The application works when it starts up, but I need to refresh this code every 1 min. means once i turn on the windovs form it stays on all the time,but my data (label) refreshes every 1 min and prints new ping results.

Thanks in advance

an example of my code that I used to ping

InitializeComponent();
            // 1

            
            Ping ping = new Ping();
            PingReply pingresult = ping.Send("10.10.9.15");

            if (pingresult.Status.ToString() == "Success")
            {
                label1.Text = "Povezan";
                label1.ForeColor = System.Drawing.Color.Green;
                label32.ForeColor = System.Drawing.Color.Green;
                label32.Text = ('\u263b').ToString();

            }
            else
            {
                label1.Text = "Prekid";
                label1.ForeColor = System.Drawing.Color.Red;
                label32.ForeColor = System.Drawing.Color.Red;
                label32.Text = ('\u2639').ToString();
                SoundPlayer simpleSound = new SoundPlayer(@"c:\Windows\Media\Alarm09.wav");
                simpleSound.Play();


this code is required to rotate every 1 min and print new results

GeneralRe: Need help wind form code Pin
dan!sh 16-Oct-19 23:17
professional dan!sh 16-Oct-19 23:17 
GeneralRe: Need help wind form code Pin
Luc Pattyn17-Oct-19 15:41
sitebuilderLuc Pattyn17-Oct-19 15:41 
AnswerRe: Need help wind form code Pin
Richard Deeming18-Oct-19 1:32
mveRichard Deeming18-Oct-19 1:32 
GeneralRe: Need help wind form code Pin
Luc Pattyn18-Oct-19 1:44
sitebuilderLuc Pattyn18-Oct-19 1:44 
GeneralRe: Need help wind form code Pin
Richard Deeming18-Oct-19 3:03
mveRichard Deeming18-Oct-19 3:03 
GeneralRe: Need help wind form code Pin
Luc Pattyn18-Oct-19 3:26
sitebuilderLuc Pattyn18-Oct-19 3:26 
GeneralRe: Need help wind form code Pin
#realJSOP17-Oct-19 2:01
mve#realJSOP17-Oct-19 2:01 
QuestionExistance pointers in c# Pin
Member 774487115-Oct-19 22:38
Member 774487115-Oct-19 22:38 
AnswerRe: Existance pointers in c# Pin
OriginalGriff15-Oct-19 22:40
mveOriginalGriff15-Oct-19 22:40 
AnswerRe: Existance pointers in c# Pin
F-ES Sitecore15-Oct-19 22:47
professionalF-ES Sitecore15-Oct-19 22:47 
AnswerRe: Existance pointers in c# Pin
Richard MacCutchan15-Oct-19 22:58
mveRichard MacCutchan15-Oct-19 22:58 
AnswerRe: Existance pointers in c# Pin
Richard Deeming16-Oct-19 8:02
mveRichard Deeming16-Oct-19 8:02 
AnswerRe: Existance pointers in c# Pin
Anandkumar Prajapati24-Oct-19 22:08
professionalAnandkumar Prajapati24-Oct-19 22:08 
Questionbetter way to serialize a DataView, exclusive of filtered rows ? Pin
BillWoodruff15-Oct-19 21:16
professionalBillWoodruff15-Oct-19 21:16 
AnswerRe: better way to serialize a DataView, exclusive of filtered rows ? Pin
Richard Deeming16-Oct-19 7:57
mveRichard Deeming16-Oct-19 7:57 
GeneralRe: better way to serialize a DataView, exclusive of filtered rows ? Pin
BillWoodruff16-Oct-19 14:45
professionalBillWoodruff16-Oct-19 14:45 
Questionextract pdf images Pin
Member 774487114-Oct-19 23:58
Member 774487114-Oct-19 23:58 

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.