Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
QuestionDetect Opened Forms Pin
RizwanSharp25-Mar-06 3:49
RizwanSharp25-Mar-06 3:49 
AnswerRe: Detect Opened Forms Pin
Stefan Troschuetz25-Mar-06 4:02
Stefan Troschuetz25-Mar-06 4:02 
GeneralRe: Detect Opened Forms Pin
RizwanSharp25-Mar-06 4:09
RizwanSharp25-Mar-06 4:09 
GeneralRe: Detect Opened Forms Pin
Stefan Troschuetz25-Mar-06 4:17
Stefan Troschuetz25-Mar-06 4:17 
GeneralRe: Detect Opened Forms Pin
RizwanSharp25-Mar-06 4:23
RizwanSharp25-Mar-06 4:23 
GeneralRe: Detect Opened Forms Pin
mav.northwind25-Mar-06 4:18
mav.northwind25-Mar-06 4:18 
QuestionLoading a class from DLL at run-time Pin
hhrafn25-Mar-06 3:32
hhrafn25-Mar-06 3:32 
AnswerRe: Loading a class from DLL at run-time Pin
Stefan Troschuetz25-Mar-06 4:09
Stefan Troschuetz25-Mar-06 4:09 
Looking for something like this:
// Get paths of all available libraries in Plugin directory.
string[] filePaths = Directory.GetFiles(FormMain.PluginsDirectoryPath, "*.dll");
			
for (int i = 0; i < filePaths.Length; i++)
{
  try
  {
    // Load the assembly and get the defined types.
    Assembly assembly = Assembly.LoadFrom(filePaths[i]);
    Type[] types = assembly.GetTypes();
					
    IPlugin plugin;
    for (int j = 0; j < types.Length; j++)
    {
      if (types[j].GetInterface(typeof(IPlugin).FullName) != null)
      {// The type implements IPlugin interface.
        //Create an instance of the IPlugin implementation and store it.
        plugin = (IPlugin) Activator.CreateInstance(types[j]);
        this.plugins.Add(plugin);
      }
    }
  }
}








www.troschuetz.de
GeneralRe: Loading a class from DLL at run-time Pin
hhrafn25-Mar-06 4:43
hhrafn25-Mar-06 4:43 
QuestionSuppressing XML comments warning? Pin
Dominik Reichl25-Mar-06 3:27
Dominik Reichl25-Mar-06 3:27 
AnswerRe: Suppressing XML comments warning? Pin
leppie25-Mar-06 4:23
leppie25-Mar-06 4:23 
QuestionRe: Suppressing XML comments warning? Pin
Dominik Reichl25-Mar-06 4:32
Dominik Reichl25-Mar-06 4:32 
AnswerRe: Suppressing XML comments warning? Pin
Nicholas Butler25-Mar-06 4:57
sitebuilderNicholas Butler25-Mar-06 4:57 
GeneralRe: Suppressing XML comments warning? Pin
Dominik Reichl25-Mar-06 5:21
Dominik Reichl25-Mar-06 5:21 
Questionproblem with delegates and events Pin
abdelhameed8125-Mar-06 3:24
abdelhameed8125-Mar-06 3:24 
AnswerRe: problem with delegates and events Pin
Stefan Troschuetz25-Mar-06 3:57
Stefan Troschuetz25-Mar-06 3:57 
Questionextracting ISO file Pin
mohdmeraj25-Mar-06 2:01
mohdmeraj25-Mar-06 2:01 
Questionhow to create virtual drive in c# Pin
mohdmeraj25-Mar-06 1:59
mohdmeraj25-Mar-06 1:59 
QuestionPerformanceCounter won't work Pin
polisen25-Mar-06 1:05
polisen25-Mar-06 1:05 
Questionlistview and image Pin
yosba22125-Mar-06 0:00
yosba22125-Mar-06 0:00 
QuestionVoice chat Pin
deepthi wilson24-Mar-06 23:45
deepthi wilson24-Mar-06 23:45 
AnswerRe: Voice chat Pin
RizwanSharp25-Mar-06 4:29
RizwanSharp25-Mar-06 4:29 
GeneralRe: Voice chat Pin
deepthi wilson26-Mar-06 17:06
deepthi wilson26-Mar-06 17:06 
QuestionHow do I list Drive informations of a remote computer Pin
deepthi wilson24-Mar-06 23:39
deepthi wilson24-Mar-06 23:39 
AnswerRe: How do I list Drive informations of a remote computer Pin
RizwanSharp25-Mar-06 3:29
RizwanSharp25-Mar-06 3:29 

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.