Solved

anchor picturebox in vb.net not working

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

911 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

20 Experts available now in Live!

Get 1:1 Help Now