﻿<?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 » Business Objects and Data Access (How do I?)  » Picturebox not execute</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:44:58 GMT</lastBuildDate><ttl>20</ttl><item><title>Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19296.aspx</link><description>&amp;nbsp;have a Picturebox (&amp;nbsp;name is btnFornecedor&amp;nbsp;) of the Strataframe and when click I in it do not execute messagebox.show (" OK"). Why&lt;/P&gt;&lt;P&gt;[code]&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;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; state)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;btnFornecedor.Enabled = state;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; currEditingState;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sysPedidoCompraItemBO1_EditingStateChanged(MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;EditingStateChangedEventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;currEditingState = e.EditingState;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ((e.EditingState == MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Adding) || (e.EditingState == MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Editing))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;else&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; btnFornecedor_Click(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ( &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.bdFornecedor.ShowDialog() == &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;DialogResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.OK )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for_cod.Text = &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;Convert&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ToString(sysFornecedorBO1.for_cod);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;[/code]</description><pubDate>Thu, 11 Sep 2008 21:28:42 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19330.aspx</link><description>Legal que tenha resolvido. ;)</description><pubDate>Thu, 11 Sep 2008 21:28:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19329.aspx</link><description>Resolvido o Problema.</description><pubDate>Thu, 11 Sep 2008 20:47:03 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19328.aspx</link><description>Me desculpe mas eu nao entendi o posy o que ele quis dizer.&lt;/P&gt;&lt;P&gt;Você poderia me ajudar ?</description><pubDate>Thu, 11 Sep 2008 18:54:34 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19327.aspx</link><description>Opa.&lt;/P&gt;&lt;P&gt;Dá uma olhada neste post e veja se te ajuda:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost15272.aspx"&gt;http://forum.strataframe.net/FindPost15272.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;;)</description><pubDate>Thu, 11 Sep 2008 18:27:18 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19326.aspx</link><description>HEhehe achei mais um probleminha, eu tenho um TabControl, onde na primeira&amp;nbsp;ABA ela usa o BO sysPedidoCompraBO1 e na segunda ABA usa o BO sysPedidoCompraItemBO1.&lt;/P&gt;&lt;P&gt;QUando clico no Novohabilita todos os campos da Primeira ABA mas os campos da segunda ABA eles não estao habilitados !&lt;/P&gt;&lt;P&gt;Porque ?</description><pubDate>Thu, 11 Sep 2008 18:15:13 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19319.aspx</link><description>Legal! :cool:&lt;P&gt;Fico contente que tenha resolvido.</description><pubDate>Thu, 11 Sep 2008 16:13:34 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19318.aspx</link><description>Obrigado.&lt;/P&gt;&lt;P&gt;Me desculpe eu colouqei o evento EditingStateChanged no BO errado !</description><pubDate>Thu, 11 Sep 2008 16:11:30 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19314.aspx</link><description>Try and put a Breakpoint on your "EditingStateChanged" and see how your code is performing. Click on your "Novo" button and it should get you there. That is, if you are adding on your sysPedidoCompraItemBO1...</description><pubDate>Thu, 11 Sep 2008 13:58:00 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19313.aspx</link><description>Enabled is false. But if I to place the property enabled true before click in the new button of the strataframe, picturebox will be qualified for the use. I need to incapacitate and only to qualify when or Edit will be click in the New but my code is not making this. How I make this?</description><pubDate>Thu, 11 Sep 2008 13:47:40 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19311.aspx</link><description>Are you sure your PictureBox Enabled property is in a True state by the time you are clicking on it?</description><pubDate>Thu, 11 Sep 2008 13:19:36 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19310.aspx</link><description>I remember that used SF Standard Form.</description><pubDate>Thu, 11 Sep 2008 13:09:38 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19307.aspx</link><description>Look this image</description><pubDate>Thu, 11 Sep 2008 12:28:19 GMT</pubDate><dc:creator>Rafael</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19304.aspx</link><description>Would you like to check on your Properties sheet if your PictureBox Click event is linked to your "btnFornecedor_Click" ?</description><pubDate>Thu, 11 Sep 2008 12:02:42 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Picturebox not execute</title><link>http://forum.strataframe.net/FindPost19298.aspx</link><description>&lt;DIV style="PADDING-RIGHT: 0.6em; PADDING-LEFT: 0.6em; PADDING-BOTTOM: 0.6em; PADDING-TOP: 0.6em"&gt;correcting my code he is this&lt;/DIV&gt;&lt;P&gt;[code]&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;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; state)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;btnFornecedor.Enabled = state;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; currEditingState;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sysPedidoCompraItemBO1_EditingStateChanged(MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;EditingStateChangedEventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;currEditingState = e.EditingState;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ((e.EditingState == MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Adding) || (e.EditingState == MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;BusinessEditingState&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Editing))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;else&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;EnableControls(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; btnFornecedor_Click(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;MessageBox&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Show(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"OK"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; ( &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.bdFornecedor.ShowDialog() == &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;DialogResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.OK )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for_cod.Text = &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&lt;FONT color=#008080 size=2&gt;Convert&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ToString(sysFornecedorBO1.for_cod);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;[/code]</description><pubDate>Thu, 11 Sep 2008 11:02:25 GMT</pubDate><dc:creator>Rafael</dc:creator></item></channel></rss>