I using the VistaControls control library (here) and I have a WebBrowser control that will have black in it on the form. When I set the background color to black in the HTML, the glass renders fine. So I added some text that is red, but it shows up as a transparent red. How do I get the text to be opaque?
Also, if I want to have black text in the HTML, how do I get that to show correctly?
I had following coding to make form have aero glass effect. but the text is become transparent too when i run it. how to make the text become no transparent? Thnx
<StructLayout(LayoutKind.Sequential)> _ Public Structure MARGINS Public cxLeftWidth As Integer
is there a way to have that aero glass effect using XP Pro when creating forms and please give me walk thru on this. I want to have that look on all my forms.
I can't figure out how it is possible to change the color for aero glass (which is blue by default).I want to change it to yellow (or brown) if the battery level (only for laptops of course) is low, to red when its critical. I have read a lot and was able to read the color (registry and api) and I was able to get notified when the color changes (wndproc) but there is no api call to set the color. I am able to set the registry key. That works, but requires a reboot, which is (in my case) not a solution. I have tried to simulate the wndproc message as broadcast, no result...What does the control panel applet do? If I change the color there it will be instantly applied, even the setting is not saved to the registry (which will be the best solution for my case). Programming language is vb9, vista is required by the application itself, so no other checks are required.
I had set my form initially load in aero glass effect.Then i want let the user can choose solid colour or aero glass effect.Wat should i put in my coding to let the form can become solid colour?
<StructLayout(LayoutKind.Sequential)> _ Public Structure MARGINS Public cxLeftWidth As Integer Public cxRightWidth As Integer
I'm trying to have Aero Glass look in my forms in VB.NET 2010 app with DWM API, but as function call suggests, it extends look of Frame to the client area, and if form has no border, nothing will happen and form will become invisible. So, can I get Aero glass in a form without any border.... ??
I've got an app that I'm writing that will have TextBoxes and Buttons on a glass form, much like what you'd see in Windows Explorer. I'm wondering how can I get the Textboxes' text to render properly on the glass? The text looks all messed up. I've tried a number of different ideas, but to avail.
I am having a problem with the aero glass effect on the form. I have successfully spread the glass to the background of the form, but now the buttons ext ect. look like this (I have tried EVERYTHING on this page with no success):url...[code]
My program can detect when Aero is present, but it has trouble when the user is in Aero Basic because it doesn't use the transparency or glass look. I am wondering if there is a call to the dwmapi that can tell me if the computer is using Aero Basic.
Can a form be Created that has Aero Glass when in Vista/Win7 and when running in XP or 98 use a regular border? If so can I have a link to the infromation or a code sample?
I'm having trouble getting an naero glass code which works properly. I hav ecome across many in which anything black becomes aero aswell. Is it possible to have the black text unaffected by the aero like, change it so that another colour becomes aero instead?Also this is just an extra but can you change the colour of the aero you have? Like default is blue change you change it to like yellow, or black or another colour?
I've successfully used DwmExtendFrameIntoClientArea from dwmapi.dll. It adds glass to about 40 pixels down from the top, and 40 pixels up from the bottom. I can put a button on the glass and either set it's background color to transparent or it's UseCompatibleTextRendering = True so that is displays correctly on the glass (the middle part of the form is a regular form, I can put controls there fine). Now, here's my problem... I want to put a search text box at the top right hand section of the form on the glass (similiar to IE and other wizard like glass forms that have search boxes integrated). Also, this is a WinForm.
The problem:The glass effect causes any text in the text box to be transparent, I need to know how to get around it so the text box is always opaque.
What I've tried:
1.) Manually drawing the transparent color over the form in the Paint event, skipping the section where the text box is located (doesn't work).
2.) Change the color of the text in the text box so it's not black (since black triggers the glass effect). I couldn't get the glass to work at all with any color other than black (even when I set the form's transparcy key to another color).
3.) I've read and followed every FAQ / instruction list I could get my hands on to no avail (most were from 2006 before Vista in production).
4.) I've looked with UI Spy at the text box in the IE glass section, and that text box has a background color of transparent (which I tried and the .Net textbox/richtextbox don't allow you to set a background color of transparent)
I've read that you can create a custom control and custom draw it to be opaque, but I'm not sure where to start with that (I can make custom controls, but as per drawing them myself I need a little direction).
I have a Vista Glass form using dwmapi.dll. I have a problem, which is whenever I put the form over a white color, the text becomes very difficult to read, as it is white as well. But if I put it over a black or darker color you can read it fine. I want the text color on my form to be able to change when the form is moved over a certain color. No, I'm not trying to make a virus / automater...
My problem is when I develop my own applications in Visual Basic 2008/2010 with the Aero interface, I cannot see the text both on the form and in components. After researching on the internet, I have come to a dead end. Is there a way of fixing
I am trying to figure out how I can highlight every instance of a search string found in the the webbrowser control. The closest I came was to replace each instance with html code that highlights the text, but that causes problems because it replaces the search string in links and causes problems with text boxes on the page if an instance of the search string is in a textbox on the web page.[code]...
How do I get the text of the display of a webbrowser control? Not the source! I mean the text that I get when, for example, I copy a web page and paste it into Notepad.
So I'm not trying to edit the value of the textbox. I really don't know what to do here. This is the part of the HTML that I want to input text into: [Code]
I have just about completed writing an application for college. I load quotes into a webbrowser control for the user to view and print, my question is, can the user edit text in a webbrowser control (I want them to have this option) or am I better off using a text box control.
OK this is a novel problem however it has been annoying me for hoursLets say some dude is on my webbrowser and needs to go to a url which is just text on the pageI would like to get the code that sees this selected text on the page and then copies it...
I am attempting to send a string to a textbox in the webbrowser control and the page I am trying to do this with has random name= and value= fields which makes it difficult to use the typical methods for placing text in the textbox. I have spent quite a bit of time searching and attempting to figure this out and I'm stumped.
I am working on a parental control system for my webbrowser (checks if navigated page is on the blacklist). So I was looking for a list of sites to add to the system as default, I didn't find any but my friend did, but the problem is he gave me a list, for example, with lots of lines like this: http:somename:something@website.com http:somename1:something1@website2.com
How can I remove everything from the "@" till the "http;" (including http) and remove it all so only the website name stays? I could do it by hand/notepad, but it would take forever as the list has over 2k sites I would like to add in my blacklist! I thought maybe strings could do it?
I am using webbrowser control in my windows application(VS2003). Below is the code.
Sub LoadHtml(ByRef MyWebBrowser As AxSHDocVw.AxWebBrowser, ByVal sFileName As String) 'MyWebBrowser is webbrowser control added at design time on form and sFileName is .txt file with full path Dim sImgDir As String