Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net mscomm problem Pin
tuolesi19-May-10 15:40
tuolesi19-May-10 15:40 
AnswerRe: vb.net mscomm problem Pin
Luc Pattyn19-May-10 16:25
sitebuilderLuc Pattyn19-May-10 16:25 
QuestionSubstring Function on Me.Invoke??? Pin
Dominick Marciano19-May-10 15:31
professionalDominick Marciano19-May-10 15:31 
AnswerRe: Substring Function on Me.Invoke??? Pin
Luc Pattyn19-May-10 16:43
sitebuilderLuc Pattyn19-May-10 16:43 
QuestionSuggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 12:45
Troy Edson-Smith19-May-10 12:45 
AnswerRe: Suggestions for passing arrays of data between executables in VB.net Pin
Luc Pattyn19-May-10 13:02
sitebuilderLuc Pattyn19-May-10 13:02 
GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 13:29
Troy Edson-Smith19-May-10 13:29 
GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Luc Pattyn19-May-10 14:00
sitebuilderLuc Pattyn19-May-10 14:00 
OK,

I find having only one EXE simpler, so I would suggest a plog-in scheme. This is how it could be made to work:
- you take the existing code, add some, and create the EXE; that is one project.
- you define an Interface, which basically is a contract describing the methods and parameters all the plug-ins must offer.
- for one or more plug-ins, you create a DLL project, implementing the required functionality.
- in the main program, you add detect logic, select logic, and call logic.

The detect logic could be: all DLL files in a particular subfolder, say "plugins".

The select logic is up to you, it could be a Menu, a ComboBox, or whatever, populated with the names of the DLL files (assuming those are relevant); a more complex scheme would require you load those "assemblies", execute some code to get the types they implement, and call some method/property on them to get a display name, with which you populate the GUI.

The call logic would require some "reflection" code, look at Activator.CreateInstance()

I did not immediately find a relevant article that is based on VB.NET; however there are several with C#, here[^] is one (haven't read it though); the principles should be exactly the same, basically the only difference is syntactic.

I hope this gets you started.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Suggestions for passing arrays of data between executables in VB.net Pin
Troy Edson-Smith19-May-10 14:43
Troy Edson-Smith19-May-10 14:43 
QuestionLimit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 1:02
Johan Hakkesteegt19-May-10 1:02 
AnswerRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 1:37
professionalDaveAuld19-May-10 1:37 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 1:46
Johan Hakkesteegt19-May-10 1:46 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Henry Minute19-May-10 2:09
Henry Minute19-May-10 2:09 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 2:17
Johan Hakkesteegt19-May-10 2:17 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 2:14
sitebuilderLuc Pattyn19-May-10 2:14 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 2:41
Johan Hakkesteegt19-May-10 2:41 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 2:50
sitebuilderLuc Pattyn19-May-10 2:50 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 3:14
professionalDaveAuld19-May-10 3:14 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
The Man from U.N.C.L.E.19-May-10 3:23
The Man from U.N.C.L.E.19-May-10 3:23 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 3:32
Johan Hakkesteegt19-May-10 3:32 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 6:17
professionalDaveAuld19-May-10 6:17 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 7:46
sitebuilderLuc Pattyn19-May-10 7:46 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
DaveAuld19-May-10 8:04
professionalDaveAuld19-May-10 8:04 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Luc Pattyn19-May-10 8:09
sitebuilderLuc Pattyn19-May-10 8:09 
GeneralRe: Limit textbox.text to positiive and negative integers Pin
Johan Hakkesteegt19-May-10 21:51
Johan Hakkesteegt19-May-10 21:51 

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.