Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
Questionhow to log off and login user Pin
imran_rafique2-Oct-02 12:38
imran_rafique2-Oct-02 12:38 
AnswerRe: how to log off and login user Pin
Russell Morris4-Oct-02 2:42
Russell Morris4-Oct-02 2:42 
Questionhow to log off and login user Pin
imran_rafique2-Oct-02 12:35
imran_rafique2-Oct-02 12:35 
General"when pressing ctrl+alt+delete contrul should go our procedure" Pin
imran_rafique2-Oct-02 12:03
imran_rafique2-Oct-02 12:03 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Paul Riley2-Oct-02 12:16
Paul Riley2-Oct-02 12:16 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Ray Cassick2-Oct-02 14:31
Ray Cassick2-Oct-02 14:31 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Paul Riley2-Oct-02 16:41
Paul Riley2-Oct-02 16:41 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
David Stone2-Oct-02 19:09
sitebuilderDavid Stone2-Oct-02 19:09 
GeneralRe: "when pressing ctrl+alt+delete contrul should go our procedure" Pin
Anders Molin2-Oct-02 13:55
professionalAnders Molin2-Oct-02 13:55 
GeneralSecurity & Assemblies Pin
2-Oct-02 11:46
suss2-Oct-02 11:46 
Questionhow to halt mouse and key board Pin
imran_rafique2-Oct-02 11:40
imran_rafique2-Oct-02 11:40 
GeneralCreate An "add-in-able" Application Pin
MStanbrook2-Oct-02 6:33
MStanbrook2-Oct-02 6:33 
GeneralRe: Create An "add-in-able" Application Pin
David Williams2-Oct-02 7:17
David Williams2-Oct-02 7:17 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 7:58
MStanbrook2-Oct-02 7:58 
GeneralRe: Create An "add-in-able" Application Pin
David Stone2-Oct-02 8:29
sitebuilderDavid Stone2-Oct-02 8:29 
GeneralRe: Create An "add-in-able" Application Pin
ez22-Oct-02 9:29
ez22-Oct-02 9:29 
GeneralFreeze. This is the Clickety Police! Pin
David Stone2-Oct-02 12:42
sitebuilderDavid Stone2-Oct-02 12:42 
GeneralRe: Create An "add-in-able" Application Pin
Stephane Rodriguez.2-Oct-02 9:48
Stephane Rodriguez.2-Oct-02 9:48 
GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 18:19
MStanbrook2-Oct-02 18:19 
GeneralRe: Create An "add-in-able" Application Pin
leppie3-Oct-02 3:06
leppie3-Oct-02 3:06 
GeneralRe: Create An "add-in-able" Application Pin
Eric Gunnerson (msft)2-Oct-02 11:33
Eric Gunnerson (msft)2-Oct-02 11:33 
How difficult this is depends upon what your requirements are.

If you want to just load add-ins at runtime, it's quite simple.
1) Define the interface you want an add-in to implement, and compile it to a .dll
2) Create a directory for add-ins off of the directory where the .exe lives
3) In the main exe, use Assembly.Load() to load in the assembly4)
4) Use reflection to find the types in it that implement your assembly
5) Use activator.CreateInstance() to create the instance
6) Cast it to your interface, and then go to town.

If you want to be able to update them on the fly, that gets more complicated. Look at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp

for more information.


GeneralRe: Create An "add-in-able" Application Pin
MStanbrook2-Oct-02 18:15
MStanbrook2-Oct-02 18:15 
QuestionHow do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 4:59
professionalZombies with Coffee, LLC2-Oct-02 4:59 
AnswerRe: How do you know you're in design mode vs. running? Pin
Paul Riley2-Oct-02 5:22
Paul Riley2-Oct-02 5:22 
GeneralRe: How do you know you're in design mode vs. running? Pin
Zombies with Coffee, LLC2-Oct-02 5:30
professionalZombies with Coffee, LLC2-Oct-02 5:30 

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.