Click here to Skip to main content
15,917,964 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# dll component to react on a specific url Pin
Nick Parker11-Mar-05 11:57
protectorNick Parker11-Mar-05 11:57 
GeneralRe: C# dll component to react on a specific url Pin
bossehansen11-Mar-05 21:19
bossehansen11-Mar-05 21:19 
GeneralRe: C# dll component to react on a specific url Pin
Nick Parker12-Mar-05 3:05
protectorNick Parker12-Mar-05 3:05 
GeneralCustom Controls Pin
Kwai Cheng Kane11-Mar-05 9:28
Kwai Cheng Kane11-Mar-05 9:28 
GeneralRe: Custom Controls Pin
Judah Gabriel Himango11-Mar-05 11:36
sponsorJudah Gabriel Himango11-Mar-05 11:36 
GeneralRe: Custom Controls Pin
Kwai Cheng Kane11-Mar-05 12:54
Kwai Cheng Kane11-Mar-05 12:54 
GeneralRe: Custom Controls Pin
Judah Gabriel Himango11-Mar-05 18:34
sponsorJudah Gabriel Himango11-Mar-05 18:34 
GeneralRe: Custom Controls Pin
Kwai Cheng Kane14-Mar-05 5:04
Kwai Cheng Kane14-Mar-05 5:04 
Oh yeah. Don't get me wrong! I believe it to be the same as well. I am only saying that I believe I have encountered many more causes of the problem, and since I have not been hit by any of the causes indicated in the article, that most of the tips in the article probably won't be of help. I have implemented the following process to see if it helps in my case...

1. place the code for all custom controls in separate library projects. Then add the required control projects as sub projects to the main project that needs the control. Make the main project compile dependant on its compile. Then when I open the main project, compile it before starting any work. In fact, I have gotten in the habit of compiling several times to make sure everything actually gets compiled and refreshed properly.

2. create new custom controls, in the project, that inherits each specific instance of each customized custom control and copy the parent's initialization code into it. For example, if 'a' is a custom control, then create a new object 'b' based on 'a', and create an 'Init()' method in 'b', called from all constructors of 'b'. Then, copy the initialization code of 'a' to the 'Init()' method of 'b'. Then, in the main form load method after the InitializeComponent(), check to see if the auto generated reference to 'a' is null. If so, then declare an instance of 'b' and assign it to the reference. At some point, I should then go back and remove any stray left-over auto-gen code referring to 'a', and then re-add 'a' from the toolbox and then replace the initialization code of 'a' with that in 'b'. This will allow me to start visually editing it again... at least for a while. The down side to this is that if I make visual changes to 'a', I will have to remember to update the init code in 'b' with the changes. This is cumbersome, but considerably less so than having to completely re-add all missing controls from scratch!

3. whenever making a change to the visual layout, switch to the code view before saving. If I make changes to the code, switch to the design window before saving. This way, if the problem hits, it will hit BEFORE the save rather than during the save. It will take some time to make this habit, but it should ensure that the problem does not strike during the save or compile, but rather during the window swap. If controls disappear after swaping, simply close the window(s), choose not to save, and then re-open them. Is there a way to turn off auto save? To make this step reliable, I will have to make sure I know when the save is executed. Also, is there a way to have it create a backup of the current source before saving? I have not been able to find these anywhere, but being able to configure these (if possible) would help tremendously.


GeneralAnybody else having problems with arrow keys Pin
theDexter11-Mar-05 9:08
theDexter11-Mar-05 9:08 
Generaladding item to default menu on windows form Pin
asayyam Khan11-Mar-05 8:11
asayyam Khan11-Mar-05 8:11 
GeneralRe: adding item to default menu on windows form Pin
Pooria Madani11-Mar-05 16:23
Pooria Madani11-Mar-05 16:23 
Generalipconfig commands in C# Pin
Vodstok11-Mar-05 6:07
Vodstok11-Mar-05 6:07 
GeneralRe: ipconfig commands in C# Pin
Dave Kreskowiak11-Mar-05 7:12
mveDave Kreskowiak11-Mar-05 7:12 
GeneralGDI+ Gradients Pin
C Flat11-Mar-05 5:50
C Flat11-Mar-05 5:50 
GeneralRe: GDI+ Gradients Pin
TylerBrinks11-Mar-05 6:05
TylerBrinks11-Mar-05 6:05 
GeneralRe: GDI+ Gradients Pin
C Flat11-Mar-05 6:31
C Flat11-Mar-05 6:31 
GeneralRe: GDI+ Gradients Pin
TylerBrinks11-Mar-05 7:11
TylerBrinks11-Mar-05 7:11 
GeneralRe: GDI+ Gradients Pin
Judah Gabriel Himango11-Mar-05 6:06
sponsorJudah Gabriel Himango11-Mar-05 6:06 
GeneralRe: GDI+ Gradients Pin
MoustafaS11-Mar-05 8:00
MoustafaS11-Mar-05 8:00 
GeneralRe: GDI+ Gradients Pin
C Flat13-Mar-05 7:31
C Flat13-Mar-05 7:31 
GeneralAnother thread question Pin
PaleyX11-Mar-05 2:54
PaleyX11-Mar-05 2:54 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 2:55
PaleyX11-Mar-05 2:55 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 4:51
TylerBrinks11-Mar-05 4:51 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 5:18
PaleyX11-Mar-05 5:18 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 5:56
TylerBrinks11-Mar-05 5:56 

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.