473,772 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form problem..

EMW
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and the
user is returned to the main form, where an image is drawn that the form is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
.. create instance of new form
.. set the textboxes with text from dataset table
.. show the form with showdialog
.. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??
Nov 22 '05 #1
2 1262
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever misunderstandin gs.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZ oft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??

Nov 22 '05 #2
EMW
Hi Cor,

I allready solved it.
I used the wrong events on the radiobuttons...

rg,
Eric
"Cor Ligthert" <no************ @planet.nl> schreef in bericht
news:uo******** ******@TK2MSFTN GP09.phx.gbl...
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever
misunderstandin gs.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZ oft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is
hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes
first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??


Nov 22 '05 #3

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

Similar topics

5
3090
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if I want to send the error report to Microsoft. Has anybody seen this type of error message and what can I do to prevent it from happening. Am I doing something illegal in my code? It used to work but I have added conditional formatting to a subform...
15
4661
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any field to start. If I edit that field and then click on the new record button in the navigation buttons, the form goes to a new record and each field has the default value of the previous record. If I put the focus in any field to start, edit that...
5
2226
by: Steve Strik | last post by:
My Problem: I have created a database here at work that is exhibiting some very strange behaviour. Essentially the database is structured in a manner where one table is a master record table (tbl_MainRegister) providing a unique identifier for documents and a means for identifying the docuement type. There are then 4 additional tables (tbl_Meetings, tbl_Documents, tbl_Project, tbl_Correspondence) which store the document details.
1
5766
by: Nico | last post by:
Hi! I use Windows XP and Access 2002 (XP) SP2 (not SP3) My company has not upgraded to SP3. My problem: -I have a form "F_BOMs" -in this form, i have a sub form called "SF_BOMs" -the sub-form is based on a querry which use 2 tables linked by a primary key. -the form and the sub-form use the parent property of the subform to
3
2672
by: dixie | last post by:
I have an Access 2000 form which has been running OK for a long time. Lately, it is playing up and doing things like causing Access to close suddenly when the form is opened or when saving the form in design view after a change. Today, I got the following message from the form when using a combo box. "The expression After Update you entered as the event property setting produced the following error: A problem occurred while Microsoft...
9
3983
by: Lyn | last post by:
Hi, I have a form which is opened from a button on another form. The form is used to display a list of records from a recordset in Continuous Mode. It is sized vertically to display about 25 rows and has a vertical scrollbar. This form has been working perfectly for weeks. However, I must have done something recently because now the detail section displays only one row at a time. That is, the form has shrunk vertically to about 3 cm...
5
3933
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main form, I trigger the on acitvate event to run a macro. I can use the Dlookup function to update my fields, which is OK. However, I intitially tried to use the Repaint Object command to repaint the form. That did not work. Though I solved the...
11
1787
by: ChrisM | last post by:
Hi, Don't know if anyone can cast any light on this... I have a fairly complex C# WinForm with (amongst other) a text box and a button. The TextBox has events declared for KeyUp and KeyDown, the button has a simple Click event. Under certain circumstances (haven't worked out exactly what they are yet, but it involves opening and closing a sub form). Pressing ENTER with the
0
2427
by: hmm | last post by:
Hi all I have two problems: Problem #1: I'm using a .NET Form with the property 'FormBorderStyle' set to 'None'. The idea is to completely cover the area of that Form with a UserControl. In order to be able to move that Form around with the mouse I have to implement EventHandlers for the MouseDown, MouseUp and MouseMove event. Now the problem I have is these Events will never be fired because the entire dialog is covered by the...
1
2551
by: fugaki | last post by:
Hi everyone I'm learning asp, and i downloaded this script to teach me how to post form data from a webpage to an access database. I put it on the server so i could make sure that it worked, and everything was fine, so i changed the variable names (the names of the form elements, and the names of the rows in access) so that it would be more correct to what i am using it for. Now once I did that, it gave me an error on line 24 which was the...
0
9454
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
10261
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
10103
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...
0
9911
tracyyun
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...
0
8934
agi2029
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...
0
6713
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();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2850
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.