Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10933


Why does the GTP.net OnTimeItemAreaKeyDown event neverfire? Please note that this article refers to the GTP.NET
Jump to article- 2007-06-21 11:48:00 - Email plexityHide

Question

 

Why does the GTP.net OnTimeItemAreaKeyDown event never fire?

 

I need detect ?del? key and delete TimeItemLinks.Select SelectedLink

 

Answer

 

This event only fires if a control has Focus, and default we do not give keyboard focus to the time item area since it takes focus from the grid (this may very well change in the future when we implement key navigation i the time items)

 

The workaround is to give focus to the TimeItemArea in the MouseDown event:

 

   private void gantt1_OnTimeItemAreaMouseDown(object sender, MouseEventArgs e)
    {
      gantt1.TimeItemArea.Focus();
    }
 
    private void gantt1_OnTimeItemAreaKeyDown(object sender, KeyEventArgs e)
    {
      MessageBox.Show("key down");

    }

 

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...