473,387 Members | 1,621 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,387 software developers and data experts.

So simple

Hey Group,

Sorry to ask such a simple quwation but how do i close a form which has been
called from another.

E.G:- form1 uses:

Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
LoadModifyTablesArcirs = New frmModifyArcirisRoles()
LoadModifyTablesArcirs.ShowDialog()

How do I then close frmModifyTablesArciris?

Many Thanks
MCN
Nov 20 '05 #1
6 883
"MadCrazyNewbie" <te**@nospam.com> schrieb
Hey Group,

Sorry to ask such a simple quwation but how do i close a form which
has been called from another.

E.G:- form1 uses:

Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
LoadModifyTablesArcirs = New frmModifyArcirisRoles()
LoadModifyTablesArcirs.ShowDialog()

How do I then close frmModifyTablesArciris?

LoadModifyTablesArcirs.Close
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Thats what I thought but i get a error saying:

Name LoadModifyTablesArcirs is not declared

if i use:

CloseModifyTablesArcirs As frmModifyTablesArcirs

I get a message saying:

An unhandled exception of type 'System.NullReferenceException' occurred in
Excellence.NET.exe
Additional information: Object reference not set to an instance of an
object.

Cheers
MCN

"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"MadCrazyNewbie" <te**@nospam.com> schrieb
Hey Group,

Sorry to ask such a simple quwation but how do i close a form which
has been called from another.

E.G:- form1 uses:

Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
LoadModifyTablesArcirs = New frmModifyArcirisRoles()
LoadModifyTablesArcirs.ShowDialog()

How do I then close frmModifyTablesArciris?

LoadModifyTablesArcirs.Close
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
"MadCrazyNewbie" <te**@nospam.com> schrieb

Sorry to ask such a simple quwation but how do i close a form
which has been called from another.

E.G:- form1 uses:

Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
LoadModifyTablesArcirs = New frmModifyArcirisRoles()
LoadModifyTablesArcirs.ShowDialog()

How do I then close frmModifyTablesArciris?

LoadModifyTablesArcirs.Close


Thats what I thought but i get a error saying:

Name LoadModifyTablesArcirs is not declared

if i use:

CloseModifyTablesArcirs As frmModifyTablesArcirs

I get a message saying:

An unhandled exception of type 'System.NullReferenceException'
occurred in Excellence.NET.exe
Additional information: Object reference not set to an instance of
an object.


If you don't have a reference to the existing Form, you must pass the
reference to the object that needs it.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
Armin,

Sorry how do I do that?

Cheers
MCN

"Armin Zingler" <az*******@freenet.de> wrote in message
news:40*********************@news.freenet.de...
"MadCrazyNewbie" <te**@nospam.com> schrieb
>
> Sorry to ask such a simple quwation but how do i close a form
> which has been called from another.
>
> E.G:- form1 uses:
>
> Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
> LoadModifyTablesArcirs = New frmModifyArcirisRoles()
> LoadModifyTablesArcirs.ShowDialog()
>
> How do I then close frmModifyTablesArciris?
LoadModifyTablesArcirs.Close


Thats what I thought but i get a error saying:

Name LoadModifyTablesArcirs is not declared

if i use:

CloseModifyTablesArcirs As frmModifyTablesArcirs

I get a message saying:

An unhandled exception of type 'System.NullReferenceException'
occurred in Excellence.NET.exe
Additional information: Object reference not set to an instance of
an object.


If you don't have a reference to the existing Form, you must pass the
reference to the object that needs it.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
"MadCrazyNewbie" <te**@nospam.com> schrieb
>
> LoadModifyTablesArcirs.Close

Thats what I thought but i get a error saying:

Name LoadModifyTablesArcirs is not declared

if i use:

CloseModifyTablesArcirs As frmModifyTablesArcirs

I get a message saying:

An unhandled exception of type 'System.NullReferenceException'
occurred in Excellence.NET.exe
Additional information: Object reference not set to an instance
of an object.


If you don't have a reference to the existing Form, you must pass
the reference to the object that needs it.

Sorry how do I do that?


You can pass it as an argument of a public procedure (can be a sub, function
or property).

see also:
http://msdn.microsoft.com/library/en...Procedures.asp

http://msdn.microsoft.com/library/en...nArguments.asp

http://msdn.microsoft.com/library/en...ithMethods.asp

http://msdn.microsoft.com/library/en...Properties.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
Hi Simon

A lot of messages to day from me to you.
Dim LoadModifyTablesArcirs As frmModifyArcirisRoles
LoadModifyTablesArcirs = New frmModifyArcirisRoles()
LoadModifyTablesArcirs.ShowDialog()

Direct after this when you do not get a value
LoadModifyTablesArcirs.dispose()

One of the rare places where disposed should be used, when you do not want
to show it again.

Cor
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: delisonews | last post by:
I'm looking for a simple, filesystem-based message board. (No MySQL!) Something that I could include easily in my code: include '../inc/messageboard.php'; .... so that the board shows up at...
3
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
8
by: Dan | last post by:
Using XML::Simple in perl is extreemly slow to parse big XML files (can be up to 250M, taking ~1h). How can I increase my performance / reduce my memory usage? Is SAX the way forward?
6
by: Manuel Collado | last post by:
I would like to write simple, yet well structured documents with a really simple XML DTD (or schema). Either Docbook or SDocbook are overkill for this simple case. XHTML is simpler, but...
11
by: JKop | last post by:
Take the following simple function: unsigned long Plus5Percent(unsigned long input) { return ( input + input / 20 ); } Do yous ever consider the possibly more efficent:
4
by: Steven Blair | last post by:
I have the following number: 64521234567890 and need to apply some sort of simple encryption. Does c# have any classes for doing this. I cant use 3DES or anything as complex as. The size...
7
by: abcd | last post by:
I am trying to set up client machine and investigatging which .net components are missing to run aspx page. I have a simple aspx page which just has "hello world" printed.... When I request...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
14
by: Giancarlo Berenz | last post by:
Hi: Recently i write this code: class Simple { private: int value; public: int GiveMeARandom(void);
10
by: Phillip Taylor | last post by:
Hi guys, I'm looking to develop a simple web service in VB.NET but I'm having some trivial issues. In Visual Studio I create a web services project and change the asmx.vb file to this: Imports...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.