Solved

anchor picturebox in vb.net not working

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

728 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