This a pocket pc/smartphone questions mainly, but i thought i'd ask the
question in the C# newsgroup. I have a form which i use to display
information from a web service. From this form i open another Form. On
this form i update the webservice which in turn updates the information
displayed on the previous form. When i close this form, I wish to refresh
the previous Form to show the new modified data.
How can i do this?
Is there a way to refresh the form every time it gains focus ? 1 2586
Hi,
What you really need to do is call a method in the parent form that refresh
the info displayed in the controls,
refreshing the form is only repaint it, each control repaint itself using
the data they contains.
If the info that they need to display changed, you will have to update them,
then they will repaint itself alone :)
Create a method ( you probably have one already ) that will assign the info
read from the webservice to the control, you have to call this method when
the second form closes.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Robert Clark" <rclark> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. This a pocket pc/smartphone questions mainly, but i thought i'd ask the question in the C# newsgroup. I have a form which i use to display information from a web service. From this form i open another Form. On this form i update the webservice which in turn updates the information displayed on the previous form. When i close this form, I wish to refresh the previous Form to show the new modified data.
How can i do this?
Is there a way to refresh the form every time it gains focus ? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Philo Del Middleston |
last post by:
I've been searching, but apparently not phrasing my search right, so I'm
going to float a question out here in the meantime...
I'm wondering how to go about refreshing the content of a control (say, a
selector) without refreshing the page. For example, if I have these selects:
Company: <pick a company>
Contact: <pick a contact>
When they pick the company, I'd like to refill the contact selector based on
|
by: Daniel P. |
last post by:
I'm trying to set a timer that gets called every 3 seconds so I can update a
field in the UI with the time elapsed since the process started.
What am I doing wrong that timerDF_Tick does not get called?
private System.Windows.Forms.Timer timerDF;
this.timerDF = new System.Windows.Forms.Timer(this.components);
|
by: willow1480 |
last post by:
I am developing a small little Service Control Application. I am
using a listview control with checkboxes and getting the list of
services I want to control from a text file. When you check a
checkbox, it should either stop the service or start the service
depending on each respective service's status. I want the listView
to update the status for each service as they are checked. instead
all I can seem to do is clear the listView and I...
|
by: gdbjohnson-AT-yahoo-dot-ca-nospamplz |
last post by:
I have a ListBox built of a simple custom object for the
ListItems used to be able to hold a Data Value, and a
Display Value, with accessors for each. I have
overridden the ToString method to display the Display
value.
(Two examples that I have seen, including an MS example,
suggest that the DisplayMember and ValueMember properties
of the ListBox can be used in this way, I could not get
it to work using the ListItems.Add method -...
|
by: Hans |
last post by:
I have a Windows.Forms.Form containing a DataGrid where the DataSource
is a DataView. Everything refreshes fine after adding, deleting or
editing rows. When I close the dialog and reopen it with a new set of
data, all is okay showing the new rows of data. But when I go back to
the first set of data, I get the correct data except for ONLY the second
column of the first row contains the data from the second set of data.
If I cause it to...
| |
by: Jennyfer J Barco |
last post by:
Hello I have a datagrid and a linkbuttom in the datagrid that says Picture,
every time I click on the link "Picture" my program opens a popup window
showing a picture of the item the selected and information about the item.
On the html of the datagrid I have the following:
OnItemCommand="Grid_CartCommand" OnItemCreated="DataGrid_ItemCreated".
My VB functions are the following:
Sub DataGrid_ItemCreated(ByVal Sender As Object, ByVal e As...
|
by: Angus Lepper |
last post by:
I'm writing a stock ticker for a stock market simulation, and can load the
data into the xmlreader in the first place, but can't figure out how to
refresh/update the data in it. Any ideas?
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
|
by: Chris Moore |
last post by:
I have a .NET form where I am updating a progress bar & counter. As long
as the form never loses focus, everything on the form refreshs fine. But If
I open another window (like Windows Explorer) and then re-select my .net
form, thos fields no longer refresh. Why and ho wdo I make it start
refreshing again?
Thanks
|
by: shankari07 |
last post by:
hi guys,
I have a form in html which has the city drop down. when clicking the drop down a javascript is called and a file(test.txt) is created and the city is written into the file.
Through php i want to open the same file(test.txt), fetch the values and display it in a text box without refreshing or reloading the form. Is it possible.
After refreshing it works but i want without refreshing the form.
here is the code.
|
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: 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: 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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |