p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 9th, 2009, 04:07 PM
Authorized User
Points: 79, Level: 1
Points: 79, Level: 1 Points: 79, Level: 1 Points: 79, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jul 2009
Posts: 18
Thanks: 1
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old September 10th, 2009, 04:18 AM
Authorized User
Points: 79, Level: 1
Points: 79, Level: 1 Points: 79, Level: 1 Points: 79, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jul 2009
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Talking Close Form1 Answer

I have the answer

instead of Me.Hide()

It should be Me.Close()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using Form1 of Workbook1 in Workbook2 munzer1 Excel VBA 0 July 20th, 2007 01:53 PM
How to predefine location of scrollbar in Form1.We method Beginning VB 6 1 October 17th, 2006 07: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 06:28 PM



All times are GMT -4. The time now is 08:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc