Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Property or indexer 'string.this[int]' cannot be assigned to -- it is read only Pin
Simon P Stevens27-May-09 22:34
Simon P Stevens27-May-09 22:34 
AnswerRe: Property or indexer 'string.this[int]' cannot be assigned to -- it is read only Pin
harold aptroot28-May-09 1:11
harold aptroot28-May-09 1:11 
QuestionRefreshing the system Pin
Rajdeep.NET is BACK27-May-09 22:13
Rajdeep.NET is BACK27-May-09 22:13 
AnswerRe: Refreshing the system Pin
OriginalGriff27-May-09 22:22
mveOriginalGriff27-May-09 22:22 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 22:35
Rajdeep.NET is BACK27-May-09 22:35 
GeneralRe: Refreshing the system Pin
DaveyM6927-May-09 22:44
professionalDaveyM6927-May-09 22:44 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 23:39
Rajdeep.NET is BACK27-May-09 23:39 
GeneralRe: Refreshing the system Pin
DaveyM6928-May-09 1:06
professionalDaveyM6928-May-09 1:06 
It seems the easiest way to do this is to make the shell think file associations have changed. When it does, it redraws the desktop. Not sure how 'expensive' this is - but it works.
SHChangeNotify(SHCNE_ASSOCCHANGED, 0, 0, 0);
[DllImport("shell32.dll")]
static extern void SHChangeNotify(uint wEventId, uint uFlags, uint dwItem1, uint dwItem2);

const uint SHCNE_ASSOCCHANGED = 0x08000000;


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: Refreshing the system Pin
molesworth27-May-09 22:47
molesworth27-May-09 22:47 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 22:57
Rajdeep.NET is BACK27-May-09 22:57 
GeneralRe: Refreshing the system Pin
tom57200727-May-09 23:07
tom57200727-May-09 23:07 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 23:31
Rajdeep.NET is BACK27-May-09 23:31 
GeneralRe: Refreshing the system Pin
Anthony Mushrow27-May-09 23:34
professionalAnthony Mushrow27-May-09 23:34 
GeneralRe: Refreshing the system Pin
Dan Neely28-May-09 2:18
Dan Neely28-May-09 2:18 
GeneralRe: Refreshing the system Pin
harold aptroot27-May-09 23:35
harold aptroot27-May-09 23:35 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 23:45
Rajdeep.NET is BACK27-May-09 23:45 
GeneralRe: Refreshing the system Pin
padmanabhan N27-May-09 23:46
padmanabhan N27-May-09 23:46 
GeneralRe: Refreshing the system Pin
tom57200728-May-09 0:19
tom57200728-May-09 0:19 
GeneralRe: Refreshing the system Pin
padmanabhan N27-May-09 23:45
padmanabhan N27-May-09 23:45 
GeneralRe: Refreshing the system Pin
Rajdeep.NET is BACK27-May-09 23:51
Rajdeep.NET is BACK27-May-09 23:51 
GeneralRe: Refreshing the system Pin
padmanabhan N27-May-09 23:56
padmanabhan N27-May-09 23:56 
QuestionListing Directories and Files from Web Server Pin
himuskanhere27-May-09 21:26
himuskanhere27-May-09 21:26 
AnswerRe: Listing Directories and Files from Web Server Pin
Ennis Ray Lynch, Jr.28-May-09 1:36
Ennis Ray Lynch, Jr.28-May-09 1:36 
QuestionRenaming value data Pin
Rajdeep.NET is BACK27-May-09 20:47
Rajdeep.NET is BACK27-May-09 20:47 
AnswerRe: Renaming value data Pin
Colin Angus Mackay27-May-09 20:55
Colin Angus Mackay27-May-09 20:55 

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.