473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Make web pages show up as black and white

JCL
I have a winform and on this winform, I have a WebBrowser control. Users can
browse the web through this form. Is there a way that I can make web pages
show up as grey scale pages, with the color being converted to black and
white? In this way, users will always see a colorless web page when they
access to the internet.

Thank you,
Chris
Nov 17 '05 #1
7 2928
Chris,

There isn't any way offhand that I can think of, short of traversing the
object model and trying to set the color on all elements. However, given
the number of elements, as well as styles that can be applied to them, it's
pretty daunting.

Maybe there is a way to do this through the accessibility layer, but I
seriously doubt it.

If you don't require interaction, you could create a bitmap of the
window contents and then greyscale the bitmap and show that.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JCL" <re******@verizon.net> wrote in message
news:cTVte.3319$1q2.2506@trnddc01...
I have a winform and on this winform, I have a WebBrowser control. Users
can
browse the web through this form. Is there a way that I can make web pages
show up as grey scale pages, with the color being converted to black and
white? In this way, users will always see a colorless web page when they
access to the internet.

Thank you,
Chris

Nov 17 '05 #2
I cant help you I'm afraid, but why would you want to do this?
Nov 17 '05 #3
JCL
The application owner wants it to imitate windows behavior. When you try to
shut down windows, the screen will change to black and white. When the
users' internet session is going to expire, the screen color changes to
black and white. That way, the users know that they need to hurry up to
finish their session. But during this black and white period, users can
still interact with web pages.

Please help!

"Josh" <s@a.com> wrote in message
news:ef*************@TK2MSFTNGP15.phx.gbl...
I cant help you I'm afraid, but why would you want to do this?

Nov 17 '05 #4
JCL
Thank you, Nicholas. But I do need interaction of the pages. Making it a
greyscale bitmap won't work.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eY**************@TK2MSFTNGP10.phx.gbl...
Chris,

There isn't any way offhand that I can think of, short of traversing the object model and trying to set the color on all elements. However, given
the number of elements, as well as styles that can be applied to them, it's pretty daunting.

Maybe there is a way to do this through the accessibility layer, but I
seriously doubt it.

If you don't require interaction, you could create a bitmap of the
window contents and then greyscale the bitmap and show that.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JCL" <re******@verizon.net> wrote in message
news:cTVte.3319$1q2.2506@trnddc01...
I have a winform and on this winform, I have a WebBrowser control. Users
can
browse the web through this form. Is there a way that I can make web pages show up as grey scale pages, with the color being converted to black and
white? In this way, users will always see a colorless web page when they
access to the internet.

Thank you,
Chris


Nov 17 '05 #5
JCL,

Quite honestly, I don't think this is going to be possible. You should
point out that when the dialog asking you in XP if you want to log off comes
up, there is nothing that is interactive. What Windows does is take a
snapshot of the desktop, and then greyscale that. Nothing changes while
that dialog is up.

The only way you could duplicate this is to show a dialog in the same
way, but before you do, show a bitmap in place of the webbrowser control.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JCL" <re******@verizon.net> wrote in message
news:YzWte.8161$tG.6646@trnddc05...
The application owner wants it to imitate windows behavior. When you try
to
shut down windows, the screen will change to black and white. When the
users' internet session is going to expire, the screen color changes to
black and white. That way, the users know that they need to hurry up to
finish their session. But during this black and white period, users can
still interact with web pages.

Please help!

"Josh" <s@a.com> wrote in message
news:ef*************@TK2MSFTNGP15.phx.gbl...
I cant help you I'm afraid, but why would you want to do this?


Nov 17 '05 #6
Dear Chris,

Is there any way to redirect the output of a window to a bitmap without
having it on screen? You can definitely capture bitmaps of a window when
they are visible (a la snapshot), but can you do it offscreen, or behind
another window, possibly in C++, using windows or other APIs? (Question
directed at you or others, of course. I don't have my MSDN handy! ;o) )

If you can, then you might be able to do that, greyscale it, display it, and
then capture various events or windows Messages in your display control with
the greyed out bitmap, and pass them on to the actual hidden browser
control, refreshing the bitmap whenever something changes in the browser
window (possibly capturing relevant effects), or on a fixed interval.

It might work.... or I might be dreaming... ;o)

Either way, it sounds like a lot of work for an effect that could be
replaced with some sort of banner control, perhaps above or below or over
the browser, or (more annoyingly) MessageBox reminders.

Hope that helps

James CC
Nov 17 '05 #7
Dear Chris,

I was thinking about this, and, to get a similar but different result, you
could put a semi-transparent window or maybe control in front of the
browser, and then pass on the events and messages as mentioned in my last
post. That should partially grey out the browser.

Hope that helps,

James
Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: bayram guzer | last post by:
hi everybody, i have very strange error. i can not see some of the asp pages on my browser. when i look from view source, all the source is there but browser does not show anything, just an empty...
1
by: epigram | last post by:
I'm creating a series of web pages that I will display sequentially in IE 6 (for an internal application). I'd like to have nice transitions between them. The only thing I have found thus far are...
0
by: TheCoder | last post by:
I am making a D-base with web conectivity for my class project. I have everything working but the subit button sends the data to the correct fields but afterwards it wants to reproduce new blank...
5
by: JackS | last post by:
I am trying to use GDI32 bitblt to write a bitmap to a control's window, but all I get is an empty rectangle of some rop-dependent color. In short, I use the following logic in a paint event handler:...
4
by: Henrique Berenguel | last post by:
Hello folks. I have a DataGrid in a Web Form. IŽd like to show numeric columns in Money format US$ 10,000.98. However, when I fill the DataGrid from a SqlCommand, it fill in the DataGrid like this:...
7
by: marfi95 | last post by:
I'm trying to implement some code in vb.net to allow the user to adjust the brightness or contrast on an image (through the use of a slider) that is already black & white in the bitmap. I have...
5
by: Novice Computer User | last post by:
Hi. Can somebody PLEASE help. Here is a .php script. Right now, the minimum amount of time (i.e. duration) allowed is 1 month. However, I want to be able to reduce the minimum amount of time to...
0
by: Badino | last post by:
Hi, Can someone tell me what to put in this code so that if a user selects 0 (Black) then make the font white (0) as my default colour is black on my Excel spreadsheet. Private Type...
1
by: slinky | last post by:
Thanks for any help folks: I have two .aspx pages that are workling well: one is for entering entries in a blog and another for viewing those entries. What I want to do is combine the two into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.