473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

using enable application framework from module

11
Hello,

I have to update an excisting program. This is programmed in vs2003. framework 1

Now I have to do some changes to this and using vs2005 now. Also framework 2.
Being this an update I'd like to have it the xp look and feel. I found this works simple by checking "enable application framework" in the program properties. However when checking this I have to choose a 'form' to startup from. This happens now from a module. Is there any way I can get this to run from the module having xp look and feel. Or a work around?

Thx in advance
Dec 5 '07 #1
2 1166
Plater
7,872 Expert 4TB
Hello,

I have to update an excisting program. This is programmed in vs2003. framework 1

Now I have to do some changes to this and using vs2005 now. Also framework 2.
Being this an update I'd like to have it the xp look and feel. I found this works simple by checking "enable application framework" in the program properties. However when checking this I have to choose a 'form' to startup from. This happens now from a module. Is there any way I can get this to run from the module having xp look and feel. Or a work around?

Thx in advance
In your main() function (or wherever the Application.Run function is called)
Add in this line:
Expand|Select|Wrap|Line Numbers
  1. Application.EnableVisualStyles();
  2.  
This tells your application to use the theme currently in use (such as XPs look and feel)
Dec 5 '07 #2
woony
11
Thanks alot!
This worked perfectly.
Dec 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
3
by: redefined.horizons | last post by:
Its the Java developer again... I'm working on an application framework that I would like to implement in Python. Part of the application framework is a plug-in model that is similar to the one...
2
by: Robert Dufour | last post by:
In my app I was using a sub main as the startup object and this code Curlocale = My.Settings.UserUiLanguage System.Threading.Thread.CurrentThread.CurrentUICulture = New CultureInfo(Curlocale) ...
6
by: Mark Sandfox | last post by:
How do i get my ASP.NET Web Application to work on my MS Server 2003 on the internet? Step by step please. I have created and built a simple calendar app that works locally, but not when i...
5
by: Miro | last post by:
My form suddenly wouldnt compile. It had an error - main form must be specified. So i went to my Solution and went to properties. In the Application Tab I reset my opening form, but my "Enable...
3
by: vovan | last post by:
In a new WindowsForm project with default settings I wrote a loop: For Each frm In My.Application.OpenForms If frm.Name <"MDIMain" Then frm.Close() End If Next
5
by: =?Utf-8?B?QWxla3MgS2xleW4=?= | last post by:
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I start application I get error in line session("aa")="bb" Error tells that I need to enable session state. I found in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.