?
Solved

anchor picturebox in vb.net not working

Posted on 2014-09-22
4
Medium Priority
?
79 Views
Last Modified: 2016-07-11
Hello,

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)
ProgressBar1.DrawToBitmap(thebitmap,New Rectangle(0,0,ProgressBar1.Width,ProgressBar.Height))
thebitmap,RotateFilp(RotateFlipStype.Rotate270FlipNone)
PictureBox1.image = thebitmap

End Sub

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?
Thanks!
Bartj
0
Comment
Question by:bartdsp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
bartdsp earned 0 total points
ID: 40338211
All,

I was able to solve this by using a "codeproject" control:

http://www.codeproject.com/Articles/8422/Vertical-ProgressBar

Thanks!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question