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