﻿<?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?)  » Use of ISite</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 02:35:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Use of ISite</title><link>http://forum.strataframe.net/FindPost26301.aspx</link><description>I am not quite able to determine what the purpose of the following code is:&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
private ISite _Site;&lt;br&gt;
&lt;br&gt;
[Browsable(false)]&lt;br&gt;
public System.ComponentModel.ISite Site&lt;br&gt;
{&lt;br&gt;
    get&lt;br&gt;
    {&lt;br&gt;
        return this._Site;&lt;br&gt;
    }&lt;br&gt;
    set&lt;br&gt;
    {&lt;br&gt;
        this._Site = value;&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
Since the _Site variable is private, and nothing in the class does anything with it, couldn't we do something like this:&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
[Browsable(false)]&lt;br&gt;
public System.ComponentModel.ISite Site { get; set; }&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
My next question is, what outside of the class uses this property?  I may find it as I am working on this...I'll post here as soon as I do.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Bill&lt;br&gt;</description><pubDate>Mon, 08 Mar 2010 09:59:58 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26335.aspx</link><description>I generally don't like to do that but prefer to define it explicitly, that way you always know exactly what is happening.  But this is more of a personal preference thing. :)</description><pubDate>Mon, 08 Mar 2010 09:59:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26334.aspx</link><description>Ok...that'll give me some things to study (components and how they live in their environment, next on Nat Geo!)  :D&lt;br&gt;
&lt;br&gt;
I am still wondering whether the syntax, [i]public System.ComponentModel.ISite Site { get; set; }[/i], would still work.  I have it setup in my test case.  Seems to be running just fine.</description><pubDate>Mon, 08 Mar 2010 09:58:14 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26332.aspx</link><description>This is added from the IComponent implementation.  The components container uses this site reference to know what components have been added to any parent component container.  This site reference is set through the designers and is required for proper component implementation.  If you'll notice, when you add an action to any form, that action shows up in the component area of the form.  This is how that is accomplished.</description><pubDate>Mon, 08 Mar 2010 09:31:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26325.aspx</link><description>(bump)  &lt;br&gt;
&lt;br&gt;
:)&lt;br&gt;</description><pubDate>Mon, 08 Mar 2010 09:16:46 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26305.aspx</link><description>Project: StrataFlix.UI&lt;br&gt;
Folder: Items and Collections&lt;br&gt;
Class: ActionLinkMenuItem</description><pubDate>Fri, 05 Mar 2010 07:06:44 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Use of ISite</title><link>http://forum.strataframe.net/FindPost26302.aspx</link><description>Bill,&lt;br&gt;
&lt;br&gt;
Where is this code? It looks familiar but I can't remember which class its in.</description><pubDate>Thu, 04 Mar 2010 17:53:32 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>