Note: Using VB2010 framework 4.0
In an effort to create a progress bar that functions vertically instead of the default left right I have some code that creates a bitmap on a picture box (uses an invisible instance of the progress bar) . This all works well Here is the code:
Sub SetProgressbar( Byval x as integer)
Dim thebitmap as Bitmap = New Bitmap(ProgressBar1,Width, ProgressBar1.Height)
PictureBox1.image = thebitmap
However, if I set the anchor property of the picturebox to top,bottom,left,right and resize the form, the picturebox and its bitmap do not re-size.
Any suggestions of getting a progress bar to run vertically AND have it resize automatically?