I'm just added a new form to my application for entering information to
a database. To do this I did:
Me.Hide()
Dim Form1 As New Form1
Form1.Show()
When I run debugger, test, and end the software (By clicking the X on
the top right corner) the program ends. Well, when I go to debug mode I
get an error stating that:
"Could not copy temporary files to the output directory."
"The file 'Project.exe' cannot be copied to the run directory. The
process cannot access the file because it is being used by another
process."
The only way I can get back to testing the software is to open Task
Manager and end the process of Project.exe. The only thing I can think
of is that when the user is finished inputting data into Form1 they
press the "Hide Me" button to hide the form. It seems that if this form
is still open and the .exe can't end.
I am somewhat new to windows application development so I really don't
know what to think. Thanks in advance. 7 1355
Hi,
I don't know why you do this, however if it is real as you show and you do
this from form1 than it is not possible that you eat your complete memory
and than everything becomes unpredictable. Me.Hide() Dim Form1 As New Form1 Form1.Show()
Can you show it a little bit more exact, by instance in what event you are
using this.
Cor
Yes, you program is not ending, it just happens that the forms are not
visible. Normally you have:
- Non modal forms, shown using form.Show, likely in a MDI form container.
- Modal forms, using form.ShowDialog .
Normally you don´t have "Hide me" buttons, you have "Close" or "OK" +
"Cancel" window dialogs that close the window (not just hiding it).
So, assuming that your app has a form and you want to show another form to
enter data, try with a modal form using:
Dim frm As New Fomr2()
If frm.ShowDialog( ...) = DialogResult.OK
' Process data
End If
frm.Dispose()
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
<po*******@gmai l.com> escribió en el mensaje
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . I'm just added a new form to my application for entering information to a database. To do this I did:
Me.Hide() Dim Form1 As New Form1 Form1.Show()
When I run debugger, test, and end the software (By clicking the X on the top right corner) the program ends. Well, when I go to debug mode I get an error stating that:
"Could not copy temporary files to the output directory."
"The file 'Project.exe' cannot be copied to the run directory. The process cannot access the file because it is being used by another process."
The only way I can get back to testing the software is to open Task Manager and end the process of Project.exe. The only thing I can think of is that when the user is finished inputting data into Form1 they press the "Hide Me" button to hide the form. It seems that if this form is still open and the .exe can't end.
I am somewhat new to windows application development so I really don't know what to think. Thanks in advance.
Cor,
If you would would've read my original post you would have seen that I
am NEW to windows application development. This more than explains the
problem that I am having. It is also very hard to understand what you
are trying to say/ask me. I thought MVP's were supposed to help people
in times of need. Since when did MVP's start taking an elitist
programmer attitude with their condescending remarks?
Carlos,
Thank you very much for your feedback. I will look into this and let
you know if it helped me out.
Ok, let us know if the problem is solved or not and please consider that
neither Cor nor I do speak native English, so our language sometimes is far
from perfect. I am sure that Cor did not intend to show elitist attitudes.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"Paul Bush" <po*******@gmai l.com> escribió en el mensaje
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . Cor,
If you would would've read my original post you would have seen that I am NEW to windows application development. This more than explains the problem that I am having. It is also very hard to understand what you are trying to say/ask me. I thought MVP's were supposed to help people in times of need. Since when did MVP's start taking an elitist programmer attitude with their condescending remarks?
Carlos,
Thank you very much for your feedback. I will look into this and let you know if it helped me out.
My apologies then.
Sorry Cor.
Carlos,
Thanks for your input. After reading some documentation online I think
I have figured it out.
To show the data entry form I have used:
Dim frmLicenseInfo As New LicenseInfo
frmLicenseInfo. ShowDialog()
And to "hide" this form I have used:
Me.DialogResult = DialogResult.OK
Everything works fine and there is no Project.exe left in Task Manager
when I end the program. Thanks again for your help Carlos!
Yes, "closing" and "hiding" windows are different things. The former
destroyes the window and its resources, the latter only makes the window
invisible but it is still there. I am glad that the problem is solved.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers: http://www.mztools.com
"Paul Bush" <po*******@gmai l.com> escribió en el mensaje
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Carlos,
Thanks for your input. After reading some documentation online I think I have figured it out.
To show the data entry form I have used:
Dim frmLicenseInfo As New LicenseInfo frmLicenseInfo. ShowDialog()
And to "hide" this form I have used:
Me.DialogResult = DialogResult.OK
Everything works fine and there is no Project.exe left in Task Manager when I end the program. Thanks again for your help Carlos! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tony Wright |
last post by:
Hi,
I am having a problem installing an msi for a web site. The error
message I am getting is:
"The specified path 'http://mipdev05/features/Fas2' is unavailable.
The Internet Information Server might not be running or the path
exists and is redirected to another machine. Please check the status
of this virtual directory in the Internet Services Manager."
|
by: Brian Conway |
last post by:
I have no idea what is going on. I have a Login screen where someone types
in their login information and this populates a datagrid based off of the
login. Works great in debug and test through VS, however, when I change to
release and put it out on the web it fails giving me the following error
message
The underlying connection was closed. Could not establish a trust
relationship with the remote server.
|
by: Stephen Miller |
last post by:
Hi,
I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net
application running locally, using a full URL (ie www.mysite.com).
When I hit F5, I get the following error message:
<debugger_error_message>
Error while trying to run project: Unable to start debugging on the
web server.
The project is not configured to be debugged.
|
by: p |
last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also
have Crystal 9 pro on my development machine. The web app runs fine on my
dev machine but am having problems deploying. I created the websetup and
built the MSI, have the bundled version. Copied to webserver and ran
Websetup.msi. Said I had to remove old version, which I did, then reran
WebSetup.msi and keeps giving me this error. "The installer was interrupted...
|
by: Tony Wright |
last post by:
Hi,
I am having a problem installing an msi for a web site. The error
message I am getting is:
"The specified path 'http://mipdev05/features/Fas2' is unavailable.
The Internet Information Server might not be running or the path
exists and is redirected to another machine. Please check the status
of this virtual directory in the Internet Services Manager."
| |
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |