Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Multi threading and garbage collected problem using RegisterShellHook and SetWindowLong API. Pin
Luc Pattyn2-Jul-10 10:38
sitebuilderLuc Pattyn2-Jul-10 10:38 
GeneralRe: Multi threading and garbage collected problem using RegisterShellHook and SetWindowLong API. Pin
Аslam Iqbal2-Jul-10 10:43
professionalАslam Iqbal2-Jul-10 10:43 
GeneralRe: Multi threading and garbage collected problem using RegisterShellHook and SetWindowLong API. Pin
Luc Pattyn2-Jul-10 11:32
sitebuilderLuc Pattyn2-Jul-10 11:32 
Questionshare and unshare folder Pin
mehrnoosh30-Jun-10 18:27
mehrnoosh30-Jun-10 18:27 
AnswerRe: share and unshare folder Pin
Dave Kreskowiak30-Jun-10 18:37
mveDave Kreskowiak30-Jun-10 18:37 
GeneralRe: share and unshare folder Pin
mehrnoosh30-Jun-10 21:54
mehrnoosh30-Jun-10 21:54 
GeneralRe: share and unshare folder Pin
Alan N30-Jun-10 22:32
Alan N30-Jun-10 22:32 
GeneralRe: share and unshare folder Pin
Dave Kreskowiak1-Jul-10 2:16
mveDave Kreskowiak1-Jul-10 2:16 
You didn't bother reading the documentation in the link I gave you in my last post, did you?

There are no parameters to pass to the Delete method, so why are you calling GetMethodParameters?? What are you trying to set parameters?? Why are you still calling InvokeMethod on the Create method??

I already told you you need to SEARCH for a Win32_Share object with the NAME you want. You then call the Delete method on that instance.


mehrnoosh wrote:
in this line: "inParams("Description") = fname" it has a error:Object reference not set to an instance of an object.


Of course it errors! Why would you set a Description on an object you're trying to delete?!


It's obvious that you don't have any idea what a single line of this code does or how it relates to the idea of creating a Share let alone deleting one. Having said that, I have to ask if you know how to do a WMI search for an object?

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




QuestionHow can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 9:19
Andraw Tang30-Jun-10 9:19 
AnswerRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak30-Jun-10 9:31
mveDave Kreskowiak30-Jun-10 9:31 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 9:40
Andraw Tang30-Jun-10 9:40 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak30-Jun-10 12:39
mveDave Kreskowiak30-Jun-10 12:39 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 3:32
Andraw Tang1-Jul-10 3:32 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Dave Kreskowiak1-Jul-10 3:42
mveDave Kreskowiak1-Jul-10 3:42 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 3:59
Andraw Tang1-Jul-10 3:59 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang1-Jul-10 4:03
Andraw Tang1-Jul-10 4:03 
AnswerRe: How can I detect child form close action in VB.NET 2005 Pin
William Winner30-Jun-10 9:38
William Winner30-Jun-10 9:38 
GeneralRe: How can I detect child form close action in VB.NET 2005 Pin
Andraw Tang30-Jun-10 10:11
Andraw Tang30-Jun-10 10:11 
AnswerRe: How can I detect child form close action in VB.NET 2005 [modified] Pin
Аslam Iqbal13-Jul-10 5:55
professionalАslam Iqbal13-Jul-10 5:55 
QuestionCommunication via Serial Port on PPC Pin
Dominick Marciano29-Jun-10 15:13
professionalDominick Marciano29-Jun-10 15:13 
AnswerRe: Communication via Serial Port on PPC Pin
tiggerc1-Jul-10 5:04
tiggerc1-Jul-10 5:04 
GeneralRe: Communication via Serial Port on PPC Pin
Dominick Marciano1-Jul-10 13:11
professionalDominick Marciano1-Jul-10 13:11 
GeneralRe: Communication via Serial Port on PPC Pin
tiggerc2-Jul-10 3:57
tiggerc2-Jul-10 3:57 
QuestionHow can I trace an AddIn's startup error? Pin
Sonhospa29-Jun-10 13:01
Sonhospa29-Jun-10 13:01 
AnswerRe: How can I trace an AddIn's startup error? Pin
Luc Pattyn29-Jun-10 13:15
sitebuilderLuc Pattyn29-Jun-10 13:15 

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.