﻿<?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?)  » Exposing the ListPopulating Event of a SFListView in a custom user control</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 07:24:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2232.aspx</link><description>Sorry to ask so many simple questions but that .Net light bulb is still dim for me.&amp;nbsp; I am trying to create a user control and contains a listview and sever command buttons,&amp;nbsp; what I want to do is expose the SFListView events so that I can code directly on the new user control. (The next step would be to generate my own events).&lt;/P&gt;&lt;P&gt;Thanks again for all the .Net help.&lt;/P&gt;&lt;P&gt;Scott</description><pubDate>Fri, 18 Aug 2006 08:46:24 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2267.aspx</link><description>Congrats Scott! :)&amp;nbsp;&lt;P&gt;I was glad to hear that you got your fist event written.&amp;nbsp; Once you figure it out the first time, it is smooth sailing later on (at least smoother :hehe: ).&amp;nbsp; Glad to hear to got it going!</description><pubDate>Fri, 18 Aug 2006 08:46:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2265.aspx</link><description>Same here I have dabbled in .NET on some projects, mostly small. I am about to jump in with both feet.&lt;br&gt;
&lt;br&gt;
Good stuff.</description><pubDate>Thu, 17 Aug 2006 23:34:42 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2264.aspx</link><description>Thanks for the support.&amp;nbsp; I am coming from a VFP background and .NET is a&amp;nbsp;LOT to get your&amp;nbsp;head wrapped around.&amp;nbsp; Thank God for SF, it takes care of a lot of the "details" and lets me worry about writing the application specific stuff.&amp;nbsp; As far as .NET goes,&amp;nbsp; I am liking it more and more every day, its just hard going from using a development language for about 15 years to being a "newbie". Everyone here is VERY supportive and I have learned a lot.</description><pubDate>Thu, 17 Aug 2006 23:20:33 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2262.aspx</link><description>Scott I personally find everyones questions and thoughts here invaluable. So thanks for that.&lt;br&gt;
&lt;br&gt;
As for the dim bulb, wait another few days.....  :D&lt;br&gt;
&lt;br&gt;
I just finished getting our .NET development environment the way I wanted it so I will start coding with Strataframe Monday.&lt;br&gt;</description><pubDate>Thu, 17 Aug 2006 22:40:22 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2261.aspx</link><description>It Works!!!!!!:w00t:&amp;nbsp; I was making a stupid mistake,&amp;nbsp; the Fill method I was using didn't require any parameters, once I change the fill method to one that did, everything worked.&lt;P&gt;Thanks for your help. That .Net light buld is getting a little brighter.:D&lt;/P&gt;&lt;P&gt;Scott</description><pubDate>Thu, 17 Aug 2006 21:00:27 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2260.aspx</link><description>After a long day of working with events I think I finally understand how this works.&amp;nbsp; I have done what you suggested but still don't seem to be getting the ListPopulating event fired.&amp;nbsp; In my class I have tied the ListPopulating event to a private method and it never seems to be getting called (I put a break point and execution never stops).&lt;/P&gt;&lt;P&gt;I know this isn't an easy one to solve via a simple post on a message board but if you have any suggestion as to what to check or look for I would be greatful.&lt;/P&gt;&lt;P&gt;PS other then this issue everything (other events for this control)&amp;nbsp;is working perfectly. For others out there reading this tread here are the links that really helped me get a grip on events\delegates:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=18"&gt;http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=18&lt;/A&gt;&lt;BR&gt;&lt;A href="http://www.akadia.com/services/dotnet_user_controls.html"&gt;http://www.akadia.com/services/dotnet_user_controls.html&lt;/A&gt;</description><pubDate>Thu, 17 Aug 2006 20:35:57 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2237.aspx</link><description>Let me give you an idea on starting with events.&amp;nbsp; Create a new test project and create a new control within that project.&amp;nbsp; Create a simple event that has no event arguments.&amp;nbsp; Expose a method that will allow you to raise the event once dropped on a form.&amp;nbsp; You can then build from there.&amp;nbsp; &lt;/P&gt;&lt;P&gt;My point is, start very simple by just defining an event and then you can grow from there. ;)</description><pubDate>Thu, 17 Aug 2006 13:21:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2236.aspx</link><description>Thanks Trent,&amp;nbsp; I am rapidly learning that this is a must more involved process.&amp;nbsp; I will search for some good articles about the topic.</description><pubDate>Thu, 17 Aug 2006 13:19:17 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Exposing the ListPopulating Event of a SFListView in a custom user control</title><link>http://forum.strataframe.net/FindPost2233.aspx</link><description>The only way to "expose" the SF ListView events is by capturing them within your control and then raising your own events on the user control.&amp;nbsp; So first, you need to create events within your user control.&amp;nbsp; You will more than likely want to make these thread safe by testing to see if an Invoke is required to prevent cross-thread violations.&lt;/P&gt;&lt;P&gt;If your control does not have a .Invoke() method, then you will need to create a property and implement the ISynchonizeInvoke interface which will allow you to capture the parent control and us it's .Invoke() methods and properties.&lt;/P&gt;&lt;P&gt;Once you declare the events, you will need to create a delegate that can be called within the Invoke method which raises the exposed events.&lt;/P&gt;&lt;P&gt;Once you have your events declared, simply add a handler to capture the desired SF ListView events and then raise your events passing along any event arguments that you need.&lt;/P&gt;&lt;P&gt;Sorry if this is a little ambigous, but if you have not created events before this is a relatively large topic.</description><pubDate>Thu, 17 Aug 2006 12:54:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>