473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.frmRep ortViewer'.

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 5328
"Meher Malakapalli" <mm**********@c ohesioninc.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.frmRep ortViewer'.

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.ScaleTo p was not upgraded. Click
for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?ke yword="vbup2064 "'

The line of code I have is

lvwBatch.Top = VB6.TwipsToPixe lsY(picMain.Sca leTop)

and

lvwBatch.Left = VB6.TwipsToPixe lsX(picMain.Sca leLeft)

What is the best way to rewrite this code?.

M

"Armin Zingler" <az*******@free net.de> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
"Meher Malakapalli" <mm**********@c ohesioninc.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.frmRep ortViewer'.

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**********@c ohesioninc.com> schrieb
Thanks Armin. Actually there is a upgrade comment. Here it is

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

The line of code I have is

lvwBatch.Top = VB6.TwipsToPixe lsY(picMain.Sca leTop)

and

lvwBatch.Left = VB6.TwipsToPixe lsX(picMain.Sca leLeft)

What is the best way to rewrite this code?.

I think it is
lvwBatch.Top = picMain.ScaleTo p
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
12733
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 its giving me this error. if I am removing
9
2681
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 that stores verbose error information if an error occurs in the function. How should I implement that in C? A pointer to a fixed-size array of chars runs the risk of overflowing. Having the function take a char** and allocate memory as
1
1662
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 'id =System.__ComObject'. Source Error: Line 191: counter = 1Line 192: for i = 0 to ubound(emaillist)Line 193: rs_email = conn.execute("select * from tblusers where id =" & emaillist(i))Line 194: tolist = tolist & rs_email("email") &...
15
2720
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
657
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 .../stddev.cpp: In member function 'int StatUtils::std_dev(std::vector<int, std::allocator<int> >&, int, int)': .../stddev.cpp:206: warning: converting to 'int' from 'double'
7
2710
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 Totto
25
9598
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why does parseInt('09') give an error? ----------------------------------------------------------------------- The parseInt function decides what base the number is by looking at the number. By convention it assumes that any number beginning with 0x is Hexadecimal, and otherwise any number beginning with 0 is Octal. To force use of base 10 add a second...
25
4394
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 opened it in Visual Studio 2005. I've cleared up most errors, but have one that beats the heck out of me. I have a page: sales/Item.aspx that has several datagrids in it.
1
1528
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 error: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.
2
4448
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, position 32." I understand that this is becasue I have one apostrophe in the RSS Feed. I have tried few tricks to get rid of apostrophe but of no use.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.