473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

VB.NET App: form.close() give error

jamesd0142
469 256MB
My form is called 'PasswordChange'

i can say:
Expand|Select|Wrap|Line Numbers
  1. PasswordChange.hide()
  2. PasswordChange.Show()
  3.  
and they work correctly.

but when i say:
Expand|Select|Wrap|Line Numbers
  1. PasswordChange.Close()
  2.  
i get the error:
'Property access must assign to the property or use its value.'

What on earth does this mean?

----------------------------------------------------------------------------------------------------
Also form.close() works on all other forms
------------------------------------------------------------

Cheers
Dec 13 '07 #1
5 1779
nexusbr
15
try to use this statement instead:


me.close()

gl
Dec 13 '07 #2
kenobewan
4,871 Expert 4TB
Have you ensured that all values have been cleaned up?
Dec 13 '07 #3
jamesd0142
469 256MB
Have you ensured that all values have been cleaned up?
Could you please explain what you mean by this?

----------------------------------------------------------

hey nexusbr,

Im trying to close 'passwordchange' form, from a form called 'access'.

cheers James
Dec 13 '07 #4
nexusbr
15
well..

have you tried a :
passwordchange.dispose()
passwordchange.close()

?
Dec 13 '07 #5
radcaesar
759 Expert 512MB
Since u have access the form from another form, You have to create a new instance of the form in target form. And then use that instance to close that one.
Dec 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Buddy Ackerman | last post by:
I need to create a utility to shutdown another running application. I know you can get a Process object and execute the Exit method but that only works for apps that have a main window, mine does...
2
by: pnp | last post by:
Hi all, I'm working on a win app that uses a logon form to verify the user that logs in the program and then hides the first form and displays an MDI form where the user does his work. The app is...
2
by: ae | last post by:
Does anybody know how to properly close the form, on a browser, and then exit out of the browser? I looked at MSDN and found nothing there.
20
by: Jason Dravet | last post by:
Some time ago I wrote an application that controls the projectors in our classrooms(turn on, turn off, and volume control). This application is written in VB.net 2003. It was working perfectly...
9
by: Ron | last post by:
my application is throwing an exception error when closing if I run a procedure in the app. I can't even trap the error with try/catch ex As Exception. Is there a way to completely shut down the...
6
by: Brian Shafer | last post by:
Hello, I am VERY new to .Net and C#. But I have an app that I bought from a vendor with the source. This was written in C#2003. I have VS2005. I went through the upgrade process.. I have a...
4
maxx233
by: maxx233 | last post by:
Hello! I have an app that starts up and has a starting form. One of the icons on this beginning Form opens a new form and lets the user give some information on a task they need to remember to do...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
10
by: John | last post by:
Hi My app does a few processes and the app can not be closes mid way. Therefore I want to be able to block any attempt of closing app by user such as by clicking on close (cross) or Alt-F4 and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.