<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: I give up on VB.NET</title>
	<atom:link href="http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/</link>
	<description></description>
	<lastBuildDate>Fri, 07 Oct 2011 15:08:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: fake rolex watches</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-214475</link>
		<dc:creator>fake rolex watches</dc:creator>
		<pubDate>Wed, 24 Aug 2011 07:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-214475</guid>
		<description>As the business grows, &lt;a href=&quot;http://www.erowatch.com&quot; rel=&quot;nofollow&quot;&gt;rolex replicas&lt;/a&gt; has also jumped into an international brand. It is worth mentioning that,&lt;a href=&quot;http://www.erowatch.com&quot; rel=&quot;nofollow&quot;&gt;replica rolex watches&lt;/a&gt; is the ancestor of today&#039;s brand-oriented, in order to protect the quality and brand name will be printed on their products, the history of fashion in the world, is the first one first.&lt;a href=&quot;http://www.erowatch.com&quot; rel=&quot;nofollow&quot;&gt;rolex replica watches&lt;/a&gt;, &lt;a href=&quot;http://www.erowatch.com&quot; rel=&quot;nofollow&quot;&gt;fake rolex&lt;/a&gt;,  &lt;a href=&quot;http://www.erowatch.com&quot; rel=&quot;nofollow&quot;&gt;fake rolex watches&lt;/a&gt; .&lt;a href=&quot;http://www.erowatch.com/9-omega-watches&quot; rel=&quot;nofollow&quot;&gt;fake omega watches&lt;/a&gt;
