Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using XML files as a database Pin
Mark Sanders4-Mar-03 9:50
Mark Sanders4-Mar-03 9:50 
GeneralRe: Using XML files as a database Pin
Nick Parker4-Mar-03 18:56
protectorNick Parker4-Mar-03 18:56 
QuestionMultiple Forms: Hot to get Keyboard Input from any form and any Control? Pin
STW4-Mar-03 2:38
STW4-Mar-03 2:38 
GeneralDeleting a row from a datagrid Pin
Yann CK3-Mar-03 23:54
Yann CK3-Mar-03 23:54 
GeneralRe: Deleting a row from a datagrid Pin
Adam Turner5-Mar-03 12:57
Adam Turner5-Mar-03 12:57 
GeneralAccesinng IPHLPAPI.DLL GetNetworkParams() from C# Pin
Member 2680673-Mar-03 22:29
Member 2680673-Mar-03 22:29 
GeneralWindows XP and Many Many Windows Pin
Adam Turner3-Mar-03 21:29
Adam Turner3-Mar-03 21:29 
GeneralProvideProperty for event property Pin
jclanz3-Mar-03 21:10
jclanz3-Mar-03 21:10 
I will add an event property for all my MenuItem objects. To do this, I add an IExtenderProvider derived class to my application and implement the Get, Set and CanExtend methods. This work fine except that the event property cannot be edited in the event property tab! It is also grayed in the attribute property tab! Has some body an idee how to use IExtenderProvider with events ?

<br />
using System;<br />
using System.ComponentModel;<br />
using System.Collections;<br />
using System.Diagnostics;<br />
using System.Windows.Forms;<br />
<br />
namespace MenuProperty<br />
{<br />
	public interface IUpdateUI<br />
	{<br />
		void Enable(bool enable);<br />
		void Check(bool check);<br />
	}<br />
<br />
	public delegate void EventUpdateUI(IUpdateUI updateUI, EventArgs e);<br />
<br />
	[<br />
	ProvideProperty("UpdateUI", typeof(Component)),<br />
	]<br />
	public class MenuUpdateUI : System.ComponentModel.Component, IExtenderProvider<br />
	{<br />
		Hashtable dictionaryUpdateUI = new Hashtable();<br />
<br />
		public void SetUpdateUI(Component component, EventUpdateUI updateUI)<br />
		{<br />
			if (updateUI != null && !dictionaryUpdateUI.Contains(component))<br />
			{<br />
				dictionaryUpdateUI.Add(component, updateUI);<br />
				MenuItem menuItem = (MenuItem)component;<br />
			}<br />
		}<br />
<br />
		public EventUpdateUI GetUpdateUI(Component component) <br />
		{<br />
			if (dictionaryUpdateUI.Contains(component))<br />
				return (EventUpdateUI)dictionaryUpdateUI[component];<br />
			return null;<br />
		}<br />
<br />
		public bool CanExtend(object obj)<br />
		{ <br />
			return (obj is MenuItem);<br />
		} <br />
	}<br />
}<br />

GeneralData Grid doubt Pin
Smitha Nishant3-Mar-03 19:51
protectorSmitha Nishant3-Mar-03 19:51 
GeneralRe: Data Grid doubt Pin
Peter Kiss4-Mar-03 0:34
Peter Kiss4-Mar-03 0:34 
GeneralRe: Data Grid doubt Pin
A.Wegierski4-Mar-03 0:34
A.Wegierski4-Mar-03 0:34 
GeneralRe: Data Grid doubt - Thanks Pin
Smitha Nishant4-Mar-03 4:21
protectorSmitha Nishant4-Mar-03 4:21 
Generalodd form behavior Pin
grv5753-Mar-03 10:51
grv5753-Mar-03 10:51 
Generalscroll and focus bug Pin
bwells3-Mar-03 9:22
bwells3-Mar-03 9:22 
GeneralHelp: Unable To Copy Data (In Structure) from Unmanged MFC/C++ App to .NET Pin
Gaul3-Mar-03 9:00
Gaul3-Mar-03 9:00 
GeneralSaving Treeview/Listview selections Pin
vlusardi3-Mar-03 7:47
vlusardi3-Mar-03 7:47 
GeneralRegistry and dWord values Pin
codeweenie3-Mar-03 7:36
codeweenie3-Mar-03 7:36 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 7:51
leppie3-Mar-03 7:51 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 8:05
codeweenie3-Mar-03 8:05 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 8:31
Paul Riley3-Mar-03 8:31 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:46
codeweenie3-Mar-03 9:46 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 11:56
Paul Riley3-Mar-03 11:56 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 9:05
leppie3-Mar-03 9:05 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:53
codeweenie3-Mar-03 9:53 
GeneralHelp! Release the COM Pointer Pin
sning3-Mar-03 7:25
sning3-Mar-03 7:25 

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.