Results 1 to 4 of 4

Thread: clicking twice for dialog box [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    clicking twice for dialog box [RESOLVED]

    I'm using this code on the click event to open a print dialog box..
    The problem I'm having is, you have to click the button twice before the dialog box will show....Any suggestions?

    Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
    btnPrint.Attributes.Add("onclick", "javaScript:window.print()")
    End Sub
    Last edited by EyeTalion; Nov 18th, 2002 at 11:28 AM.

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