Click here to Skip to main content
15,902,112 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSerial Ports In VB Express Pin
tmksam21-Aug-05 5:01
tmksam21-Aug-05 5:01 
GeneralRe: Serial Ports In VB Express Pin
Steve Pullan21-Aug-05 19:10
Steve Pullan21-Aug-05 19:10 
GeneralRe: Serial Ports In VB Express Pin
Dave Kreskowiak22-Aug-05 5:00
mveDave Kreskowiak22-Aug-05 5:00 
GeneralRe: Serial Ports In VB Express Pin
Steve Pullan22-Aug-05 14:03
Steve Pullan22-Aug-05 14:03 
GeneralPrint Preview Pin
Anup Singh J21-Aug-05 1:14
Anup Singh J21-Aug-05 1:14 
GeneralRe: Print Preview Pin
Duncan Edwards Jones21-Aug-05 1:23
professionalDuncan Edwards Jones21-Aug-05 1:23 
GeneralCreating Class at run time Pin
Zahid Hayat20-Aug-05 21:20
Zahid Hayat20-Aug-05 21:20 
GeneralRe: Creating Class at run time Pin
Kevin McFarlane21-Aug-05 23:16
Kevin McFarlane21-Aug-05 23:16 
As it happens I've just done some work where I was doing this kind of thing and I also did some further experiementation after completing the project. this example is in C# but you should be able to convert it to VB easily enough

using System.Reflection;

// ...

// Namespace = PatternsTest, Type = AfricaFactory (inherits from ContinentFactory)
string continentFactory = "PatternsTest.AfricaFactory";

object target = null;
Binder binder = null; 
string methodName = null;
object[] args = null;

// Create ContinentFactory instance
// e.g., ContinentFactory africa = new AfricaFactory();
Type continentType = assembly.GetType(continentFactory);
target = null;
methodName = null;
args = null;
ContinentFactory continentInstance = (ContinentFactory) continentType.InvokeMember(
	methodName,
	BindingFlags.DeclaredOnly | 
	BindingFlags.Public | 
	BindingFlags.Instance | 
	BindingFlags.CreateInstance, 
	binder, 
	target, 
	args
);


Kevin
GeneralPublic Event Vs. Public Shared Event Pin
Ghazi Sarhan20-Aug-05 20:36
Ghazi Sarhan20-Aug-05 20:36 
GeneralRe: Public Event Vs. Public Shared Event Pin
rwestgraham21-Aug-05 10:41
rwestgraham21-Aug-05 10:41 
GeneralRe: Public Event Vs. Public Shared Event Pin
Ghazi Sarhan22-Aug-05 1:18
Ghazi Sarhan22-Aug-05 1:18 
GeneralRe: Public Event Vs. Public Shared Event Pin
rwestgraham22-Aug-05 9:02
rwestgraham22-Aug-05 9:02 
QuestionWebService timeout .... why? Pin
MaWeRic20-Aug-05 10:13
MaWeRic20-Aug-05 10:13 
GeneralGrabbing form's content Pin
Prakash Sachania20-Aug-05 8:02
sussPrakash Sachania20-Aug-05 8:02 
GeneralRe: Grabbing form's content Pin
thebread21-Aug-05 2:24
thebread21-Aug-05 2:24 
Generalsimple datagrid relation display Pin
Member 145166320-Aug-05 2:12
Member 145166320-Aug-05 2:12 
GeneralProblem programmatically downloading file from forms authenticated site Pin
Jim Taylor19-Aug-05 23:27
Jim Taylor19-Aug-05 23:27 
Generalcom+ serviced component Pin
mailmechandru19-Aug-05 21:46
mailmechandru19-Aug-05 21:46 
GeneralRe: com+ serviced component Pin
Rizwan Bashir20-Aug-05 2:14
Rizwan Bashir20-Aug-05 2:14 
GeneralRe: com+ serviced component Pin
mailmechandru22-Aug-05 20:09
mailmechandru22-Aug-05 20:09 
GeneralRe: com+ serviced component Pin
Rizwan Bashir22-Aug-05 21:59
Rizwan Bashir22-Aug-05 21:59 
GeneralRe: com+ serviced component Pin
mailmechandru23-Aug-05 2:44
mailmechandru23-Aug-05 2:44 
GeneralRe: com+ serviced component Pin
Rizwan Bashir23-Aug-05 22:21
Rizwan Bashir23-Aug-05 22:21 
GeneralRe: com+ serviced component Pin
mailmechandru24-Aug-05 21:00
mailmechandru24-Aug-05 21:00 
GeneralRe: com+ serviced component Pin
Rizwan Bashir24-Aug-05 22:06
Rizwan Bashir24-Aug-05 22:06 

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.