473,320 Members | 1,914 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.

how can I call other project form when I run my start project?

Hi There

I have two vb.net window projects made by vb.net, when I run one project and
click a button in this project window form, how can I call other project
window form ?

Thanks

Tony
Nov 20 '05 #1
3 1521
* "Tony Dong" <it****@hotmail.com> scripsit:
I have two vb.net window projects made by vb.net, when I run one project and
click a button in this project window form, how can I call other project
window form ?


That's not possible. You may want to put the forms into a class library
and reference this library from your Windows Forms project.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2
You can do this, as long as you put your second project forms in a .dll
instead of a .exe (class library for example).
OR you could use reflection to load an exe.

Here's sample code.

Dim dude As [Assembly]
dude = System.Reflection.Assembly.LoadFile("C:\Documents and
Settings\smalik\My Documents\Visual Studio
Projects\Solution1\WindowsApplication2\bin\Windows Application2.exe")
Dim frm2 As System.Windows.Forms.Form =
dude.CreateInstance("WindowsApplication2.Form1")
frm2.Show()

Thats it.

- Sahil Malik
Independent Consultant.
"Tony Dong" <it****@hotmail.com> wrote in message
news:O2*************@TK2MSFTNGP10.phx.gbl...
Hi There

I have two vb.net window projects made by vb.net, when I run one project and click a button in this project window form, how can I call other project
window form ?

Thanks

Tony

Nov 20 '05 #3
You can do this, as long as you put your second project forms in a .dll
instead of a .exe (class library for example).
OR you could use reflection to load an exe.

Here's sample code.

Dim dude As [Assembly]
dude = System.Reflection.Assembly.LoadFile("C:\Documents and
Settings\smalik\My Documents\Visual Studio
Projects\Solution1\WindowsApplication2\bin\Windows Application2.exe")
Dim frm2 As System.Windows.Forms.Form =
dude.CreateInstance("WindowsApplication2.Form1")
frm2.Show()

Thats it.

- Sahil Malik
Independent Consultant.
"Tony Dong" <it****@hotmail.com> wrote in message
news:O2*************@TK2MSFTNGP10.phx.gbl...
Hi There

I have two vb.net window projects made by vb.net, when I run one project and click a button in this project window form, how can I call other project
window form ?

Thanks

Tony

Nov 20 '05 #4

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

Similar topics

3
by: ¤ Alias | last post by:
I have a function named getID3info (lvwDiscInfo.SelectedItem). What is the difference between getID3info (lvwDiscInfo.SelectedItem) and Call getID3info(lvwDiscInfo.SelectedItem) ?
3
by: Le, Thanh-Nhan | last post by:
Hi, I am a beginer in .NET. Is there an assistant or a free tool as in VB6 for generating a complete project frame in VS .NET. Thanks Nhan
5
by: Serge | last post by:
Hi, I am having a thread hang problem in my c# code. The example on the website: http://csharp.web1000.com/ is a simplified version of my problem. You will see in the form that a...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
7
by: Sheikko | last post by:
Hi all, i have an application and i wan to call another program into it, like notepad, so when i minimize the notepad, or maximize, it must rest in my application. thank you
14
by: pigeonrandle | last post by:
Hi, This is an answer, not a question. I hope it helps you since i was messing around for ages trying to get information on this: For anyone else wanting to create a test c++nativedll/c# project...
4
by: minermadison | last post by:
Hello, I need to have a .dll start up and pass some information to an .exe, then receive some information back. The only way I can think of doing this currently is to use Process.Start and/or...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
0
by: tomb | last post by:
Can anybody help me by checking if I have correct call signatures? In my C# Windows Form project (VS2008) I am using dll which has been written for Visual C++ 6.0: This function code is used to...
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.