﻿<?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?)  » How to use ChildFormParameters on version 1.7.0.7</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 02 Aug 2026 03:54:22 GMT</lastBuildDate><ttl>20</ttl><item><title>How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26704.aspx</link><description>[quote]#8 Child Form constructor parameters exposed in the OnBeforeChildFormExecuted event of a ListView&lt;br&gt;
&lt;br&gt;
A new event argument parameter in the OnBeforeChildFormExecuted event called ChildFormParameters.  By adding parms to this collection they will be passed on to the calling of the ChildFormDialog like this: ChildForm.ShowDialog(ChildFormParameters.ToArray()).  This gives the developer the ultimate control in automation of a child form call through a ListView.[/quote]&lt;br&gt;
&lt;br&gt;
Hi Trent/Dustin,&lt;br&gt;
&lt;br&gt;
Could you please provide a sample code on how to pass the parameter to the ChildFormDialog?&lt;br&gt;
&lt;br&gt;
I checked the e.ChildFormParameters in the ListView.BeforeChildFormExecuted but this property is ReadOnly and also I don't now how I would add the parameters I need to send to the ChildFormDialog.</description><pubDate>Mon, 12 Apr 2010 13:47:07 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26827.aspx</link><description>Awesome!  Glad to hear it!! :)</description><pubDate>Mon, 12 Apr 2010 13:47:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26826.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
Just to let you know that I tested the ChildFormParameters feature and it works just great.&lt;br&gt;
&lt;br&gt;
Thanks again for the addition of this feature, it does makes my life easier. :hehe:</description><pubDate>Mon, 12 Apr 2010 13:02:51 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26824.aspx</link><description>[quote]Thanks for the sample code for the parameters, it is very simple now.&lt;br&gt;
[/quote]&lt;br&gt;
&lt;br&gt;
Good deal.  Sorry for any confusion! :)</description><pubDate>Mon, 12 Apr 2010 10:41:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26823.aspx</link><description>[quote][b]Trent L. Taylor (04/12/2010)[/b][hr]&lt;br&gt;
No, this is in regards to the new SF ListView, not the old one.  I can provide a sample, but this is for the new list view.[/quote]&lt;br&gt;
&lt;br&gt;
Thanks but Dustin already provided a sample on this one clarifying that it was referring to the new StrataListView.&lt;br&gt;
&lt;br&gt;
Thanks for the sample code for the parameters, it is very simple now.</description><pubDate>Mon, 12 Apr 2010 10:40:12 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26822.aspx</link><description>[quote]Also on the same update, steps 5 &amp; 6 I understand that these changes refer to the current StrataFrame Listview not the StrataListView in beta. I could not find a way to access a cell to change its background or the AdditionalItemHeight property. Could you please provide quick sample code or more specific detail on how to start using those new features?[/quote]&lt;br&gt;
&lt;br&gt;
No, this is in regards to the new SF ListView, not the old one.  I can provide a sample, but this is for the new list view.&lt;br&gt;
&lt;br&gt;
[quote]As I said in the original message, the e.ChildFormParameters in the ListView.BeforeChildFormExecuted is ReadOnly.[/quote]&lt;br&gt;
&lt;br&gt;
It is supposed to be readonly, it is a collection.  You don't override the collection instance, you add items to it:&lt;br&gt;
&lt;br&gt;
[b]CSharp[/b]&lt;br&gt;
[codesnippet]&lt;br&gt;
int myParm2 = 2;&lt;br&gt;
&lt;br&gt;
e.ChildFormParameters.Add("MyParm1");&lt;br&gt;
e.ChildFormParameters.Add(myParm2);[/codesnippet]&lt;br&gt;
&lt;br&gt;
[b]VB.NET[/b]&lt;br&gt;
[codesnippet]&lt;br&gt;
Dim myParm2 As Integer = 2&lt;br&gt;
&lt;br&gt;
e.ChildFormParameters.Add("MyParm1")&lt;br&gt;
e.ChildFormParameters.Add(myParm2)[/codesnippet]&lt;br&gt;</description><pubDate>Mon, 12 Apr 2010 10:32:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26820.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
Glad to see you back!&lt;br&gt;
&lt;br&gt;
No, it is not that, I cannot see how to use the new childFormDialog parameters with the current SF ListView automation.  &lt;br&gt;
&lt;br&gt;
If you don't mind, please read the thread since I explained this several times but guess was not understood.</description><pubDate>Mon, 12 Apr 2010 10:26:53 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26819.aspx</link><description>Edhy,&lt;br&gt;
&lt;br&gt;
I assume that you are just wanted to know when we are going to add the automation logic, right?  If that is the case, then we will be doing this before the final release of 1.7.0.0.  We have a need for this as well, but this control has grown so much that we didn't want to do add this until it was not so fluid in enhancements.</description><pubDate>Mon, 12 Apr 2010 10:24:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26818.aspx</link><description>another bump here....:D</description><pubDate>Mon, 12 Apr 2010 10:22:12 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26767.aspx</link><description>Hello again, anybody home???? :D</description><pubDate>Wed, 07 Apr 2010 11:06:47 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26746.aspx</link><description>[quote][b]Dustin Taylor (04/05/2010)[/b][hr]&lt;br&gt;
&lt;STRONG&gt;StrataListView Enhancements&lt;/STRONG&gt;&lt;br&gt;
&lt;br&gt;
Both of these are simply properties of the StrataListViewSubItem and StrataListViewItem respectively. Here is a block of code from the attached sample app that demonstrates this:[/quote]&lt;br&gt;
&lt;br&gt;
Hi Dustin,&lt;br&gt;
&lt;br&gt;
After looking at the sample I noticed that you said these properties are for the new StrataListView not the SF ListView as listed in the release documentations, that is why I was looking at the wrong control.  &lt;br&gt;
&lt;br&gt;
Please you have to add the automation feature in the current SF ListView to the new StrataListView so we can start replacing the old one with the new one and be able to provide test feedback.  In my case I use the SF ListView in most of my forms and it would be challenge to manually update all the population settings and childform automations to the new StrataListView.&lt;br&gt;
&lt;br&gt;
P.S.&lt;br&gt;
Thanks for the sample, pretty interesting approach.  Hope you can clarify my previous thread about ChildFormDialog parameters using the SF ListView automation features.</description><pubDate>Mon, 05 Apr 2010 12:14:08 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26745.aspx</link><description>Hi Dustin,&lt;br&gt;
&lt;br&gt;
I have not check the sample file yet, will do so in a minute, but want to clarify that I am using a SF ListView with the automation and the listview will call the ChildFormDialog internally, how do I pass the parameters in my form to the Listview so it will be pass to the internal ChildFormDialog in the listview?&lt;br&gt;
&lt;br&gt;
As I said in the original message, the e.ChildFormParameters in the ListView.BeforeChildFormExecuted is [b]ReadOnly[/b].&lt;br&gt;
&lt;br&gt;
Also if possible next time, use VB code instead of C#:hehe:</description><pubDate>Mon, 05 Apr 2010 11:58:16 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26744.aspx</link><description>My bad :).&lt;P&gt;Attached is a sample of these items. In short:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Child Form Dialog Parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You simply pass a comma seperated list of values in the ShowDialog method, and format the constructor of the child dialog to match the values you pass.&lt;/P&gt;&lt;P&gt;So, on the parent:&lt;/P&gt;&lt;P&gt;[codesnippet]childFormDialog1.ShowDialog("test",1);[/codesnippet]&lt;/P&gt;&lt;P&gt;Which means the constructor of the child should look like:&lt;/P&gt;&lt;P&gt;[codesnippet]public MyDialog(string MyFirstParameter, int MySecondParameter)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //-- Do something with the parameters&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Text = MyFirstParameter;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cboMyCombo.SelectedIndex = MySecondParameter;&lt;BR&gt;}[/codesnippet]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;StrataListView Enhancements&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both of these are simply properties of the StrataListViewSubItem and StrataListViewItem respectively.&amp;nbsp; Here is a block of code from the attached sample app that demonstrates this:&lt;/P&gt;&lt;P&gt;[codesnippet]&amp;nbsp; _Item = new StrataListViewItem("Green", "");&lt;BR&gt;&lt;STRONG&gt;&amp;nbsp; _Item.AdditionalItemHeight = 20; //-- Here is the additional height&lt;BR&gt;&lt;/STRONG&gt;&amp;nbsp; _SubItem = new StrataListViewSubItem();&lt;BR&gt;&lt;STRONG&gt;&amp;nbsp; _SubItem.BackgroundColor = Color.DarkGreen;&amp;nbsp; //-- Here is the background color&lt;BR&gt;&lt;/STRONG&gt;&amp;nbsp; _SubItem.TextColor = Color.White;&lt;BR&gt;&amp;nbsp; _SubItem.Text = "Value 3 - Additional height to show&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Two rows of text.";&lt;BR&gt;&amp;nbsp; _Item.SubItems.Add(_SubItem);&lt;BR&gt;&amp;nbsp; slvMyListview.Items.Add(_Item);[/codesnippet]&lt;/P&gt;&lt;P&gt;Hope it helps!</description><pubDate>Mon, 05 Apr 2010 11:49:11 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26741.aspx</link><description>Hummm, I wonder if somebody is listening....? :D&lt;br&gt;
&lt;br&gt;
Hello Texas, anybody home? :hehe:</description><pubDate>Mon, 05 Apr 2010 09:29:09 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26720.aspx</link><description>Hi Trent, Dustin,&lt;br&gt;
&lt;br&gt;
Perhaps this thread has been missed :cool:</description><pubDate>Thu, 01 Apr 2010 10:01:17 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to use ChildFormParameters on version 1.7.0.7</title><link>http://forum.strataframe.net/FindPost26705.aspx</link><description>[quote]&lt;br&gt;
[b]#5 StrataFrame ListView now supports cell level backcolors&lt;br&gt;
[/b]&lt;br&gt;
Each cell of a StrataFrame ListView has a BackgroundColor property allowing the background color to be overwritten for that individual cell.&lt;br&gt;
&lt;br&gt;
[b]#6 StrataFrame ListView now has an AdditionalItemHeight property&lt;br&gt;
[/b]&lt;br&gt;
A property has been added at the ListItem (not sub item) level of a StrataFrame ListView allowing any individual row to have additional height added.  This can come in very handy when showing a value that may have multiple rows (i.e. an address).  This adds the specified number of pixels to the ItemHeight of the row.  This can also be used in situations where a larger font and text may need to be used to exagerate a row.[/quote]&lt;br&gt;
&lt;br&gt;
Also on the same update, steps 5 &amp; 6 I understand that these changes refer to the current StrataFrame Listview not the StrataListView in beta.  I could not find a way to access a cell to change its background or the AdditionalItemHeight property.  Could you please provide quick sample code or more specific detail on how to start using those new features?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
P.S.&lt;br&gt;
Improvement added to the DDT are very nice specially the copy, paste, undo via the context menu.  Thanks!!!!</description><pubDate>Tue, 30 Mar 2010 22:11:29 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>