Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Size's Required by my forms keep changing Why???
 

Size's Required by my forms keep changing Why???

if you look at the pic at the link below you will see that there is white space between some of the pictures

http://img441.imageshack.us/i/screenshot034r.png/][IMG]http://img441.imageshack.us/img441/1574/screenshot034r.png

well thats my question!

Why! would there be white space? in the designer eact picturebox is 138w x 138h and the thumbnail is beinggenerated from an image of atleast 500x500.

the thumbnail size is suppose to be 138w x 138h.

all the picturebox's use the exact same code to pull the albumartthumbnail from file

which is
        public void GetCoverFlowAlbumArt(string filePath, PictureBox pictureBox)
        {



bool exists = File.Exists(filePath); myCallback = ThumbnailCallback;




if (exists) { AlbumArt = new Bitmap(filePath); Image AlbumArtThumbnail = AlbumArt.GetThumbnailImage(138, 138, myCallback, IntPtr.Zero); pictureBox.Image = null; pictureBox.Refresh(); pictureBox.Image = AlbumArtThumbnail; } if (AlbumArt != null)
{ AlbumArt.Dispose(); AlbumArt = null; } bool exist = File.Exists(Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "AlbumArt"), "AlbumArt.jpg")); if (exist) { File.Delete(Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "AlbumArt"), "AlbumArt.jpg")); } }
also i re-set the panels size thats in the picture box area about 100 times the required values keep changing! why?

1 minute i have to use 2 (15, 138) & the rest 14, 138, once upon a time it was perfect like that all picturebox's was 138, 138! well i just had to change them now there well all 13, 138.

is Visual Studio Just a Peice of doogie?

why does the size required by my app keep goin up & down?
  • Edited bycworkman Friday, August 07, 2009 10:36 AM
  • Edited bycworkman Friday, August 07, 2009 11:12 AM
  •  
cworkman  Friday, August 07, 2009 10:27 AM

i Figured out what it is its not Visual Studio related for some "ODD" reason my screen can't make up its mind about how big it is one minute its 1280x800 next it was 1288x778 so idk what to do!

  • Marked As Answer bycworkman Friday, August 07, 2009 1:17 PM
  •  
cworkman  Friday, August 07, 2009 1:17 PM

i Figured out what it is its not Visual Studio related for some "ODD" reason my screen can't make up its mind about how big it is one minute its 1280x800 next it was 1288x778 so idk what to do!

  • Marked As Answer bycworkman Friday, August 07, 2009 1:17 PM
  •  
cworkman  Friday, August 07, 2009 1:17 PM

You can use google to search for other answers

Custom Search

More Threads

• How to hide the component tray in the designer?
• ResumeLayout Method
• Designer does not generate content code for object value
• How to add tool to the toolbox in Visual studio 2005
• complicated userControl
• C# Form Skins
• table like control in winforms
• Resx files not available in designer when in a project subfolder
• System.Net.Mail Image
• problem handling tab keys