By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 1,094 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Shell Program

P: n/a
I asked once before and got a good response, but it was not quite what we
needed. I am reposting clarifying my requirements. I want to develop a
shell program that requires the user to login. When they login, I will
retrieve all the programs they can load. When they click on a program to
load, I want to load the program in the shell program and run it from within
the shell program. I have a split container control on my shell form. In
the left I list the programs that can run, in the right pane, I want to load
the program. When I use the following code:

Dim extAssembly As System.Reflection.Assembly =
System.Reflection.Assembly.LoadFrom("D:\testload\T estLoad\TestLoad\bin\Debug\testload.exe")

Dim extForm As Form = extAssembly.CreateInstance("TestLoad.form1", True)

Me.AddOwnedForm(extForm)

extForm.Show()

It loads the program but in a seperate window. I want to be able to set
some properties in the program in a class the progam has loaded (program
properties.cls) and communciate with the form passing values back and forth.
Is this possible with reflection? or is there a better way to do this.
Really, what I am trying to do is a sort of snapin type of architecture that
as we add new programs they can "snap in" to the shell and run and
communicate with the shell program. Any code or tutorial on this would be
great. Thanks.

John
Mar 31 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
More info. I am trying to create an application like MMC that would allow
me to "snap" new appliations in.

John
"John Wright" <ri**********@notmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I asked once before and got a good response, but it was not quite what we
needed. I am reposting clarifying my requirements. I want to develop a
shell program that requires the user to login. When they login, I will
retrieve all the programs they can load. When they click on a program to
load, I want to load the program in the shell program and run it from
within the shell program. I have a split container control on my shell
form. In the left I list the programs that can run, in the right pane, I
want to load the program. When I use the following code:

Dim extAssembly As System.Reflection.Assembly =
System.Reflection.Assembly.LoadFrom("D:\testload\T estLoad\TestLoad\bin\Debug\testload.exe")

Dim extForm As Form = extAssembly.CreateInstance("TestLoad.form1", True)

Me.AddOwnedForm(extForm)

extForm.Show()

It loads the program but in a seperate window. I want to be able to set
some properties in the program in a class the progam has loaded (program
properties.cls) and communciate with the form passing values back and
forth. Is this possible with reflection? or is there a better way to do
this. Really, what I am trying to do is a sort of snapin type of
architecture that as we add new programs they can "snap in" to the shell
and run and communicate with the shell program. Any code or tutorial on
this would be great. Thanks.

John

Mar 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.