PC Review


Reply
Thread Tools Rate Thread

advice on how to procede with this project

 
 
Daniel
Guest
Posts: n/a
 
      20th Jan 2007
Hi

Do these deviced have nothing at all in common or is it they have a lot in
common with the odd thing different that needs to be on the interface for
those special situations?

My opinion on both your methods you described are that both are not viable.
Let me know in regards to above question as there are better ways forward if
so.



<Peted> wrote in message news:(E-Mail Removed)...
> Hello
>
> Im writing a app that is designed to test and interrogate serial
> devices.
>
> I can do the serial comunication ok
>
> My problem is i have a mdi parent form and i want the interface for
> the serial device to appear as a child form, BUT each device has a
> different interface with different options.
>
> I could in the project creat and compile a form for every new device i
> come across or need to test, but that is very inflexiable.
>
> I want a way to creat the child form as a independant file stored on
> HDD, and use a dialog box to load it and make it pop into my mdi app.
> Is there a way to do this, then i could create and store a new child
> form everytime i need to do so for new devices
>
> or how about is it possible to compile multiple forms into a lib of
> some kind and call it. then i could just update the lib with new
> interface forms
>
>
> any advice appreciated
>
> thanks



 
Reply With Quote
 
 
 
 
Peted
Guest
Posts: n/a
 
      20th Jan 2007
Hello

Im writing a app that is designed to test and interrogate serial
devices.

I can do the serial comunication ok

My problem is i have a mdi parent form and i want the interface for
the serial device to appear as a child form, BUT each device has a
different interface with different options.

I could in the project creat and compile a form for every new device i
come across or need to test, but that is very inflexiable.

I want a way to creat the child form as a independant file stored on
HDD, and use a dialog box to load it and make it pop into my mdi app.
Is there a way to do this, then i could create and store a new child
form everytime i need to do so for new devices

or how about is it possible to compile multiple forms into a lib of
some kind and call it. then i could just update the lib with new
interface forms


any advice appreciated

thanks
 
Reply With Quote
 
David Browne
Guest
Posts: n/a
 
      20th Jan 2007


"Peted" wrote in message news:(E-Mail Removed)...
> Hello
>
> Im writing a app that is designed to test and interrogate serial
> devices.
>
> I can do the serial comunication ok
>
> My problem is i have a mdi parent form and i want the interface for
> the serial device to appear as a child form, BUT each device has a
> different interface with different options.
>
> I could in the project creat and compile a form for every new device i
> come across or need to test, but that is very inflexiable.
>
> I want a way to creat the child form as a independant file stored on
> HDD, and use a dialog box to load it and make it pop into my mdi app.
> Is there a way to do this, then i could create and store a new child
> form everytime i need to do so for new devices
>
> or how about is it possible to compile multiple forms into a lib of
> some kind and call it. then i could just update the lib with new
> interface forms
>
>


Yes. You can compile additional types (forms in your case) into external
assemblies. Load them at run-time, and dynamically load the types in them.
Typically you either use a configuration setting to name the assembly and
type to load, or use a custom attribute on the target type in the assembly.
Or in your case you could just iterate the types in the loaded assembly and
load the first Form you find.

The key is to use .NET Reflection to load the assembly, find the right type
in the assembly, and create an instance of the type.

David

 
Reply With Quote
 
Peted
Guest
Posts: n/a
 
      21st Jan 2007

thanks i will have a think about this

Peted



On Sat, 20 Jan 2007 11:16:51 -0600, "David Browne" <davidbaxterbrowne
no potted (E-Mail Removed)> wrote:

>
>
>"Peted" wrote in message news:(E-Mail Removed)...
>> Hello
>>
>> Im writing a app that is designed to test and interrogate serial
>> devices.
>>
>> I can do the serial comunication ok
>>
>> My problem is i have a mdi parent form and i want the interface for
>> the serial device to appear as a child form, BUT each device has a
>> different interface with different options.
>>
>> I could in the project creat and compile a form for every new device i
>> come across or need to test, but that is very inflexiable.
>>
>> I want a way to creat the child form as a independant file stored on
>> HDD, and use a dialog box to load it and make it pop into my mdi app.
>> Is there a way to do this, then i could create and store a new child
>> form everytime i need to do so for new devices
>>
>> or how about is it possible to compile multiple forms into a lib of
>> some kind and call it. then i could just update the lib with new
>> interface forms
>>
>>

>
>Yes. You can compile additional types (forms in your case) into external
>assemblies. Load them at run-time, and dynamically load the types in them.
>Typically you either use a configuration setting to name the assembly and
>type to load, or use a custom attribute on the target type in the assembly.
>Or in your case you could just iterate the types in the loaded assembly and
>load the first Form you find.
>
>The key is to use .NET Reflection to load the assembly, find the right type
>in the assembly, and create an instance of the type.
>
>David


 
Reply With Quote
 
Peted
Guest
Posts: n/a
 
      21st Jan 2007
These devices have virtually nothing in common. they are all serial
devices, but even when they are similar in function the user
interface i want to lead for each will be different depending on make
and model and certainly the serial codes required will bear no
commonality at all

You may assume each interface i want to load is unique

thanks for any suggestions

Peted





On Sat, 20 Jan 2007 15:40:36 -0000, "Daniel"
<(E-Mail Removed)> wrote:

>Hi
>
>Do these deviced have nothing at all in common or is it they have a lot in
>common with the odd thing different that needs to be on the interface for
>those special situations?
>
>My opinion on both your methods you described are that both are not viable.
>Let me know in regards to above question as there are better ways forward if
>so.
>
>
>
><Peted> wrote in message news:(E-Mail Removed)...
>> Hello
>>
>> Im writing a app that is designed to test and interrogate serial
>> devices.
>>
>> I can do the serial comunication ok
>>
>> My problem is i have a mdi parent form and i want the interface for
>> the serial device to appear as a child form, BUT each device has a
>> different interface with different options.
>>
>> I could in the project creat and compile a form for every new device i
>> come across or need to test, but that is very inflexiable.
>>
>> I want a way to creat the child form as a independant file stored on
>> HDD, and use a dialog box to load it and make it pop into my mdi app.
>> Is there a way to do this, then i could create and store a new child
>> form everytime i need to do so for new devices
>>
>> or how about is it possible to compile multiple forms into a lib of
>> some kind and call it. then i could just update the lib with new
>> interface forms
>>
>>
>> any advice appreciated
>>
>> thanks

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need advice on big project dave Microsoft Dot NET 6 10th May 2009 12:32 PM
need advice on big project dave Microsoft Dot NET 0 9th May 2009 01:55 PM
HDD blues: clarifiaction, plz, so I can procede Susan B. Windows XP Hardware 1 9th Feb 2007 03:13 AM
Project advice RB Smissaert Microsoft Access 4 20th May 2006 02:09 PM
need advice on new project Jon Skelley Microsoft Windows 2000 Networking 0 19th Jul 2003 03:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 AM.