Get Controls To Work Right When They Are On Glass?
Feb 9, 2010How do I get controls to work right when they are on glass?
I am trying to do like IE and extend to a textbox for address bar but the text becomes transparent, how do I do it?
How do I get controls to work right when they are on glass?
I am trying to do like IE and extend to a textbox for address bar but the text becomes transparent, how do I do it?
Rendering Controls with Black Text on Glass in Visual Basic
View 7 Replieshow to extend glass to program that not using glass like Zune software V 1.
View 2 RepliesWant to use several panels on a single form and have them turned on based on what button you click. Think I can figure out how to turn panels on and off but I find it difficult to manage multible panels within a single form in Visual Studio.When I create multible panels they end of connect to eachother instead of connecting back to the main form and when you add child controls it is difficult to know what pannel they got connected to.
View 10 RepliesI can use the below code snippet to clear the text from each textbox on a form.
For Each ctl As Control In Me.Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
Next
But if I want to use it to ensure that all radiobuttons in a group of radio buttons are unchecked then it doesn't work i.e.
For Each ctl As Control In Me.Controls
If TypeOf ctl Is RadioButton Then
ctl.checked = false
End If
Next
I'm assuming it is because the checked property is not common to all controls.
I have a form which has many textboxes on it, some are dynamically generated and some are not. They structure is something like this:
[Code]...
Is there a way to create a collection of all of the textboxes so that I can access all at any time? Like when I need to clear them, or when I need to compare them. Right now I either access them one by one, like textbox1.text or I run a loop starting from the main flowlayoutcontrol, going inside, testing if control is another flowlayout, then going deeper and so on. Seems like there should be another simpler way to do this though, is there?
I am fooling around with VB for a while now and it is not the first time I created custom controls to use in an application. The situation: I have a database application (FormView / not GridView). The form is designed the following way: At the left I have a Panel1 with TextBoxes and other controls to view / edit dataset records. At the right I have a Panel2 which contains on default a custom control (a number of PictureBoxes mainly) to view / add / delete pictures associated with the currently viewed data record.
On a ButtonClick at a special button on the ToolStrip, I would like to replace that custom control in Panel2 with another custom control (which contains a search with different search possibilities), so, I basically throw out the PictureControl and load a SearchControl instead. This is the first time where I actually designed the custom controls within the actual project. In past, I always developed the custom controls seperately in a new project and later imported the dll. However, my first attempt just does not work and I don't even know where I should start troubleshooting since I don't get any errors.
[Code]...
I have a form and controls on from I work with background worker on my form and I want when I work with background worker in (for next) changed a data table example (mydt.clear()) or change a datagrideview..how to update controls on a form when we work with background worker? [code]
View 4 RepliesIs there any way to create a function of magnifying glass when cursor hover on the image (Picturebox)?I have a picturebox in a panel that I declared. When user hover the cursor on the image it call the function of magnifying glass.
View 14 RepliesI would like to know if it possible to create an effect of magnifying glass for the picturebox, so I could see the other controls behind the picturebox which make them looks like a glass?
View 7 RepliesIs using any control on Aero glass possible? If not, is using buttons, checkboxes, radiobuttons and some other common controls possible?
View 3 Repliesis 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.
View 4 Replieshow to add glass effect to a win forms in vb.net or c# I looked a lot of examples like using e.graphics to make a square with the win form dimension and others are done really good without any e.graphics trick. But my problem is that I didn't look any example that uses windows controls like buttons, labels, dropdowns, etc on a glass effect win form.
[Code]...
I am currently painting a light blue, partly transparent overlay over owner-drawn objects to indicate certain state. It's OK but I thought that it would be even nicer if I could at some sort of glass effect to further establish the idea that the particular object has "something" overlaid over the top of it.
I thought that some glass streaks, for example, in addition to the blue transparency would lend a nice effect.I've Googled around for GDI+ (and others) algorithms to do simple things painting like this but have come up empty. I prefer .NET but can figure out the painting from pseudo-code on up.
Sorry, shoul've also specified that I need to target WinXP and using .NET version 2.0 - So unable to use WPF or Vista/Win7 goodies.
Can I make a tabcontrol with Aero Glass or another effect?
View 8 RepliesHow do you make a glass form in VB.NET? Like the vista/win7 effect, but extended into the form. I saw a tutorial for C#, but can't find one for VB.NET
View 6 RepliesI 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.
View 8 RepliesI 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?
How can I create a form with no title bar, but still have a glass border just like the Volume, Power Options, or Network windows have when you click on their icons in the system tray.[code]...
View 7 RepliesI 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
[code]....
I have enabled the glass effect to Windows Forms in Visual Basic 2010. When I drop controls, they are not displaying well as usual. Whats is wrong with this?Image:
Texts are displaying only front of Black color.
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.... ??
View 1 RepliesI'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.
View 4 RepliesThis is my follow up question to my earlier topic about Memory management.Now I believe I have good code that gets me the results I want. The main application form has a Label field which tells the user to wait with message "Getting the data from the AD Database......". I am noticing that the "Wait" message is up for too long. However, once I get the data, it is processed fast and loaded into the DataGridView.
I would like the user to have a better feedback than the stardard "Wait" cursor. Is there a better way to show how much data (records) were fetched during the data aquisition phase and present it to the user? This would allow the user to guess how much longer he has to wait to complete the data fetching.
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]
View 1 RepliesI 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
[Code]....
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...
View 2 RepliesIf GlassRadioButton.Checked = True Then
well here's where im stuck, I need Glass to get added to a string or something, so it can be called in myAddNew
vb.net
"VALUES"Dim myValue As Integer ' Base value of frames Dim myValue1 As Integer ' Glass or plastic value Dim myValue2 As Integer ' Scratch Coating value Dim myValue3 As Integer ' UV value Dim totalCost As Integer ' Total value Dim deposit As Integer ' Deposit value, 20% of total myValue = 50 'Base value of frames, always 50 If GlassRadioButton.Checked
[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.
View 5 RepliesCan 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?
View 8 Replies