Re: Logic problem with absolute value
- From: "Stephany Young" <noone@localhost>
- Date: Sun, 29 Jun 2008 04:04:09 +1200
First of all, if you post follow-up questions in a thread then they should be directly related to the original question, otherwise, anyone who wasn't watching this particular thread will never see them.
But ...
1. Why on earth would you want to rotate a picture box? A PictureBox control is, in effect, nothing more than a canvas upon which you display a image. If you mean 'is there a way to rotate an image?' then you will have better luck postin your 'properly' question to microsoft.public.dotnet.framework.drawing.
2. My.Resources exposes a number of properties and/or methods that allow you to retrieve a resource by it's name. F1 and/or intellisense is your friend for finding which property/method will work best for you.
"Jeff Ciaccio" <noname@xxxxxxxxxxx> wrote in message news:%23L3Fe5S2IHA.3600@xxxxxxxxxxxxxxxxxxxxxxx
Two more quick questions if you don't mind.
1) Is there a way to rotate a picture box in VB Express 2008? I don't see an angle or rotation property, but I'm guessing there is a way.
2) I've got 6 .bmps in My Resources, and I've set their Build Action to "Embedded Resource", but cannot figure out the qualifier to set them at runtime. I've got die1.bmp, die2.bmp, etc., and I've tried picDie.ImageLocation = My.Resources."die" &x &".bmp" as well as "c:\die" &x &".bmp" where x is a variable evaluated at runtime.
Any thougts?
"Stephany Young" <noone@localhost> wrote in message news:%23AiAKvS2IHA.5472@xxxxxxxxxxxxxxxxxxxxxxxIt wasn't so much a matter of too many parentheses - It was a matter of them being in the wrong places.
Because the logic is left to right you don't actually need any at all.
You really only need them when you need to force something to be evaluated out of the normal sequence.
Overuse of parentheses can cause a maintenance nightmare.
"Jeff Ciaccio" <noname@xxxxxxxxxxx> wrote in message news:%23EYAcfS2IHA.4164@xxxxxxxxxxxxxxxxxxxxxxxThat must have been it- Thanks!! It seems to work this way and when I add an extra set like this
Loop Until (Math.Abs(horz1 - horz2) > 80) And (Math.Abs(vert1 - vert2) > 101)
I never realized that too many parenthesis could cause problems as long as they were all closed properly.
Thanks again,
Jeff (VB Neophyte)
.
- References:
- Logic problem with absolute value
- From: Jeff Ciaccio
- Re: Logic problem with absolute value
- From: Stephany Young
- Re: Logic problem with absolute value
- From: Jeff Ciaccio
- Re: Logic problem with absolute value
- From: Stephany Young
- Re: Logic problem with absolute value
- From: Jeff Ciaccio
- Logic problem with absolute value
- Prev by Date: Re: Services
- Next by Date: Re: Setting a picturebox image at runtime and offsetting
- Previous by thread: Re: Logic problem with absolute value
- Next by thread: Re: Importing a form created in VBA
- Index(es):
Relevant Pages
|