Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: weird problem Pin
boyindie12-Jul-07 8:41
boyindie12-Jul-07 8:41 
GeneralRe: weird problem Pin
Paul Conrad12-Jul-07 8:48
professionalPaul Conrad12-Jul-07 8:48 
GeneralRe: weird problem Pin
Dave Kreskowiak12-Jul-07 8:53
mveDave Kreskowiak12-Jul-07 8:53 
GeneralRe: weird problem Pin
boyindie12-Jul-07 8:56
boyindie12-Jul-07 8:56 
GeneralRe: weird problem Pin
Paul Conrad12-Jul-07 9:00
professionalPaul Conrad12-Jul-07 9:00 
GeneralRe: weird problem Pin
boyindie12-Jul-07 9:01
boyindie12-Jul-07 9:01 
GeneralRe: weird problem Pin
Paul Conrad12-Jul-07 9:15
professionalPaul Conrad12-Jul-07 9:15 
QuestionHow to handle empty text boxes Pin
mymacryan12-Jul-07 7:48
mymacryan12-Jul-07 7:48 
I'm working on my first vb.Net project I have a field that is not required, but is numeric. If the user leaves the field blank I get the following error, when I try to use it set a value in my object.
InvalidCastException: Cast from string "" to type 'Integer' is not valid.]
Here is the code.

MyShelled.KC = Me.txtKC.Text


Here is the object's property
Public WriteOnly Property KC() As Integer
    Set(ByVal NewVal As Integer)
        MyKC = NewVal
    End Set
End Property


I've tried to create overloaded properties but I get the following compile error.

c:\inetpub\wwwroot\Shelling\clsZebra.vb(228): 'Public Overloads WriteOnly Property KC() As Integer' and 'Public Overloads WriteOnly Property KC() As String' cannot overload each other because they differ only by return types.

I'd like to handle this in my class but I'm not sure how to go about. Any direction would be great.

Thanks
Travis
AnswerRe: How to handle empty text boxes Pin
nlarson1112-Jul-07 7:51
nlarson1112-Jul-07 7:51 
GeneralRe: How to handle empty text boxes Pin
nlarson1112-Jul-07 8:02
nlarson1112-Jul-07 8:02 
AnswerRe: How to handle empty text boxes Pin
Christian Graus12-Jul-07 8:04
protectorChristian Graus12-Jul-07 8:04 
GeneralRe: How to handle empty text boxes Pin
nlarson1112-Jul-07 8:14
nlarson1112-Jul-07 8:14 
AnswerRe: How to handle empty text boxes Pin
The ANZAC12-Jul-07 12:58
The ANZAC12-Jul-07 12:58 
QuestionBackgroundWorker help Pin
Paul .12-Jul-07 7:32
Paul .12-Jul-07 7:32 
AnswerRe: BackgroundWorker help Pin
nlarson1112-Jul-07 7:53
nlarson1112-Jul-07 7:53 
GeneralRe: BackgroundWorker help Pin
Paul .12-Jul-07 8:02
Paul .12-Jul-07 8:02 
GeneralRe: BackgroundWorker help Pin
nlarson1112-Jul-07 8:04
nlarson1112-Jul-07 8:04 
GeneralRe: BackgroundWorker help Pin
Paul .12-Jul-07 8:13
Paul .12-Jul-07 8:13 
GeneralRe: BackgroundWorker help Pin
Dave Kreskowiak12-Jul-07 8:48
mveDave Kreskowiak12-Jul-07 8:48 
QuestionRemove an item from a combo box bound to a bindingsource Pin
steve_rm12-Jul-07 6:47
steve_rm12-Jul-07 6:47 
AnswerRe: Remove an item from a combo box bound to a bindingsource Pin
Christian Graus12-Jul-07 6:51
protectorChristian Graus12-Jul-07 6:51 
Questionusing Word.Document's SaveAs Function (VB6) Pin
reegan4112-Jul-07 6:15
reegan4112-Jul-07 6:15 
AnswerRe: using Word.Document's SaveAs Function (VB6) Pin
Thomas Chester12-Jul-07 8:56
Thomas Chester12-Jul-07 8:56 
QuestionBoxing/Unboxing Performance Pin
hrodberaht12-Jul-07 6:09
hrodberaht12-Jul-07 6:09 
AnswerRe: Boxing/Unboxing Performance Pin
Christian Graus12-Jul-07 6:12
protectorChristian Graus12-Jul-07 6:12 

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.