473,399 Members | 4,254 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,399 software developers and data experts.

Import a form into a solution via vb.net code.

Is there anyway to import a form into a project using vb.net code?
So as an example, if i create a form on a separate project and I copy
the 3 files that it creates per object to the same folder as the
project that i want it to be imported to. I want to be able to run
code that checks that folder to see if there are any new objects to
import. Is there a way?

Aug 17 '07 #1
2 1794
On Aug 17, 10:40 am, Brandon Johnson <xtant.9...@gmail.comwrote:
Is there anyway to import a form into a project using vb.net code?
So as an example, if i create a form on a separate project and I copy
the 3 files that it creates per object to the same folder as the
project that i want it to be imported to. I want to be able to run
code that checks that folder to see if there are any new objects to
import. Is there a way?
Do you mean in the ide? If you do, then I'm sure that there is a way
using the vs extensiblity model. I can't tell you exactly how - since
I haven't done any plugins for a long, long time - but hopefully, you
can read the extensibilty docs and figure it out.

If you mean at runtime in your application, then you are going to have
to compile them into a class library and write code to dynamically
load them. This is actually tricky to get right if you want to
actually isolate them in there own app domain (to protect your main
process). Anyway, I can point you at more details if this is what you
mean.

Tom Shelton

Aug 18 '07 #2
On Aug 18, 10:58 am, Tom Shelton <tom_shel...@comcast.netwrote:
On Aug 17, 10:40 am, Brandon Johnson <xtant.9...@gmail.comwrote:
Is there anyway to import a form into a project using vb.net code?
So as an example, if i create a form on a separate project and I copy
the 3 files that it creates per object to the same folder as the
project that i want it to be imported to. I want to be able to run
code that checks that folder to see if there are any new objects to
import. Is there a way?

Do you mean in the ide? If you do, then I'm sure that there is a way
using the vs extensiblity model. I can't tell you exactly how - since
I haven't done any plugins for a long, long time - but hopefully, you
can read the extensibilty docs and figure it out.

If you mean at runtime in your application, then you are going to have
to compile them into a class library and write code to dynamically
load them. This is actually tricky to get right if you want to
actually isolate them in there own app domain (to protect your main
process). Anyway, I can point you at more details if this is what you
mean.

Tom Shelton
Yes this is exactly what im looking for. Ya i idealy would just like
to make an app that accepts new forms if there are new forms to be
imported into the compiled exe(if thats possible). I guess more or
less i need to know how to make an exe updatable without overwriting
it. Thanks so much for your help.

Aug 22 '07 #3

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

Similar topics

3
by: George P | last post by:
I've run into a strange package related namespace problem. Follow these steps (on UNIX system) to illustrate: ------------------------- mkdir /tmp/mypkg cd /tmp/mypkg touch __init__.py echo...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
3
by: Mark | last post by:
Hi All, Firstly, I am aware from reading previous posts that if someone is determined enough, they will crack an Access Application. However, this problem seems basic but I can't find a...
4
by: Farina | last post by:
Hello, I have a directory on my company network that contains multiple directories that each hold different files, some are dbf files and some are xls files. I need my Access 2000 users to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.