Solved

VB.net Migration Questions

Posted on 2006-10-24
3
1,579 Views
Last Modified: 2012-06-27
Hi,

I converted VB6 Project to VB.net (Visual Studio 2005), using Conversion wizard in VS 2005.

After converting its gave me 200 Errors, I am trying to solve those.. I have few doubts here, let mention here. I need Experts help to clear those errors..

Q1.

If App.StartMode = vbSModeStandalone Then
            x = InputBox("Please enter your ID", My.Application.Info.Title)
            strID = x
            If frmMax.SetupMax Then
                frmMax.Show()
            End If
        End If

in this its giving error as

Name 'App' is not declared.
Name 'vbSModeStandalone' is not declared.  

Q2. In VB6 Code i have.
Printer.PaperSize = vbPRPSLetter
Printer.PrintQuality = vbPRPQHigh
Printer.CurrentX = 0
Printer.CurrentY = 0
Printer.Orientation = vbPRORLandscape
Printer.Font = VB6.FontChangeBold(Printer.Font, True)
Printer.PaintPicture(picForm.Image, 0, 1000)

for this Q2, its giving error as
Name 'Printer' is not declared

Q3. I have PictureBox in VB6, after converting.

picForm.ScaleMode = mTWIPS
Error: 'ScaleMode' is not a member of 'System.Windows.Forms.PictureBox'.

picForm.AutoRedraw = True
Error: 'AutoRedraw' is not a member of 'System.Windows.Forms.PictureBox'.

picForm.hdc
Error: 'hdc' is not a member of 'System.Windows.Forms.PictureBox'.

Most of Errors on Printer Side..

Please guide me solve these Errors, Please be Elobrate while Giving reply..

Thanks
Jen
0
Comment
Question by:netpicker9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 17800969
There is no direct equivalent of AutoRedraw in VB.Net:

    picForm.AutoRedraw = True
    Error: 'AutoRedraw' is not a member of 'System.Windows.Forms.PictureBox'.

How are you using the PictureBox?  With respect to this error alone...a completely different approach may be necessary to accomplish the same thing in VB.Net.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question