Results 1 to 4 of 4

Thread: refrence to a non-shared member requires an object refrence? [resolved]

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    Question refrence to a non-shared member requires an object refrence? [resolved]

    ok i am new to vb.net and started 1 day ago..

    i want to change an usercontroll's background image to a similar image in the main form where it is located

    either i want to do this through the usercontroll or through the frame itself

    how can i do this ? :S
    Last edited by Ultimasnake; Sep 18th, 2003 at 10:12 AM.
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Each control should have a BackgroundImage property just set that to what you need. If you are gettings a 'refrence to a non-shared member requires an object refrence' error then you aren't referencing an instance of a control. Post your code for more help.

  3. #3

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    Me.BackgroundImage = frmmain.temp_cmd_new.image

    thats all i am trying to do... this is from the usercontroll to the form

    but the other way around the backgroundimage property is not even available
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  4. #4

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    nm got it to work.. stupid me
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

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