Click here to Skip to main content
15,916,398 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDisallow MBCS sets in VB text box Pin
Aky11-Jun-03 19:00
Aky11-Jun-03 19:00 
GeneralRe: Disallow MBCS sets in VB text box Pin
Anonymous16-Jun-03 6:08
Anonymous16-Jun-03 6:08 
GeneralRe: Disallow MBCS sets in VB text box Pin
Amphibian16-Jun-03 6:11
Amphibian16-Jun-03 6:11 
GeneralVB.Net system-wide hotkey component Pin
Duncan Edwards Jones11-Jun-03 13:19
professionalDuncan Edwards Jones11-Jun-03 13:19 
GeneralCollections and Events Pin
dman752911-Jun-03 10:44
dman752911-Jun-03 10:44 
GeneralRe: Collections and Events Pin
CBoland12-Jun-03 6:15
CBoland12-Jun-03 6:15 
GeneralMP3 Pin
kgoodrich11-Jun-03 5:46
kgoodrich11-Jun-03 5:46 
GeneralOverloads Problem Pin
MrEasy11-Jun-03 5:19
MrEasy11-Jun-03 5:19 
I'm teaching myself VB.NET and have come across a problem with either the tutorial book (Visual Basic .NET Programming with Peter Aitken, Chapter 9, page 191) or the software (Microsoft Visual Studio .NET).

The problem I'm getting is after typing in code from example in book:

Public Class UseOverloadedConstructor
Private pName as String

Public Overloads Sub New(ByVal Val As String)
pName = Val
End Sub

Public Overloads Sub New()
pName = ""
End Sub

Public Property Name() As String
Get
Name = pName
End Get
Set(ByVal Value As String)
pName = Value
End Set
End Property
End Class

I get an error in the build. Saying that Overloads don't work with New!

What is the problem? What am I missing?
Can anyone help?
Thank you
Confused | :confused:

GeneralRe: Overloads Problem Pin
dynamic11-Jun-03 12:07
dynamic11-Jun-03 12:07 
GeneralRe: Overloads Problem Pin
MrEasy13-Jun-03 0:56
MrEasy13-Jun-03 0:56 
GeneralRe: Overloads Problem Pin
CBoland12-Jun-03 6:08
CBoland12-Jun-03 6:08 
GeneralRe: Overloads Problem Pin
MrEasy13-Jun-03 1:00
MrEasy13-Jun-03 1:00 
Generalnew to vb Pin
summo11-Jun-03 5:16
summo11-Jun-03 5:16 
GeneralRe: new to vb Pin
newalfi11-Jun-03 5:38
newalfi11-Jun-03 5:38 
GeneralBen is new to VB.NET Pin
bensoncd14-Jul-03 14:45
bensoncd14-Jul-03 14:45 
GeneralRe: Ben is new to VB.NET Pin
newalfi15-Jul-03 0:16
newalfi15-Jul-03 0:16 
GeneralRe: Ben is new to VB.NET Pin
bensoncd15-Jul-03 13:54
bensoncd15-Jul-03 13:54 
GeneralRe: new to vb Pin
laurarana26-Jun-03 21:26
laurarana26-Jun-03 21:26 
GeneralRe: new to vb Pin
parths30-Jun-03 22:16
parths30-Jun-03 22:16 
QuestionICON ON TITLE? Pin
Jonavis11-Jun-03 5:02
Jonavis11-Jun-03 5:02 
AnswerRe: ICON ON TITLE? Pin
Jason McBurney13-Jun-03 7:03
Jason McBurney13-Jun-03 7:03 
GeneralHelp! Image.FromFile() causes out of memory exception Pin
alman11-Jun-03 3:50
alman11-Jun-03 3:50 
GeneralRe: Help! Image.FromFile() causes out of memory exception Pin
dynamic11-Jun-03 15:16
dynamic11-Jun-03 15:16 
QuestionHow To Freeze Datagrid Pin
Paras Shah11-Jun-03 1:01
Paras Shah11-Jun-03 1:01 
GeneralSelect Folder Dialog Box Pin
mlatimer10-Jun-03 21:07
mlatimer10-Jun-03 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.