Results 1 to 8 of 8

Thread: picturebox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    11

    picturebox

    Dim g As Graphics = CreateGraphics()
    Dim b As New Bitmap("\windows\memberheader.jpg")
    g.DrawImage(b, 0, 0)
    g.Dispose()

    anyone know how to add image??i've used tis code..it din load the image when loading the page

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hehe what do you want to do? load an image to a picturebox?
    you could just do this:
    picturebox.image = image.fromfile([IMAGE PATH])
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    11
    yar..din work too

    the error was fromfile is not a member of Imports System.Drawing.Image

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by kryton
    yar..din work too

    the error was fromfile is not a member of Imports System.Drawing.Image
    hmm it is a member of Drawing.Image, what did you do?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    11
    Imports System.Drawing.Image
    Imports System.Drawing


    picturebox.image = image.fromfile(["\windows\test.bmp"]) with it


    i replace the code

    it's running on pocket pc

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    pocket pc?!

    do you have Everette? or whatever it's called? how are you running it on pocket pc?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    11
    pocket pc emulator

  8. #8
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    cool
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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