Results 1 to 6 of 6

Thread: [2005] Develop Vista Application

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Surabaya, Indonesia
    Posts
    163

    [2005] Develop Vista Application

    I've installed VB2005 Express on my PC with Vista as it's OS. However, like XP, it won't apply Vista style from most VB2005 control (I tried textbox, combo box, and listbox. I assumed all control won't apply it). Does it need manifest file (again) ? I don't understand why Microsoft didn't make standard control that will apply any visual style provided by OS automatically ? Is it hard to make it or what ?

    Regards

    Michael

  2. #2
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: [2005] Develop Vista Application

    Visual Studio 2005 takes your current theme when displaying. If your're running the classic theme or a custom theme (Stardock) then it wont appear for you. As well if the user is running a different them than you, they won't see the same style of controls. As a note, if the user is running Windows 2000, they will not see XP/Vista styles.

    Visual Studio should show the style right in both XP and Vista, at least it does for me.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Surabaya, Indonesia
    Posts
    163

    Re: [2005] Develop Vista Application

    Visual Studio should show the style right in both XP and Vista, at least it does for me.
    Not for me. The textbox, Combo Box and List Box didn't apply Vista theme. It's still like XP style. Vista Textbox has a "glass" effect, but when I created a textbox with Visual Studio, it didn't apply it's styles. I'm sure I've checked "Enable Application Framework" in my project.

    FYI, I have Vista Ultimate installed both in my laptop and my desktop PC(both at home, while now in my office, I use XP ).
    For my laptop, I use VB2005 Express and has Aero style enabled.
    For my desktop, I use VS2005 Professional SP1 (But I still haven't install SP1 for Vista Beta), and I have Aero feature disabled (due to driver incompatibility wiht my ATI VGA card, I guess).

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Develop Vista Application

    I haven't used Vista or developed for it so I don't know all the details, but here is some information that will probably be useful.

    .NET 2.0 uses the System.Windows.Forms namespace for WinForms controls. .NET 3.0 is a superset of .NET 2.0 that includes assemblies and namespaces specifically supporting Vista features, including Windows Presentation Foundation. To develop applications that use native Vista UI features you probably have to install .NET 3.0 and the VS 2005 extensions that support the Vista features. You will then have to use the assemblies and namespaces that include Vista support in place of System.Windows.Forms. As always, MSDN has ALL the information.

    http://msdn2.microsoft.com/en-au/vstudio/aa973758.aspx
    http://msdn2.microsoft.com/en-au/library/ms754130.aspx
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] Develop Vista Application

    Quote Originally Posted by michaelrawi
    I've installed VB2005 Express on my PC with Vista as it's OS. However, like XP, it won't apply Vista style from most VB2005 control (I tried textbox, combo box, and listbox. I assumed all control won't apply it). Does it need manifest file (again) ? I don't understand why Microsoft didn't make standard control that will apply any visual style provided by OS automatically ? Is it hard to make it or what ?

    Regards

    Michael
    It uses the "Desktop Windows Manager" to apply "themes" and the old manifest trick will not apply the styles.

    My original thread on Vista and VB - http://vbforums.com/showthread.php?t=441711
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Location
    Surabaya, Indonesia
    Posts
    163

    Re: [2005] Develop Vista Application

    To develop applications that use native Vista UI features you probably have to install .NET 3.0 and the VS 2005 extensions that support the Vista features. You will then have to use the assemblies and namespaces that include Vista support in place of System.Windows.Forms. As always, MSDN has ALL the information.

    http://msdn2.microsoft.com/en-au/vstudio/aa973758.aspx
    http://msdn2.microsoft.com/en-au/library/ms754130.aspx
    I already have ".NET Framework 3", "Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP" and "Visual Studio 2005 Extensions for Windows Workflow Foundation (EN)", installed in my office. Due to some conflict in my local MSDN (Some topics are gone. I've posted somewhere on this forum), I removed them, but keep .NET Framework 3. Unfortunately, my office still run under XP, and didn't think to install them with Vista (until you mentioned it ). Maybe I will try to install them on Vista.

    My original thread on Vista and VB - http://vbforums.com/showthread.php?t=441711
    Yes, I'm already read that too. I already download VS2005 SP1 shortly after it's release (I participate in SP1 Beta too ). However, I still can't find any article about the "Desktop Windows Manager". Do you have any article/direct link about this ? It's so lag to browse MSDN right now (and VBForums too). Asia still has some internet connection problem due to earthquake a few days ago.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width