Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Return Serial Number from Query Pin
Rupesh Kumar Swami17-Apr-08 21:01
Rupesh Kumar Swami17-Apr-08 21:01 
GeneralRe: Return Serial Number from Query Pin
Dave Kreskowiak18-Apr-08 15:20
mveDave Kreskowiak18-Apr-08 15:20 
QuestionZipping folders Pin
Aptiva Dave14-Apr-08 5:26
Aptiva Dave14-Apr-08 5:26 
GeneralRe: Zipping folders Pin
Dave Kreskowiak14-Apr-08 5:32
mveDave Kreskowiak14-Apr-08 5:32 
GeneralRe: Zipping folders Pin
Aptiva Dave14-Apr-08 5:47
Aptiva Dave14-Apr-08 5:47 
GeneralRe: Zipping folders Pin
Dave Kreskowiak14-Apr-08 6:33
mveDave Kreskowiak14-Apr-08 6:33 
GeneralInheritancy failed because the type is declared as abstract Pin
Steven J Jowett14-Apr-08 4:53
Steven J Jowett14-Apr-08 4:53 
GeneralRe: Inheritancy failed because the type is declared as abstract Pin
Dave Kreskowiak14-Apr-08 5:30
mveDave Kreskowiak14-Apr-08 5: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 6:03
Steven J Jowett14-Apr-08 6:03 
GeneralRe: Inheritancy failed because the type is declared as abstract Pin
Dave Kreskowiak14-Apr-08 6:34
mveDave Kreskowiak14-Apr-08 6:34 
GeneralConnection String for VB with MS SQL Server 2005 Express Edition Pin
aaraaayen14-Apr-08 4:10
aaraaayen14-Apr-08 4:10 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Vimalsoft(Pty) Ltd14-Apr-08 4:26
professionalVimalsoft(Pty) Ltd14-Apr-08 4:26 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
ChandraRam14-Apr-08 4:44
ChandraRam14-Apr-08 4:44 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Tim Carmichael14-Apr-08 5:12
Tim Carmichael14-Apr-08 5:12 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
aaraaayen14-Apr-08 19:27
aaraaayen14-Apr-08 19:27 
GeneralRe: Connection String for VB with MS SQL Server 2005 Express Edition Pin
Tim Carmichael15-Apr-08 2:42
Tim Carmichael15-Apr-08 2:42 
QuestionHow retain scrollbar positions of Datagridview? Pin
Guru_yogi14-Apr-08 3:02
Guru_yogi14-Apr-08 3:02 
AnswerRe: How retain scrollbar positions of Datagridview? Pin
Dave Kreskowiak14-Apr-08 5:43
mveDave Kreskowiak14-Apr-08 5:43 
GeneralDate format problem Pin
AHeavey14-Apr-08 2:03
AHeavey14-Apr-08 2:03 
GeneralRe: Date format problem Pin
Rajesh Anuhya14-Apr-08 2:06
professionalRajesh Anuhya14-Apr-08 2:06 
GeneralRe: Date format problem Pin
Luc Pattyn14-Apr-08 2:08
sitebuilderLuc Pattyn14-Apr-08 2:08 
GeneralRe: Date format problem Pin
Rajesh Anuhya14-Apr-08 2:19
professionalRajesh Anuhya14-Apr-08 2:19 
GeneralRe: Date format problem Pin
Guffa14-Apr-08 3:08
Guffa14-Apr-08 3:08 
GeneralRe: Date format problem Pin
AHeavey14-Apr-08 3:36
AHeavey14-Apr-08 3:36 
GeneralRe: Date format problem Pin
helelark12314-Apr-08 4:01
helelark12314-Apr-08 4: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.