473,385 Members | 1,343 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,385 software developers and data experts.

VS NET 2003 - controls like in Win Xp

Hello.
Somewhere I read that In visual studio 2003 will be posible set in controls
e.g. : button like button in Windows Xp ......., without makeing manifest
file.
Thank for answer.
Nov 20 '05 #1
5 945
* Rado schrieb:
Somewhere I read that In visual studio 2003 will be posible set in controls
e.g. : button like button in Windows Xp ......., without makeing manifest
file.


Add this code to a new code file:

\\\
Imports System.Windows.Forms

Public Class Main
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm())
End Sub
End Class
///

Then set the project's startup object to 'Sub Main' in the project's
properties window.

--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet>

Nov 20 '05 #2
Herfried, what is the purpose of Application.DoEvents() in your code chunk?
Is this something I should always be doing in sub main? Would it make any
difference if sub main is prescribed as STA or MTA?

Eric
"Herfried K. Wagner" <hi*******@m.activevb.de> wrote in message
news:3F**************@m.activevb.de...
* Rado schrieb:
Somewhere I read that In visual studio 2003 will be posible set in controls e.g. : button like button in Windows Xp ......., without makeing manifest file.


Add this code to a new code file:

\\\
Imports System.Windows.Forms

Public Class Main
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm())
End Sub
End Class
///

Then set the project's startup object to 'Sub Main' in the project's
properties window.

--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
* "Eric Sabine" <mo*****@hyottmail.com> scripsit:
Herfried, what is the purpose of Application.DoEvents() in your code chunk?
It's a "bugfix". If you don't use it there will be problems with images
in TreeViews and ToolBars.
Is this something I should always be doing in sub main? Would it make any
difference if sub main is prescribed as STA or MTA?


I think it must be run as STA.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4
Please note there are still bugs using this with Treeview. Viewing large
icons in the treeview fails if Application.EnableVisualStyles is used at
all...
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bo*************@ID-208219.news.uni-berlin.de...
* "Eric Sabine" <mo*****@hyottmail.com> scripsit:
Herfried, what is the purpose of Application.DoEvents() in your code chunk?

It's a "bugfix". If you don't use it there will be problems with images
in TreeViews and ToolBars.
Is this something I should always be doing in sub main? Would it make

any difference if sub main is prescribed as STA or MTA?


I think it must be run as STA.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>

Nov 20 '05 #5
* "SuperRider" <Do*******@thishere.com> scripsit:
Please note there are still bugs using this with Treeview. Viewing large
icons in the treeview fails if Application.EnableVisualStyles is used at
all...


ACK. There _are_ still problems with some controls.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
4
by: Wayne Aprato | last post by:
I have a simple database which was originally written in Access 97. When converted to Access 2000 file format it ran flawlessly in Access 2002. I've just tried to run it in Access 2003 and I am...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
11
by: Lloyd Sheen | last post by:
Is there any one who has actually done this. I have now scanned more web articles about this with the realization that not one of them (including MSDN docs) outlines how to do this. This is...
4
by: Dennis | last post by:
I just lost some user controls for no reason using VB.Net 2003. I had added the controls thru the Design IDE and all was working ok but for some reason, they just disappeared. The form module...
2
by: Deb | last post by:
The conversion of my department's 12 machines has gone really well and I have had no big problems with any of it. Now for another question -- Are there any new "goodies" in Access 2003 that are...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
3
by: Darren | last post by:
Not sure if this has been covered before....... I have an issue with an asp.net application running on Windows 2000 server and Windows 2003 server:- The name generation of html objects (ie...
1
bAllzACK
by: bAllzACK | last post by:
I have developed a MS Access 2003 DB for a housing window manufacturer and am using a Rectangle control to graphically represent windows for houses. The rectangle controls can be mouse clicked by the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.