<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by spirit</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 26 Jun 2026 10:53:47 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Backup MSSQL Database (solved)</title>
            <link>http://forum.lowyat.net/topic/448468</link>
            <description>i am using visual studio 2005 and microsoft sql server 2000 enterprise edition. I now doing a window application, and i want to back up the database after i click a button, and store the database file with filename the date of the backup. So as to restore the database from backup file created above. any idea how to do this?</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Fri, 27 Apr 2007 02:25:05 +0800</pubDate>
        </item>
        <item>
            <title>random generate character and digit</title>
            <link>http://forum.lowyat.net/topic/420169</link>
            <description>how to generate a 8 digit of mixed character and digit?&lt;br /&gt;&lt;br /&gt;example : W9KR32K3&lt;br /&gt;                JSH8EU73&lt;br /&gt;                M937DFE4</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Thu, 01 Mar 2007 21:52:41 +0800</pubDate>
        </item>
        <item>
            <title>put command code into a variable?</title>
            <link>http://forum.lowyat.net/topic/409205</link>
            <description>let&amp;#39;s say i want to execute :    treeview1.nodes(0).add(&amp;quot;abcd&amp;quot;) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so now, i wan represent the code above with a variable &amp;quot;A&amp;quot;&lt;br /&gt;can i do like below?&lt;br /&gt;&lt;br /&gt;dim A as ?????&lt;br /&gt;A = treeview1.nodes(0).add(&amp;quot;abcd&amp;quot;)&lt;br /&gt;A&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;simply say, when i put A in the vb code, it will run treeview1.nodes(0).add(&amp;quot;abcd&amp;quot;)&lt;br /&gt;&lt;br /&gt;is tat possible??</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Mon, 05 Feb 2007 12:37:35 +0800</pubDate>
        </item>
        <item>
            <title>TreeView node : add child to a node</title>
            <link>http://forum.lowyat.net/topic/408495</link>
            <description>Let&amp;#39;s say i have the full path of the node where &amp;quot;&amp;#092;&amp;quot; is the path separator. &lt;br /&gt;&lt;br /&gt;Now i wan add a child &amp;quot;CHILD1&amp;quot; to path [Plants&amp;#092;Orchid&amp;#092;OC001&amp;#092;] provided the node &amp;quot;OC001&amp;quot; is already exist in the treeview.&lt;br /&gt;&lt;br /&gt;i am using the code below to add and it works:&lt;br /&gt;TreeView1.Nodes(&amp;quot;Plants&amp;quot;).Nodes(&amp;quot;Orchid&amp;quot;).Nodes(&amp;quot;OC001&amp;quot;).nodes.Add(&amp;quot;CHILD1&amp;quot;)&lt;br /&gt;&lt;br /&gt;SO, is there any code to add the the &amp;quot;CHILD1&amp;quot; under node [OC001] straight away ??&lt;br /&gt;&lt;br /&gt;I need it as i add all the node from MSSQL database. my MSSQL database have a column &amp;quot;Path&amp;quot; which store the treeview path of [Plants&amp;#092;Orchid&amp;#092;OC001&amp;#092;]. As every data may have different tier of path, i need to add child to the correct node. For example, the other data may have path [Plants&amp;#092;Orchid&amp;#092;OC001&amp;#092;OC002&amp;#092;OC003&amp;#092;].&lt;br /&gt;&lt;br /&gt;[addedon]February 5, 2007, 9:33 am[/addedon]anyone can help??  &lt;!--emo&amp;:cry:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cry.gif' border='0' style='vertical-align:middle' alt='cry.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Sat, 03 Feb 2007 21:25:43 +0800</pubDate>
        </item>
        <item>
            <title>How to detect the 9th and 10th digit in a string?</title>
            <link>http://forum.lowyat.net/topic/392611</link>
            <description>Let&amp;#39;s say i have a string stored in STR1&lt;br /&gt;&lt;br /&gt;STR1 = I2100C43300000001&lt;br /&gt;&lt;br /&gt;how can i check whether the 9th and 10th digit is 3 and 0?&lt;br /&gt;</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Fri, 05 Jan 2007 15:56:05 +0800</pubDate>
        </item>
        <item>
            <title>How to refresh a form</title>
            <link>http://forum.lowyat.net/topic/373735</link>
            <description>using vb.net 2003.&lt;br /&gt;&lt;br /&gt;i want to create a button to refresh the form so the form change back to what it look like as just opened.</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Mon, 27 Nov 2006 13:11:18 +0800</pubDate>
        </item>
        <item>
            <title>Datagrid font colour on certain column</title>
            <link>http://forum.lowyat.net/topic/373619</link>
            <description>Is that possible to change the font colour on only 1 column while other column remain the same?</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Mon, 27 Nov 2006 08:34:30 +0800</pubDate>
        </item>
        <item>
            <title>how to disallow combobox textbox typing</title>
            <link>http://forum.lowyat.net/topic/372788</link>
            <description>in my vb.net form, i add a combobox. Can i disable typing in combobox textbox? so that i can only choose item inside combobox list. (similar like the &amp;quot;Topic Tag&amp;quot; combobox when I post new topic.)</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Sat, 25 Nov 2006 10:34:14 +0800</pubDate>
        </item>
        <item>
            <title>Mouse down event for datagrid</title>
            <link>http://forum.lowyat.net/topic/371800</link>
            <description>I build a mouse down event handler for my datagrid. So when i click on the data in datagrid, it will display the selected data in a new window. this works fine before i sort the data.&lt;br /&gt;&lt;br /&gt;after i sort the data, then i will display incorrect data. I know the problem is the datagrid row index will not be the same with the data set row index after sorting. Any idea to solve?</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Thu, 23 Nov 2006 12:53:43 +0800</pubDate>
        </item>
        <item>
            <title>listview</title>
            <link>http://forum.lowyat.net/topic/370671</link>
            <description>if i fetch data from MSSQL and display it in list view, Is it possible to set the data fetch with link label ability, which mean when i click on the link, it will go to another page??&lt;br /&gt;&lt;br /&gt;let&amp;#39;s say my list view like below:&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Name&lt;/u&gt;        &lt;u&gt;Age&lt;/u&gt;           &lt;u&gt;Gender&lt;/u&gt;&lt;br /&gt;John                                  15                       Male&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so can i make it like this?&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Name&lt;/u&gt;        &lt;u&gt;Age&lt;/u&gt;           &lt;u&gt;Gender&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;span style='color:blue'&gt;John&lt;/span&gt;&lt;/u&gt;                       15                       Male&lt;br /&gt;&lt;br /&gt;so when i click on the name &lt;span style='color:blue'&gt;&lt;u&gt;John&lt;/u&gt;&lt;/span&gt;, it go to another form.</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Tue, 21 Nov 2006 13:08:17 +0800</pubDate>
        </item>
        <item>
            <title>How to avoid form to open more than 1?</title>
            <link>http://forum.lowyat.net/topic/370114</link>
            <description>i am using visual studio .net 2003. how am i going to limit the frm in my window application to not open more than 1? &lt;br /&gt;&lt;br /&gt;i am doing a menu in 1 form. by clicking the button in the menu, another form will pop up. But if i click the button twice, then 2 same form will open. how to avoid it?  &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;</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Mon, 20 Nov 2006 12:07:07 +0800</pubDate>
        </item>
        <item>
            <title>How to display a column from mssql in a textbox?</title>
            <link>http://forum.lowyat.net/topic/367682</link>
            <description>i wan to fetch a column of data from mssql to a textbox. How should i do that? any example?</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Wed, 15 Nov 2006 13:08:05 +0800</pubDate>
        </item>
        <item>
            <title>VB.net and MSSQL 2000 -&amp;gt; data grid display</title>
            <link>http://forum.lowyat.net/topic/358134</link>
            <description>i am using visual studio .net 2003 with mssql server 2000 enterprise edition.&lt;br /&gt;&lt;br /&gt;here is my stored proc code :&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('f8953965b4015be96f17689e89e96a31')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;f8953965b4015be96f17689e89e96a31&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;CREATE PROCEDURE dbo.sp_select_serial &lt;br /&gt;@serial sql_variant&lt;br /&gt;AS&lt;br /&gt;SELECT *  FROM rfid.dbo.Data WHERE serial=@Serial&lt;br /&gt;GO&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;here is the vb.net code&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('e85c7874d358ebe96dff294bd5d950a9')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;e85c7874d358ebe96dff294bd5d950a9&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;        strConn = SQL_CONNECTION_STRING&lt;br /&gt;&lt;br /&gt;        Dim scnnNorthwind As New SqlConnection(strConn)&lt;br /&gt;        Dim scmd As New SqlCommand(&amp;quot;sp_select_serial&amp;quot;, scnnNorthwind)&lt;br /&gt;        Dim sda As New SqlDataAdapter(scmd)&lt;br /&gt;        Dim dsProducts As New DataSet&lt;br /&gt;&lt;br /&gt;        Dim a As String&lt;br /&gt;        a = txtSerial.Text.ToString&lt;br /&gt;&lt;br /&gt;        Dim sparCatID As New SqlParameter&lt;br /&gt;        With sparCatID&lt;br /&gt;            .ParameterName = &amp;quot;@serial&amp;quot;&lt;br /&gt;            .SqlDbType = SqlDbType.Variant&lt;br /&gt;            .Value = txtSerial.Text  &lt;b&gt;&amp;lt;-----------------------------&lt;/b&gt;&lt;br /&gt;        End With&lt;br /&gt;&lt;br /&gt;        With scmd&lt;br /&gt;            .Parameters.Add(sparCatID)&lt;br /&gt;            .CommandType = CommandType.StoredProcedure&lt;br /&gt;        End With&lt;br /&gt;&lt;br /&gt;        Try&lt;br /&gt;            &amp;#39; Fill the DataSet and optionally name the DataTable.&lt;br /&gt;            sda.Fill(dsProducts, &amp;quot;Products&amp;quot;)&lt;br /&gt;&lt;br /&gt;            &amp;#39; Bind the DataGrid to the desired table in the DataSet. This&lt;br /&gt;            &amp;#39; will cause the product information to display.&lt;br /&gt;            DataGrid1.DataSource = dsProducts.Tables(0)&lt;br /&gt;&lt;br /&gt;        Catch expSQL As SqlException&lt;br /&gt;            MsgBox(expSQL.ToString, MsgBoxStyle.Critical, Me.Text)&lt;br /&gt;            Exit Sub&lt;br /&gt;        End Try&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;look at the arrow there:&lt;br /&gt;if i put .value = &amp;quot;I2100C43300000001&amp;quot; then it is working, but when i put txtserial.text(the text in the textbox) which hold the same value, then it cannot work. &lt;br /&gt;&lt;br /&gt;can anybody help me T_T??&lt;br /&gt;&lt;br /&gt;1 more question. If i display in data grid, after i change the value in data grid, can i update the data in MSSQL as well? is tat possible?</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Wed, 25 Oct 2006 23:28:39 +0800</pubDate>
        </item>
        <item>
            <title>write to and read from eeprom</title>
            <link>http://forum.lowyat.net/topic/283352</link>
            <description>i am using MikroElektronika microbasic compiler for pic software to write a code .&lt;br /&gt;&lt;br /&gt;now i have a variable declare as word(16bits). and i wish to store it in eeprom which 1 location is 8 bit. wan to ask any algorithm to split the 16 bit data into 2 8 bits data for me to be able to store in eeprom?&lt;br /&gt;</description>
            <author>spirit</author>
            <category>Codemasters</category>
            <pubDate>Mon, 01 May 2006 21:01:57 +0800</pubDate>
        </item>
    </channel>
</rss>
