Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: DOS program output problem!! Pin
Dave Kreskowiak12-Feb-06 2:17
mveDave Kreskowiak12-Feb-06 2:17 
QuestionCustom Object used with Profile Object Pin
kloepper9-Feb-06 19:55
kloepper9-Feb-06 19:55 
QuestionHow to disable the jump to node function in TreeVeiw? Pin
coby cai9-Feb-06 18:13
professionalcoby cai9-Feb-06 18:13 
AnswerRe: How to disable the jump to node function in TreeVeiw? Pin
DigitalKing9-Feb-06 19:29
DigitalKing9-Feb-06 19:29 
GeneralRe: How to disable the jump to node function in TreeVeiw? Pin
coby cai9-Feb-06 19:54
professionalcoby cai9-Feb-06 19:54 
GeneralRe: How to disable the jump to node function in TreeVeiw? Pin
DigitalKing9-Feb-06 20:12
DigitalKing9-Feb-06 20:12 
GeneralRe: How to disable the jump to node function in TreeVeiw? Pin
coby cai9-Feb-06 20:19
professionalcoby cai9-Feb-06 20:19 
AnswerRe: How to disable the jump to node function in TreeVeiw? Pin
DigitalKing9-Feb-06 20:31
DigitalKing9-Feb-06 20:31 
Extend the Treeview class and override WndProc. If a key is pressed, ignore it.

public class NewView : TreeView
{
    private bool mAllowJumpToNode = false;

    public bool AllowJumpToNode
    {
        get
        {
            return mAllowJumpToNode;
        }
        set
        {
            mAllowJumpToNode = value;
        }
    }

    public NewView()
    {

    }

    public NewView(IContainer container) : this()
    {
        container.Add(this);
    }

    protected override void WndProc(ref Message m)
    {
        //If jumping to nodes by pressing a key is not allowed
        if (!mAllowJumpToNode)
        {
            //Ignores WM_KEYDOWN, WM_KEYPRESS, WM_KEYUP
            if (m.Msg < 0x0100 || m.Msg > 0x0102)
            {
                base.WndProc(ref m);
            }
        }
        else //otherwise
        {
            //process all windows messages normally
            base.WndProc(ref m);
        }
    }
}


-- modified at 2:53 Friday 10th February, 2006
GeneralRe: How to disable the jump to node function in TreeVeiw? Pin
coby cai9-Feb-06 21:44
professionalcoby cai9-Feb-06 21:44 
QuestionDLLs - Creating Pin
Expert Coming9-Feb-06 17:58
Expert Coming9-Feb-06 17:58 
AnswerRe: DLLs - Creating Pin
rakesh_nits9-Feb-06 18:10
rakesh_nits9-Feb-06 18:10 
AnswerRe: DLLs - Creating Pin
Dave Kreskowiak9-Feb-06 18:12
mveDave Kreskowiak9-Feb-06 18:12 
GeneralRe: DLLs - Creating Pin
Expert Coming9-Feb-06 18:19
Expert Coming9-Feb-06 18:19 
GeneralRe: DLLs - Creating Pin
Kodanda Pani9-Feb-06 23:01
Kodanda Pani9-Feb-06 23:01 
GeneralRe: DLLs - Creating Pin
tiancaidao10-Feb-06 2:55
tiancaidao10-Feb-06 2:55 
GeneralRe: DLLs - Creating Pin
LongRange.Shooter10-Feb-06 2:01
LongRange.Shooter10-Feb-06 2:01 
QuestionCurrencyManger question Pin
Tom Wright9-Feb-06 16:41
Tom Wright9-Feb-06 16:41 
QuestionC# addins can not implement MC++ interface? Pin
tiancaidao9-Feb-06 16:05
tiancaidao9-Feb-06 16:05 
AnswerRe: C# addins can not implement MC++ interface? Pin
tiancaidao9-Feb-06 16:07
tiancaidao9-Feb-06 16:07 
GeneralRe: C# addins can not implement MC++ interface? Pin
George L. Jackson9-Feb-06 16:15
George L. Jackson9-Feb-06 16:15 
GeneralRe: C# addins can not implement MC++ interface? Pin
tiancaidao9-Feb-06 22:32
tiancaidao9-Feb-06 22:32 
Questionint.Parse for percentage values Pin
Luis Alonso Ramos9-Feb-06 16:00
Luis Alonso Ramos9-Feb-06 16:00 
QuestionDropDownList/ListItem Problem Pin
TheMajorRager9-Feb-06 12:53
TheMajorRager9-Feb-06 12:53 
AnswerRe: DropDownList/ListItem Problem Pin
George L. Jackson9-Feb-06 16:06
George L. Jackson9-Feb-06 16:06 
GeneralRe: DropDownList/ListItem Problem Pin
TheMajorRager10-Feb-06 5:34
TheMajorRager10-Feb-06 5:34 

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.