473,915 Members | 3,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking Forms Dynamically

Hi

I'm developing a scheduling application (C#, Windows Forms, SQL Server)
that matches up engineers and sites. I've got one form that shows an
engineer and what sites he's visiting (EngineerView), and another that
shows a site and what engineer visits are planned (SiteView). Both are
made up from a number of ListViews that the user can Drag & Drop
between.

I'd like the user to be able to open multiple instances of EngineerView
and SiteView, and I want a change to one of them to be immediately
reflected in any of the others that show related data. For example if
I schedule Engineer A to Site B on Tuesday in an EngineerView then I
want any SiteViews for Site B to show Engineer A on Tuesday.

My question is what's the best way to achieve this? My idea so far is
to create a central public array that they all update. Would this work?
Can anyone suggest an alternative?
Also I'm not sure how to make updates appear immediately in another
open form.

Hope that's fairly clear.

Cheers

John South
www.WhereCanWeGo.com
Pangbourne UK

Feb 17 '06 #1
3 2766
I would probably create a class on the server, that would hold your
master array of schedules. then to make the changes instant, you could
use AJAX, set each form to refresh every X seconds to poll for the
Array off the server. If the server array is different than the one on
the client side, it gets the updates and updates the UI.

there is an article on MSDN called ASP.NET Spiced, that explains how to
use asp.net and ajax together. some pretty impressive stuff if you ask
me.

hope that helps, little hazy on the details but you get the idea.

Feb 17 '06 #2
i take that back about the form refreshing, that wouldnt be necessary,
all you would have to do is in the javascript on the client forms,
setup an AJAX method on the server, that your forms would call every X
seconds. thats what i was trying to say

Feb 17 '06 #3
Sorry, I thought I had made it clear that it's a Windows Forms
Application not ASP.Net.

John South
DKode wrote:
i take that back about the form refreshing, that wouldnt be necessary,
all you would have to do is in the javascript on the client forms,
setup an AJAX method on the server, that your forms would call every X
seconds. thats what i was trying to say


Feb 18 '06 #4

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

Similar topics

20
3249
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external references to functions and objects not defined in the current translation. All such translator output is collected into a program image which contains information needed for execution in its execution environment." What I'm wondering is what exactly...
4
1576
by: nishantb | last post by:
I had posted simillar question some time back. i want to link some libraries statically on NT. currently, product execute command simillar to following. link /STACK:0x20000 /libpath:D:/lib a.lib /out:out.exe x.obj a.lib here a.lib is library , out.exe is executable 1. first of all, i think this itself is static linking. because, this link commad is used compile time only. am i correct? 2. If not, ( and i am surely wrong, because...
3
2252
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName (text) tblArea
0
7200
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along the way. First, deep linking is not something that a completely AJAX web site should be able to do by it's very nature of everything being on one page basically. So how can a person deep link to something that is on one page? This question...
0
10039
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, 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...
0
9883
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,...
0
11359
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, 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...
0
10928
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 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...
1
11069
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,...
1
8102
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 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...
1
4779
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
2
4346
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3370
bsmnconsultancy
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...

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.