tooltip hint

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • giddy

    tooltip hint


    hi ,

    i'm somewhat new to C# .. so i might be asking a silly question.. but i
    have tried searching forums after reading msdn docs , for this.

    I have a column for dates in my datagridview. As soon as the user
    starts typing the date into it one of the cells. i want a tooltip to
    popup nearby and say 'press T to enter todays date' much like MS word -
    when u type jan... a tooltip popups telling you 'press ENTER to INSERT
    January'


    Thanks

  • chanmm

    #2
    Re: tooltip hint

    I bet you need to inherit the grid using partial class to do that. If I were
    you I will do this in textbox. If the goal at the end is just inserting data
    ...

    chanmm

    "giddy" <gidisrael@gmai l.comwrote in message
    news:1163226273 .655510.256860@ k70g2000cwa.goo glegroups.com.. .
    >
    hi ,
    >
    i'm somewhat new to C# .. so i might be asking a silly question.. but i
    have tried searching forums after reading msdn docs , for this.
    >
    I have a column for dates in my datagridview. As soon as the user
    starts typing the date into it one of the cells. i want a tooltip to
    popup nearby and say 'press T to enter todays date' much like MS word -
    when u type jan... a tooltip popups telling you 'press ENTER to INSERT
    January'
    >
    >
    Thanks
    >

    Comment

    • giddy

      #3
      Re: tooltip hint

      acutually i mamaged to get a tooltip to force show during the
      EditingControlS howing event , because this returns e.Control , which
      can be passed to the tooltip shw method.... is'nt there any other
      envent like this?? i want the tooltip to show during "cellBeginE dit"

      i can resort to API .. createWindow .. and display the tooltip .. but
      i'm keeping that as my last option!

      now about the inherting thing , is there a way i can make the
      cellBeginEdit event return e.Control ??

      sry i took so long!

      thanks

      Gideon

      chanmm wrote:
      I bet you need to inherit the grid using partial class to do that. If I were
      you I will do this in textbox. If the goal at the end is just inserting data

      Comment

      Working...