&lt;a href=&quot;http://www.erowatch.com/9-omega-watches&quot; rel=&quot;nofollow&quot;&gt;replica omega watches&lt;/a&gt;
&lt;a href=&quot;http://www.erowatch.com/10-tag-heuer-watches&quot; rel=&quot;nofollow&quot;&gt;tag heuer replica watches&lt;/a&gt;
&lt;a href=&quot;http://www.erowatch.com/10-tag-heuer-watches&quot; rel=&quot;nofollow&quot;&gt;tag heuer watches&lt;/a&gt;.http://www.erowatch.com</description>
		<content:encoded><![CDATA[<p>As the business grows, <a href="http://www.erowatch.com" rel="nofollow">rolex replicas</a> has also jumped into an international brand. It is worth mentioning that,<a href="http://www.erowatch.com" rel="nofollow">replica rolex watches</a> is the ancestor of today&#8217;s brand-oriented, in order to protect the quality and brand name will be printed on their products, the history of fashion in the world, is the first one first.<a href="http://www.erowatch.com" rel="nofollow">rolex replica watches</a>, <a href="http://www.erowatch.com" rel="nofollow">fake rolex</a>,  <a href="http://www.erowatch.com" rel="nofollow">fake rolex watches</a> .<a href="http://www.erowatch.com/9-omega-watches" rel="nofollow">fake omega watches</a><br />
<a href="http://www.erowatch.com/9-omega-watches" rel="nofollow">replica omega watches</a><br />
<a href="http://www.erowatch.com/10-tag-heuer-watches" rel="nofollow">tag heuer replica watches</a><br />
<a href="http://www.erowatch.com/10-tag-heuer-watches" rel="nofollow">tag heuer watches</a>.<a href="http://www.erowatch.com" rel="nofollow">http://www.erowatch.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mini-Tools Timm</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-34572</link>
		<dc:creator>Mini-Tools Timm</dc:creator>
		<pubDate>Wed, 12 Jul 2006 04:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-34572</guid>
		<description>The way to do this is as follows:



For other reference types, simply replace the GetType() value.  For example, to set a default value for a string property:

</description>
		<content:encoded><![CDATA[<p>The way to do this is as follows:</p>
<p>For other reference types, simply replace the GetType() value.  For example, to set a default value for a string property:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Brown</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-6539</link>
		<dc:creator>Pete Brown</dc:creator>
		<pubDate>Thu, 28 Apr 2005 15:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-6539</guid>
		<description>In my case, I did it with an image

DefaultValue(GetType(Image), Nothing)

Compiles and works fine.

Pete</description>
		<content:encoded><![CDATA[<p>In my case, I did it with an image</p>
<p>DefaultValue(GetType(Image), Nothing)</p>
<p>Compiles and works fine.</p>
<p>Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-170</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 19 Oct 2004 14:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-170</guid>
		<description>Try this:

Default Public Property PropName(ByVal Value As Integer) as Integer
    Get
        Return _MemberVariable
    End Get
    Set
        _MemberVariable = Value
    End Set
End Property</description>
		<content:encoded><![CDATA[<p>Try this:</p>
<p>Default Public Property PropName(ByVal Value As Integer) as Integer<br />
    Get<br />
        Return _MemberVariable<br />
    End Get<br />
    Set<br />
        _MemberVariable = Value<br />
    End Set<br />
End Property</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Schinkel</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-27</link>
		<dc:creator>Mike Schinkel</dc:creator>
		<pubDate>Sun, 28 Mar 2004 06:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-27</guid>
		<description>Hmm.  Well the default value for a object *is* &quot;Nothing,&quot; and there is no constant for any other valid object state, so maybe they don&#039;t thing they need to implement on non-value types?  If you *don&#039;t* include the DefaultValue() as you were trying, does it not work for what you need?  Or are you just trying to get it to work for a datatype that is not string or number for learning purposes?</description>
		<content:encoded><![CDATA[<p>Hmm.  Well the default value for a object *is* &#8220;Nothing,&#8221; and there is no constant for any other valid object state, so maybe they don&#8217;t thing they need to implement on non-value types?  If you *don&#8217;t* include the DefaultValue() as you were trying, does it not work for what you need?  Or are you just trying to get it to work for a datatype that is not string or number for learning purposes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-26</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sun, 28 Mar 2004 06:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-26</guid>
		<description>Mike,

I think for the most part that&#039;s true. The syntax is the same, but the usage is a little different.

Here&#039;s the code I was working on in both VB and C#

        [Bindable(true),Category(&quot;Items&quot;),DefaultValue(null)]
        public System.Collections.ArrayList TabItems
        {
            get { return this._tabItems; }
            set { this._tabItems = value; }
        }

         &lt;Bindable(False), Category(&quot;Data&quot;), DefaultValue(Nothing)&gt; Property TabItems() As ArrayList
        Get
            Return _tabItems
        End Get
        Set(ByVal Value As ArrayList)
            _tabItems = Value
        End Set
    End Property


The difference is, the C# version compiles and works. The VB one doesn&#039;t. I want use the DefaultValue attribute to set a (duh) default value of null (nothing) on the TabItems property in the designer. What do I pass into the arguments for the DefaultValue attribute in VB? I tried &quot;typeof(ArrayList)&quot; I tried various combinations of GetType(typeof()) and so forth. The MSDN docs couldn&#039;t tell me anything, every example either use boolean properties or string properties. I wanted to see an example of a property with a reference type, besides string, that used the DefaultValue attribute. I still haven&#039;t figured it out, it was easy in C# so I just re-wrote the control in C#. It took about 10 minutes for me to re-write it.

I started out dabbling in VB4 32bit, moved on to VB 5, and started using VB 6.0 while it was in beta. They&#039;ve really screwed up VB, it can&#039;t really be considered a RAD development tool anymore. Hopefully the Whidbey release will go a long ways towards fixing that situation.</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I think for the most part that&#8217;s true. The syntax is the same, but the usage is a little different.</p>
<p>Here&#8217;s the code I was working on in both VB and C#</p>
<p>        [Bindable(true),Category("Items"),DefaultValue(null)]<br />
        public System.Collections.ArrayList TabItems<br />
        {<br />
            get { return this._tabItems; }<br />
            set { this._tabItems = value; }<br />
        }</p>
<p>         &lt;Bindable(False), Category(&#8220;Data&#8221;), DefaultValue(Nothing)&gt; Property TabItems() As ArrayList<br />
        Get<br />
            Return _tabItems<br />
        End Get<br />
        Set(ByVal Value As ArrayList)<br />
            _tabItems = Value<br />
        End Set<br />
    End Property</p>
<p>The difference is, the C# version compiles and works. The VB one doesn&#8217;t. I want use the DefaultValue attribute to set a (duh) default value of null (nothing) on the TabItems property in the designer. What do I pass into the arguments for the DefaultValue attribute in VB? I tried &#8220;typeof(ArrayList)&#8221; I tried various combinations of GetType(typeof()) and so forth. The <acronym title='Microsoft Developer Network'><span class='caps'>MSDN</span></acronym> docs couldn&#8217;t tell me anything, every example either use boolean properties or string properties. I wanted to see an example of a property with a reference type, besides string, that used the DefaultValue attribute. I still haven&#8217;t figured it out, it was easy in C# so I just re-wrote the control in C#. It took about 10 minutes for me to re-write it.</p>
<p>I started out dabbling in VB4 32bit, moved on to VB 5, and started using VB 6.0 while it was in beta. They&#8217;ve really screwed up VB, it can&#8217;t really be considered a RAD development tool anymore. Hopefully the Whidbey release will go a long ways towards fixing that situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Schinkel</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-25</link>
		<dc:creator>Mike Schinkel</dc:creator>
		<pubDate>Sun, 28 Mar 2004 04:58:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-25</guid>
		<description>Oops.  I posted the wrong one.  The one you found was this one:
http://www.abstractvb.com/code.asp?A=960 which had a typo; that wasn&#039;t VB.NET&#039;s fault;
it was the fault of abstractvb.com.  
Here&#039;s how you do it in C#: http://www.abstractvb.com/code.asp?A=999
To do in VB, just use VB&#039;s attribute syntax instead.  The capabilities of 
VB.NET and C# are practically identical, the syntaxes are just different.  
It really is just a matter of personal preference.</description>
		<content:encoded><![CDATA[<p>Oops.  I posted the wrong one.  The one you found was this one:<br />
<a href="http://www.abstractvb.com/code.asp?A=960" rel="nofollow">http://www.abstractvb.com/code.asp?A=960</a> which had a typo; that wasn&#8217;t VB.NET&#8217;s fault;<br />
it was the fault of abstractvb.com.<br />
Here&#8217;s how you do it in C#: <a href="http://www.abstractvb.com/code.asp?A=999" rel="nofollow">http://www.abstractvb.com/code.asp?A=999</a><br />
To do in VB, just use VB&#8217;s attribute syntax instead.  The capabilities of<br />
VB.NET and C# are practically identical, the syntaxes are just different.<br />
It really is just a matter of personal preference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Schinkel</title>
		<link>http://www.lazycoder.com/weblog/2004/03/26/i-give-up-on-vbnet/comment-page-1/#comment-24</link>
		<dc:creator>Mike Schinkel</dc:creator>
		<pubDate>Sun, 28 Mar 2004 04:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lazycoder.com/weblog/archives/2004/03/26/i-give-up-on-vbnet/#comment-24</guid>
		<description>Isn&#039;t this what you needed? http://www.abstractvb.com/code.asp?A=1036</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t this what you needed? <a href="http://www.abstractvb.com/code.asp?A=1036" rel="nofollow">http://www.abstractvb.com/code.asp?A=1036</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

