Click here to Skip to main content
15,789,698 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Return Serial Number from Query Pin
Rupesh Kumar Swami17-Apr-08 22:01
Rupesh Kumar Swami17-Apr-08 22:01 
GeneralRe: Return Serial Number from Query Pin
Dave Kreskowiak18-Apr-08 16:20
mveDave Kreskowiak18-Apr-08 16:20 
QuestionZipping folders Pin
Aptiva Dave14-Apr-08 6:26
Aptiva Dave14-Apr-08 6:26 
GeneralRe: Zipping folders Pin
Dave Kreskowiak14-Apr-08 6:32
mveDave Kreskowiak14-Apr-08 6:32 
GeneralRe: Zipping folders Pin
Aptiva Dave14-Apr-08 6:47
Aptiva Dave14-Apr-08 6:47 
GeneralRe: Zipping folders Pin
Dave Kreskowiak14-Apr-08 7:33
mveDave Kreskowiak14-Apr-08 7:33 
GeneralInheritancy failed because the type is declared as abstract Pin
Steven J Jowett14-Apr-08 5:53
Steven J Jowett14-Apr-08 5:53 
GeneralRe: Inheritancy failed because the type is declared as abstract Pin
Dave Kreskowiak14-Apr-08 6:30
mveDave Kreskowiak14-Apr-08 6:30 
It doesn't work because Visual Studio can't create an instance of ab abstract type anymore than your code can. For example, when you design a new form, Visual Studio creates an instance of System.Windows.Forms.Form and lets you drop controls on it, right?

Why is it creating an instance of Form instead of your class called Form1?? Because Form1 isn't compiled and doesn't yet exist. The Designer always creates an instance of the base class of the type you want to design. So, in your case, when you try to design a new control based on DashBoardItem, the Designer tries to create an instance of DashBoardItem and can't, because it's MustInherit (abstract).

Read more on why it doesn't work here[^]. There's a followup post on a possible work around here[^]. Just a warning, it's a bunch of work on your part to put this workaround in place. It's even more of a pain to get it to actually work.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




AnswerRe: Inheritancy failed because the type is declared as abstract Pin
Steven J Jowett14-Apr-08 7:03
Steven J Jowett14-Apr-08 7:03 
GeneralRe: Inheritancy failed because the type is declared as abstract Pin
Dave Kreskowiak14-Apr-08 7:34
mveDave Kreskowiak14-Apr-08 7:34 
GeneralConnection String for VB with MS SQL Server 2005 Express Edition Pin
aaraaayen14-Apr-08 5:10
aaraaayen14-Apr-08 5:10 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Vimalsoft(Pty) Ltd14-Apr-08 5:26
professionalVimalsoft(Pty) Ltd14-Apr-08 5:26 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
ChandraRam14-Apr-08 5:44
ChandraRam14-Apr-08 5:44 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Tim Carmichael14-Apr-08 6:12
Tim Carmichael14-Apr-08 6:12 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
aaraaayen14-Apr-08 20:27
aaraaayen14-Apr-08 20:27 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Tim Carmichael15-Apr-08 3:42
Tim Carmichael15-Apr-08 3:42 
QuestionHow retain scrollbar positions of Datagridview? Pin
Guru_yogi14-Apr-08 4:02
Guru_yogi14-Apr-08 4:02 
AnswerRe: How retain scrollbar positions of Datagridview? Pin
Dave Kreskowiak14-Apr-08 6:43
mveDave Kreskowiak14-Apr-08 6:43 
GeneralDate format problem Pin
AHeavey14-Apr-08 3:03
AHeavey14-Apr-08 3:03 
GeneralRe: Date format problem Pin
Rajesh Anuhya14-Apr-08 3:06
professionalRajesh Anuhya14-Apr-08 3:06 
GeneralRe: Date format problem Pin
Luc Pattyn14-Apr-08 3:08
sitebuilderLuc Pattyn14-Apr-08 3:08 
GeneralRe: Date format problem Pin
Rajesh Anuhya14-Apr-08 3:19
professionalRajesh Anuhya14-Apr-08 3:19 
GeneralRe: Date format problem Pin
Guffa14-Apr-08 4:08
Guffa14-Apr-08 4:08 
GeneralRe: Date format problem Pin
AHeavey14-Apr-08 4:36
AHeavey14-Apr-08 4:36 
GeneralRe: Date format problem Pin
helelark12314-Apr-08 5:01
helelark12314-Apr-08 5:01 

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.