473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Closing the form run by Application.Run

Tim
Is it possible to close the form I invoked via
Application.Run() as I invoke another form without
the application exiting? (I'd rather not hide it
since I don't need it anymore)

....call to form:

Application.Run(new form1)
......from a button on form1:

dim f as new form2

form2.show
me.close
Thanks.

Nov 20 '05 #1
8 11691
"Tim" <xn******@lycosmail.com> schrieb
Is it possible to close the form I invoked via
Application.Run() as I invoke another form without
the application exiting? (I'd rather not hide it
since I don't need it anymore)

...call to form:

Application.Run(new form1)
.....from a button on form1:

dim f as new form2

form2.show
me.close
Thanks.


Sub Main:
f = new form1
f.show
application.run()

Call application.ExitThread to exit application.run.

--
Armin

Nov 20 '05 #2
Hello,

"Tim" <xn******@lycosmail.com> schrieb:
Is it possible to close the form I invoked via
Application.Run() as I invoke another form without
the application exiting? (I'd rather not hide it
since I don't need it anymore)


http://groups.google.de/groups?selm=...TNGP11.phx.gbl

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Cor
Herfried,
This kind of questions are the speciality or Armin,
:-)
Cor
Nov 20 '05 #4

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
Hello,

"Tim" <xn******@lycosmail.com> schrieb:
Is it possible to close the form I invoked via
Application.Run() as I invoke another form without
the application exiting? (I'd rather not hide it
since I don't need it anymore)

http://groups.google.de/groups?selm=...TNGP11.phx.gbl
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Application.Run( ) does not compile because it wants a "frm" as a
parameter.
Am I missing something here?
Thanks.
Nov 20 '05 #5
Hello,

"Tim Nelson" <ti***************@softhome.net> schrieb:
Application.Run( ) does not compile because it wants a
"frm" as a parameter.
Am I missing something here?


There is a parameterless overloaded version of 'Application.Run'. It works
perfectly on my .NET 1.0 machine. Which version of .NET do you use? Which
compilation error do you get?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6
Herfried,

C:\Documents and Settings\nelson\My Documents\Visual Studio
Projects\RFDDS\main.vb(32): Argument not specified for parameter 'fm' of
'Public Shared Sub Run(fm As System.Windows.Forms.Form)'.

I am using VS 2003 Pro using the .NET compact framework try to build
an application that runs on the Pocket PC.

Thanks.

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
Hello,

"Tim Nelson" <ti***************@softhome.net> schrieb:
Application.Run( ) does not compile because it wants a
"frm" as a parameter.
Am I missing something here?
There is a parameterless overloaded version of 'Application.Run'. It

works perfectly on my .NET 1.0 machine. Which version of .NET do you use? Which
compilation error do you get?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #7
Hello,

"Tim Nelson" <ti***************@softhome.net> schrieb:
C:\Documents and Settings\nelson\My Documents\Visual Studio
Projects\RFDDS\main.vb(32): Argument not specified for
parameter 'fm' of 'Public Shared Sub Run(fm As System.Windows.
Forms.Form)'.

I am using VS 2003 Pro using the .NET compact framework
try to build an application that runs on the Pocket PC.


It seems that the parameterless overload of 'Run' is not supported by the
Compact Framework.

Notice that you will have a better chance to get an answer if you post to
the .NET Compact Framework newsgroup in future:

news://msnews.microsoft.com/microsof...mpactframework

Web interface:

http://msdn.microsoft.com/newsgroups...mpactframework

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8
"Tim Nelson" <ti***************@softhome.net> schrieb
Herfried,

C:\Documents and Settings\nelson\My Documents\Visual Studio
Projects\RFDDS\main.vb(32): Argument not specified for parameter 'fm'
of 'Public Shared Sub Run(fm As System.Windows.Forms.Form)'.

I am using VS 2003 Pro using the .NET compact framework try to
build an application that runs on the Pocket PC.

The docs for Application.Run say that only Application.Run(Form) is
supported.

BTW, there's also microsoft.public.dotnet.framework.compactframework
--
Armin

Nov 20 '05 #9

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

Similar topics

8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
1
by: Uros | last post by:
When closing some forms in MSAccess 2003 Access is crashed (Microsoft Office Access has encounteres a problem and needs to close. We are sorry .......). If I close form without changes work OK, but...
4
by: Jax | last post by:
I created the .exe using CodeDom and writing a batch file which then compiled the .cs into a windows form application. The forms application is a CARBON COPY of the standard windows form template...
4
by: Hardy Wang | last post by:
Hi, I have a win form application, when a button is clicked, a lengthy operation will be triggered. During the time program is still running, this application seems not to be able to response to...
2
by: RobertK | last post by:
Hi i wonder how to avoid (trap) closing Form when user clicks 'X' button in right-top corner of the form. has anybody idea how to do it? thanks in advance. Regards, Robert
1
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
2
by: kevininstructor | last post by:
I want to prevent a user from closing an application while doing critical operations. The following code (concept came from MSDN) works except for when the user attempts to terminate via "Task...
2
by: neilphan | last post by:
Hi Guys, I need a quick reference to Windows Application Development in dotNet. I'm fairly good at the Web Development using asp.net though i'm new to the Windows Desktop Application...
1
by: Neelakandan v n | last post by:
Hi, After closing an application in Windows XP, developed using VB and ESRI MapObjects, it continues to show in the tasks list. This also takes considerable memory. Why the process continues 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
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.