Click here to Skip to main content
15,897,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: help me with tapi 3 call status and tone detection Pin
Muammar©4-Jun-07 21:14
Muammar©4-Jun-07 21:14 
AnswerRe: help me with tapi 3 call status and tone detection Pin
Nouman Bhatti5-Jun-07 2:03
Nouman Bhatti5-Jun-07 2:03 
GeneralRe: help me with tapi 3 call status and tone detection Pin
georgishelpmegodtoo7-Jun-07 1:29
georgishelpmegodtoo7-Jun-07 1:29 
GeneralRe: help me with tapi 3 call status and tone detection Pin
Nouman Bhatti7-Jun-07 20:55
Nouman Bhatti7-Jun-07 20:55 
QuestionGet highlighted text from any window with special shortcut Pin
mgiaco824-Jun-07 10:34
mgiaco824-Jun-07 10:34 
AnswerRe: Get highlighted text from any window with special shortcut Pin
mgiaco825-Jun-07 2:20
mgiaco825-Jun-07 2:20 
Question[Message Deleted] Pin
R_L_H4-Jun-07 10:27
R_L_H4-Jun-07 10:27 
AnswerRe: How Do You Disable All Click Events For A .Net Control? Pin
Dave Kreskowiak4-Jun-07 10:42
mveDave Kreskowiak4-Jun-07 10:42 
Create your own CheckBox by inheriting from the CheckBox class and overriding the OnClick method. Just don't call the base classes OnClick method and you'll get the effect you want.
public class ReadOnlyCheckBox : CheckBox 
{
    protected override void OnClick(System.EventArgs e) 
    {
        // Just don't call the base class OnClick method...
        // base.OnClick(e); 
    }
}

Put this in its own file in your project and compile it. When you do, you'll get a new ReadOnlyCheckBox in the Toolbox. Drag and drop to your form. Other than clicking, it'll work exactly like the normal CheckBox.




A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: How Do You Disable All Click Events For A .Net Control? Pin
Ian Shlasko4-Jun-07 10:49
Ian Shlasko4-Jun-07 10:49 
General[Message Deleted] Pin
R_L_H4-Jun-07 10:53
R_L_H4-Jun-07 10:53 
GeneralRe: How Do You Disable All Click Events For A .Net Control? Pin
Ian Shlasko4-Jun-07 12:00
Ian Shlasko4-Jun-07 12:00 
GeneralRe: How Do You Disable All Click Events For A .Net Control? Pin
Dave Kreskowiak4-Jun-07 14:00
mveDave Kreskowiak4-Jun-07 14:00 
GeneralRe: How Do You Disable All Click Events For A .Net Control? Pin
Ian Shlasko5-Jun-07 2:52
Ian Shlasko5-Jun-07 2:52 
Questionhow to check free space on disk using FTP client? Pin
wojti4-Jun-07 9:58
wojti4-Jun-07 9:58 
AnswerRe: how to check free space on disk using FTP client? Pin
Dave Kreskowiak4-Jun-07 10:32
mveDave Kreskowiak4-Jun-07 10:32 
Questionchange button shape Pin
ABBASI_RA4-Jun-07 9:03
ABBASI_RA4-Jun-07 9:03 
AnswerRe: change button shape Pin
Tarakeshwar Reddy4-Jun-07 9:07
professionalTarakeshwar Reddy4-Jun-07 9:07 
GeneralRe: change button shape Pin
ABBASI_RA4-Jun-07 9:20
ABBASI_RA4-Jun-07 9:20 
QuestionHow to find name of a library? (beginner) Pin
Christian Bailey4-Jun-07 9:03
Christian Bailey4-Jun-07 9:03 
AnswerRe: How to find name of a library? (beginner) Pin
SimulationofSai4-Jun-07 22:31
SimulationofSai4-Jun-07 22:31 
Questionselected column header datagridview Pin
FernandoMartin4-Jun-07 9:02
FernandoMartin4-Jun-07 9:02 
QuestionEmail merg Pin
merwa4-Jun-07 8:49
merwa4-Jun-07 8:49 
AnswerRe: Email merg Pin
Muammar©4-Jun-07 11:05
Muammar©4-Jun-07 11:05 
Questionget current session ID Pin
crash8934-Jun-07 8:00
crash8934-Jun-07 8:00 
AnswerRe: get current session ID Pin
Tarakeshwar Reddy4-Jun-07 8:51
professionalTarakeshwar Reddy4-Jun-07 8:51 

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.