473,624 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

jamesd0142
469 Contributor
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 1790
nexusbr
15 New Member
try to use this statement instead:


me.close()

gl
Dec 13 '07 #2
kenobewan
4,871 Recognized Expert Specialist
Have you ensured that all values have been cleaned up?
Dec 13 '07 #3
jamesd0142
469 Contributor
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 New Member
well..

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

?
Dec 13 '07 #5
radcaesar
759 Recognized Expert Contributor
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
1861
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 not. So is there a way to shutdown a running app (with no main window) from another app (without using Process.Kill). --Buddy
2
1753
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 STA. The problem is that I wan't to be able to close the app from wherever in my app (no matter how deep in the code) and make sure that all the resources are being freed after exiting the app. Any ideas? Is there a way to re-open the app...
2
1315
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
2865
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 until XP SP2 was installed on the PCs. Now when the power on or power off button is pressed the following message is displayed: An unhandled exception has occurred in your application. If you click Continue, the application will ignore this...
9
2096
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 app through code? I am using End for now. Is there a way I can suppress this exception message? The app gets invoked programmatically on a schedule. So no one would be around to click off the
6
1277
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 problem, I am not sure what it is or what to do. But I think it has something to do with a dialog box. The app had a toolbar with buttons on it, on some of the button a dialog box is suppose to popup and give the user a selection of items to view....
4
2272
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 soon. Upon submitting this information, it takes the user back to the starting form, BUT also opens up another form to serve as a popup-reminder. This reminder is minimized to the system tray upon instantiation, and after 10 minutes (or the user...
8
16091
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 which modifies Application setting section but how to add new item to userSettings ? Andrus.
10
1821
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 once the app is finished doing what it is doing to close. In other words I need to close the app gracefully. How can I achieve this? Thanks
0
8175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7168
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.