473,217 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,217 software developers and data experts.

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 2722
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
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...
4
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...
3
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...
0
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.