VS 2008 Enabling Visual Styles With Application Framework Disabled?
Dec 1, 2010
Just wondering how i can enable visual styles with the application framework option disabled - it would be nice to have the ability to use the xp+ theming while having a bit more flexibility
I am trying to add a splash screen to my app and when I go into project properties the windows application framwork properties are disabled so a cannot set my form as a splash screen. The checkbox for enable application properties is also disabled so I cannot check it.
I attached a picture of how my project should look and what the labels are. There are a total of 12 books and 4 different age groups. In each age group there are 3 books. There is also a previous and next books button which will show the next book in that age group. I want to make it so that previous button is disabled when it is on the first book of each age group and so that the next book button is disabled when it is at the last book. The only issue that I am having is that after the button is disabled it is not enabled again after. Here is my full code for this part as of now. As you can see I made it so that everytime I click on a new age group the previous button is disabled initially.
I took some unnecessary code out of here because I don't want anyone from my class finding this and coping all of my work.
Public Class BookInfoForm ' use this array to display information in this form Private books(,) As BookInfo = getBooks()
I am calling a login form from the base form. From the base form I disable it after i show the login form. Then from the login form I want to re-enable the base form that is disabled... I have set it to be enabled at the closing of the login form... doesn't work.. i have set it to be enabled through a collection and calling that base forms handle... doesn't work.. Anything that i might be overlooking?These forms are inside an MDI form..
I know that this was an advanced compiler option in previous versions of Visual Studio, is there a way to disable array bounds checking in Visual Studio 2008? There's no option for it that I can see.
I am creating a Visual Basic 2008 .net application that will be using the Sync Service for ADO.NET on Windows 7 Ultimate. The back end database is SQL 2008. Below are the basic steps I take when the error occurs
a. Add a Local Database Cache item to my application b. Use the Configure Data Synchronication wizard for the setup process c. Click the OK button to accept changes d. An error message is generated, "The given key was not present in the dictionary".
I have attempted this several times and the error message presists no matter how I vary the options. I have also installed Microsoft Sync Framework 2.0 successfully but the error persists. I also have all the following Dlls referenced in my project:
I am sure I don't need all of these references but I figured it does not hurt to have them all referenced for now. I have the latest OS service and Visual Studio 2008 service packs.
how to disable XP visual styles in VB?I unticked "Enable XP visual styles", but application still has XP visual style. I want to achieve that application will be in Windows Classic color scheme look. Basically the same what you can do in windows settings, but that`s for entire windows and I want it for my application only and default on every computer, where application will be installed.
I have a number of ActiveX controls which make use of consituent controls (edit boxes,combo boxes etc). I'm using these in a VB .Net 2005 project.When I run the application within the IDE, all the ActiveX controls display correctly with the XP visual styles.But when I run the built assembly, the ActiveX controls display without XP visual styles
I go to install visual basic 2008.. and it says that an error has occurred. and that .net framework 3.5 could not be installed? I've tried other programs like visual studio and visual c++ and they all do the same thing. and i've also tried directly installing the framework and it still wont work. Sorry if this is not the right place for this post but i couldnt find a tech support forum?
I have created a VB.NET Class Library that exposes some COM Interop sub routines. These in turn show various forms that are contained within the Class Library. When the forms are shown from VB6 they do not inherit the visual styles of the operating system and act like VB6 controls.
I gather that this probably by design but is there some way to force/control visual styles manually in the .NET assembly? I would imagine that if I use a manifest in my VB6 app then everything will use the correct style but I would like to be able to control this myself if possible because we are using 3rd party controls in VB6 that do not require a manifest.
I've done much research in how to turn off visual styles for a custom drawn control, and coming only close on how to do this.
The problem I am seeing is that Application.EnableVisualStyles affects a boolean which tells the control how it should paint itself. I don't have a problem with styles being enabled, but rather getting a button to be drawn without using the visual styles rendering function.
Public Class LookupButton Inherits Button #Region "Disable Themes"
[Code]....
Method 2 simply does not do anything, nor would I want to use it, since it calls unmanaged code.
Method 1 does the right thing for the button, disabling the theme, but of course it does way more than that causing the entire window/app to blink with/without visual styles. And even if this did work, I wouldn't use it because it effects the entire application.
We need visual styles enabled on progress bars, since marquee will be used on a few database calls.
The button has an image ontop of it which gets cut off by the visual styles rounded corners. And there are a few more controls which would be benificial to turn off visual styles as well.
If there is anyway to manipulate the ButtonRenderer so it does not render using visual styles, this is the solution I am looking for. Having no styling for any buttons is preferable.
This is for a project I am working on for my company. We have Visual Studio 2005 .NET Team Edition (per customer request), and are gold certified (which I don't want to give up community support/supporting the community, but is there any programming forums for us where our answers could be answered before 24 hours and/or the questions goes into consideration when microsoft develops tool?).
To me it seems silly to have Visual Styles enable-able for the whole application, when dealing with the windows api, individual windows/controls can easily be themed or unthemed.
When I draw a line on the form using Visual Basic Power Packs the ends of the line are squared off. Is there way to round them off? In code I could write something like this to do it:
vb.net Dim pn As New Pen(Color.Black, 5) pn.StartCap = Drawing2D.LineCap.Round pn.EndCap = Drawing2D.LineCap.Round
I'm sure I'm doing something wrong because I can't see how the problems I'm having with controls' appearance in Win7 can be normal. When "Enable XP visual styles" is enabled in my application, my progressbars never fill and gridlines don't show in Listviews. Disabling XP visual styles fixes those problems, but then everything looks like Win98 and that's no solution.
I have upgraded an existing project to be developed on Visual Studio 2008 but I still need to target the .NET framework 2.0My project had the prerequisite Crystal Reports for .NET Framework 2.0 but Visual Studio 2008 reports that that "could not be found for bootstrapping"Now my users get the error:Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, ...' or one of its dependencies. The system cannot find the file specified.
I am using VB.Net 2008. I am using a 3rd party dll in my app that requires xp visual styles to be turned off, or that a manifest file be added to my app to re-direct comctl32.dll (link to 3rd party workaround:[URL]
I tried creating the manifest according to: [URL] This did not change the issue. Perhaps I did not add the manifest properly?
Here are the steps I tried:
1. Add xml file to app and name it MyApp.exe.manifest
2. Add the xml file to my resources.
The above did nothing so I removed it and then:
3. Add xml file to app and name it Comctl32.dll.manifiest
I'm working on two different projects - both in VB.NET/Visual Studio 2008 (as much as I'd like to move to 2010).
I find I'm confusing the different coding standards that I'm supposed to follow. IE - Project1 wants variables named in a Hungarian-style notation like 'iSomeValue'; the does not want a prefix. One project requires an _ prefix on private class-level variables - etc...etc...
Are there any tools I can integrate with VS 2008 that will let me easily swap between pre-defined styles and format my code for me?
We have an application that is installed and runs just fine on Vista. Our users are requiring a change to our application in order to change the system time on their PC. The code to change the time is as follows:
Private Sub UpdatePCDate() Dim _ServerTime As Date = GetServerDate() Dim _offset As Integer = TimeZone.CurrentTimeZone.GetUtcOffset(_ServerTime).Hours
[Code].....
When this code executes, it bombs because of UAC. How can we modify our program to display the message similar to when they try to change the system time via the Control Panel. That is, it warns them that something is about to happen that requires their permission.
is there a setting in the options somewhere that makes the shortcut keys show with the underline when you run the application? In the designer it shows the shortcut keys with the underline but when i run the application it does not show the underline indicating a shortcut key. Now if I push the alt key they show up and they work fine just wondering if there is a setting somewhere that will make them show the underline automatically when you run the application so an inexperienced user knows that there are shortcut keys available?
I have Visual Studio 2008 Professional and I'm trying to make it so I can click a button to send the application to the System Tray and then click the icon in the System Tray to make the application come back.
Can anyone provide me a method or sample code to do this?
I am using Visual Studio Ultimate. I have made a fairly long program which worked fine.One day I find that the debug button was disabled and both the build and rebuild buttons do not work. I have tried opening the same project files in Visual Basic Express 2010 but still, the sane problem.
I am facing problems these days. I have VB Express 2008 with 3.5 .Net Frame Work. I develop applications but my applications dont run on the systems those have 2.0 framework or lower.How can I make my applications to run on all kinds of systems
I realize this post is rather long, but I wanted to give all the information up front instead of people having to ask me for more information.At the end of the re-installation of Visual Studio 2008, there is this message:
"Microsoft SQL Publishing Wizard: [2] Error: Installation failed for component Microsoft SQL Publishing Wizard. MSI returned error code 1638" in the log file dd_error_vs_procore_90.txt.
I have searched on Google for this whole message and found some references to this error, but I have done what they said worked for them and it did not fix the problem for me.When I searched for just "MSI returned error code 1638", I got that it cannot install something because it is already installed:"Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel".In Add/Remove Programs I see these two programs:
Microsoft SQL Server Database Publishing Wizard 1.3 Microsoft SQL Server Database Publishing Wizard 1.4
Are these programs/versions what the error is refering to? Am I safe to remove them and depend on the similarly-named item which would be newly installed with Visual Studio 2008 - "Microsoft SQL Publishing Wizard"? I still use SQL Server 2000 and 2005 on my computer, as well as 2008. I had installed VS 2008 on my computer before without this problem and also have VS 2005 and 2010.
I am work on VB.net 2003 Framework 1.1 for last 3.5 years in windows Application.We are currently migrating to VB.net 2008 framework 3.5, but i don't know about the features which related to ADO.net and which is important to performance. I know linq to SQL but our architecture is made in .net 2003 so we should follow this.Any features which is very important to enhance the performance?