Click here to Skip to main content
15,886,067 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Vb.Net - How to stop duplex on a printer Pin
Henry Minute24-Jan-11 5:56
Henry Minute24-Jan-11 5:56 
GeneralRe: Vb.Net - How to stop duplex on a printer Pin
Central_IT24-Jan-11 8:56
Central_IT24-Jan-11 8:56 
GeneralRe: Vb.Net - How to stop duplex on a printer Pin
Henry Minute24-Jan-11 9:33
Henry Minute24-Jan-11 9:33 
AnswerRe: Vb.Net - How to stop duplex on a printer Pin
Luc Pattyn24-Jan-11 4:08
sitebuilderLuc Pattyn24-Jan-11 4:08 
QuestionCreate chart in Excel using Access tables with vb.net Pin
vijay248223-Jan-11 23:18
vijay248223-Jan-11 23:18 
AnswerRe: Create chart in Excel using Access tables with vb.net Pin
thatraja24-Jan-11 0:19
professionalthatraja24-Jan-11 0:19 
GeneralRe: Create chart in Excel using Access tables with vb.net Pin
vijay248224-Jan-11 0:24
vijay248224-Jan-11 0:24 
QuestionSystem.NullReferenceException: Check my solution someone, pls Pin
KCDude20-Jan-11 6:12
KCDude20-Jan-11 6:12 
I have combo box that is loaded dynamically. When the user select Misc from the list I want to unhide a text field. I recived the following error.

System.NullReferenceException: Object reference not set to an instance of an object.
at ACEPackaging.dlgEditSkidWeight.HideCarrerTextBox()
etc
etc
etc

Here is my code that is called when the user changes the selection on the combobox.

If CStr(cboCarrier.SelectedValue.ToString) = "99" Then
      tbCarrierDesc.Visible = True
         Else
      tbCarrierDesc.Visible = False
         End If
     End If


I did a little research and said that this error is caused by the .ToString being Null or Nothing. So here is what I have added to correct the problem so there are no more errors. Please let me knwo if this will work.

If Not cboCarrier.SelectedValue.ToString Is Nothing Then 'added this line
    If CStr(cboCarrier.SelectedValue.ToString) = "99" Then
        tbCarrierDesc.Visible = True
    Else
        tbCarrierDesc.Visible = False
    End If
End If

AnswerRe: System.NullReferenceException: Check my solution someone, pls Pin
Ian Shlasko20-Jan-11 6:19
Ian Shlasko20-Jan-11 6:19 
GeneralRe: System.NullReferenceException: Check my solution someone, pls Pin
KCDude20-Jan-11 6:46
KCDude20-Jan-11 6:46 
GeneralRe: System.NullReferenceException: Check my solution someone, pls Pin
Ian Shlasko20-Jan-11 7:45
Ian Shlasko20-Jan-11 7:45 
AnswerRe: System.NullReferenceException: Check my solution someone, pls Pin
Luc Pattyn20-Jan-11 6:28
sitebuilderLuc Pattyn20-Jan-11 6:28 
AnswerRe: System.NullReferenceException: Check my solution someone, pls Pin
Eddy Vluggen21-Jan-11 1:04
professionalEddy Vluggen21-Jan-11 1:04 
QuestionGeneral Question about programming steps Pin
joyfullboy2997319-Jan-11 2:17
joyfullboy2997319-Jan-11 2:17 
AnswerRe: General Question about programming steps Pin
Pravin Patil, Mumbai19-Jan-11 4:12
Pravin Patil, Mumbai19-Jan-11 4:12 
AnswerRe: General Question about programming steps Pin
Manfred Rudolf Bihy19-Jan-11 11:03
professionalManfred Rudolf Bihy19-Jan-11 11:03 
AnswerRe: General Question about programming steps Pin
T210219-Jan-11 14:36
T210219-Jan-11 14:36 
JokeRe: General Question about programming steps Pin
joyfullboy2997320-Jan-11 0:53
joyfullboy2997320-Jan-11 0:53 
QuestionOrphan Question [modified] - Has a Home now! Pin
Soulus8318-Jan-11 19:52
Soulus8318-Jan-11 19:52 
AnswerRe: Orphan Question Pin
Andy_L_J18-Jan-11 20:01
Andy_L_J18-Jan-11 20:01 
QuestionPre-requisites for email program Pin
Uma Kameswari18-Jan-11 19:42
Uma Kameswari18-Jan-11 19:42 
AnswerRe: Pre-requisites for email program Pin
Dave Kreskowiak19-Jan-11 2:20
mveDave Kreskowiak19-Jan-11 2:20 
GeneralRe: Pre-requisites for email program Pin
Uma Kameswari24-Jan-11 18:28
Uma Kameswari24-Jan-11 18:28 
AnswerRe: Pre-requisites for email program Pin
_Erik_19-Jan-11 5:29
_Erik_19-Jan-11 5:29 
QuestionCHM html help called from VB6 application works but can't be searched [modified] Pin
reto.knaak14-Jan-11 4:02
reto.knaak14-Jan-11 4:02 

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.