PC Review


Reply
Thread Tools Rate Thread

Attach event handler to dynamically created ActiveX instance

 
 
matthewr
Guest
Posts: n/a
 
      29th Aug 2006
Hi,

My program creates an instance of an ActiveX control at runtime, using:

Type = System.Type.GetTypeFromProgID(controlName);
Control = System.Activator.CreateInstance(Type);

Given a string containing the name of the event I want to handle, how
can I attach an event handler function to the control?

Thanks,
Matthew

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refer to a dynamically created control in event handler? gnewsgroup Microsoft ASP .NET 4 19th Feb 2008 09:38 PM
What code do I use to attach event handler that will open my user. =?Utf-8?B?VGVyZXNhTWFubGV5?= Microsoft Excel Worksheet Functions 2 5th May 2007 09:55 PM
access properties of dynamically created controls from event handler Gelios Microsoft C# .NET 7 17th Apr 2005 08:24 PM
How to attach an event to dynamically created control in VB.NET =?Utf-8?B?TmlybWFsa3VtYXI=?= Microsoft ASP .NET 1 12th Jan 2005 03:05 PM
Adding event handler for dynamically created controls =?Utf-8?B?QW5kcmV3IFdpZWQ=?= Microsoft ASP .NET 3 25th Apr 2004 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.