Click here to Skip to main content
15,902,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: Uploading a file Pin
jeweladdict13-Apr-06 11:03
jeweladdict13-Apr-06 11:03 
GeneralRe: Uploading a file Pin
Sean8913-Apr-06 11:08
Sean8913-Apr-06 11:08 
AnswerRe: Uploading a file Pin
Guffa13-Apr-06 11:20
Guffa13-Apr-06 11:20 
AnswerRe: Uploading a file Pin
Guffa13-Apr-06 11:22
Guffa13-Apr-06 11:22 
GeneralRe: Uploading a file Pin
Sean8913-Apr-06 11:40
Sean8913-Apr-06 11:40 
AnswerRe: Uploading a file Pin
Guffa13-Apr-06 12:11
Guffa13-Apr-06 12:11 
GeneralRe: Uploading a file Pin
Sean8913-Apr-06 12:50
Sean8913-Apr-06 12:50 
QuestionCan I have design time set components in a static class Pin
Dan Neely13-Apr-06 10:33
Dan Neely13-Apr-06 10:33 
I've got a half dozenish identical copies of an imagelist in different forms of my app. To avoid having to make changes to each of them if it was modified I want to move them into a single location and share it between all the forms. To have design time support for the data I derived the wrapper class from System.ComponentModel.Component. I then copied the ImageList from one of the existing forms. The images, and the related data in the class is all global/shared so I made the class static and made the neccesary type changes to the declaration and InitializeComponent().

Initially everything worked great, prior to checking the source in however I renamed the imagelist to something more appropriate for general use (old name was targeted at the form I copied from). At that point, VS zapped the imagelist and it's contents into oblivion. I did a bit of experimenting afterwards, and found that any component I add to the design page and then make static is removed after the next build.

Is there any way to make VS leave the static components alone? If not, I can add a static SetImageList(...) method, keep the imagelist in the class with my Main() method, and have it's constructor do the initialization, but this feels like a kluge and I'd prefer a more graceful approach if possible.
QuestionWinforms text box saving and loading Pin
jeweladdict13-Apr-06 10:16
jeweladdict13-Apr-06 10:16 
AnswerRe: Winforms text box saving and loading Pin
CWIZO13-Apr-06 10:47
CWIZO13-Apr-06 10:47 
GeneralRe: Winforms text box saving and loading Pin
jeweladdict13-Apr-06 10:50
jeweladdict13-Apr-06 10:50 
GeneralRe: Winforms text box saving and loading Pin
CWIZO13-Apr-06 10:55
CWIZO13-Apr-06 10:55 
GeneralRe: Winforms text box saving and loading Pin
jeweladdict13-Apr-06 11:02
jeweladdict13-Apr-06 11:02 
QuestionEvent Log Viewer without EventLog Pin
AhClem13-Apr-06 9:07
AhClem13-Apr-06 9:07 
QuestionCOM compatibility Pin
Waldermort13-Apr-06 7:54
Waldermort13-Apr-06 7:54 
AnswerRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 8:02
Jakob Farian Krarup13-Apr-06 8:02 
GeneralRe: COM compatibility Pin
Waldermort13-Apr-06 8:15
Waldermort13-Apr-06 8:15 
GeneralRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 12:25
Jakob Farian Krarup13-Apr-06 12:25 
GeneralRe: COM compatibility Pin
Waldermort13-Apr-06 18:05
Waldermort13-Apr-06 18:05 
GeneralRe: COM compatibility Pin
Jakob Farian Krarup13-Apr-06 18:27
Jakob Farian Krarup13-Apr-06 18:27 
QuestionApplication wide objects Pin
martin_hughes13-Apr-06 7:28
martin_hughes13-Apr-06 7:28 
AnswerRe: Application wide objects Pin
August Sodora III13-Apr-06 10:03
August Sodora III13-Apr-06 10:03 
AnswerRe: Application wide objects Pin
Graham Nimbley13-Apr-06 11:17
Graham Nimbley13-Apr-06 11:17 
Questionhow to get path of application Pin
Shaurya Rastogi13-Apr-06 7:19
Shaurya Rastogi13-Apr-06 7:19 
AnswerRe: how to get path of application Pin
martin_hughes13-Apr-06 7:45
martin_hughes13-Apr-06 7:45 

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.