Ribbon Control Problem.

Posts 1–9 of 9 · Page 1 of 1
Ribbon Control Problem.
When i debug the problem the border is still the same old translucent light blue border. As you can see i changed it to a black border but it doesnt seem to work when i debug it. What seems to be the problem? And yes i tried building the project and it didnt work either.



To Clarify:

The issue is not Visual Basic.Net Related!
The Issue is not DevComponents Related!

The issue is caused by Aero Themes of Windows Vista and Windows 7

Shut off Aero themes in vistadows 7.

Quote Originally Posted by Wiki
Windows Aero is the graphical user interface and the default theme in most editions of Windows Vista and Windows 7, operating systems released by Microsoft. It is also available in Windows Server 2008, but is not enabled by default. Its name is a backronym for Authentic, Energetic, Reflective and Open.[1] Intended to be a cleaner, more powerful, more efficient and more aesthetically pleasing user interface than the previously used theme (Luna), it includes new translucency, live thumbnails, live icons, animations and eye candy. Aero also encompasses a set of user interface design guidelines for Microsoft Windows.
In this section of my explanation I am offering a VB.net code to disable Windows Aero inside of your application, this way your users don't have the same issues as you!......


Add a Button to your form (or a setting) that says "Enable Application Theme"

In the Button_Click Event add the following code

Just add the option to turn on/off aero and on button click Event

Code:
System.Process.Start("Rundll32 dwmApi #102")
This code will disable the Windows Aero Theme.

or

Code:
'Should Work
Dim dwndis As HRESULT = S_OK
' Disable DWM 
dwndis = DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)
If SUCCEEDED(dwndis) Then
   ' You can have an event here, don't need to 
End If
Which should also disable the Windows Aero Theme.

When You disable Aero theme (which is that glass effect skin) It will enable the DevComponents theme.

sorry NextGen1 i dont quite understand what you are saying.
You are running Windows Vista Or 7 Right?

well, Vista and Windows 7 has a Theme (style),

Remember Windows XP, there was Windows Classic , Windows XP Olive, Windows XP Silver, Windows Xp blue?

Windows Vista and 7 has a Skin (theme, style) Called Aero, But it's alot more powerful then your traditional skins .

When the Aero theme is enabled it masks the DevComponents, In order to correct this, You have to disable the Aero theme, Now you can do this in you Control Panels or Themes manager , but that will only work locally, anyone on a Vista or 7 Machine with Aero Enabled will have the same problem when viewing (using) your application.

So I suggested you use one of the codes above to disable Aero , or offer the option of disabling the aero theme inside of your application.
U shuldnt use vb themes cuz many people hav computers with 3rd party themes
@ Hope, 14 Yr olds and < maybe..............

@ OP and Lolland

I really didn't think it is that hard to comprehend.

Quote Originally Posted by Ammended Post

To Clarify:

The issue is not Visual Basic.Net Related!
The Issue is not DevComponents Related!

The issue is caused by Aero Themes of Windows Vista and Windows 7

Shut off Aero themes in vistadows 7.

From Wiki
Windows Aero is the graphical user interface and the default theme in most editions of Windows Vista and Windows 7, operating systems released by Microsoft. It is also available in Windows Server 2008, but is not enabled by default. Its name is a backronym for Authentic, Energetic, Reflective and Open.[1] Intended to be a cleaner, more powerful, more efficient and more aesthetically pleasing user interface than the previously used theme (Luna), it includes new translucency, live thumbnails, live icons, animations and eye candy. Aero also encompasses a set of user interface design guidelines for Microsoft Windows.

In this section of my explanation I am offering a VB.net code to disable Windows Aero inside of your application, this way your users don't have the same issues as you!......

Add a Button to your form (or a setting) that says "Enable Application Theme"

In the Button_Click Event add the following code

Just add the option to turn on/off aero and on button click Event

Code:
System.Process.Start("Rundll32 dwmApi #102")

This code will disable the Windows Aero Theme.

or

Code:
'Should Work
Dim dwndis As HRESULT = S_OK
' Disable DWM
dwndis = DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)
If SUCCEEDED(dwndis) Then
' You can have an event here, don't need to
End If


Which should also disable the Windows Aero Theme.

When You disable Aero theme (which is that glass effect skin) It will enable the DevComponents theme.
This really is not that complex of a concept , I am hoping that the Visual Basic Developers in this section at least (if nothing else) knows about windows theme manager....................................

That is the issue with your theme.....
make the formborderstyle = none
Quote Originally Posted by mnpeepno2 View Post
make the formborderstyle = none
this method dosnt work it worked if there were form border issues with XP but no Win vista/7

the only way for this to work is to follow what NexGen suggested or get rid of your theme.

and what NexGen said is a very simple idea basicaly (dumbing it down a bit)

Windows Aero is hiding your theme behind it so you have to turn Aero off for it to show your theme and NexGen posted code to turn off Aero and turn on Aero
I don't think that will work ,

I haven't tested it, but when you inherit the dev components from the form designer, it removes the title bar and replaces it with RibbonControl title bar

Best solution is what was said above.

I know this because I team viewed someone else here who had that problem, and it was vista aero themes that did it.
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us