Click here to Skip to main content
15,915,000 members
Home / Discussions / C#
   

C#

 
AnswerRe: Crystal Report Deployment in C# Pin
CooperWu12-Jan-06 21:24
CooperWu12-Jan-06 21:24 
QuestionHttpWebRequest and SSL Authentication Pin
Skoder12-Jan-06 17:48
Skoder12-Jan-06 17:48 
QuestionDataGrid Issue, Please Help Pin
student_rhr12-Jan-06 16:41
student_rhr12-Jan-06 16:41 
AnswerRe: DataGrid Issue, Please Help Pin
Daniel Santillanes13-Jan-06 4:50
professionalDaniel Santillanes13-Jan-06 4:50 
AnswerRe: DataGrid Issue, Please Help Pin
Drew McGhie13-Jan-06 5:49
Drew McGhie13-Jan-06 5:49 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:35
student_rhr13-Jan-06 6:35 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:53
student_rhr13-Jan-06 6:53 
QuestionGenerics and the form designer in VS2005 Pin
Luis Alonso Ramos12-Jan-06 16:26
Luis Alonso Ramos12-Jan-06 16:26 
Hello,

I have developed a little generics class that derives from a Form-derived class:
class SingletonChildForm<T> : ChildFormBase
{
    private static SingletonChildFormHelper theForm =
        new SingletonChildFormHelper(typeof(T));

    public static ChildFormBase CreateOrActivate(Form parent)
    {
        return theForm.CreateOrActivate(parent);
    }
}
and I derive some other forms from it:
partial class UserCatalogForm : SingletonChildForm<UserCatalogForm>
{
    public UserCatalogForm()
    {
        InitializeComponent();
    }
}
Everything works as expected, but there is one little problem: I can't open the UserCatalogForm on the designer. I get this error:

The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: UserCatalogForm --- The base class 'Sic.Client.SingletonChildForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.

The project compiles and runs OK, but the designer just can't open the file. It seems to me that the designer just can't handle a generic type as a base class.

So, has anyone been in a similar scneario before? Ideas?

Thanks!

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

-- modified at 11:05 Friday 13th January, 2006
GeneralRe: Generics and the form designer in VS2005 Pin
Luis Alonso Ramos12-Jan-06 19:01
Luis Alonso Ramos12-Jan-06 19:01 
QuestionGenerate exe file from the C# program Pin
tadung12-Jan-06 15:04
tadung12-Jan-06 15:04 
AnswerRe: Generate exe file from the C# program Pin
Christian Graus12-Jan-06 15:12
protectorChristian Graus12-Jan-06 15:12 
GeneralRe: Generate exe file from the C# program Pin
tadung12-Jan-06 15:55
tadung12-Jan-06 15:55 
GeneralRe: Generate exe file from the C# program Pin
Christian Graus12-Jan-06 15:56
protectorChristian Graus12-Jan-06 15:56 
GeneralRe: Generate exe file from the C# program Pin
tadung12-Jan-06 15:58
tadung12-Jan-06 15:58 
QuestionSearch and Replace in Word Pin
CliffAnderson12-Jan-06 13:55
CliffAnderson12-Jan-06 13:55 
AnswerRe: Search and Replace in Word Pin
Nick Parker12-Jan-06 14:19
protectorNick Parker12-Jan-06 14:19 
QuestionDatabase Microsoft Access Pin
Sasuko12-Jan-06 12:36
Sasuko12-Jan-06 12:36 
AnswerRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 12:49
protectorChristian Graus12-Jan-06 12:49 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:02
professionalDaniel Santillanes12-Jan-06 13:02 
GeneralRe: Database Microsoft Access Pin
Christian Graus12-Jan-06 13:07
protectorChristian Graus12-Jan-06 13:07 
GeneralRe: Database Microsoft Access Pin
Daniel Santillanes12-Jan-06 13:12
professionalDaniel Santillanes12-Jan-06 13:12 
AnswerRe: Database Microsoft Access Pin
pliu_200012-Jan-06 13:34
pliu_200012-Jan-06 13:34 
QuestionOptimization of unsafe code Pin
Robert Rohde12-Jan-06 12:26
Robert Rohde12-Jan-06 12:26 
AnswerRe: Optimization of unsafe code Pin
Christian Graus12-Jan-06 12:48
protectorChristian Graus12-Jan-06 12:48 
GeneralRe: Optimization of unsafe code Pin
Robert Rohde12-Jan-06 13:58
Robert Rohde12-Jan-06 13:58 

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.