Click here to Skip to main content
15,908,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding an icon in MessageBoxIcon Pin
vijay248222-Oct-09 23:49
vijay248222-Oct-09 23:49 
AnswerRe: Adding an icon in MessageBoxIcon [modified] Pin
JR21223-Oct-09 0:41
JR21223-Oct-09 0:41 
QuestionExit constructor in abstract class Pin
Enver Maroshi22-Oct-09 23:17
Enver Maroshi22-Oct-09 23:17 
AnswerRe: Exit constructor in abstract class Pin
Christian Graus22-Oct-09 23:36
protectorChristian Graus22-Oct-09 23:36 
GeneralRe: Exit constructor in abstract class Pin
Enver Maroshi22-Oct-09 23:44
Enver Maroshi22-Oct-09 23:44 
GeneralRe: Exit constructor in abstract class Pin
Christian Graus23-Oct-09 0:12
protectorChristian Graus23-Oct-09 0:12 
GeneralRe: Exit constructor in abstract class Pin
Enver Maroshi23-Oct-09 0:47
Enver Maroshi23-Oct-09 0:47 
GeneralRe: Exit constructor in abstract class Pin
Ian Shlasko23-Oct-09 8:10
Ian Shlasko23-Oct-09 8:10 
I don't see a way to avoid modifying all of the child classes, but do it right, and you'll only need to do it once.

1) Make an overridable/virtual Initialize() method in the base class

2) Move all of the construction code in the child classes into the Initialize() override.

3) In the base constructor, either call the Initialize() method or don't.

Obviously, you don't have to call it Initialize()... Whatever name is more suitable.

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

GeneralRe: Exit constructor in abstract class Pin
Enver Maroshi26-Oct-09 0:07
Enver Maroshi26-Oct-09 0:07 
QuestionEnvent Handles Pin
mrvalles22-Oct-09 10:26
mrvalles22-Oct-09 10:26 
AnswerRe: Envent Handles Pin
Dave Kreskowiak22-Oct-09 11:02
mveDave Kreskowiak22-Oct-09 11:02 
Questioncopy and paste the contents of a.txt into b.txt Pin
offroaderdan22-Oct-09 9:49
offroaderdan22-Oct-09 9:49 
AnswerRe: copy and paste the contents of a.txt into b.txt Pin
Eddy Vluggen22-Oct-09 10:58
professionalEddy Vluggen22-Oct-09 10:58 
AnswerRe: copy and paste the contents of a.txt into b.txt Pin
Dave Kreskowiak22-Oct-09 10:59
mveDave Kreskowiak22-Oct-09 10:59 
AnswerRe: copy and paste the contents of a.txt into b.txt Pin
Christian Graus22-Oct-09 12:17
protectorChristian Graus22-Oct-09 12:17 
QuestionAdoDc in VB Express 2008 Eof not set Pin
Les Singletary22-Oct-09 6:11
Les Singletary22-Oct-09 6:11 
AnswerRe: AdoDc in VB Express 2008 Eof not set Pin
Henry Minute22-Oct-09 6:51
Henry Minute22-Oct-09 6:51 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Les Singletary22-Oct-09 7:11
Les Singletary22-Oct-09 7:11 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Henry Minute22-Oct-09 9:36
Henry Minute22-Oct-09 9:36 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Les Singletary22-Oct-09 10:33
Les Singletary22-Oct-09 10:33 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Dave Kreskowiak22-Oct-09 10:56
mveDave Kreskowiak22-Oct-09 10:56 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Les Singletary22-Oct-09 11:05
Les Singletary22-Oct-09 11:05 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Dave Kreskowiak22-Oct-09 12:39
mveDave Kreskowiak22-Oct-09 12:39 
GeneralRe: AdoDc in VB Express 2008 Eof not set Pin
Henry Minute22-Oct-09 11:30
Henry Minute22-Oct-09 11:30 
AnswerRe: AdoDc in VB Express 2008 Eof not set Pin
Dave Kreskowiak22-Oct-09 9:31
mveDave Kreskowiak22-Oct-09 9:31 

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.