<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : User Controls</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : User Controls</description>
  <pubDate>Thu, 11 Jun 2026 21:11:49 -700</pubDate>
  <lastBuildDate>Mon, 10 Sep 2007 11:43:39 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=375</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>User Controls : You are quite right - I didn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1137#1137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=120" rel="nofollow">m2r4miller</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 10-Sep-2007 at 11:43am<br /><br /><P>You are quite right - I didn't think of that (of course it was after 1 am <img src="http://www.ideablade.com/forum/smileys/smiley12.gif" height="17" width="17" border="0" align="absmiddle" alt="Sleepy" />)!</P><DIV>The event handler works perfectly and of course is the way to go.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Mon, 10 Sep 2007 11:43:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1137#1137</guid>
  </item> 
  <item>
   <title>User Controls : Quite welcome, Mark.  &amp;gt;&amp;gt; In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1136#1136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 10-Sep-2007 at 11:18am<br /><br />Quite welcome, Mark.<DIV>&nbsp;</DIV><DIV>&gt;&gt;</DIV><DIV>In the Binding Navigator MoveFirst, MoveNext, etc button click events, I call a LoadCurrentAddress() method </DIV><DIV>&lt;&lt;</DIV><DIV>&nbsp;</DIV><DIV>Rather than put separate calls in MoveFirst, MoveNext, etc., can you just put one in the BindingSource.CurrentChanged event handler?</DIV>]]>
   </description>
   <pubDate>Mon, 10 Sep 2007 11:18:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1136#1136</guid>
  </item> 
  <item>
   <title>User Controls : Greg,   After a little trial...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1130#1130</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=120" rel="nofollow">m2r4miller</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 09-Sep-2007 at 11:01pm<br /><br />Greg, <DIV>&nbsp;</DIV><DIV>After a little trial and error I was successful in building a Address user control that I can add to a form and have it synched properly to the parent Business Object.</DIV><DIV>&nbsp;</DIV><DIV>In the Binding Navigator MoveFirst, MoveNext, etc button click events, I call a LoadCurrentAddress() method that simply calls my Address user control LoadMainData(int? id) method, passing in the AddressID value from the BindingSource.Current reference.</DIV><DIV>&nbsp;</DIV><DIV>Works like a charm!</DIV><DIV>&nbsp;</DIV><DIV>Now I will implement the necessary CRUD methods in the Address User Control and wire that to the main form as well and then I should be where I want to be with this control.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again for your help!</DIV><DIV>-Mark</DIV><span style="font-size:10px"><br /><br />Edited by m2r4miller - 09-Sep-2007 at 11:16pm</span>]]>
   </description>
   <pubDate>Sun, 09 Sep 2007 23:01:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=1130#1130</guid>
  </item> 
  <item>
   <title>User Controls : Thanks Greg - I missed that in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=968#968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=120" rel="nofollow">m2r4miller</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 23-Aug-2007 at 6:51am<br /><br />Thanks Greg - I missed that in the tutorial. I will have the chance to look it over tomorrow (Friday) and if I can't figure it out I'll be posting here.<DIV>&nbsp;</DIV><DIV>Thanks again!</DIV><DIV>-Mark</DIV>]]>
   </description>
   <pubDate>Thu, 23 Aug 2007 06:51:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=968#968</guid>
  </item> 
  <item>
   <title>User Controls : In &amp;#034;Composing Forms with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=951#951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 20-Aug-2007 at 10:18am<br /><br />In "Composing Forms with User Controls", the OrdersUserControl is used on both the Employee and Customer TabPages, displaying Order data appropriate to the context. The relations Employee-&gt;Order and Customer-&gt;Order are 1-to-many, but otherwise this situation is similar to your Contact scenario.&nbsp; You should certainly be able to&nbsp;create a ContactUserControl with a LoadData() method that takes an EntityList of Contacts -- which can be an EntityList with one member.<DIV>&nbsp;</DIV><DIV>(Partial) Code in ContactUserControl:</DIV><DIV>------------------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>EntityList&lt;Contact&gt; mContacts = new EntityList&lt;Contact&gt;();</DIV><DIV>&nbsp;</DIV><DIV>void ConfigureBindingSources() {</DIV><DIV><DIV>mContactsBindingSource.DataSource = mContacts;</DIV><DIV>}</DIV></DIV><DIV>&nbsp;</DIV><DIV>void ConfigureBindingManagers() {</DIV><DIV>mContactsCBM.BindingSource = mContactsBndingSource;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>void LoadData(EntityList&lt;Contact&gt; pContacts) {</DIV><DIV>mContacts.ReplaceRange(pContacts);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>All of your control bindings would be represented (as usual) as ControlBindingDescriptors in the ControlBindingManager's Descriptors collection.</DIV><DIV>&nbsp;</DIV><DIV>Greg Dunn</DIV><DIV>IdeaBlade</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Aug 2007 10:18:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=951#951</guid>
  </item> 
  <item>
   <title>User Controls : Is it possible to develop a user...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=948#948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=120" rel="nofollow">m2r4miller</a><br /><strong>Subject:</strong> 375<br /><strong>Posted:</strong> 19-Aug-2007 at 7:09pm<br /><br /><P>Is it possible to develop a user control that manages, say a Contact Business Object and then use that control on a form and at runtime automatically bind the control to the appropriate Contact Business Object?</P><P>Consider this data layout:</P><P>(1) Supplier&nbsp;Business Object with Name, Start Date (etc)&nbsp;and Contact&nbsp;properties.</P><DIV>(2) Vendor Business Object with Name, Start Date, Credit Limit (etc) and Contact properties</DIV><DIV>&nbsp;</DIV><DIV>(3) Contact Business Object with Phone, Fax, Email properties, all backed by the Contact table.</DIV><DIV>&nbsp;</DIV><DIV><DIV>In both Supplier and Vendor,&nbsp;Contact is a Foreign Key relationship to the Contact Business Object</DIV><DIV>&nbsp;</DIV>The Contact BO holds the contact information for Supplier and Vendor.</DIV><P>My&nbsp;goal is to create a User Control that manages the Contact BO, and be able to drop it on either the Supplier or Vendor maintenance forms and wire it so that it would work the same as if I had built the form using the ControlBindingManager and dropped the nested Contact properties onto the form.</P><DIV>It seems to me this should be possible, has anyone done this?</DIV><DIV>Can someone provide some examples?</DIV><DIV>&nbsp;</DIV><DIV>I have studied the tutorial "Composing Forms with User Controls", which is helpful, but does not deal with the situation I describe.</DIV><DIV>&nbsp;</DIV><DIV>Any help/ideas would be most helpful.</DIV><DIV>&nbsp;</DIV><DIV>TIA,</DIV><DIV>&nbsp;</DIV><DIV>Mark</DIV>]]>
   </description>
   <pubDate>Sun, 19 Aug 2007 19:09:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=375&amp;PID=948#948</guid>
  </item> 
 </channel>
</rss>