Contents

Properties

Methods

How use Net Vbx ?

About Net Vbx Evaluation Version !

How Register ?

Windows and Windows for WorkGroup are  trademark of Microsoft Corporation.

Ezos s.a. and Benoit Huon cannot be held for any problems incurred as a direct or indirect result of NetVbx use or misuse.


Logon

Test this property to know if a user is loged on.

When you change this property:

TRUE 	you log a user (dialog box displayed)

FALSE	you log off a use (dialog box displayed)

comments:

After change value (TRUE/FALSE) test again the value to know if operation was executed successfuly.

i.e:

NetVbx1.Logon=TRUE

if (NetVbx1.Logon=TRUE)

'User successfuly log on

else

'User not log on


Action

Use this property to display WFW Dialog Box:

Possibles Values:

Values	Actions

0	(none)

1	Display "Share As.." Dialog Box (Allows user to create a shared directory)

2	Display "Share As.." Dialog Box (Allows user to create a shared printer)

3	Display "Stop Share.." Dialog Box (Allows user to stop a shared directory)

4	Display "Stop Share.." Dialog Box (Allows user to stop a shared printer)

5	Display "Connect disk.." Dialog Box (Allows user to connect a network drive)

6	Display "Connect printer.." Dialog Box (Allows user to connect a network printer)

7	Display "Password.." Dialog Box (Allows user to change password)

Remark

When you use value 1 and 3:

If the ShareName and the ShareDirectory are empty NetVbx will display the WFW Dialog Box. Fill these properties to avoid Dialog Box.

i.e: Directly share C:\

NetVbx1.ShareName = DRIVEC

NetVbx1.ShareDirectory = C:\

NetVbx1.ReShare=True

NetVbx1.Action = 1

i.e: Display Share Dicrectory Dialog Box

NextVbx1.ShareName=

NetVbx1.ShareDirectory=

NetVbx1.Action = 1

i.e: Directly Stop Share C:\

NetVbx1.ShareName = DRIVEC

NetVbx1.ShareDirectory = C:\

NetVbx1.Action = 3

See Also ReShare


Visible

Must be allways TRUE in evaluation version. See How register ?


ReShare

Use  this property with Action = 1, when Reshare is TRUE the shared resource is share at next restart.


Retry

Use this property with Connect and DisConnect methods, indicate the number of times to retry attempt before generate a failure


ServerName

Use this property with Connect, to indicate the name of the server


DisConnect

Method to disconnect a network resource use with LocalDrive , ForceDisconnect and  Retry propeties.

i.e:

NetVbx1.LocalDrive=D:

NetVbx1. ForceDisconnect= TRUE

NetVbx1.Retry = 3

rc=NetVbx1.DisConnect

if rc then MsgBox Disconnect error message : + NetVbx1.ErrorMessage


PassWord

Use this property with Connect, to indicate the passwor for a specific resource.


Connect

Method to connect a network resource use with PassWord, ServerName, LocalDrive, Retry and ShareName properties.

Remark:

if local drive is NULL NetVbx try to supply a local drive letter for you.

i.e: 	NetVbx1.Server=BENALPHA

NetVbx1.ShareName= USERS

NetVbx1.PassWord= Pass

NetVbx1.LocalDrive= D:

NetVbx1.Retry= 3

rc=NetVbx1.Connect

if rc then MsgBox Connect error message : + NetVbx1.ErrorMessage


LocalDrive

Use this property with Connect and DisConnect methods to indicate the letter of the local drive to be connect or disconnect


ForceDisconnect

Use this property with  DisConnect  method to force disconnection when a file is open or a printer is use on the server machine.


ErrorMessage

ReadOnly

Used to known last error message string


Methods

Connect

DisConnect


Properties

Action

ComputerName

ErrorMessage

ForceDisConnect

LanName

LocalDrive

Logon

PassWord

ReShare

Retry

ServerName

ShareDirectory

ShareName

UserName

Visible


How Register

NetVbx is sold as-is, we tested it with :

Clients: 	Windows for WorkGroup Ver 3.11 UK and US Version

Server: 	OS/2 Lan-Server & Lan-Manager

Windows NT Server Ver 3.1 & 3.5 (Intel & Axp Platform)

Peer to Peer networking Windows for WorkGroup 3.11

NetVbx not support National Language Support, use an other version of WFW US or  UK  can give unexpected result.

For VB4 and Windows NT an OCX is available.

If you need support other servers or other languages send us a mail, maybe we can help you.

If you feel you will benefit from using NetVbx, we encourage you purchase a licensed copy.

Registration is $35 US dollars. (NetVbx & Help File, and no copyright message)

Source registration is $200 dollars. (NetVbx, Help File, and commented sources)

Registration may be done by Copuserve (GO SWREG) or by mailling check or money

CIM Address 100024,262

Mailing Address:	Benoit HUON

38 Rue Guy De Bres

B7000  MONS

BELGIUM (Europe)

Send us your comments and tank you for tasking time to evaluate NetVbx.

Informations:

EZOS s.a.

Win16 & Win32

Developement Eduction Services

Dll, Virtual Device Drivers, NT Drivers, VBX, ODBC Driver, OCX...


About Net Vbx Evaluation Version !

With evaluation version, visible property must be TRUE, and you cannot change size of the control.

At run time and design time, a Copyright message is allways displayed.

How Register ?


How Use Net Vbx

This vbx was designed to allow Visual Basic programmers adds Windows for Workgroup functions in an  applications, and provides networks facilities to users.

With Net Vbx custom control, you are able to use Windows for Workgroup DLLs like COMMDLG.DLL

Use properties to know network informations like "Current user Logged", or to do some actions like connect a network drive.

Use Methods to do network operation without dialog box.

ie:

NetVbx1.Logon=TRUE  display logon Dialog Box.

or

NetVbx1.Logon=FALSE  logon off the current user.

i.e:Connect an network drive without Dialog Box

NetVbx1.Server=BENALPHA

NetVbx1.ShareName= USERS

rc=NetVbx1.Connect


ComputerName

Read Only

Contains the name of the local machine.


LanName

Read Only

Contains the name of the Lan or the Workgroup.


UserName

Read Only

Contains the name of the current User or an empty string if no user logged.


ShareName

Use this property with Action 1 and 3.

Also when you call Connect and DisConnect methods.

When this property and ShareName porperty are set the dialog box is not displayed

FILL IN UPPERCASE


ShareDirectory

Use this property with Action 1 and 3.

Also when you call Connect and DisConnect methods.

When this property and ShareName porperty are set the dialog box is not displayed

FILL IN UPPERCASE