Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
Generalrelation between mouse event and showintaskbar Pin
yu-yu24-Oct-04 16:11
yu-yu24-Oct-04 16:11 
GeneralRe: relation between mouse event and showintaskbar Pin
Dave Kreskowiak25-Oct-04 9:20
mveDave Kreskowiak25-Oct-04 9:20 
GeneralRe: relation between mouse event and showintaskbar Pin
yu-yu25-Oct-04 14:20
yu-yu25-Oct-04 14:20 
GeneralRe: relation between mouse event and showintaskbar Pin
yu-yu25-Oct-04 14:36
yu-yu25-Oct-04 14:36 
GeneralRe: relation between mouse event and showintaskbar Pin
Dave Kreskowiak25-Oct-04 14:59
mveDave Kreskowiak25-Oct-04 14:59 
GeneralRe: relation between mouse event and showintaskbar Pin
yu-yu25-Oct-04 15:14
yu-yu25-Oct-04 15:14 
GeneralUpdating the client form Pin
Anonymous24-Oct-04 15:56
Anonymous24-Oct-04 15:56 
GeneralRe: Updating the client form Pin
Alex Korchemniy24-Oct-04 18:52
Alex Korchemniy24-Oct-04 18:52 
Since an application cannot overwrite itself when executing you create a small launcher exe that will start the actual application. The launcher needs to be designed in a way so that it will never need to be updated. From here you have to make a decision:

A) Application will notify the user and shutdown after acquiring the new files. User will have to start application again manually.
- Launcher will call file copy code on startup before any assemblies are loaded.
- Launcher will load atual application using reflection.

B) Application will automatically reload assemblies and continue running. No user input will be required for restarts.
- Launcher will load actual application into a seperate AppDomain with ShadowFileCopy set to true.
- When all data is downloaded the launcher will start file copy process.
- When file copy process is complete the original AppDomain will be unloaded and new one will be started.

You have to use an AppDomain because you cannot unload individual assemblies. However you can unload the whole AppDomain. ShadowFileCopy enabled you to write over the files on disk.

Things to consider:
- downloading method
- security. can anyone download your app for free?
- downloading on slow connections
- when to check for updates (startup, poll server?)
- how to check for updates (data provided through webservices, data hosted in file on webserver)

This posting is provided "AS IS" with no warranties, and confers no rights.

Alex Korchemniy
GeneralTextBox property limitation Pin
sachinkalse24-Oct-04 15:14
sachinkalse24-Oct-04 15:14 
GeneralRe: TextBox property limitation Pin
Alex Korchemniy24-Oct-04 18:26
Alex Korchemniy24-Oct-04 18:26 
Generalbest way to update a database Pin
steve_rm24-Oct-04 6:36
steve_rm24-Oct-04 6:36 
GeneralClientTime Information Pin
gupta vaibhav24-Oct-04 6:23
gupta vaibhav24-Oct-04 6:23 
GeneralRe: ClientTime Information Pin
J4amieC24-Oct-04 21:44
J4amieC24-Oct-04 21:44 
GeneralRe: ClientTime Information Pin
Salil Khedkar24-Oct-04 23:03
Salil Khedkar24-Oct-04 23:03 
GeneralTurn Off Scrollbars on .NET DataGrid Pin
MarkMokris24-Oct-04 6:10
MarkMokris24-Oct-04 6:10 
GeneralRe: Turn Off Scrollbars on .NET DataGrid Pin
Alex Korchemniy24-Oct-04 9:41
Alex Korchemniy24-Oct-04 9:41 
GeneralRichTextBox Scrolling Pin
WilsonProgramming24-Oct-04 5:59
WilsonProgramming24-Oct-04 5:59 
GeneralRe: RichTextBox Scrolling Pin
WilsonProgramming25-Oct-04 5:58
WilsonProgramming25-Oct-04 5:58 
QuestionHow to use Universal Link Data (C#)? Pin
Miri Ofir24-Oct-04 5:37
Miri Ofir24-Oct-04 5:37 
AnswerRe: How to use Universal Link Data (C#)? Pin
Nick Parker24-Oct-04 6:17
protectorNick Parker24-Oct-04 6:17 
GeneralRe: How to use Universal Link Data (C#)? Pin
Miri Ofir24-Oct-04 6:28
Miri Ofir24-Oct-04 6:28 
GeneralRe: How to use Universal Link Data (C#)? Pin
Alex Korchemniy24-Oct-04 10:26
Alex Korchemniy24-Oct-04 10:26 
GeneralRe: How to use Universal Link Data (C#)? Pin
Miri Ofir25-Oct-04 1:51
Miri Ofir25-Oct-04 1:51 
Generalwhen to use Point to screen Pin
yonitgil24-Oct-04 3:18
yonitgil24-Oct-04 3:18 
GeneralRe: when to use Point to screen Pin
Nick Parker24-Oct-04 3:30
protectorNick Parker24-Oct-04 3:30 

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.