Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
QuestionSerialPort auto find? Pin
Dirso16-Oct-08 6:30
Dirso16-Oct-08 6:30 
AnswerRe: SerialPort auto find? Pin
Dan Neely16-Oct-08 6:44
Dan Neely16-Oct-08 6:44 
Question[Message Deleted] Pin
Hesham Yassin16-Oct-08 6:16
Hesham Yassin16-Oct-08 6:16 
AnswerRe: how to get a variable content from html body using C#? Pin
Vimalsoft(Pty) Ltd16-Oct-08 6:58
professionalVimalsoft(Pty) Ltd16-Oct-08 6:58 
AnswerRe: how to get a variable content from html body using C#? Pin
Paul Conrad16-Oct-08 7:44
professionalPaul Conrad16-Oct-08 7:44 
GeneralMessage Closed Pin
16-Oct-08 7:48
Hesham Yassin16-Oct-08 7:48 
GeneralRe: how to get a variable content from html body using C#? Pin
Paul Conrad16-Oct-08 7:49
professionalPaul Conrad16-Oct-08 7:49 
QuestionUpdating StatusStrip text from class Pin
Brad Wick16-Oct-08 5:47
Brad Wick16-Oct-08 5:47 
I have a frmMain which has a StatusStrip on it. Inside my class I have a function which checks for internet connection and when the system is not online, I would like for it to update one of the labels on the StatusStrip. I have tried to do some searching and have tried some examples but can not seem to get it to work.

I created the below function in frmMain.cs
public void Set_StatusStrip(string status)
{
    toolStripStatusInternetConnection.Text = "";
}


In inc_functions.cs I have the following function
public void InternetConnectionAvailable()
{
  // code to check for internet connection goes here
  frmMain.Set_StatusStrip("Application Online");
}


The error I get is "An object reference is required for the non-static field, method, or property." Can anyone see what I am doing wrong?
AnswerRe: Updating StatusStrip text from class Pin
Simon P Stevens16-Oct-08 6:02
Simon P Stevens16-Oct-08 6:02 
GeneralRe: Updating StatusStrip text from class Pin
Brad Wick16-Oct-08 6:36
Brad Wick16-Oct-08 6:36 
AnswerRe: Updating StatusStrip text from class Pin
Dirso16-Oct-08 6:55
Dirso16-Oct-08 6:55 
GeneralRe: Updating StatusStrip text from class Pin
DaveyM6916-Oct-08 7:07
professionalDaveyM6916-Oct-08 7:07 
AnswerRe: Updating StatusStrip text from class [modified] Pin
DaveyM6916-Oct-08 7:01
professionalDaveyM6916-Oct-08 7:01 
QuestionDistinguish between Keyboard and basic Barcode Scanner Pin
J-Cod3r16-Oct-08 4:50
J-Cod3r16-Oct-08 4:50 
AnswerRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Simon P Stevens16-Oct-08 5:17
Simon P Stevens16-Oct-08 5:17 
AnswerRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Brad Wick16-Oct-08 6:21
Brad Wick16-Oct-08 6:21 
GeneralRe: Distinguish between Keyboard and basic Barcode Scanner Pin
J-Cod3r16-Oct-08 20:24
J-Cod3r16-Oct-08 20:24 
GeneralRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Brad Wick17-Oct-08 4:12
Brad Wick17-Oct-08 4:12 
AnswerRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Dirso16-Oct-08 6:58
Dirso16-Oct-08 6:58 
AnswerRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Dave Kreskowiak16-Oct-08 7:09
mveDave Kreskowiak16-Oct-08 7:09 
GeneralRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Brad Wick17-Oct-08 12:49
Brad Wick17-Oct-08 12:49 
GeneralRe: Distinguish between Keyboard and basic Barcode Scanner Pin
Dave Kreskowiak17-Oct-08 16:35
mveDave Kreskowiak17-Oct-08 16:35 
QuestionSpeed Up Try Catch Pin
fly90416-Oct-08 4:36
fly90416-Oct-08 4:36 
AnswerRe: Speed Up Try Catch Pin
SeMartens16-Oct-08 4:49
SeMartens16-Oct-08 4:49 
AnswerRe: Speed Up Try Catch Pin
Paul Conrad16-Oct-08 9:24
professionalPaul Conrad16-Oct-08 9:24 

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.