Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
GeneralXmlTextReader with a NetworkStream causes problems Pin
Borgbjerg11-Feb-04 23:00
Borgbjerg11-Feb-04 23:00 
GeneralRe: XmlTextReader with a NetworkStream causes problems Pin
Heath Stewart12-Feb-04 4:04
protectorHeath Stewart12-Feb-04 4:04 
GeneralRe: XmlTextReader with a NetworkStream causes problems Pin
Borgbjerg12-Feb-04 4:30
Borgbjerg12-Feb-04 4:30 
GeneralRe: XmlTextReader with a NetworkStream causes problems Pin
Heath Stewart12-Feb-04 4:42
protectorHeath Stewart12-Feb-04 4:42 
GeneralGrant permission to access the Msysobjects Pin
Daminda11-Feb-04 21:18
Daminda11-Feb-04 21:18 
GeneralRe: Grant permission to access the Msysobjects Pin
Heath Stewart12-Feb-04 3:56
protectorHeath Stewart12-Feb-04 3:56 
GeneralImage into a database Pin
bengolong11-Feb-04 20:42
bengolong11-Feb-04 20:42 
GeneralRe: Image into a database Pin
Mazdak11-Feb-04 22:43
Mazdak11-Feb-04 22:43 
GeneralDeleting read-only files Pin
pankajdaga11-Feb-04 20:42
pankajdaga11-Feb-04 20:42 
GeneralRe: Deleting read-only files Pin
Colin Angus Mackay11-Feb-04 23:15
Colin Angus Mackay11-Feb-04 23:15 
GeneralRe: Deleting read-only files Pin
pankajdaga12-Feb-04 5:49
pankajdaga12-Feb-04 5:49 
GeneralRe: Deleting read-only files Pin
Tom Larsen12-Feb-04 5:13
Tom Larsen12-Feb-04 5:13 
GeneralRe: Deleting read-only files Pin
pankajdaga12-Feb-04 5:48
pankajdaga12-Feb-04 5:48 
GeneralHelp required......... Pin
shkhan11-Feb-04 20:16
shkhan11-Feb-04 20:16 
GeneralRe: Help required......... Pin
John Kuhn11-Feb-04 20:39
John Kuhn11-Feb-04 20:39 
GeneralDeep copy Hashtable Pin
RickardB11-Feb-04 20:15
RickardB11-Feb-04 20:15 
GeneralRe: Deep copy Hashtable Pin
Heath Stewart12-Feb-04 3:43
protectorHeath Stewart12-Feb-04 3:43 
GeneralRe: Deep copy Hashtable Pin
RickardB12-Feb-04 19:06
RickardB12-Feb-04 19:06 
GeneralRe: Deep copy Hashtable Pin
Heath Stewart13-Feb-04 3:31
protectorHeath Stewart13-Feb-04 3:31 
GeneralListing the tables of MS Access (Error is This) Pin
Daminda11-Feb-04 17:14
Daminda11-Feb-04 17:14 
GeneralRe: Listing the tables of MS Access (Error is This) Pin
krisp11-Feb-04 19:34
krisp11-Feb-04 19:34 
GeneralWhile we're on the subject of language constructs Pin
Tom Clement11-Feb-04 16:27
professionalTom Clement11-Feb-04 16:27 
GeneralRe: While we're on the subject of language constructs Pin
krisp11-Feb-04 16:47
krisp11-Feb-04 16:47 
GeneralRe: While we're on the subject of language constructs Pin
Kentamanos11-Feb-04 16:54
Kentamanos11-Feb-04 16:54 
Unless you create a new abstract class that derives from Control and implements the interface (stubbing out the interface methods as abstract methods), you can't automatically get what you want.

You say that you have to handle a wide variety of controls including TreeView, so you will be dealing with Controls that don't implement the interface, correct?

If this is the case, your method should do something like this:

public void MyFunction(Control control)
{
   IMyNotificationsControl imnc = control as IMyNotificationsControl;

   if (imnc != null)
   {
      // You've got a control that implements your interface...
   }
}




I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.

-David St. Hubbins
GeneralRe: While we're on the subject of language constructs Pin
Tom Clement11-Feb-04 17:07
professionalTom Clement11-Feb-04 17:07 

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.