473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

advice on how to procede with this project

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
Jan 20 '07 #1
4 1105
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.

<Petedwrote in message news:7q********************************@4ax.com...
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

Jan 20 '07 #2


"Peted" wrote in message news:7q********************************@4ax.com...
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

Jan 20 '07 #3

thanks i will have a think about this

Peted

On Sat, 20 Jan 2007 11:16:51 -0600, "David Browne" <davidbaxterbrowne
no potted me**@hotmail.comwrote:
>

"Peted" wrote in message news:7q********************************@4ax.com...
>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
Jan 21 '07 #4
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"
<Da*****@vestryonline.comwrote:
>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.

<Petedwrote in message news:7q********************************@4ax.com...
>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
Jan 21 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
4
by: Socheat Sou | last post by:
After a brief, but informative, discussion on Freenode's #zope chatroom, I was advised to consult the gurus on c.l.p. I'm working for a small company who is in desperate need to rewrite it's...
2
by: Andrew | last post by:
I am starting my first C# project and have a design issue which I would appreciate some advice about. I am wondering whether to use dataset to pass information between components or if I should...
11
by: Mark | last post by:
Hi, For the last 2 years I've been developing vehicle tracking/telemetric software for a company as a self employed individual. The project is quiet big, and is going to be there flagship...
9
by: Laban | last post by:
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database...
8
by: shuisheng | last post by:
Dear All, We meet some problem in our project development and sincerely ask for your kind advice. We took eight months to develop a project system with about 50,000 lines of code. The code is...
9
by: Duncan Smith | last post by:
Hello, I find myself in the, for me, unusual (and at the moment unique) position of having to write a web application. I have quite a lot of existing Python code that will form part of the...
3
by: MIUSS | last post by:
Hi! I am modifying some part of source code and I now I am suspended by one thing I really don't understand and I got no one experience with it. I got fully working source code (it reports no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.