Click here to Skip to main content
16,011,647 members
Home / Discussions / C#
   

C#

 
GeneralRe: Service doesn't show in Services. Pin
Colin Angus Mackay29-Nov-03 13:49
Colin Angus Mackay29-Nov-03 13:49 
GeneralPiecing 200 jpgs into a single jpg Pin
ke5in29-Nov-03 6:15
ke5in29-Nov-03 6:15 
GeneralRe: Piecing 200 jpgs into a single jpg Pin
Christian Graus30-Nov-03 10:48
protectorChristian Graus30-Nov-03 10:48 
GeneralRe: Piecing 200 jpgs into a single jpg Pin
ke5in1-Dec-03 5:47
ke5in1-Dec-03 5:47 
GeneralCalling One Form in a Project from Another Pin
Chuck Schmidt29-Nov-03 2:37
Chuck Schmidt29-Nov-03 2:37 
GeneralRe: Calling One Form in a Project from Another Pin
Psi5729-Nov-03 5:26
Psi5729-Nov-03 5:26 
GeneralRe: Calling One Form in a Project from Another Pin
Heath Stewart29-Nov-03 15:06
protectorHeath Stewart29-Nov-03 15:06 
GeneralRe: Calling One Form in a Project from Another Pin
Heath Stewart29-Nov-03 15:12
protectorHeath Stewart29-Nov-03 15:12 
Don't think of projects - think of assemblies. Just like you create a form from the System.Windows.Forms, you do from another projects. One cool trick in VS.NET is to add a project reference as a dependency to the project that needs it. Just right-click on the project that needs a class from the other project, click Add Reference, then click the Projects tab. Double-click the project to add it and click OK to close the dialog. The great thing about this is that when you do a Debug, Release, or custom build configuration, the appropriate assembly reference is used.

To use a form in another assembly, just instantiate the class (using the fully-qualified type name (namespace + class), or add using namespace; at the top of your source file. Instantiate the form like any other.

Now, if these two projects run side-by-side (both executing individually at the same time), you'll need to use remoting. Doing what the other person mentioned won't work - you can only execute a program's entry point that way.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Calling One Form in a Project from Another Pin
Chuck Schmidt29-Nov-03 15:25
Chuck Schmidt29-Nov-03 15:25 
GeneralMinimize to / Restore from system tray: Cannot create handle Pin
Anonymous28-Nov-03 20:32
Anonymous28-Nov-03 20:32 
GeneralRe: Minimize to / Restore from system tray: Cannot create handle Pin
tsigo28-Nov-03 20:34
tsigo28-Nov-03 20:34 
QuestionProperty Grid Internal Tab Index? Pin
DoofToo28-Nov-03 20:18
DoofToo28-Nov-03 20:18 
GeneralUSB Port Pin
mhmoud rawas28-Nov-03 18:47
mhmoud rawas28-Nov-03 18:47 
GeneralRe: USB Port Pin
Cassandra Ross2-Dec-03 10:11
Cassandra Ross2-Dec-03 10:11 
GeneralRe: USB Port Pin
mhmoud rawas2-Dec-03 17:50
mhmoud rawas2-Dec-03 17:50 
QuestionWhat is a WindowsFormsParkingWindow? Why does it kill my application? Pin
User 46247828-Nov-03 4:29
User 46247828-Nov-03 4:29 
AnswerRe: What is a WindowsFormsParkingWindow? Why does it kill my application? Pin
SimonS28-Nov-03 4:47
SimonS28-Nov-03 4:47 
GeneralScrolling TextBox or RichTextBox programmatically Pin
Radoslav Bielik28-Nov-03 3:43
Radoslav Bielik28-Nov-03 3:43 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
Heath Stewart28-Nov-03 7:39
protectorHeath Stewart28-Nov-03 7:39 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
Radoslav Bielik28-Nov-03 9:02
Radoslav Bielik28-Nov-03 9:02 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
obelisk2929-Nov-03 10:22
obelisk2929-Nov-03 10:22 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
obelisk2929-Nov-03 10:59
obelisk2929-Nov-03 10:59 
GeneralRe: Scrolling TextBox or RichTextBox programmatically Pin
Heath Stewart29-Nov-03 15:03
protectorHeath Stewart29-Nov-03 15:03 
GeneralHead off API functions Pin
lajiyo28-Nov-03 3:07
lajiyo28-Nov-03 3:07 
GeneralRe: Head off API functions Pin
Heath Stewart28-Nov-03 4:27
protectorHeath Stewart28-Nov-03 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.