Click here to Skip to main content
15,908,274 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDisplay error of FolderBrowserDialog on Windows Server 2008 Pin
Caloiv17-Nov-09 23:37
Caloiv17-Nov-09 23:37 
AnswerRe: Display error of FolderBrowserDialog on Windows Server 2008 Pin
Shameel24-Nov-09 2:19
professionalShameel24-Nov-09 2:19 
GeneralRe: Display error of FolderBrowserDialog on Windows Server 2008 Pin
Caloiv25-Nov-09 6:17
Caloiv25-Nov-09 6:17 
QuestionDrag Drop of controls in .net Pin
S.Aijaz17-Nov-09 0:36
S.Aijaz17-Nov-09 0:36 
AnswerRe: Drag Drop of controls in .net Pin
Nuri Ismail17-Nov-09 0:42
Nuri Ismail17-Nov-09 0:42 
AnswerRe: Drag Drop of controls in .net [modified] Pin
Shameel17-Nov-09 4:06
professionalShameel17-Nov-09 4:06 
AnswerRe: Drag Drop of controls in .net Pin
Natza Mitzi22-Nov-09 21:44
Natza Mitzi22-Nov-09 21:44 
QuestionGolly! Why Won't My Form Design? I know I am being retarded about this but I can't figure out how! Pin
Brian C Hart16-Nov-09 4:41
professionalBrian C Hart16-Nov-09 4:41 
I am using Visual C# Express 2008 SP1 on Windows Vista will all the updates applied. No matter what I try, I can't open some inherited forms (if I am even using that term correctly) in the Forms Designer. But my project builds just fine! I am going nuts not being able to design my forms. I am having trouble because I re-did my project's namespaces and maybe the designer is getting confused.

The form I want to open is in the 'Windows' namespace (something I made up, i.e. MyProject.Gui.Windows) and the baseform and its base are in the 'Docking' namespace as in MyProject.Gui.Docking and I think it is because my namespaces must somehow be retarded is why I am getting the error:

at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) 

I am also doubly confused becuase my code builds just fine. My code is as follows:

baseform of the baseform:

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics;

namespace MyProject.Gui.Docking
{
	public class DockContent : Form, IDockContext
	{
		public DockContent()
		{
            InitializeComponent();

			//...
		}

//...
	}
}


The baseform of the baseform (above) has no .designer.cs file. It is part of the WeifenLuo.Docking library. I subsumed the library directly into my project's namespace structure so I don't have to lug around DLL's. I can view this baseform of the baseform in the designer just fine.

Now on to its first-level derived form ToolWindow.
i.e., the code is

using System;
using MyProject.Gui.Docking;
using MyProject.Core;

namespace MyProject.Gui.Windows
{
    public partial class ToolWindow : DockContent
    {
        public ToolWindow()
        {
            InitializeComponent();
        }

...
    }
}

Notice how I derive from DockContent class which is in the Docking namespace but my child form is in the Windows namespace. I tried putting the child class also in the same namespace but the child form still would not design.

But changing the namespaces doesn't do anything! Even if all the forms in the hierarchy are still in the same namespace the Forms Designer still craps on me. I suspect I am being completely retarded about something but I can't figure out what. Any help would be appreciated.

Sincerely Yours,
Brian Hart

QuestionGridView Pin
moody12314-Nov-09 23:11
moody12314-Nov-09 23:11 
AnswerRe: GridView Pin
Shameel17-Nov-09 22:24
professionalShameel17-Nov-09 22:24 
QuestionCheckedListBox question Pin
machallo13-Nov-09 3:14
machallo13-Nov-09 3:14 
AnswerRe: CheckedListBox question Pin
Shameel17-Nov-09 4:38
professionalShameel17-Nov-09 4:38 
Questionlistbox question Pin
loyal ginger12-Nov-09 10:51
loyal ginger12-Nov-09 10:51 
AnswerRe: listbox question Pin
Luc Pattyn12-Nov-09 12:03
sitebuilderLuc Pattyn12-Nov-09 12:03 
GeneralRe: listbox question Pin
loyal ginger12-Nov-09 14:46
loyal ginger12-Nov-09 14:46 
GeneralRe: listbox question Pin
Shameel17-Nov-09 4:41
professionalShameel17-Nov-09 4:41 
GeneralRe: listbox question Pin
Shameel17-Nov-09 4:40
professionalShameel17-Nov-09 4:40 
QuestionChange of text color in PropertyGrid Pin
Member 133012112-Nov-09 0:19
Member 133012112-Nov-09 0:19 
AnswerRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak12-Nov-09 3:42
mveDave Kreskowiak12-Nov-09 3:42 
GeneralRe: Change of text color in PropertyGrid Pin
Member 133012115-Nov-09 18:52
Member 133012115-Nov-09 18:52 
GeneralRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak16-Nov-09 5:12
mveDave Kreskowiak16-Nov-09 5:12 
QuestionProgrammatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:02
shaina22317-Nov-09 3:02 
AnswerRe: Programmatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:24
shaina22317-Nov-09 3:24 
QuestionRe: Programmatically Click mouse on specefic location Pin
Lukas Molnar16-Dec-09 0:34
Lukas Molnar16-Dec-09 0:34 
AnswerRe: Programmatically Click mouse on specefic location Pin
Luc Pattyn7-Nov-09 3:29
sitebuilderLuc Pattyn7-Nov-09 3:29 

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.