Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Change the bg color of the document
Name: go_places_puterwize Date: July 7, 2008 at 22:12:39 Pacific OS: WinXP CPU/Ram: P4/512MB Product: HP Compaq Presario F
Comment:
I know this may sound a little childish but I am adding a feature to my webbrowser that basically detects a dark background when the page is loading, and will prompt the user if they want to switch to a lighter background color (e.g. low vision)
The detection works just fine, its just I can't get it to actually CHANGE the color without throwing me an error...
here's what I have: WebBrowser1.Document.BackColor = System.Drawing.ColorTranslator.FromHtml(BrowserOptions.ComboBox1.Text) WebBrowser1.Document.LinkColor = System.Drawing.ColorTranslator.FromHtml(BrowserOptions.ComboBox2.Text) WebBrowser1.Document.ActiveLinkColor = System.Drawing.ColorTranslator.FromHtml(BrowserOptions.ComboBox3.Text) WebBrowser1.Document.VisitedLinkColor = System.Drawing.ColorTranslator.FromHtml(BrowserOptions.ComboBox4.Text)
The color values are HEX (#000000) in the comboboxes. any suggestions?
Curiousity only injured the cat. I finished it off.. Muahahaha...
Name: Razor2.3 Date: July 10, 2008 at 12:04:40 Pacific
Reply:
Well, you should probably using ToHtml, as you're plugging it into HTML, and not extracting it.
Also, an error message would be nice. So would source code, as I don't feel like mocking up a browser in VB.NET just to give an answer on an on-line forum.
Summary: I am assuming you just want to change the background color of the label box. Here is an example that randomly selects six different colors for the label box: Private Sub Timer1_Timer() Dim LabelCol...
Summary: Hi, how would i specify to count the size of the blocks of the files in my current directory, using ls -s in c-shell? Instead of 'ls -s' it should print the total size of the blocks echo 'ls -s' total...
Summary: Hi, how would i specify to count the size of the blocks of the files in my current directory, using ls -s in c-shell? Instead of 'ls -s' it should print the total size of the blocks echo 'ls -s' total...