and how can you create an icon for it?
whatever icon i choose, it compliles it having the default "white box" icon, but when the app opens up the icon shows on the taskbar, but the actual exe has no icon.. how can i fix this?
Printable View
and how can you create an icon for it?
whatever icon i choose, it compliles it having the default "white box" icon, but when the app opens up the icon shows on the taskbar, but the actual exe has no icon.. how can i fix this?
I think this topic has been asked previously in this forum - try doing a search in the forums to see if you can find out any information.
This seems to be a common question - but sorry to say I haven't yet investigated it - so I have no code to share yet.
That's in VS.NET2003 . It's property you can set to : XPStyle (not sure of the right name)
cant seem to find it.. no such property exists (looking in the form properties)
Check you project Property Page (properties window) , there you can set the default icon for your application (exe) .Quote:
Originally posted by qpabani
cant seem to find it.. no such property exists (looking in the form properties)
i can change the icon, but it wont appear as the executable's icon in windows explorer - the default white box is there instead..
and i cant find the xp style either :(
Change the icon in project properties and the main form icon , then shut down your project , delete the exe file , run it again . It might help , although I changed the icon without any problems .
Btw , are you running VS.NET2003 ? I've heard that XPStyle property is right there .I don't have it but the guys said that here .
(vb.net 2003) yes if you open up the " Windows Form Designer generated code " region in your main form and add Application.EnableVisualStyles() directly after InitializeComponent() it does away with making the manifest file.
Ahaa , Cool . So it's not visual property in the IDE ?
I don't know of or can see any visual property in the IDE.
for visual studio .net 2003 >
and set each control with a FlatStyle property to FlatStyle.SystemCode:#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Application.EnableVisualStyles() 'ADD THIS LINE!!!
'Add any initialization after the InitializeComponent() call
End Sub
for visual studio .net 2002 >
check THIS: might be helpful!!! :)
er ... just a question ... the converter in ur sig can't convert projects to vs .net 2003 final :/Quote:
Originally posted by Pirate
Ahaa , Cool . So it's not visual property in the IDE ?
Click it , you should firgure it out yourself :p .Quote:
Originally posted by session
er ... just a question ... the converter in ur sig can't convert projects to vs .net 2003 final :/
http://www.codeproject.com/useritems.../VSConvert.gif
the build isn't final build!!!
Apologies for bringing up this old thread but I don't like to start new threads unnecessarily.
I was trying to follow a microsoft article http://msdn.microsoft.com/netframewo...ndowsforms.asp
the problem was I was get the following
-----------------------------------------------------------------------------
Error while trying to run project:Unable to start debugging
Unable to start program e:\vbdotnet\XPStyleExample.exe
The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.
------------------------------------------------------------------------------
So I did some searching and found this thread.
I found what session said and added this line.
Am I right in believing this line only works for VS.NET version 2003 and not the previous version?Code:Application.EnableVisualStyles() 'ADD THIS LINE!!!
Does anyone know why my program wouldn't work with the manifest file?
(A difficult question when you can't see my app infront of you).
If I use the single line of code method and run the app on a W2K machine will it run OK?
So many questions.
Thanks for reading.
To make it work in the IDE, place a manifest file in:
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
(or wherever you're devenv.exe is)
I have attatched the manifest file, but you will have to remove the .txt extension.
Thanks PeteD, I shall try that in a mo.
Anyone got any answers to my other questions?