How to use a central communication Class
How to use a central communication Class
How to use a central communication Class
How to use a central communication Class
How to use a central communication Class
How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class
How to use a central communication Class How to use a central communication Class
How to use a central communication Class
Go Back  Xtreme Visual Basic Talk > > > How to use a central communication Class


Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2012, 07:21 AM
calltronics calltronics is offline
Newcomer
 
Join Date: Oct 2011
Posts: 10
Default How to use a central communication Class


Hi,
I am in confusion here as to the best/recommended approach.
I come from a Unix background and not an expert with VB .net classes.

I have a proprietory communication class that talks with a manufacturing machine robot. Within this class (Comm_Server) are the usual suspects, public functions such as GoOnline, GoOffline read and write.

What is the best/recommended way to create an instance of this communication class, so that: -
1. The Main_form application can then control the online/offline
2. An MDI Events_form opened from the Main_Form can "AddHandler" events from this communication class
3. Other MDI forms can access and run the additional functions of the same instance that is registered with the server.

I am not sure whether to: -
1. Public DIM oComm_Server as new Comm_Server in the main application and call it from all the other forms - Main_Form.oComm_Server.read()
2. If I make it a "module" will this have the same effect and only create one instance at run time and shared by all?
3. I know I could pass the pointer of the comms object created in the main form to all MDI forms but that appears to laborious overloading each form.open() command.
4. Or Does anyone know a better way?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to use a central communication Class
How to use a central communication Class
How to use a central communication Class How to use a central communication Class
How to use a central communication Class
How to use a central communication Class
How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class How to use a central communication Class
How to use a central communication Class
How to use a central communication Class
 
How to use a central communication Class
How to use a central communication Class
 
-->