﻿<?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?)  » Browsedialog, BO and user control</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 20 Sep 2026 07:14:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Browsedialog, BO and user control</title><link>http://forum.strataframe.net/FindPost9747.aspx</link><description>Hi,&lt;br&gt;
I have browsedialog and BO in user control. In my user control, I have code as below. However, after I keyin publisher name, search, select record from result list and click ok, I hit error "CurrentRowIndex = -1". I have set BOTranslation. Any ideas?&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
            if (this.publisherbrowseDialog.ShowDialog() == DialogResult.OK)&lt;br&gt;
            {&lt;br&gt;
                this.booksBO.PublisherID = this.publishersBO.PublisherID;&lt;br&gt;
            }&lt;br&gt;
[/codesnippet]</description><pubDate>Fri, 22 Jun 2007 13:11:55 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Browsedialog, BO and user control</title><link>http://forum.strataframe.net/FindPost9752.aspx</link><description>Where are you trying to call the ShowDialog?&amp;nbsp; The translations may have not yet occurred if you are calling this in the load.&amp;nbsp; What happens if you reset the BusinessObjectToPopulate?&amp;nbsp; This property may be holding onto an untranslated reference.&lt;/P&gt;&lt;P&gt;[codesnippet]MyBrowseDialog.BusinessObjectToPopulate = MyBOOnTheUserControl[/codesnippet]</description><pubDate>Fri, 22 Jun 2007 13:11:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>