Click here to Skip to main content
15,894,137 members
Home / Discussions / C#
   

C#

 
GeneralRe: Late Bound Assemblies and SoapFormatter.Deserialize problem... Pin
Daniel Turini19-Dec-04 17:13
Daniel Turini19-Dec-04 17:13 
GeneralRe: Late Bound Assemblies and SoapFormatter.Deserialize problem... Pin
Chris Richner19-Dec-04 21:51
Chris Richner19-Dec-04 21:51 
GeneralRe: Late Bound Assemblies and SoapFormatter.Deserialize problem... Pin
Chris Richner19-Dec-04 22:25
Chris Richner19-Dec-04 22:25 
Generalhashtable in extended properties Pin
esakal19-Dec-04 14:19
esakal19-Dec-04 14:19 
Generalhashtable in extended properties Pin
esakal19-Dec-04 14:09
esakal19-Dec-04 14:09 
Generaldynamically create multiple controls Pin
fredza19-Dec-04 8:04
fredza19-Dec-04 8:04 
GeneralRe: dynamically create multiple controls Pin
Heath Stewart20-Dec-04 6:28
protectorHeath Stewart20-Dec-04 6:28 
Generalproblem with extender provider Pin
esakal19-Dec-04 4:01
esakal19-Dec-04 4:01 
Hello,

i have a problem, it is a bit long explenation but please help...

this is very very annoying problem.

i created a component the implent the IExtenderProvider.

I have "binding" property which saves information of controls in an HashTable.

since the binding is a class, i use "ExpandableObjectConverter" to convert the value from string to object

When i add the binding propery to a control in a form, it seems to be fine.

BUT when i move to the "cs" file to see how it was added, i get the following error in the "task list" : "code generation for property Binding failed. Error was: 'key cannot be null. Parameter name key'" !?

the cs files remains as is without any modifications.

i tried to debug the design-time and saw that the values are added to my hashtable. offcurs not while run-time (it makes sense since nothing is being added to the cs file).

i don't have such a property named "key"...

Eran Sakal.




code attached :

[Category("Data"), Description("Define DataBinding on object")]
[DefaultValue("")]
public Binding GetBinding(Control extendee)
{
if (m_bindingCol.Contains(extendee.ID))
return (Binding)m_bindingCol[extendee.ID];
else // if not exist, create default value which is not added to the hash table
{
Binding binding = new Binding(null);
return binding;
}
}

public void SetBinding(Control extendee, object value)
{
Binding binding = value as Binding;
binding.Control = extendee;
if (binding.ObjectProperty == null)
m_bindingCol.Remove(extendee.ID);
else
{
// set default controlproperty if null
if (binding.ControlProperty == null)
binding.ControlProperty = (extendee is CheckBox) ? "Checked" : "Text";

if (binding.ObjectType == null)
binding.ObjectType = m_boundType;
// add to collection
if (m_bindingCol.Contains(extendee.ID))
m_bindingCol[extendee.ID] = binding;
else
m_bindingCol.Add(extendee.ID,binding);
}
}
GeneralRe: problem with extender provider Pin
Colin Angus Mackay19-Dec-04 10:03
Colin Angus Mackay19-Dec-04 10:03 
QuestionHow can i know which form are activated? Pin
anta19-Dec-04 2:29
anta19-Dec-04 2:29 
AnswerRe: How can i know which form are activated? Pin
Heath Stewart20-Dec-04 6:12
protectorHeath Stewart20-Dec-04 6:12 
GeneralFinding dlls Pin
thepersonof19-Dec-04 0:35
thepersonof19-Dec-04 0:35 
GeneralRe: Finding dlls Pin
Colin Angus Mackay19-Dec-04 2:20
Colin Angus Mackay19-Dec-04 2:20 
GeneralRe: Finding dlls Pin
thepersonof19-Dec-04 2:40
thepersonof19-Dec-04 2:40 
GeneralRe: Finding dlls Pin
Colin Angus Mackay19-Dec-04 2:46
Colin Angus Mackay19-Dec-04 2:46 
GeneralRe: Finding dlls Pin
thepersonof19-Dec-04 2:52
thepersonof19-Dec-04 2:52 
GeneralRe: Finding dlls Pin
Colin Angus Mackay19-Dec-04 2:58
Colin Angus Mackay19-Dec-04 2:58 
GeneralRe: Finding dlls Pin
thepersonof19-Dec-04 4:32
thepersonof19-Dec-04 4:32 
GeneralRe: Finding dlls Pin
J4amieC19-Dec-04 7:49
J4amieC19-Dec-04 7:49 
GeneralRe: Finding dlls Pin
thepersonof19-Dec-04 8:17
thepersonof19-Dec-04 8:17 
GeneralRe: Finding dlls Pin
Colin Angus Mackay19-Dec-04 10:00
Colin Angus Mackay19-Dec-04 10:00 
GeneralRe: Finding dlls Pin
J4amieC19-Dec-04 12:16
J4amieC19-Dec-04 12:16 
GeneralCompiling MSIL and c# Pin
thepersonof19-Dec-04 0:33
thepersonof19-Dec-04 0:33 
GeneralRe: Compiling MSIL and c# Pin
Daniel Turini19-Dec-04 2:06
Daniel Turini19-Dec-04 2:06 
GeneralRe: Compiling MSIL and c# Pin
Bo Hunter19-Dec-04 14:00
Bo Hunter19-Dec-04 14:00 

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.