Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Desktop

Status
Not open for further replies.

TSSTechie

Technical User
May 21, 2003
353
0
0
GB
Hi

Wonder if someone could possibly give me some vb.net code to refresh the desktop. I've written a program that creates a namespace extension on the desktop but can't get it to refresh the desktop so it show up without logging off and on again.

Can anyone help please ??

Thanks in advance

TSSTechie

[lightsaber] May The Force Be With You [trooper] [yoda]
 
Hi Folks,

Sorted it.

Code:
Private Declare Function SHChangeNotify Lib "Shell32.dll" (ByVal wEventID As Long, ByVal uFlags As Long, ByVal dwItem1 As Long, ByVal dwItem2 As Long) As Long

Call SHChangeNotify(&H8000000&, &H0, vbNullString, vbNullString)

Thanks anyway

TSSTechie

[lightsaber] May The Force Be With You [trooper] [yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top