Click here to Skip to main content
15,899,754 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: ListBox using external datastructure Pin
Josh Smith6-Jul-06 10:08
Josh Smith6-Jul-06 10:08 
GeneralRe: ListBox using external datastructure Pin
invictus36-Jul-06 11:02
invictus36-Jul-06 11:02 
GeneralRe: ListBox using external datastructure Pin
Josh Smith6-Jul-06 18:06
Josh Smith6-Jul-06 18:06 
GeneralRe: ListBox using external datastructure Pin
invictus37-Jul-06 2:03
invictus37-Jul-06 2:03 
QuestionNaming a exe in task manager Pin
Arun Kumar Babu5-Jul-06 22:40
Arun Kumar Babu5-Jul-06 22:40 
AnswerRe: Naming a exe in task manager Pin
Dave Kreskowiak6-Jul-06 2:30
mveDave Kreskowiak6-Jul-06 2:30 
AnswerRe: Naming a exe in task manager Pin
Paul Conrad6-Jul-06 23:39
professionalPaul Conrad6-Jul-06 23:39 
QuestionTypeCodeDomSerializer Pin
Kai Apfelbaum5-Jul-06 20:15
Kai Apfelbaum5-Jul-06 20:15 
Hi friends,
first sorry about my english Sigh | :sigh:

My problem is to get the full quallified CodeTypeDeclaration of an Component to add some new methods, enums and comments.
In Framework 1.1 i do this witch the RootDesignerSerializer an it works fine. Now in Framework 2.0 Microsoft sets the RootDesignerSerializer to obsolete an puts the TypeCodeDomSerializer instead.

Here is my new implementation :

My base component :

[DesignerSerializer("MyTypeSerializer, MyAssembly, Version=2.0.0.8, Culture=neutral" , typeof(TypeCodeDomSerializer))]
public class MyComponent:Component
{
private void InitializeComponent() {}
}

My serializer :

class MyTypeSerializer: TypeCodeDomSerializer
{
public override object Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
{
IComponent cmp = null;
cmp = base.Deserialize(manager, declaration) as IComponent ;

return cmp;
}

My custom Component :

public partial class MyComponent1 : MyComponent
{
....
private void InitializeComponent(){...}
}

Now if i get to deserialize MyComponent1 an error occurs like this ......


The method MyComponent.InitializeComponent could not found.


at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)


Did anyone knows how to De- / serialize an Component with the TypeCodeDomSerializer so i can modify the this Type.
Note that am allready at deserializing MyComponent1, but in this case i dont wanna make changes to the object returned from base.Deserialize(manager, declaration). I will modify the CodeTypeDeclaration after base.Serialize(manager, root, members).

So i hope anyone can help ....

Thx Kai
(I know about my bad english ... sry, again)
QuestionEncrypting proxy!? Pin
aloaiza5-Jul-06 6:29
aloaiza5-Jul-06 6:29 
QuestionWPF, XPS, Printing Pin
GerhardKreuzer5-Jul-06 4:29
GerhardKreuzer5-Jul-06 4:29 
QuestionHow to execute batch file during installation Pin
Kamran Younus5-Jul-06 1:02
Kamran Younus5-Jul-06 1:02 
AnswerRe: How to execute batch file during installation Pin
Dave Kreskowiak5-Jul-06 3:01
mveDave Kreskowiak5-Jul-06 3:01 
Questionpocket pc Pin
raju12485-Jul-06 0:57
raju12485-Jul-06 0:57 
AnswerRe: pocket pc Pin
Dave Kreskowiak5-Jul-06 3:00
mveDave Kreskowiak5-Jul-06 3:00 
QuestionHow to apply certain commands during installation Pin
Kamran Younus5-Jul-06 0:53
Kamran Younus5-Jul-06 0:53 
QuestionManaging the certificate store on Pocket PC / WM5 ? [modified] Pin
f.vanvugt3-Jul-06 21:30
f.vanvugt3-Jul-06 21:30 
Questionhow to find Dynamic IP of all the users logged in for a website at a particular time Pin
pawanmishraji3-Jul-06 20:45
pawanmishraji3-Jul-06 20:45 
AnswerRe: how to find Dynamic IP of all the users logged in for a website at a particular time Pin
Guffa4-Jul-06 1:31
Guffa4-Jul-06 1:31 
GeneralRe: how to find Dynamic IP of all the users logged in for a website at a particular time Pin
pawanmishraji4-Jul-06 21:39
pawanmishraji4-Jul-06 21:39 
AnswerRe: how to find Dynamic IP of all the users logged in for a website at a particular time Pin
Guffa4-Jul-06 22:54
Guffa4-Jul-06 22:54 
Generalhow to find Dynamic IP of all the users logged in for a website at a particular time Pin
pawanmishraji4-Jul-06 21:40
pawanmishraji4-Jul-06 21:40 
QuestionSupported OSs for .NET 3 Pin
Dysard3-Jul-06 13:47
Dysard3-Jul-06 13:47 
AnswerRe: Supported OSs for .NET 3 Pin
Dave Kreskowiak3-Jul-06 17:29
mveDave Kreskowiak3-Jul-06 17:29 
GeneralRe: Supported OSs for .NET 3 Pin
Dysard3-Jul-06 18:23
Dysard3-Jul-06 18:23 
GeneralRe: Supported OSs for .NET 3 Pin
Kevin McFarlane4-Jul-06 5:22
Kevin McFarlane4-Jul-06 5:22 

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.