Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The best way to create those ActiveX controls
Message
From
19/05/2003 15:40:30
 
 
To
19/05/2003 15:10:08
General information
Forum:
ASP.NET
Category:
ActiveX controls
Miscellaneous
Thread ID:
00790105
Message ID:
00790120
Views:
17
This message has been marked as the solution to the initial question of the thread.
You need to add a reference to the COM component (right-click References, select Add Reference, second tab contains COM components), then you should get Intellisense if you declare the object like this:
  Dim obj As MSXML2.XMLHTTP = New MSXML2.XMLHTTP()
This type of declaration will not get you Intellisense because it's the equivalent of VB6 late binding:
  Dim obj = New MSXML2.XMLHTTP()
Roman

>Here's another issue I have with VB.NET and the creation of ActiveX controls. I would like to know which is the best approach. The following works:
>
>
>loHTTP = CreateObject("Microsoft.XMLHTTP")
>
>
>However, on the next line, if I type loHTTP. something, the intellisense doesn't come up. So, following VB pattern, I assume the best is to use an approach such as:
>
>
>Dim loHTTP As New ActiveXObject("Microsoft.XMLHTTP")
>
>
>but that doesn't work. I am basically looking for the best approach to create those ActiveX controls so I can have the intellisense to appear when I will use the object in the following lines.
Roman Rehak, MCSD, MCDBA, MCSA
Competitive Computing
354 Mountain View Drive
Colchester, VT 05446-5824
802-764-1729
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform