Click here to Skip to main content
15,904,986 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: form withe tabs Pin
asha_s15-Apr-08 0:40
asha_s15-Apr-08 0:40 
Questionvb.net progress bar display Pin
abdi newbie14-Apr-08 9:28
abdi newbie14-Apr-08 9:28 
GeneralRe: vb.net progress bar display Pin
Dave Kreskowiak14-Apr-08 9:34
mveDave Kreskowiak14-Apr-08 9:34 
Questionmsge style Pin
asha_s14-Apr-08 7:27
asha_s14-Apr-08 7:27 
GeneralRe: msge style Pin
Thomas Stockwell14-Apr-08 8:00
professionalThomas Stockwell14-Apr-08 8:00 
QuestionHow can I change icon of any exe-file Pin
titan6814-Apr-08 6:02
titan6814-Apr-08 6:02 
GeneralRe: How can I change icon of any exe-file Pin
Dave Kreskowiak14-Apr-08 7:00
mveDave Kreskowiak14-Apr-08 7:00 
QuestionRe: How can I change icon of any exe-file Pin
titan6816-Apr-08 2:39
titan6816-Apr-08 2:39 
GeneralRe: How can I change icon of any exe-file Pin
Dave Kreskowiak17-Apr-08 3:13
mveDave Kreskowiak17-Apr-08 3:13 
GeneralReturn Serial Number from Query Pin
Rupesh Kumar Swami14-Apr-08 5:45
Rupesh Kumar Swami14-Apr-08 5:45 
GeneralRe: Return Serial Number from Query Pin
Dave Kreskowiak14-Apr-08 6:38
mveDave Kreskowiak14-Apr-08 6:38 
GeneralRe: Return Serial Number from Query Pin
Rupesh Kumar Swami16-Apr-08 5:10
Rupesh Kumar Swami16-Apr-08 5:10 
GeneralRe: Return Serial Number from Query Pin
Dave Kreskowiak16-Apr-08 12:24
mveDave Kreskowiak16-Apr-08 12:24 
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 

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.