CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Click event

  1. #1
    Join Date
    Mar 2009
    Posts
    5

    Click event

    Why I can't do this??

    Private Sub combobox1_Click()
    If combobox1.Text = "Some Text" Then
    combobox1.Text = Format(Now(), "dd-MMM-yyyy ttttt")
    End If
    End Sub

    Thanks in advanced

  2. #2
    Join Date
    Oct 2006
    Posts
    327

    Re: Click event

    Hello,

    Use Sendkeys

    Code:
    If Combo1.Text = "Some Text" Then
       SendKeys Format(Now, "dd-MMM-yyyy ttttt")
     End If

  3. #3
    Join Date
    Mar 2009
    Posts
    5

    Re: Click event

    Excellent! Thank you so much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured