Hi,
I am writing an ftp program and I provide a form interface (say
Form1) to display the status to the window. This form1 reads an ini
file, which has all the settings needed to do the ftp (Ex: IP address,
username, etc) and starts doing the ftp displaying corresponding
messages to window. This Form1 has a mainmenu and menu items. One of
the menu items is "SetUp". If I want to change the setting used for the
ftp process I can click this menuitem. When I click this menu item, it
will open another form (say
Form2) which has text boxes for entry values of IP addresses, username,
etc and two buttons "OK" and "CANCEL". Form2 reads the ini file and
loads the text boxes when it opens up. When I change something in the
textboxes and click "OK", it should save them to the ini file and
close.
The problem is when Form2 opens, the ftp process should stop and wait
untill I click ok on Form2 which is not happening. Form1 is just
continuing doing its ftp job and displaying messages to window while
Form2 is open. How can I make Form1 stop the ftp, untill I click "OK"
on Form2. Also after I click "OK", the Form1 should start the ftp again
from the begining, not from where it left off when the menuitem "SetUp"
click event got triggered. How do I achieve this
By the way I am using delegates to display messages to the UI (Form1).
The explanation is a bit lengthy but I am not able to think of small
sample code to put up here.
Thanks in Advance,
Lalasa. 1 2997
Hi,
Use Form.ShowDialog () instead of Show
also if you are using a thread to do the transfer you should stop the
thread.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"L" <la********@inv estors.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. . Hi,
I am writing an ftp program and I provide a form interface (say Form1) to display the status to the window. This form1 reads an ini file, which has all the settings needed to do the ftp (Ex: IP address, username, etc) and starts doing the ftp displaying corresponding messages to window. This Form1 has a mainmenu and menu items. One of the menu items is "SetUp". If I want to change the setting used for the ftp process I can click this menuitem. When I click this menu item, it will open another form (say Form2) which has text boxes for entry values of IP addresses, username, etc and two buttons "OK" and "CANCEL". Form2 reads the ini file and loads the text boxes when it opens up. When I change something in the textboxes and click "OK", it should save them to the ini file and close.
The problem is when Form2 opens, the ftp process should stop and wait untill I click ok on Form2 which is not happening. Form1 is just continuing doing its ftp job and displaying messages to window while Form2 is open. How can I make Form1 stop the ftp, untill I click "OK" on Form2. Also after I click "OK", the Form1 should start the ftp again from the begining, not from where it left off when the menuitem "SetUp" click event got triggered. How do I achieve this
By the way I am using delegates to display messages to the UI (Form1).
The explanation is a bit lengthy but I am not able to think of small sample code to put up here.
Thanks in Advance, Lalasa. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg Bacchus |
last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic
at best, it's only happened a handful of times.
This particular time it happened when the user pressed 'Alt-S' to save
the data that they were entering.
Following is all exception information.
Any thoughts much appreciated.
Cheers
|
by: Wiktor Zychla |
last post by:
today we've found a critical issue regarding the ListView from
Windows.Forms. it was confirmed on several machines with Win2K and XP.
here's the problem: create a ListView with about 50000 rows. now use task
manager to see the GDI usage of the process. everything seems normal.
now catch the ListView's scroller and start to move it downwards. you have
to hold the constant speed so that the ListView is constantly repainted.
look at the...
|
by: david |
last post by:
I have developed my web service with a domain name of my computer name and
wwwroot directory. I also developed a client of windows form application. It
works locally (i.e. in the same machine).
When I copy my client application to another machine and start it, I got an
error about initialized problem.
Note that I can browser my web service .asmx file from the second machine.
The sample client source code:
|
by: Tyler Foreman |
last post by:
Hello,
I have a strange problem that occurs every so often in my
application. It usually takes place when I hide one form
and activate another. What happens is I get the
following exception:
System.ArgumentException occured in
System.Windows.Forms.dll
|
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET. I'm having trouble getting the code that I've written to work, can
anyone shed some light as to where I'm going wrong.
The program has been written to do the following tasks:
- Select remote server
- Select from two specific services
| |
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET.
The program I'm trying to develop needs to be able to do the following:
- Select remote server
- Select from two specific services
- Check the status of the server
|
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps further away, completely leaving the
selector box area.
Any ideas? VS 2003 and VB.Net
This is a simple application at the moment but the form is inherited from a
|
by: tshad |
last post by:
What would be a good way to check programmatically whether a service was
running?
We have a service that dies periodically and I need to check to see if this
service is running. I know how to check to see if the status is in stopped
or running mode. But that doesn't tell me if it is actually running.
I need to know this so that if it happens I can programmatically start the
same service on another machine.
|
by: mfunkmann |
last post by:
Hi,
I recently got an error and I don't know how to fix it:
Error 1 'System.Data.DataColumn' does not contain a definition for
'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO
I am note sure what to do because all propertiers work, except the
System.Data.DataColumn..
I didn't write any code by hand and used the visual studio to set the
properties..
|
by: Dan Tallent |
last post by:
In my application I have a form (Customer) that I want to be able to open
multiple copies at once. Within this form I have other forms that can be
opened. Example: ZipCode. When the user enters a zipcode that is unknown
this form will open. I don't want users to modify any of this customers
data until they close the zipcode form. Normally this can accomplished
using a modal form, however this prevents me from opening a new copy of...
|
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: 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,...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 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...
| |
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |