|
-
Mar 4th, 2006, 08:22 AM
#1
Thread Starter
Junior Member
vb.net help
e.Graphics.DrawString(txtOriginal.Text, New Font("Courier New", 10, FontStyle.Regular), Brushes.Black, 50, 50)
after i debug it said "too many arguments to pulic sub new"(underline)
then i reduce but still same error.
-
Mar 4th, 2006, 11:31 AM
#2
Frenzied Member
Re: vb.net help
This line looks fine. I tried itjst to make sure and it works fine. Can you show all the code for your public sub new?
-
Mar 4th, 2006, 11:39 AM
#3
Thread Starter
Junior Member
Re: vb.net help
Public Sub mPrint_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles mPrint.Click
If txtOriginal.Text = "" Then
MsgBox("Error: Empty Original text file", MsgBoxStyle.Critical)
Else
PrintDocument1.Print()
End If
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
e.Graphics.DrawString(txtOriginal.Text, New Font("Courier New", 10, FontStyle.Regular), Brushes.Black, 50, 50)
End Sub
-
Mar 4th, 2006, 12:03 PM
#4
Frenzied Member
Re: vb.net help
Whar version are you using? I copied and pasted your code into 2003 and 2005 and it works fine.
-
Mar 4th, 2006, 12:06 PM
#5
Thread Starter
Junior Member
Re: vb.net help
i found out the problem hehe anyway thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|