Click here to Skip to main content
15,919,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to print page with Visual Basic 2008? Pin
Mohamed_Khalil17-Aug-09 6:31
Mohamed_Khalil17-Aug-09 6:31 
AnswerRe: How to print page with Visual Basic 2008? Pin
Henry Minute17-Aug-09 7:06
Henry Minute17-Aug-09 7:06 
QuestionAdding a Positive Double to Negative Double Pin
KeithF17-Aug-09 3:43
KeithF17-Aug-09 3:43 
AnswerRe: Adding a Positive Double to Negative Double Pin
Luc Pattyn17-Aug-09 4:12
sitebuilderLuc Pattyn17-Aug-09 4:12 
GeneralRe: Adding a Positive Double to Negative Double Pin
KeithF17-Aug-09 4:16
KeithF17-Aug-09 4:16 
QuestionCanceling a ThreadPool thread that's being blocked by a .NET method Pin
Brandon D. Legault17-Aug-09 3:39
Brandon D. Legault17-Aug-09 3:39 
AnswerRe: Canceling a ThreadPool thread that's being blocked by a .NET method Pin
Dave Kreskowiak17-Aug-09 4:28
mveDave Kreskowiak17-Aug-09 4:28 
GeneralRe: Canceling a ThreadPool thread that's being blocked by a .NET method Pin
Brandon D. Legault17-Aug-09 4:41
Brandon D. Legault17-Aug-09 4:41 
I apologize, but I really can't accept that. There has to be a way to do it.

I've tried using my own threads (by my own threads I assume you mean just a managed thread?) but I've read many many times that Thread.Abort is frowned upon, bad design etc... , also, it doesn't actually cancel the thread, it only flags it for cancellation, and waits for an appropriate time to cancel it.

OpenRemoteBaseKey isn't the only .NET method that works this way. ManagementScope.Connect(), which I also use to retrieve information in this application (and need to be able to cancel as well), is written similarly in that you cannot cancel it once you start it.

Without being able to cancel them, I don't see any practical functionality in either of these two methods (or any other .NET methods that work like this). I shouldn't have to write my own wrapper around the native methods *shudder*, to expose a functionality that should be shipped with these methods in the first place.
GeneralRe: Canceling a ThreadPool thread that's being blocked by a .NET method Pin
Dave Kreskowiak17-Aug-09 6:54
mveDave Kreskowiak17-Aug-09 6:54 
GeneralRe: Canceling a ThreadPool thread that's being blocked by a .NET method Pin
Brandon D. Legault17-Aug-09 7:43
Brandon D. Legault17-Aug-09 7:43 
AnswerRe: Canceling a ThreadPool thread that's being blocked by a .NET method Pin
Luc Pattyn17-Aug-09 14:47
sitebuilderLuc Pattyn17-Aug-09 14:47 
QuestionProject Size ? Pin
Paramu197317-Aug-09 3:13
Paramu197317-Aug-09 3:13 
AnswerRe: Project Size ? Pin
Johan Hakkesteegt17-Aug-09 3:27
Johan Hakkesteegt17-Aug-09 3:27 
QuestionHelp with automated VB script? Pin
mukkil17-Aug-09 0:27
mukkil17-Aug-09 0:27 
AnswerRe: Help with automated VB script? Pin
mukkil17-Aug-09 1:22
mukkil17-Aug-09 1:22 
QuestionRotate Label to 90° Angle Pin
Anubhava Dimri16-Aug-09 23:46
Anubhava Dimri16-Aug-09 23:46 
AnswerRe: Rotate Label to 90° Angle Pin
Johan Hakkesteegt17-Aug-09 0:11
Johan Hakkesteegt17-Aug-09 0:11 
AnswerRe: Rotate Label to 90° Angle Pin
The Man from U.N.C.L.E.17-Aug-09 2:35
The Man from U.N.C.L.E.17-Aug-09 2:35 
Questionhow to find max orderno of the same customer Pin
AjitMourya16-Aug-09 21:47
AjitMourya16-Aug-09 21:47 
AnswerRe: how to find max orderno of the same customer Pin
tosch16-Aug-09 21:55
tosch16-Aug-09 21:55 
GeneralRe: how to find max orderno of the same customer Pin
AjitMourya18-Aug-09 19:04
AjitMourya18-Aug-09 19:04 
AnswerRe: how to find max orderno of the same customer Pin
Christian Graus16-Aug-09 22:52
protectorChristian Graus16-Aug-09 22:52 
AnswerRepost Pin
Eddy Vluggen17-Aug-09 0:15
professionalEddy Vluggen17-Aug-09 0:15 
QuestionHow to suppress string in crystal reports Pin
AjitMourya16-Aug-09 20:11
AjitMourya16-Aug-09 20:11 
AnswerRe: How to suppress string in crystal reports Pin
tosch16-Aug-09 21:32
tosch16-Aug-09 21:32 

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.