Results 1 to 4 of 4

Thread: VB.Net Picturebox load jpeg file

  1. #1
    Join Date
    Apr 2009
    Posts
    65

    VB.Net Picturebox load jpeg file

    I wanted to load a JPEG (.jpeg) picture into a PictureBox and an ImageBox...but when i check for the icon it has diplays but when I delete that i create shortcut on the desktop it can only load the icons (.ico) into them...how come is it like this? I thought ImageBox supports most image file??

  2. #2
    Join Date
    Jan 2009
    Posts
    140

    Re: VB.Net Picturebox load jpeg file

    Panels are those controls which contain other controls, for example, a set of radio buttons, checkboxes, etc. Panels are similar to Groupboxes but the difference, Panels cannot display captions where as GroupBoxes can and Panels can have scrollbars where as GroupBoxes can't.

    Code:
    private void btn_StretchImage_Click(object send_id, System.EventArgs e)
    
    {
    
    pictureBox1.SizeMode =  System.Windows.Forms.PictureBoxSizeMode.StretchImage;  
    
    }

  3. #3
    Join Date
    Jan 2009
    Posts
    143

    Re: VB.Net Picturebox load jpeg file

    On a from drag a Panel (Panel1) from the toolbox. Apart from being able to get the image from file using the open file dialog is it possible for you to be able to reference the image in am sql mobile database? PictureBoxes are used to display images on them. The images displayed can be anything varying from Bitmap, JPEG, GIF, PNG or any other image format files. Drag three checkboxes from the toolbox and place them on the Panel. When that is done all the checkboxes in the Panel are together as in a group but they can function independently.

  4. #4
    Join Date
    Mar 2008
    Posts
    258

    Re: VB.Net Picturebox load jpeg file

    VB does not support PNG files, so you need to write your own code (or use somebody elses) that will load them and convert them to a format that VB can understand. The app in question doesn't use multithreading. There is no other managed process going on when this exception is thrown. Notable property of the Panel control in the appearance section is the BorderStyle property. The default value of the BorderStyle property is set to None. You can select from the predefined list to change a Panels BorderStyle.

Similar Threads

  1. Cannot open JPEG file from email on Mac OSX
    By Benjhonson in forum Operating Systems
    Replies: 4
    Last Post: 12-11-2010, 12:11 PM
  2. Cannot delete a jpeg file
    By Carlton in forum Operating Systems
    Replies: 4
    Last Post: 24-04-2010, 05:26 AM
  3. Compressing a JPEG File in Java
    By samualres in forum Software Development
    Replies: 4
    Last Post: 20-02-2010, 04:29 PM
  4. Issue in renaming jpeg file
    By Gannon in forum Windows Software
    Replies: 5
    Last Post: 21-12-2009, 10:25 PM
  5. how to view .dat file & convert to .jpeg
    By Ameyaa in forum Windows Software
    Replies: 7
    Last Post: 25-03-2009, 09:40 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,749,817,138.19168 seconds with 16 queries