﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » ChildFormDialog errors</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 14 Jun 2026 11:22:30 GMT</lastBuildDate><ttl>20</ttl><item><title>ChildFormDialog errors</title><link>http://forum.strataframe.net/FindPost27686.aspx</link><description>I have set up a few forms using the ChildFormDialog and the Startaframe Sample Database (I have used LesPinters sample tutorial)&lt;/P&gt;&lt;P&gt;I have it mostly working with just a few issues. The Delete is working fine but have an issue with the edit and save.&lt;/P&gt;&lt;P&gt;When I go to the Edit Form, I can see the data for the record but the textboxes are disbled. My code is:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;[codesnippet]private void btnEdit_Click(object sender, EventArgs e)&lt;BR&gt;{&lt;BR&gt;customerNotesBO1.SeekToPrimaryKey((Int32)listView1.SelectedItems[0].Tag);&lt;BR&gt;if (childFormDialog1.ShowDialog() == DialogResult.OK) { listView1.Requery(); }&lt;BR&gt;}[/codesnippet]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;When I go to Add, I can enter details into the text boxex but when I save, I get an Insert Statement conflict with foreign key constraint.&amp;nbsp; See attachement&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 27 Jul 2010 12:48:01 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: ChildFormDialog errors</title><link>http://forum.strataframe.net/FindPost27742.aspx</link><description>Hi. Just wondering if anybody has any thoughts on above&lt;/P&gt;&lt;P&gt;Am starting to do a lot now with Child Forms and would like to understand whats going on</description><pubDate>Tue, 27 Jul 2010 12:48:01 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: ChildFormDialog errors</title><link>http://forum.strataframe.net/FindPost27696.aspx</link><description>Many thanks Ivan, I have the child from working (I think) now. My problem was that , on the Form, I did not have the parent property of the Child form set .I have a few questions on the ChildFormDialog&lt;/P&gt;&lt;P&gt;1. Is it necessary to always set the parent property on the Child Form (is thsi not set in the ChildFromDialogue)&lt;/P&gt;&lt;P&gt;2. One of my problems was that I could not 'Edit' the text boxes when I had a button to call the form. I just put in a MyBO.Edit() . is this the correct approcah here, in other words do I need to do this ?&lt;/P&gt;&lt;P&gt;3. I am unsure as to what BO to place on which forms. On the List Form that I use, I placed both the Parent and Child, but also nocticed that they are on there twice, but I can only see them once of the form. There is a MyParentBO&lt;FONT color=#bb1111&gt;1&lt;/FONT&gt; and a MYChildBO&lt;FONT color=#bb1111&gt;1&lt;/FONT&gt; as aell as MyParentBO and MyChildBO. I dont think I put them on and also, I can access all their methods , but not their properties (i.e. The Fields from the Table)&lt;/P&gt;&lt;P&gt;4. On My Edit Form (Where I am editing the Child) I have the ChildForm BO (which I need to Bind the text Boxes). I had'nt got the parent form (but it seemed to work ok) , and then when I stuck on the parent Form, I did not need to set the parent property of the child form to the parent&amp;nbsp; form . Is this ok . What is the correct procedure to adopt here ?</description><pubDate>Mon, 19 Jul 2010 11:10:36 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: ChildFormDialog errors</title><link>http://forum.strataframe.net/FindPost27691.aspx</link><description>Hi Gerard.&lt;/P&gt;&lt;P&gt;This posts might help you:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost17214.aspx"&gt;http://forum.strataframe.net/FindPost17214.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost17690.aspx"&gt;http://forum.strataframe.net/FindPost17690.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost13321.aspx"&gt;http://forum.strataframe.net/FindPost13321.aspx&lt;/A&gt;</description><pubDate>Mon, 19 Jul 2010 09:36:24 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>