locked
System.NullReferenceException: Object reference not set to an instance of an object RRS feed

  • Question

  • User2127927318 posted

    Hi all,

    I want to convert below syntax in vb.net which is written in c#.

    protected internal LLConnect fConnect;

    i am writing in vb.net like this

    Protected fConnect As LLConnect

    but it is giving me error 'System.NullReferenceException: Object reference not set to an instance of an object.'

    can anyone help please.

    Thanks in advance

    -nelly 

     

     

     

    Friday, May 9, 2008 7:17 AM

Answers

  • User-1203469223 posted

    add a new line:

     

     Dim fConnect As New LLConnect

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 9, 2008 7:35 AM