VB.net Migration Questions
Posted on 2006-10-24
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..
If App.StartMode = vbSModeStandalone Then
x = InputBox("Please enter your ID", My.Application.Info.Title)
strID = x
If frmMax.SetupMax Then
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'.
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..