Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert Windows Application to .NET ASP Application Pin
Luis Alonso Ramos14-Sep-05 16:20
Luis Alonso Ramos14-Sep-05 16:20 
QuestionDataGrid Pin
Taurian11014-Sep-05 13:45
Taurian11014-Sep-05 13:45 
AnswerRe: DataGrid Pin
Taurian11017-Sep-05 4:17
Taurian11017-Sep-05 4:17 
QuestionAuto generated code breaks Pin
Christian Graus14-Sep-05 12:57
protectorChristian Graus14-Sep-05 12:57 
AnswerRe: Auto generated code breaks Pin
Ashok Dhamija14-Sep-05 23:32
Ashok Dhamija14-Sep-05 23:32 
GeneralRe: Auto generated code breaks Pin
Christian Graus15-Sep-05 11:06
protectorChristian Graus15-Sep-05 11:06 
GeneralRe: Auto generated code breaks Pin
Ashok Dhamija15-Sep-05 20:14
Ashok Dhamija15-Sep-05 20:14 
QuestionStatusbar Pin
Taurian11014-Sep-05 10:45
Taurian11014-Sep-05 10:45 
In my application I am using a StatusBar of which I need to change Icon dynamically on different event. I did something like this:

Icon redIcon = new Icon(@"C:\Documents and Settings\Me\My Documents\Visual Studio Projects\Invoices\Icons\Red_light.ico");

statusBarPanel1.Icon = redIcon;


But when I tried to deploy this application the package and deployment wizard did not include the folder under my solution. So, when I installed it to any PC other then mine, I got an error:
Could not find a part of the path "C:\Documents and Settings\haider\My Documents\Visual Studio Projects\InvoiceQueue\Icons\Check.ico

How can I use these Icon files that my setup project includes it.
Also lets assume that I included these files in my setup project but how would I know the path of that Icon folder because right now I am hardcoding the location but user may change the location of installation etc.

In ASP.NET we used Server.MapPath but how or what technique I need to use in Windows Applications? Thanks a lot for your time in advance.

Best Regards,
Rob

-- modified at 16:48 Wednesday 14th September, 2005
AnswerRe: Statusbar Pin
Mark0614-Sep-05 11:26
Mark0614-Sep-05 11:26 
AnswerRe: Statusbar Pin
Luis Alonso Ramos14-Sep-05 16:24
Luis Alonso Ramos14-Sep-05 16:24 
Questionmeasuring string Pin
xilefxilef14-Sep-05 10:31
xilefxilef14-Sep-05 10:31 
AnswerRe: measuring string Pin
seee sharp15-Sep-05 2:40
seee sharp15-Sep-05 2:40 
Question.net going away? Pin
Daniel132414-Sep-05 10:07
Daniel132414-Sep-05 10:07 
AnswerRe: .net going away? Pin
Colin Angus Mackay14-Sep-05 10:28
Colin Angus Mackay14-Sep-05 10:28 
GeneralRe: .net going away? Pin
Paul Conrad14-Sep-05 19:40
professionalPaul Conrad14-Sep-05 19:40 
AnswerRe: .net going away? Pin
Michael P Butler14-Sep-05 10:38
Michael P Butler14-Sep-05 10:38 
AnswerRe: .net going away? Pin
Alvaro Mendez14-Sep-05 11:20
Alvaro Mendez14-Sep-05 11:20 
GeneralRe: .net going away? Pin
Daniel132414-Sep-05 11:22
Daniel132414-Sep-05 11:22 
AnswerRe: .net going away? Pin
Christian Graus14-Sep-05 11:31
protectorChristian Graus14-Sep-05 11:31 
GeneralRe: .net going away? Pin
Judah Gabriel Himango14-Sep-05 12:37
sponsorJudah Gabriel Himango14-Sep-05 12:37 
AnswerRe: .net going away? Pin
Matt Gerrans14-Sep-05 18:42
Matt Gerrans14-Sep-05 18:42 
GeneralRe: .net going away? Pin
Daniel132415-Sep-05 2:06
Daniel132415-Sep-05 2:06 
GeneralRe: .net going away? Pin
mav.northwind15-Sep-05 2:15
mav.northwind15-Sep-05 2:15 
GeneralRe: .net going away? Pin
Daniel132415-Sep-05 2:19
Daniel132415-Sep-05 2:19 
QuestionTesting for compiler version Pin
Mark DeVol14-Sep-05 9:50
Mark DeVol14-Sep-05 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.