Friday 15 August 2014

Refresh desktop - VB.NET -



Refresh desktop - VB.NET -

i'm trying refresh desktop, tried this,

private declare function shchangenotify lib "shell32.dll" (byval weventid long, byval uflags long, byval dwitem1 long, byval dwitem2 long) long phone call shchangenotify(&h8000000&, &h0, vbnullstring, vbnullstring)

but gives me error

what right way refresh desktop ?

you need phone call shcangenotify(&h8000000, &h0, nothing, nothing) within method example:

public class illustration private declare function shchangenotify lib "shell32.dll" (byval weventid long, _ byval uflags long, _ byval dwitem1 long, _ byval deitem2 long) long private sub refreshwindow() shcangenotify(shchangenotify(&h8000000, &h0, nothing, nothing) end sub end class

vb.net

No comments:

Post a Comment