Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Migration vb6 to vb.net, problem (Microsoft Common Dialog Contro)

views
     
TSwilliam
post Feb 27 2006, 02:47 AM, updated 20y ago

Getting Started
**
Junior Member
184 posts

Joined: Jan 2003
Dear friends,


I have an application which implemented by VB6. In the vb6, it has a component call Microsoft Common Dialog Control 6.0. It was worked well in this application. But, when i want to migrate from VB6 to Vb.Net.Problem arise and it shows out that i don't have Microsoft Common Dialog Control 6.0.

Dim oChildTvNode As MSComctlLib.Node =>vb6 coding

and vb.net ..it shows MSComctlLib is not defined.

Is it Vb.net don't have Microsoft Common Dialog Control 6.0 this component. I try to search internet but still not in the right path. Still scratching my head now.

Hope i can share my problem and discuss together.
TSwilliam
post Feb 28 2006, 01:35 AM

Getting Started
**
Junior Member
184 posts

Joined: Jan 2003
QUOTE(shinchan^^ @ Feb 27 2006, 08:55 AM)
OpenFileDialog1 <-----------
*
can you give me in more details..thanks.
TSwilliam
post Feb 28 2006, 01:42 AM

Getting Started
**
Junior Member
184 posts

Joined: Jan 2003
QUOTE(william @ Feb 27 2006, 02:47 AM)
Dear friends,
        I have an application which implemented by VB6. In  the vb6, it has a component call Microsoft Common Dialog Control 6.0. It was worked well in this application. But, when i want to migrate from VB6 to Vb.Net.Problem arise and it shows out that i don't have Microsoft Common Dialog Control 6.0.

Dim oChildTvNode As MSComctlLib.Node =>vb6 coding

and vb.net ..it shows MSComctlLib is not defined.


Is it Vb.net don't have Microsoft Common Dialog Control 6.0 this component. I try to search internet but still not in the right path. Still scratching my head now.

Hope i can share my problem and discuss together.
*
Dim oTvNode As OpenFileDialog but i cannot see my .node. Any help..?

Dim oXmlNode As MYXMLDOM.XMLNODE

TSwilliam
post Mar 3 2006, 02:51 AM

Getting Started
**
Junior Member
184 posts

Joined: Jan 2003
what is the vb.net command to open file name?



Public Function load1(ByVal FileName As String) As String
Dim xmlStr As String
Dim xmlLine As String
Dim freeFileNo As Integer
freeFileNo = FreeFile()
open FileName For Input As freeFileNo
If Not EOF(1) Then
Do While Not EOF(freeFileNo)
Input(freeFileNo, xmlLine)
xmlStr = xmlStr & " " & xmlLine
Loop
End If
Close()
load1 = xmlStr
End Function

open is not declare???
what it means method arguments must be enclosed in parentheses??
Give me guidance.Thank you
TSwilliam
post Mar 9 2006, 10:27 PM

Getting Started
**
Junior Member
184 posts

Joined: Jan 2003
Dear all,
what is MSComctlLib???
Is it a active x control?
It works in vb 6 but in vb.net it can't.
Example:
dim oChildTvNode as mscomctlLib.node ===>vb6

after migrate

dim oChildTvNode as mscomctl.Node ===>vb.net

It show that mscomctl is undefined..
I feel headache and wonder is it in vb.net is not using this kind of active x control.

This post has been edited by william: Mar 9 2006, 10:28 PM

 

Change to:
| Lo-Fi Version
0.0155sec    0.46    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 12:20 PM