Solved

anchor picturebox in vb.net not working

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

821 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