By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

CreateInstance method

P: 11
what i am doing is i am reading an xml file...one node has the name of the class i need to instantiate...i am getting the name in the form of string...
how to use create instance in dis case??

for eg:on parsing the file i get the name of class in str="abc",i need to instantiate dis class abc with createinstance

hope it is clear..
what shud be done??
thaks in advance
Oct 9 '07 #1
Share this Question
Share on Google+
3 Replies


kenobewan
Expert 2.5K+
P: 4,871
Here is an article that may help:
Creating a Plug-In Framework
Oct 9 '07 #2

P: 11
Thank you very much :-)

Sneha
Oct 12 '07 #3

P: 15
Imports System.xml
Dim xmlDoc As New XmlDocument
Dim Nodevalue As XmlNode
xmlDoc.Load(XMLPath)
NodeValue = .SelectSingleNode("//*[local-name()='BluetoothProfile']")
If Not NodeValue Is Nothing Then DoHa.BluetoothProfile = NodeValue.InnerXml()

'Bloothprofile is node name.
Oct 12 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.