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.
vb.net help
vb.net help
|
|
Mar 4 2006, 09:20 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]()
Junior Member
66 posts Joined: Feb 2005 |
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 9 2006, 10:25 PM
Show posts by this member only | Post
#2
|
|
Elite
1,828 posts Joined: Jan 2003 |
QUOTE(bradley83 @ Mar 4 2006, 09:20 PM) e.Graphics.DrawString(txtOriginal.Text, New Font("Courier New", 10, FontStyle.Regular), Brushes.Black, 50, 50) You are calling the constructor ofafter i debug it said "too many arguments to pulic sub new"(underline) then i reduce but still same error. Public Sub New( _ ByVal familyName As String, _ ByVal emSize As Single, _ ByVal style As FontStyle _ ) It is not the Font constructor problem. The number and type of parameters are valid. More of like syntax error. Try Dim myFont As New Font("Arial", 16) and then pass it the the DrawString. |
| Change to: | 0.0127sec
1.36
5 queries
GZIP Disabled
Time is now: 23rd December 2025 - 11:08 PM |