Solved

anchor picturebox in vb.net not working

Posted on 2014-09-22
4
40 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
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now