I am currently developing an application which needs to check whether the device's Wifi is connected to it's network (Just return a boolean).

I have no ideas where to start this as I am still a beginner, so this is more of a request of guidance than direct help.

I have googled for hours and only really concluded that "WifiStateConnected" could possibly be used to check it (http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemstate.wifistateconnected.aspx). Am I on the right tracks with this?

I am deploying to Intermec CN3's with Windows Mobile 5

Thank you in advance

Ahhhh also I have tried defining

public static bool WiFiStateConnected { get; }

But without setting it, it will throw the error

"Error - WiFiStateConnected.get' must declare a body because it is not marked abstract or extern. Automatically implemented properties must define both get and set accessors".