Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

take a screenshot of your screen

crop it to have only a small square of about 10x10 pixel

save it as bitmap

 

the cropped image must be only of an area of the screen like the background of the 'start' button or the background of the taskbar

that color is also the default background of a windows form

the color named "control" inside visual studio

 

now: file, new, project, windows application

put there a picturebox, and put inside it that bitmap

it should be a 10x10 image of the same color of the form's background color, but it isn't, at least here, it appears brighter

 

i'm running windows 2000 with visual studio .net and the bitmap is 24bit (i've tried with many formats, bmp gif png emf, and made under paint shot pro and ms paint)

and i tried also with the picturebox backgroundimage and panel's backgroundimage, same behaviour

..I'm getting mad :)

thanks for any help!

 

Pierpaolo

http://www.abruzzesi.com

http://www.daimmo.it

  • *Experts*
Posted

Matches here no problems...

 

Instead of using a picturebox, can you verify that the saved BMP matches the background color of your form? Take a screenshot of your form and get it next to your saved bitmap in your favorite paint program to compare. I can't imagine why they would be different...

 

-Ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

the saved bitmap is perfect

i wonder if the problem is on my computer

i've made my first app in vb.net, where i have this problem

try to run it and tell me if the magnify feature works or not

point the cursor over the form and press "z"

if not working, the magnify window should give you a brighter square

if working, the square would look like the rest of the form

download it from http://www.abruzzesi.com/easycolor/

if you look at the screenshot you can also notice the wrong behaviour

thanks a lot!

Pierpaolo

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...