1. Computing

Is computer attached to a network?

From , former About.com Guide

Here's a code that will check if a computer is attached to a network

~~~~~~~~~~~~~~~~~~~~~~~~~
procedure TForm1.Button1Click(Sender: TObject) ;
begin
   if GetSystemMetrics(SM_NETWORK) and $01 = $01 then
     ShowMessage('Computer is attached
                  to a network!')
   else
     ShowMessage('Computer is not
                  attached to a network!') ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» How to find the size of a folder?
« How to change the background color on different lines of text in a TListBox

Top Related Searches delphi tips background color delphi

©2013 About.com. All rights reserved.