473,378 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Error converting VB 6 APP to VB.NET APP

Hi,

I have converted a VB 6 App to VB.NET App but when I try to run the
application in the VB.NET IDE I get the following compile error.

'ScaleTop' is not a member of 'System.Windows.Forms.Panel'
'ScaleLeft' is not a member of 'System.Windows.Forms.Panel'.
'ScaleLeft' is not a member of 'HPCheck.frmReportViewer'.

Does any one know how to get rid of this error?. I was wondering what is the
work around to address this. Any help is appreciated.

Thanks

M
Nov 20 '05 #1
3 5317
"Meher Malakapalli" <mm**********@cohesioninc.com> schrieb
Hi,

I have converted a VB 6 App to VB.NET App but when I try to run
the application in the VB.NET IDE I get the following compile
error.

'ScaleTop' is not a member of 'System.Windows.Forms.Panel'
'ScaleLeft' is not a member of 'System.Windows.Forms.Panel'.
'ScaleLeft' is not a member of 'HPCheck.frmReportViewer'.

Does any one know how to get rid of this error?. I was wondering what
is the work around to address this. Any help is appreciated.


No "upgrade-note" comments added by the wizard?

Changes can be found here:

<F1>
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
Introduction in vB.Net for experienced VB users
especially:
Changes in Forms in VB.NET
Changes in Controls in VB.NET
(see hints in signature)

--
Armin

- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #2
Thanks Armin. Actually there is a upgrade comment. Here it is

'UPGRADE_ISSUE: PictureBox property picMain.ScaleTop was not upgraded. Click
for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2064"'

The line of code I have is

lvwBatch.Top = VB6.TwipsToPixelsY(picMain.ScaleTop)

and

lvwBatch.Left = VB6.TwipsToPixelsX(picMain.ScaleLeft)

What is the best way to rewrite this code?.

M

"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
"Meher Malakapalli" <mm**********@cohesioninc.com> schrieb
Hi,

I have converted a VB 6 App to VB.NET App but when I try to run
the application in the VB.NET IDE I get the following compile
error.

'ScaleTop' is not a member of 'System.Windows.Forms.Panel'
'ScaleLeft' is not a member of 'System.Windows.Forms.Panel'.
'ScaleLeft' is not a member of 'HPCheck.frmReportViewer'.

Does any one know how to get rid of this error?. I was wondering what
is the work around to address this. Any help is appreciated.


No "upgrade-note" comments added by the wizard?

Changes can be found here:

<F1>
Visual Studio.NET
Visual Basic and Visual C#
Upgrading applications
Upgrading from VB 6.0
Introduction in vB.Net for experienced VB users
especially:
Changes in Forms in VB.NET
Changes in Controls in VB.NET
(see hints in signature)

--
Armin

- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #3
"Meher Malakapalli" <mm**********@cohesioninc.com> schrieb
Thanks Armin. Actually there is a upgrade comment. Here it is

'UPGRADE_ISSUE: PictureBox property picMain.ScaleTop was not
upgraded. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2064"'

The line of code I have is

lvwBatch.Top = VB6.TwipsToPixelsY(picMain.ScaleTop)

and

lvwBatch.Left = VB6.TwipsToPixelsX(picMain.ScaleLeft)

What is the best way to rewrite this code?.

I think it is
lvwBatch.Top = picMain.ScaleTop
but I'm not sure because it depends on the circumstances, e.g. whether the
ScaleTop property has been set to a user defined value. I think the best is
to have a look at what the VB6 code does and redesign it in VB.NET.
--
Armin

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MFA | last post by:
Hi All I am getting this error. Microsoft VBScript runtime (0x800A0006) Overflow: '' I am using if and case statments a lot, at certain point when I am just putting another case statment...
9
by: Eric Lilja | last post by:
Hello, I'm a novice C++ programmer and now I have the task of converting a number of C++ functions to C. Some of the functions I'm converting takes a parameter of type reference-to-std::string...
1
by: amitbadgi | last post by:
I am gettign this error while converting an asp application to asp.net , its a query syntax error, Exception Details: System.Runtime.InteropServices.COMException: Syntax error in query expression...
15
by: bill salkin | last post by:
I'd like to create a custom error handler like this in VB.NET: .... try ... Throw ("Lender Name not in table") .... catch ("Lender Name not in table")
1
by: ken.carlino | last post by:
Hi, I have the following compile error instantiated from here, I appreciate if someone can help me find out why? g++ -O0 -g3 -Wall -c -fmessage-length=0 -ostddev.o ../stddev.cpp...
7
by: Tor Aadnevik | last post by:
Hi, I have a problem converting values from Single to double. eg. When the Single value 12.19 is converted to double, the result is 12.1899995803833. Anyone know how to avoid this? Regards...
25
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why does parseInt('09') give an error? ----------------------------------------------------------------------- ...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
1
by: ganesh22 | last post by:
Hi, Iam getting the below error while my application is running on IIS. in my application iam converting a text into word format, so i added some .dll from COM for converting word format ...
2
by: Manikrag | last post by:
Hi All, I am getting error while am loading RSS Stream in XMLDocument object. The error is as follows. "System.Xml.XmlException: '', hexadecimal value 0x19, is an invalid character. Line 18,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.