Results 1 to 8 of 8

Thread: problem referencing a form

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    problem referencing a form

    ok, I followed the direction for mimicking a global form from here:

    http://msdn.microsoft.com/library/de...adingToNET.asp

    I have followed the instructions to a 'T'. I created a Sub Main() in my module for my functions. I set the startup object to load sub main first.

    in the sub main, I placed the code to instantiate the class just like the page said.

    I get an error: object reference not set to an instance of an object
    whn trying to manipulate a listview my calling it this way:

    MainForm.Ticketing.tab_TrblHistory_lvwTroubleHistory.Items.Add(History(intCount).TicketNumber)


    MainForm is the class, ticketing is the property and rest is the control I'm trying to add a row to.

    What am I missing here?

    Last edited by Andy; Apr 8th, 2004 at 11:08 AM.

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