Re: Logic problem with absolute value

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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@xxxxxxxxxxxxxxxxxxxxxxx
It 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@xxxxxxxxxxxxxxxxxxxxxxx
That 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)



.



Relevant Pages

  • Re: Chart Rotation
    ... Jon Peltier, Microsoft Excel MVP ... If I drop the picture into work I can rotate it left 90 degees. ... pasted the copied chart into Word as a picture, ...
    (microsoft.public.excel.charting)
  • Re: Rotate a table so top is against left margain
    ... Go to Edit- Paste Special and choose to paste it in as a Picture (I ... went to Draw - Rotate or Flip - Rotate left 90 degrees. ... > headers and footers would now be left and right. ...
    (microsoft.public.word.tables)
  • Re: Rotate image without perspective change?
    ... You rotate the print by ... You can do the same thing if you have a monitor with a pivot. ... the monitor, not the picture. ... The settings buttons on the front, have toggles for centring the screen ...
    (microsoft.public.windowsxp.photos)
  • Re: Rotation & aspect ratio
    ... the picture is stretched so ... It means that your monitor is not correctly adjusted for a 1:1 aspect ... matter how you rotate them. ... Be prepared to see all your familiar faces in the photos as rounder ...
    (rec.photo.digital)
  • Re: From pdf to rtf to editable text?
    ... Microsoft MVP (Word) ... This is no problem in Adobe because you just rotate the screen for viewing ... Word reads this as a picture it can be rotated; the bad news is that once ... As Ms. Barnhill suggests above, ILL libraries may have scanned these ...
    (microsoft.public.word.docmanagement)