Visual C# Express Bug?? :(

  • Thread starter Thread starter Danny Tuppeny
  • Start date Start date
D

Danny Tuppeny

Hi All,

I've created an empty class that inherits from ListView:

Class MyListView : System.Windows.Forms.ListView
{
}

My prooject builds fine, but when I try to drag this control onto a form, I
get an error saying it couldn't be loaded, and will be removed from the
toolbox! (to then be put back in while I build again).

If I drag a ListView on, and then modify the initializecomponent code, and
replace ListView with MyListView, and run the project, it works fine.
However, in VC#E, I get nice big error saying MyListView can't be found, and
to make sure I've added a reference to the assembly etc. etc.


I assume this is a bug in the IDE (since the app runs fine) - is there any
way I can work around it, so I can see the designer? :-\
 
Danny said:
My prooject builds fine, but when I try to drag this control onto a form, I

What's a prooject? (Or do you just type with an accent?) :)
I assume this is a bug in the IDE (since the app runs fine) - is there any
way I can work around it, so I can see the designer? :-\

What happens if you add a constructor and call the base class
constructor from it? Does that have any effect?
 
Chris Dunaway said:
What's a prooject? (Or do you just type with an accent?) :)

Are yoo makin' fun of da way I talk^h^h^hype? :(

What happens if you add a constructor and call the base class
constructor from it? Does that have any effect?

Nope :(

My class looks like:

class ColTreeView : System.Windows.Forms.ListView
{

public ColTreeView()
: base()
{
}

}

I rebuilt the project first, then tried dragging it on. Same error, and same
removal from the toolbox :-(
 
Danny Tuppeny said:
Hi All,

I've created an empty class that inherits from ListView:

Class MyListView : System.Windows.Forms.ListView
{
}

My prooject builds fine, but when I try to drag this control onto a form,
I get an error saying it couldn't be loaded, and will be removed from the
toolbox! (to then be put back in while I build again).

If I drag a ListView on, and then modify the initializecomponent code, and
replace ListView with MyListView, and run the project, it works fine.
However, in VC#E, I get nice big error saying MyListView can't be found,
and to make sure I've added a reference to the assembly etc. etc.


I assume this is a bug in the IDE (since the app runs fine) - is there any
way I can work around it, so I can see the designer? :-\
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top