Click here to Skip to main content
15,896,348 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DateTimePicker Pin
ayeleteric27-Jun-09 23:00
ayeleteric27-Jun-09 23:00 
GeneralRe: DateTimePicker Pin
Henry Minute28-Jun-09 8:29
Henry Minute28-Jun-09 8:29 
QuestionConfused assigning imagelist image indexes Pin
o m n i27-Jun-09 9:49
o m n i27-Jun-09 9:49 
AnswerRe: Confused assigning imagelist image indexes Pin
Christian Graus27-Jun-09 12:18
protectorChristian Graus27-Jun-09 12:18 
QuestionHow to inherit from a notinheritable class in vb.net? Pin
Elgarrai27-Jun-09 7:53
Elgarrai27-Jun-09 7:53 
AnswerRe: How to inherit from a notinheritable class in vb.net? Pin
Ray Cassick27-Jun-09 8:26
Ray Cassick27-Jun-09 8:26 
GeneralRe: How to inherit from a notinheritable class in vb.net? Pin
Elgarrai27-Jun-09 23:19
Elgarrai27-Jun-09 23:19 
GeneralRe: How to inherit from a notinheritable class in vb.net? Pin
Ray Cassick28-Jun-09 8:37
Ray Cassick28-Jun-09 8:37 
So my first question here is are you trying to just use a thread in your class or are you trying to create a new class that inherits from thread as a base. After re-reading your original question I am not quite sure.

To wrap a class all you do is create a new class that has the name you want, in this case for example 'MyThread'. Then in the constructor you create an instance of the class you wanted to inherit from. Your new class simply exposes all of the methods of the class you are wrapping, but also exposes some of the new methods or new functionality that you wanted to include.

Keep in mind that this is not true inheritance so you cannot rely on being able to use your new class as a drop in replacement for other methods that are coded to accept a thread class, but it gets you as close to what you want as you can get without being able to inherit.


QuestionHow can I write With cluse with Linq? Pin
Bahram.Zarrin27-Jun-09 4:46
Bahram.Zarrin27-Jun-09 4:46 
AnswerRe: How can I write With cluse with Linq? Pin
Christian Graus27-Jun-09 12:03
protectorChristian Graus27-Jun-09 12:03 
QuestionAdding rows to a dataset. Pin
jinxster26-Jun-09 21:52
professionaljinxster26-Jun-09 21:52 
AnswerRe: Adding rows to a dataset. Pin
Tiyani Miyambo28-Jun-09 21:02
Tiyani Miyambo28-Jun-09 21:02 
GeneralRe: Adding rows to a dataset. Pin
jinxster30-Jun-09 7:33
professionaljinxster30-Jun-09 7:33 
QuestionRight clicking on treeview node won't select it so contextmenus don't work right Pin
o m n i26-Jun-09 19:21
o m n i26-Jun-09 19:21 
AnswerRe: Right clicking on treeview node won't select it so contextmenus don't work right Pin
dan!sh 26-Jun-09 21:06
professional dan!sh 26-Jun-09 21:06 
GeneralRe: Right clicking on treeview node won't select it so contextmenus don't work right Pin
Bahram.Zarrin27-Jun-09 5:05
Bahram.Zarrin27-Jun-09 5:05 
Questionwhich font is suitable for dotmatrix printer? Pin
JC.KaNNaN26-Jun-09 19:05
JC.KaNNaN26-Jun-09 19:05 
AnswerRe: which font is suitable for dotmatrix printer? Pin
Christian Graus26-Jun-09 20:22
protectorChristian Graus26-Jun-09 20:22 
GeneralRe: which font is suitable for dotmatrix printer? Pin
JC.KaNNaN26-Jun-09 22:28
JC.KaNNaN26-Jun-09 22:28 
GeneralRe: which font is suitable for dotmatrix printer? Pin
Rajesh Anuhya26-Jun-09 23:21
professionalRajesh Anuhya26-Jun-09 23:21 
GeneralRe: which font is suitable for dotmatrix printer? Pin
JC.KaNNaN27-Jun-09 2:28
JC.KaNNaN27-Jun-09 2:28 
GeneralRe: which font is suitable for dotmatrix printer? Pin
Henry Minute27-Jun-09 10:45
Henry Minute27-Jun-09 10:45 
GeneralRe: which font is suitable for dotmatrix printer? Pin
Rajesh Anuhya27-Jun-09 19:16
professionalRajesh Anuhya27-Jun-09 19:16 
QuestionProblem with checkboxes not saving to SQL as Boolean Pin
FthrJACK26-Jun-09 10:36
FthrJACK26-Jun-09 10:36 
AnswerRe: Problem with checkboxes not saving to SQL as Boolean Pin
Henry Minute26-Jun-09 10:52
Henry Minute26-Jun-09 10:52 

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.