<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by sonido</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sat, 13 Jun 2026 03:00:07 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Random C# discussion</title>
            <link>http://forum.lowyat.net/topic/3271580</link>
            <description>&lt;!--QuoteBegin-alien3d+Jun 26 2014, 07:31 PM--&gt;&lt;div class='quotetop'&gt;QUOTE(alien3d &amp;#064; Jun 26 2014, 07:31 PM)&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;System Analyst..--&amp;#62;headacher&lt;br /&gt;Project Manager-&amp;gt; looooser&lt;br /&gt;tester --&amp;#62; game tester. &lt;!--emo&amp;:hehe:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/brows.gif' border='0' style='vertical-align:middle' alt='brows.gif' /&gt;&lt;!--endemo--&gt;&amp;nbsp; &lt;!--emo&amp;:hehe:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/brows.gif' border='0' style='vertical-align:middle' alt='brows.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;Writer -&amp;gt; Write documentation..&lt;br /&gt;Salesman-&amp;gt; Sales mah ......... &lt;br /&gt;&lt;br /&gt;me.. three man show for now.&lt;br /&gt;** writing c# code for now.. just learn 2 days ago..&amp;nbsp; &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;&amp;nbsp; &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;&amp;nbsp; &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;&amp;nbsp; &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt; ..&lt;br /&gt;[right][snapback]68922189[/snapback][/right]&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;C# gooding ah ? hehehe</description>
            <author>sonido</author>
            <category>Codemasters</category>
            <pubDate>Thu, 26 Jun 2014 21:56:42 +0800</pubDate>
        </item>
        <item>
            <title>XAML binding</title>
            <link>http://forum.lowyat.net/topic/3271092</link>
            <description>In XAML, if i want to bind to an object (TestViewModel) that has a property (MyProperty) i can write it like tis,&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;Window x&amp;#58;Class=&amp;#34;AppTest.MainWindow&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns=&amp;#34;http&amp;#58;//schemas.microsoft.com/winfx/2006/xaml/presentation&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns&amp;#58;x=&amp;#34;http&amp;#58;//schemas.microsoft.com/winfx/2006/xaml&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns&amp;#58;l=&amp;#34;clr-namespace&amp;#58;AppTest&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Title=&amp;#34;MainWindow&amp;#34; Height=&amp;#34;500&amp;#34; Width=&amp;#34;500&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;Window.Resources&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;l&amp;#58;TestViewModel x&amp;#58;Key=&amp;#34;testViewModel&amp;#34; /&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;/Window.Resources&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;Grid Name=&amp;#34;grid1&amp;#34;&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;TextBox Name=&amp;#34;textBox1&amp;#34; Text=&amp;#34;{Binding Source={StaticResource testViewModel}, Path=MyProperty}&amp;#34; /&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;/Grid&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;the situation is, lets say the object (TestViewModel) contains the property (MyProperty) and also a function (MyFunction) that takes a string parameter and returns a string.&lt;br /&gt;&lt;br /&gt;now how do i bind to both the property and the function ?&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;Window x&amp;#58;Class=&amp;#34;AppTest.MainWindow&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns=&amp;#34;http&amp;#58;//schemas.microsoft.com/winfx/2006/xaml/presentation&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns&amp;#58;x=&amp;#34;http&amp;#58;//schemas.microsoft.com/winfx/2006/xaml&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns&amp;#58;sys=&amp;#34;clr-namespace&amp;#58;System;assembly=mscorlib&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns&amp;#58;l=&amp;#34;clr-namespace&amp;#58;AppTest&amp;#34;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Title=&amp;#34;MainWindow&amp;#34; Height=&amp;#34;500&amp;#34; Width=&amp;#34;500&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;Window.Resources&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;ObjectDataProvider x&amp;#58;Key=&amp;#34;testViewModel&amp;#34; ObjectType=&amp;#34;{x&amp;#58;Type l&amp;#58;TestViewModel}&amp;#34; /&amp;#62; &amp;nbsp; &amp;#60;------here i purposely ommit MethodName bcoz textBox1 can&amp;#39;t read&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;ObjectDataProvider.MethodParameters&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;sys&amp;#58;String&amp;#62;Default&amp;#60;/sys&amp;#58;String&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;/ObjectDataProvider.MethodParameters&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;/Window.Resources&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;Grid Name=&amp;#34;grid1&amp;#34;&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;TextBox Name=&amp;#34;textBox1&amp;#34; Text=&amp;#34;{Binding Source={StaticResource testViewModel}, Path=MyProperty}&amp;#34; /&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;TextBox Name=&amp;#34;textBox2&amp;#34; Text=&amp;#34;{Binding Source={StaticResource testViewModel}, Path=MethodParameters&amp;#91;0&amp;#93;}&amp;#34; /&amp;#62; &amp;nbsp; &amp;#60;-----my problem here wont read&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;/Grid&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;as you can see i can only bind to either a property or a function, but not both simultaneously. how to fix this problem ?</description>
            <author>sonido</author>
            <category>Codemasters</category>
            <pubDate>Thu, 26 Jun 2014 21:39:19 +0800</pubDate>
        </item>
        <item>
            <title>The Binding class</title>
            <link>http://forum.lowyat.net/topic/3242354</link>
            <description>When initializing a new System.Windows.Data.Binding class as in,&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;var binding = new Binding&amp;#40;&amp;#34;Value&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source = new myClass&amp;#40;&amp;#34;xxx&amp;#34;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;I just can&amp;#39;t understand what is &amp;quot;Value&amp;quot;. The Binding ctor has two overloads, one without parameter and another accepts a string path. So why &amp;quot;Value&amp;quot; can be used to construct an instance of this Binding class ?&lt;br /&gt;&lt;br /&gt;Very appreciate if anyone sifus can clarify the usage of this System.Windows.Data.Binding.&lt;br /&gt;&lt;br /&gt;Thank you.</description>
            <author>sonido</author>
            <category>Codemasters</category>
            <pubDate>Sat, 31 May 2014 10:12:01 +0800</pubDate>
        </item>
        <item>
            <title>Description issue</title>
            <link>http://forum.lowyat.net/topic/3221205</link>
            <description>having prob with translating english to malay for 1 of my sattelite assembly ms-BN culture.&lt;br /&gt;&lt;br /&gt;i just dont know what malay word for workbook and sheets...&lt;br /&gt;&lt;br /&gt;i google trnslate&lt;br /&gt;&lt;br /&gt;Excel workbook = buku kerja Excel &amp;lt;=acceptable&lt;br /&gt;Excel sheets = cadar-cadar Excel &amp;lt;=dafuq&lt;br /&gt;&lt;br /&gt;compare coding, providing description is twice take the amount of time. let alone provide proffesional high class sentence..</description>
            <author>sonido</author>
            <category>Codemasters</category>
            <pubDate>Sun, 11 May 2014 15:12:11 +0800</pubDate>
        </item>
        <item>
            <title>Playing wit Exception</title>
            <link>http://forum.lowyat.net/topic/3188033</link>
            <description>here is my custom made error logger class which is incomplete.&lt;br /&gt;&lt;br /&gt;i need to include stack trace info of the method name and oso the line number where the error occured. refer in the TODO section where i want to append these info.&lt;br /&gt;&lt;br /&gt;pls help complete it and the reward is you can use my ErrorLogger.vb class for free.  &lt;!--emo&amp;:w--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/whistling.gif' border='0' style='vertical-align:middle' alt='whistling.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;Imports System.Reflection&lt;br /&gt;Imports System.IO&lt;br /&gt;Imports System.Text&lt;br /&gt;&lt;br /&gt;&amp;#39;&amp;#39;&amp;#39; &amp;#60;summary&amp;#62;Provides method to write error information into a text file.&amp;#60;/summary&amp;#62;&lt;br /&gt;Public NotInheritable Class ErrorLogger&lt;br /&gt;	&lt;br /&gt;	Private Sub New&amp;#40;&amp;#41;&lt;br /&gt;	End Sub&lt;br /&gt;  &lt;br /&gt;	&amp;#39;Public Shared Sub Write&amp;#40;message As String, source As String, trace As String&amp;#41;&lt;br /&gt;	Public Shared Sub Write&amp;#40;e As Exception&amp;#41;&lt;br /&gt;  &lt;br /&gt;  &amp;#39; The dir location for the error text is where this code is running. &lt;br /&gt;  Dim location As String = Assembly.GetExecutingAssembly&amp;#40;&amp;#41;.Location&lt;br /&gt;  Dim filePath As String = Path.GetDirectoryName&amp;#40;location&amp;#41; &amp;amp; &amp;#34;&amp;#092;ErrorLog.txt&amp;#34;&lt;br /&gt;      &lt;br /&gt;  &amp;#39; Create a new text file to write the error info. Or if the file&lt;br /&gt;  &amp;#39; already exists, overwrite its content with the latest error.&lt;br /&gt;  Using s As New StreamWriter&amp;#40;filePath, False&amp;#41;&lt;br /&gt;      &lt;br /&gt;  	s.WriteLine&amp;#40;&amp;#34;Message &amp;#58; {0}&amp;#34;, e.Message&amp;#41;&lt;br /&gt;  	s.WriteLine&amp;#40;&amp;#34;Source &amp;#58; {0}&amp;#34;, e.Source&amp;#41;&lt;br /&gt;  	s.WriteLine&amp;#40;&amp;#34;StackTrace &amp;#58;&amp;#34;&amp;#41;&lt;br /&gt;  	&lt;br /&gt;  	Dim st As New StackTrace&amp;#40;e, True&amp;#41;&lt;br /&gt;  	&lt;br /&gt;  	For Each sf As StackFrame In st.GetFrames&lt;br /&gt;    &lt;br /&gt;    Dim log As New StringBuilder&amp;#40;&amp;#34;At &amp;#34;&amp;#41;&lt;br /&gt;    &lt;br /&gt;    Dim method As MethodBase = sf.GetMethod&amp;#40;&amp;#41;&lt;br /&gt;    &lt;br /&gt;    &amp;#39; append class name&lt;br /&gt;    log.Append&amp;#40;method.DeclaringType.ToString&amp;#41;&lt;br /&gt;    log.Append&amp;#40;&amp;#34;.&amp;#34;&amp;#41;&lt;br /&gt;    &lt;br /&gt;    &amp;#39; TODO &amp;#58;&lt;br /&gt;    &amp;#39; here need to append the method name&lt;br /&gt;    &amp;#39; here need to append the line number where the error is thrown.&lt;br /&gt;        &lt;br /&gt;    s.WriteLine&amp;#40;log.ToString&amp;#41;&lt;br /&gt;  	Next  &lt;br /&gt;  End Using  &lt;br /&gt;	End Sub&lt;br /&gt;	&lt;br /&gt;End Class&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;!--emo&amp;^_^--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/happy.gif' border='0' style='vertical-align:middle' alt='happy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>sonido</author>
            <category>Codemasters</category>
            <pubDate>Wed, 09 Apr 2014 16:38:04 +0800</pubDate>
        </item>
    </channel>
</rss>
