Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > XP Theme Problem


Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2003, 11:10 AM
hiwj hiwj is offline
Newcomer
 
Join Date: Nov 2003
Posts: 4
Exclamation XP Theme Problem


I am having a problem with Windows XP themes.

My VB6 application looks OK with the XP Classic theme, but if I switch to the XP Standard (blue) theme, I loose the bottom of my forms (even when I maximise them).

Is there a way of finding which theme XP is using (so that I have the option of leaving extra space at the bottom of my forms)?
Reply With Quote
  #2  
Old 11-23-2003, 03:18 PM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,887
Default

Design the Form on Windows XP with theming enabled on the IDE.
I experienced the same problems with mis-alignments
Reply With Quote
  #3  
Old 11-23-2003, 06:05 PM
Shazbot's Avatar
Shazbot Shazbot is offline
Regular
 
Join Date: Aug 2003
Posts: 52
Default

just make a manifest file call vb.exe.manifest and put it in the same folder as vb.exe (VB98)
Reply With Quote
  #4  
Old 11-24-2003, 03:11 AM
hiwj hiwj is offline
Newcomer
 
Join Date: Nov 2003
Posts: 4
Default

I have found a way of doing it now by using the IsThemeActive function to find if a Windows XP theme is being used (then compensating for it in the VB code):

Declare Function IsThemeActive Lib "UxTheme.dll" () As Boolean

If IsThemeActive Then MsgBox "Theme is on."
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subclassing as a Method of Problem Solving John Tutors' Corner 1 05-12-2003 09:32 PM
xp theme problem 77_350 General 2 04-15-2003 11:04 AM
A Problem for The Expert Programmers – or maybe not! cballe General 2 07-15-2002 06:48 PM
Timers jemerico General 7 05-30-2001 05:30 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->