Click here to Skip to main content
15,887,962 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting the DoubleBuffered Bitmap Pin
Neil Van Note6-Apr-02 18:07
Neil Van Note6-Apr-02 18:07 
GeneralData Encoding (System.Text.Encoding) Pin
BLaZiNiX5-Apr-02 18:37
BLaZiNiX5-Apr-02 18:37 
GeneralRe: Data Encoding (System.Text.Encoding) Pin
Neil Van Note5-Apr-02 19:48
Neil Van Note5-Apr-02 19:48 
GeneralRe: Data Encoding (System.Text.Encoding) Pin
BLaZiNiX5-Apr-02 20:17
BLaZiNiX5-Apr-02 20:17 
GeneralRe: Data Encoding (System.Text.Encoding) Pin
Neil Van Note5-Apr-02 20:30
Neil Van Note5-Apr-02 20:30 
GeneralRe: Data Encoding (System.Text.Encoding) Pin
BLaZiNiX5-Apr-02 21:30
BLaZiNiX5-Apr-02 21:30 
GeneralRe: Data Encoding (System.Text.Encoding) Pin
Neil Van Note5-Apr-02 21:39
Neil Van Note5-Apr-02 21:39 
GeneralDoing a simplistic 'extender provider' Pin
Zombies with Coffee, LLC5-Apr-02 10:56
professionalZombies with Coffee, LLC5-Apr-02 10:56 
I've really tried to make sense out of the extender provider samples, but not a one of them does the same way, and none of them are relatively trivial. What I am looking for is the ability to add one simple 'boolean' to every object on my form.

Sounds simple... So what am I doing wrong?

I added on a project to my main application and created a component of out this. I can get it to show up, but in no combination of aggravation can I make the boolean property appear on the controls.

Can anyone help me out!

Thanks!!

----------------------------------------------

using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace StatusMessage
{
[ProvideProperty( "StatusMessage", typeof( Object ))]
public class StatusMessaging : Component, IExtenderProvider
{
private bool bUpdateStatusBar = false;

[DefaultValue(false)]
public bool GetStatusMessage( Control pControl )
{
return bUpdateStatusBar;
}

public void SetStatusMessage( Control pControl, bool value )
{
bUpdateStatusBar = value;
}

public bool CanExtend( object pControl )
{
if( pControl is Component ) return true;
else return false;
}
}
}

GeneralRe: Doing a simplistic 'extender provider' Pin
Zombies with Coffee, LLC5-Apr-02 11:07
professionalZombies with Coffee, LLC5-Apr-02 11:07 
GeneralRe: Doing a simplistic 'extender provider' Pin
David Wengier5-Apr-02 12:48
David Wengier5-Apr-02 12:48 
GeneralTCP/IP in C# Pin
Nick Parker5-Apr-02 7:00
protectorNick Parker5-Apr-02 7:00 
GeneralRe: TCP/IP in C# Pin
James T. Johnson5-Apr-02 14:41
James T. Johnson5-Apr-02 14:41 
GeneralRe: TCP/IP in C# Pin
Nick Parker8-Apr-02 2:56
protectorNick Parker8-Apr-02 2:56 
QuestionListView...ItemCheck event...make some items hidden..but how?? Pin
gicio5-Apr-02 0:24
gicio5-Apr-02 0:24 
GeneralSelf Extractor Pin
BLaZiNiX4-Apr-02 17:36
BLaZiNiX4-Apr-02 17:36 
GeneralRe: Self Extractor Pin
James T. Johnson4-Apr-02 23:54
James T. Johnson4-Apr-02 23:54 
GeneralRe: Self Extractor Pin
BLaZiNiX5-Apr-02 8:30
BLaZiNiX5-Apr-02 8:30 
GeneralRe: Self Extractor Pin
James T. Johnson5-Apr-02 14:42
James T. Johnson5-Apr-02 14:42 
GeneralRe: Self Extractor Pin
James T. Johnson5-Apr-02 15:23
James T. Johnson5-Apr-02 15:23 
GeneralRe: Self Extractor Pin
BLaZiNiX5-Apr-02 17:23
BLaZiNiX5-Apr-02 17:23 
GeneralRe: Self Extractor Pin
James T. Johnson5-Apr-02 23:16
James T. Johnson5-Apr-02 23:16 
QuestionHow does the menu update the status bar? Pin
Zombies with Coffee, LLC4-Apr-02 10:22
professionalZombies with Coffee, LLC4-Apr-02 10:22 
AnswerRe: How does the menu update the status bar? Pin
David Wengier4-Apr-02 11:02
David Wengier4-Apr-02 11:02 
GeneralRe: How does the menu update the status bar? Pin
Zombies with Coffee, LLC4-Apr-02 11:17
professionalZombies with Coffee, LLC4-Apr-02 11:17 
GeneralRe: How does the menu update the status bar? Pin
David Wengier4-Apr-02 11:21
David Wengier4-Apr-02 11:21 

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.