The value returned from GetSection() will be the object (if any) returned from your IConfigurationSectionHandler.Create() implementation. Put a breakpoint in your... FeedLib.SsnConfigurationHandler.Create() ...method - it should get hit and you can see any issues in there.
PicklesTheClown
Posts
-
Problem with custom config sections -
how to access to Control's Property from other forms ?Form2 needs access to textBox1. There are various ways you can accomplish this. One might be...
public class Form2 : Form { private TextBox _textBox; public TextBox RemoteTextBox { get{ _textBox = value; } } // ... } form2.RemoteTextBox = form1.textBox1;
-
how to represent xml document on treeviewer using c#Add a section that processes attributes similar to the processing of child nodes. Something like...
if (inXmlNode.Attributes != null) { foreach (XmlAttribute attribute in inXmlNode.Attributes) { inTreeNode.Nodes.Add(new TreeNode(attribute.Name)); } }
-
Custom StackA little curious by your code snippet. Try:
public class GenStack : IEnumerable where T:class { public GenStack(...) { ... } public IEnumerator GetEnumerator() { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { } }
-- modified at 16:53 Tuesday 14th February, 2006 -
C# 2.0 Key + Mouse MoveModifierKeys is a static property - which just calls the Win32 API "GetKeyState". This doesn't require any state information (like 'sender' or 'e') - and can basically be called from anywhere at any time.
-
C# 2.0 Key + Mouse MoveControl.ModifierKeys
-
ListView OwnerDraw and Custom BackgroundI am failing in finding a way to use the new ListView.OwnerDraw=true and render a custom background. - ListView.BackgroundImage does not work for our needs. - SetStyle(ControlStyles.UserPaint, true); causes OnPaint and OnPaintBackground to fire *after* OnDrawItem, erasing any custom Item rendering. Am I missing a way to custom draw a ListView background while using the new-fangled OwnerDraw?