Results 1 to 8 of 8

Thread: [RESOLVED] [02/03] protected vs Dim

Threaded View

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    Resolved [RESOLVED] [02/03] protected vs Dim

    if i define a webusercontrol :

    lets say ,

    dim withevents Webusercontrol11 as Webusercontrol1


    then use of any of its public property or method , generates an error

    "Object reference not set to an instance of an object ."

    if i use ,

    protected withevents Webusercontrol11 as Webusercontrol1

    it works fine

    why ?
    Last edited by vishalmarya; Apr 10th, 2007 at 08:58 AM.
    Vishal Marya, MCP .net 3.5
    My Site
    http://www.vstoolsgallery.com/
    http://visualstudiogallery.msdn.micr...b-f87a909b9266





    Please indicate what version of vb you use.
    Please mark your thread resolved using the Thread Tools above.
    -----------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width