Wrox Programmer Forums
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 13th, 2007, 02:23 PM
Authorized User
Join Date: Oct 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default Focus

I would like to know how to get my window to focus after clicking the date in my popup window. I would like for it to focus on txtdisplaydate.

  Dim popupScript As String = "<script language='javascript'>" & _
                   "window.open('calendar.aspx?formname=frmFireworksP ermitApp.txtdisplaydate', 'calendar', " & _
                   "'width = 300, height = 200, bottom = 100, menubar = no, resizable=yes, scroll=auto');my_window.focus()" & _

  Private Sub btncal1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncal1.Click
        Page.RegisterStartupScript("PopUPScript", popupScript)

    End Sub

Similar Threads
Thread Thread Starter Forum Replies Last Post
Focus dhoward Javascript 3 September 19th, 2007 02:54 AM
focus kvanchi General .NET 2 December 13th, 2004 09:16 PM
Focus pbyrum Javascript 2 September 3rd, 2004 04:48 PM
Focus jbenson001 ASP.NET 1.x and 2.0 Application Design 2 February 18th, 2004 02:14 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.