PC Review


Reply
Thread Tools Rate Thread

Different Forms

 
 
Stefan Richter
Guest
Posts: n/a
 
      18th May 2004
I got a program that consists of different windows forms.
I can add, edit, delete and view data.
After I deleted or edited data, the window gets closed and the updated data
should be shown,
but so far it only shows the window as it was before a edit or a delete,
which is quite confusing.
What have I got to do? Destroy the old window and create a new window?
If so, how can I make it to display the same (now altered) data as before?


thx,

stefan


 
Reply With Quote
 
 
 
 
AlexS
Guest
Posts: n/a
 
      18th May 2004
Hi, Stefan

check if you cause update on windows after you process the changes. Ideally
you should use some kind of event, which will say to all subscribing windows
that underlying data was changed, so it's time to refresh the contents.

Take a look how you bind data to windows when you load them. You can use
same code - maybe with some tweaks to increase performance - after you
confirm changes.

HTH
Alex

"Stefan Richter" <(E-Mail Removed)> wrote in message
news:c8bs09$1dtg$(E-Mail Removed)...
> I got a program that consists of different windows forms.
> I can add, edit, delete and view data.
> After I deleted or edited data, the window gets closed and the updated

data
> should be shown,
> but so far it only shows the window as it was before a edit or a delete,
> which is quite confusing.
> What have I got to do? Destroy the old window and create a new window?
> If so, how can I make it to display the same (now altered) data as before?
>
>
> thx,
>
> stefan
>
>



 
Reply With Quote
 
=?Utf-8?B?QW5hbmRbTVZQfQ==?=
Guest
Posts: n/a
 
      18th May 2004
How exactly do you handle your data? Is it in a dataset that is bound to your forms controls? Unless you are clear on how the data is stored and show, there is no way to find the problem.

If it is a refresh problem you may try and see if a formname.Refresh helps you.

--
Regards,
Anand M
VB.NET MVP

http://www.dotnetindia.com


"Stefan Richter" wrote:

> I got a program that consists of different windows forms.
> I can add, edit, delete and view data.
> After I deleted or edited data, the window gets closed and the updated data
> should be shown,
> but so far it only shows the window as it was before a edit or a delete,
> which is quite confusing.
> What have I got to do? Destroy the old window and create a new window?
> If so, how can I make it to display the same (now altered) data as before?
>
>
> thx,
>
> stefan
>
>
>

 
Reply With Quote
 
Stefan Richter
Guest
Posts: n/a
 
      18th May 2004
The data on the first (view) page gets redisplayed when I press a button -
I mean all display stuff is done in this button handler.
But I don't know if I can / should call this button (handler) in some way.

Stefan


 
Reply With Quote
 
=?Utf-8?B?QW5hbmRbTVZQfQ==?=
Guest
Posts: n/a
 
      18th May 2004
If you are populating the controls on that form in the button click, then one possiblity is problems with refreshing of the form. So you may try calling the refresh method after the form has been loaded.

Another problem that may be happeing is if you are using instances of the form you created and showing a different instance, while populating the data in a different one.

--
Regards,
Anand M
VB.NET MVP

http://www.dotnetindia.com


"Stefan Richter" wrote:

> The data on the first (view) page gets redisplayed when I press a button -
> I mean all display stuff is done in this button handler.
> But I don't know if I can / should call this button (handler) in some way.
>
> Stefan
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a million questions - forms, forms, forms Cristy Microsoft Outlook Form Programming 1 1st Oct 2008 06:41 PM
Windows Forms - Opening forms within forms Dan Tallent Microsoft C# .NET 20 27th Aug 2008 06:25 PM
PDF forms filling with ASP.NET, interactive forms, fill and write to database (iText or FDF Toolkit or ...) Toni Pohl Microsoft ASP .NET 1 10th Aug 2008 02:40 PM
Outlook 2003 - Forms Icon On toolbar doesn't list any forms =?Utf-8?B?S2ltLmluLkRlbnZlcg==?= Microsoft Outlook Form Programming 8 28th Jul 2006 04:35 PM
Navigating embedded UserControl forms inside a Windows Forms Panel Emma Middlebrook Microsoft C# .NET 1 25th Oct 2004 02:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 PM.