Wrox Programmer Forums
|
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials 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 9th, 2009, 03:07 PM
Authorized User
 
Join Date: Jul 2009
Posts: 30
Thanks: 10
Thanked 0 Times in 0 Posts
Question Close Form1

I have a error when click button close the form well close but i can not write in the code window till i stop the debugging myself?

My code for closing form1 is

Me.Hide()

A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll

Cannot currently modify this text in editor.
It is read only
 
Old September 10th, 2009, 03:18 AM
Authorized User
 
Join Date: Jul 2009
Posts: 30
Thanks: 10
Thanked 0 Times in 0 Posts
Talking Close Form1 Answer

I have the answer

instead of Me.Hide()

It should be Me.Close()





Similar Threads
Thread Thread Starter Forum Replies Last Post
using Form1 of Workbook1 in Workbook2 munzer1 Excel VBA 0 July 20th, 2007 12:53 PM
How to predefine location of scrollbar in Form1.We method Beginning VB 6 1 October 17th, 2006 06:13 PM
Problem Opening Form1.xml alfyk20vtec Infopath 1 December 19th, 2005 05:24 AM
document.form1 MuthuAL Classic ASP Databases 5 January 4th, 2005 10:00 AM
can not find form1 specified error sadiku ASP.NET 2.0 Basics 1 October 8th, 2004 05:28 PM





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