Results 1 to 3 of 3

Thread: [RESOLVED] How do I use my.resource.C &"textbox1.text"

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2011
    Posts
    48

    Resolved [RESOLVED] How do I use my.resource.C &"textbox1.text"

    Ok this is really confusing.

    I have resources named:

    C1
    C2
    C3
    C4

    Now When I want to load Images, I am using rnd to get a random number in textbox so i am trying to get the same number in that image i.e.

    PHP Code:
    Picturebox1.Image My.Resources.textbox1.text 
    But its not working so is there any other option?

    Regards,

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: How do I use my.resource.C &"textbox1.text"

    it works this way:

    vb Code:
    1. Picturebox1.Image = directcast(My.Resources.ResourceManager.getObject("C" & textbox1.text), bitmap)

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2011
    Posts
    48

    Re: [RESOLVED] How do I use my.resource.C &"textbox1.text"

    thanks

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