Results 1 to 4 of 4

Thread: Res Files in VB.Net

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Massachusetts
    Posts
    48

    Res Files in VB.Net

    In a vb 6 program I wrote, I stored many bitmap images in a res file. I used the picture1.picture = LoadResPicture(101, 0) code snippet to add picture 101 into a picture box. It worked great-----HOWEVER --when I upgraded to VB.Net I the code didn't work any suggestions.

    Thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    try this
    VB Code:
    1. PictureBox1.Image.FromFile("c:\myimage.xxx")

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Resource files are handled a bit different in .NET you have to run a sample project that comes with VS.NET for a Resource File maker type program. Then you can put whatever you want in the resource file and can either compile it into the exe or access from within the same directory. Try searching the net for a tutorial or if you get stuck post again.

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Massachusetts
    Posts
    48

    Thanks

    Thanks for the quick reply---I'm looking at the .Net sample programs now and hopefully I can figure out my problems from that.

    Take Care

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