<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by bzai123</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Wed, 24 Jun 2026 14:01:01 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Format Excel cell</title>
            <link>http://forum.lowyat.net/topic/1106323</link>
            <description>Hi,&lt;br /&gt;How can i format the cell of excell sheet using c#?&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;value=0123456789&lt;br /&gt;&lt;br /&gt;i would like to export this value into excel file with &amp;quot;0123456789&amp;quot; instead of &amp;quot;123456789&amp;quot;&lt;br /&gt;&lt;br /&gt;i had tried &lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;worksheet.cell.NumberFormat=&amp;#34;##########&amp;#34;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;but it seems not realistic since the value will be growing larger....&lt;br /&gt;&lt;br /&gt;Any suggesstion?&lt;br /&gt;&lt;br /&gt;Currently using VS2008 Team Stream + MS Excel 2007&lt;br /&gt;&lt;br /&gt;Thank you in advance.....</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Thu, 23 Jul 2009 16:30:41 +0800</pubDate>
        </item>
        <item>
            <title>Export from xml and write to excel</title>
            <link>http://forum.lowyat.net/topic/1105061</link>
            <description>hi, &lt;br /&gt;&lt;br /&gt;Is there anyone know how to read data from a xml file and then write to excel fil without using dataset?&lt;br /&gt;What i want is read the data into memory insteat of retriving from database.&lt;br /&gt;&lt;br /&gt;Currently using VS2008 web service with c#.....&lt;br /&gt;&lt;br /&gt;Thank you in advance.....&lt;br /&gt;&lt;br /&gt;[addedon]July 22, 2009, 5:59 pm[/addedon]Really no one could help?</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Wed, 22 Jul 2009 14:35:49 +0800</pubDate>
        </item>
        <item>
            <title>Message box in Web Application</title>
            <link>http://forum.lowyat.net/topic/1057252</link>
            <description>Hi, &lt;br /&gt;&lt;br /&gt;currently i&amp;#39;m working on a small web project. I would like to display a confirmation message box when user clicking on a delete button by using the following method:&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;Button1.Attributes.Add&amp;#40;&amp;#34;onclick&amp;#34;, &amp;#34;return confirm&amp;#40;&amp;#39;Are you sure you want to delete?&amp;#39;&amp;#41;&amp;#34;&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;As the result, it prompted me a message box. The problem i&amp;#39;m having now is how can i get the response from the user whether he is clicking on OK or CANCEL as DialogResult doesnt&amp;#39; work in web application like window application.&lt;br /&gt;&lt;br /&gt;Currently using VS2005 Web Application with C#&lt;br /&gt;&lt;br /&gt;Hope to hear from somebody soon.......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you in advance.&lt;br /&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Tue, 09 Jun 2009 15:04:08 +0800</pubDate>
        </item>
        <item>
            <title>Power Builder</title>
            <link>http://forum.lowyat.net/topic/1014246</link>
            <description>Is there anyone familiar with Power Builder??&lt;br /&gt;Can I have the web site with can learn this programming language?&lt;br /&gt;&lt;br /&gt;Thank you in advance</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Wed, 29 Apr 2009 13:06:36 +0800</pubDate>
        </item>
        <item>
            <title>Theory Question</title>
            <link>http://forum.lowyat.net/topic/980135</link>
            <description>hi, &lt;br /&gt;I&amp;#39;m newbie to MS2008......&lt;br /&gt;So can anyone help me to answer the following questions??&lt;br /&gt;&lt;br /&gt;1. What is ASP.net?&lt;br /&gt;&lt;br /&gt;2. What is VB.net?&lt;br /&gt;&lt;br /&gt;3. Does C#.net exist? If so then what is the differences between C#.net. VB.net and ASP.net?</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Sun, 29 Mar 2009 09:15:15 +0800</pubDate>
        </item>
        <item>
            <title>how to generate System Year for Crystal report?</title>
            <link>http://forum.lowyat.net/topic/940386</link>
            <description>i&amp;#39;m currently using VS2005 window application with C#&lt;br /&gt;&lt;br /&gt;does anyone know how can i display the value of &amp;quot;1/1/2009&amp;quot; and &amp;quot;12/1/2009&amp;quot; if i generated the report for year 2009 &lt;br /&gt;EG:       Report XXXX&lt;br /&gt;      from 1/1/2009 to 12/1/2009&lt;br /&gt;&lt;br /&gt;and &amp;quot;1/1/2008&amp;quot; and &amp;quot;12/1/2008&amp;quot; if i generate the report for 2008&lt;br /&gt;EG:          Report XXXX&lt;br /&gt;      from 1/1/2008 to 12/1/2008&lt;br /&gt;&lt;br /&gt;i wish to have it by not setting the the values manually instead it will be change according to the current year......&lt;br /&gt;thank you in advance......</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Wed, 18 Feb 2009 21:31:37 +0800</pubDate>
        </item>
        <item>
            <title>Crystal Report</title>
            <link>http://forum.lowyat.net/topic/921001</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;ReportPD rePD = ReportPD&amp;#40;value1, value2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet ds = rePD.suReceipt&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CrystalReport1 crSuR = new CrystalReport1&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;crSuR.SetDataSource&amp;#40;ds.Tables&amp;#91;&amp;#34;suReceipts&amp;#34;&amp;#93;.DefaultView&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;crystalReportViewer1.ReportSource = crSuR;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;the above codes are used to retrive data from database and display the data into crytal report. the problem is whenever the retrieved data involve 2 table or more, it will display nothing in the report viewer but hen i only retrieve data from only 1 table then it can be done. So.... could anyone tell me that what is happening?&lt;br /&gt;&lt;br /&gt;thank you in advance......</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Sat, 31 Jan 2009 02:59:52 +0800</pubDate>
        </item>
        <item>
            <title>Unknown errors</title>
            <link>http://forum.lowyat.net/topic/891134</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;import java.util.concurrent.*;&lt;br /&gt;import java.util.concurrent.locks.*;&lt;br /&gt;/***********************************************/&lt;br /&gt;/** &amp;nbsp; &amp;nbsp; &amp;nbsp;A semaphore producer/consumer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;**/&lt;br /&gt;/***********************************************/&lt;br /&gt;public class Producer_Consumer implements Runnable &lt;br /&gt;{&lt;br /&gt; &amp;nbsp;private static Semaphore mutex = new Semaphore&amp;#40;1&amp;#41;; &lt;br /&gt; &amp;nbsp;private static Semaphore full &amp;nbsp;= new Semaphore&amp;#40;0&amp;#41;; &lt;br /&gt; &amp;nbsp;private static Semaphore empty = new Semaphore&amp;#40;20&amp;#41;; &lt;br /&gt; &amp;nbsp;private static int COUNT=0;&lt;br /&gt; &amp;nbsp;private String thread_name;&lt;br /&gt; &amp;nbsp;static int buffer&amp;#91;&amp;#93; = new int&amp;#91;20&amp;#93;;&lt;br /&gt; &amp;nbsp;private static int current=0;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;public static void main &amp;#40;String args &amp;#91;&amp;#93;&amp;#41; &lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; // initialise buffer with some dud values&lt;br /&gt; &amp;nbsp; for&amp;#40;int i=0;i&amp;#60;20;i++&amp;#41; buffer&amp;#91;i&amp;#93;=-1;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; // create two producer/consumer threads&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thread T1 = new Thread&amp;#40;new Producer_Consumer&amp;#40;&amp;#34;T1&amp;#34;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thread T2 = new Thread&amp;#40;new Producer_Consumer&amp;#40;&amp;#34;T2&amp;#34;&amp;#41;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; // and start them off&lt;br /&gt; &amp;nbsp; T1.start&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; T2.start&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt; &amp;nbsp;&lt;br /&gt; &amp;nbsp;public Producer_Consumer &amp;#40;String name&amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;thread_name=name;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp;public void run &amp;#40;&amp;#41; &lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp;do &lt;br /&gt;	{&lt;br /&gt; &amp;nbsp; &amp;nbsp; // am I a producer or a consumer?&lt;br /&gt; &amp;nbsp;int randy = &amp;#40;int&amp;#41;&amp;#40;Math.random&amp;#40;&amp;#41; * 100&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; if &amp;#40;&amp;#40;&amp;#40;randy%2&amp;#41;==0&amp;#41; &amp;amp; &amp;#40;current&amp;#62;0&amp;#41;&amp;#41; // CONSUMER&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;#91;COLOR=red&amp;#93;full.wait&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.wait&amp;#40;&amp;#41;; &amp;#91;/COLOR&amp;#93;&lt;br /&gt; &amp;nbsp; &amp;nbsp; // start of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; COUNT++;&lt;br /&gt; &amp;nbsp; &amp;nbsp; current--;&lt;br /&gt; &amp;nbsp; &amp;nbsp; System.out.println&amp;#40;thread_name +&amp;#34; removing buffer&amp;#91;&amp;#34;+current +&amp;#34;&amp;#93;=&amp;#34;+buffer&amp;#91;current&amp;#93; &amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; buffer&amp;#91;current&amp;#93;=-1;&lt;br /&gt; &amp;nbsp; &amp;nbsp; // end of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.notify&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; empty.notify&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp;}&lt;br /&gt; &amp;nbsp;else &amp;nbsp;//PRODUCER&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;#91;COLOR=red&amp;#93;empty.wait&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.wait&amp;#40;&amp;#41;; &amp;#91;/COLOR&amp;#93;&lt;br /&gt; &amp;nbsp; &amp;nbsp; // start of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; COUNT++;&lt;br /&gt; &amp;nbsp; &amp;nbsp; buffer&amp;#91;current&amp;#93;=randy;&lt;br /&gt; &amp;nbsp; &amp;nbsp; System.out.println&amp;#40;thread_name +&amp;#34; adding buffer&amp;#91;&amp;#34;+current +&amp;#34;&amp;#93;=&amp;#34;+buffer&amp;#91;current&amp;#93; &amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; current++;&lt;br /&gt; &amp;nbsp; &amp;nbsp; // end of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.notify&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; full.notify&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp;} while &amp;#40;COUNT&amp;#60;20&amp;#41;;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;When the above codes being compiled there are 4 same errors occurred with the same error description......&lt;br /&gt;&lt;span style='color:green'&gt;unreported exception java.lang.InterruptedException; must be caught or declared to be thrown&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;i need helps in urgen...... hw to solve it?&lt;br /&gt;thank you in advance.......</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Tue, 30 Dec 2008 19:08:43 +0800</pubDate>
        </item>
        <item>
            <title>diferences of 2 date time</title>
            <link>http://forum.lowyat.net/topic/888623</link>
            <description>&lt;span style='color:red'&gt;&lt;span style='font-size:14pt;line-height:100%'&gt;i&amp;#39;m currently using MS2005 with C# (window application)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;how can i calculate the diferences of 2 different dae time value?&lt;br /&gt;&lt;br /&gt;let&amp;#39;s say the 1st date is 01/31/2008 and the second date is 02/01/2008&lt;br /&gt;&lt;br /&gt;and the foolowing method is applied:&lt;br /&gt;&lt;br /&gt;label1.text = Convert.tostring(date2.value.date-date1.value.date);&lt;br /&gt;&lt;br /&gt;as the result the text that pronted in the label would e like 2.00.00.00 instead of 2.&lt;br /&gt;&lt;br /&gt;is the method wrong? could anyone can help me to resolve?&lt;br /&gt;&lt;br /&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Sun, 28 Dec 2008 02:28:05 +0800</pubDate>
        </item>
        <item>
            <title>Generate Crystal Report</title>
            <link>http://forum.lowyat.net/topic/873505</link>
            <description>I&amp;#39;ve already create a CryatalReport but how can i display it during run time?&lt;br /&gt;NOTE: the report is linked to a database.&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;CrystalReport1 CR1 = new CrystalReport1&amp;#40;&amp;#41;;&lt;br /&gt;CR1.XXX;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;is the above code correct? if do so then what should be the XXX?&lt;br /&gt;&lt;br /&gt;Application Environment: VS2005 with C#.&lt;br /&gt;&lt;br /&gt;Thank you in advance......</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Fri, 12 Dec 2008 19:49:32 +0800</pubDate>
        </item>
        <item>
            <title>Random number by using prolog</title>
            <link>http://forum.lowyat.net/topic/869426</link>
            <description>Does anyone know how to generate a random number within 2 number by using prolog language?</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Mon, 08 Dec 2008 23:51:41 +0800</pubDate>
        </item>
        <item>
            <title>Wait() and Signal()</title>
            <link>http://forum.lowyat.net/topic/864892</link>
            <description>Are the Wait() and Signal() below a built-in function in java?&lt;br /&gt;Thank you in advance.&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;int randy = &amp;#40;int&amp;#41;&amp;#40;Math.random&amp;#40;&amp;#41; * 100&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; if &amp;#40;&amp;#40;&amp;#40;randy%2&amp;#41;==0&amp;#41; &amp;amp; &amp;#40;current&amp;#62;0&amp;#41;&amp;#41; // CONSUMER&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; full.WAIT&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.WAIT&amp;#40;&amp;#41;; &lt;br /&gt; &amp;nbsp; &amp;nbsp; // start of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; COUNT++;&lt;br /&gt; &amp;nbsp; &amp;nbsp; current--;&lt;br /&gt; &amp;nbsp; &amp;nbsp; System.out.println&amp;#40;thread_name +&amp;#34; removing buffer&amp;#91;&amp;#34;+current +&amp;#34;&amp;#93;=&amp;#34;+buffer&amp;#91;current&amp;#93; &amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; buffer&amp;#91;current&amp;#93;=-1;&lt;br /&gt; &amp;nbsp; &amp;nbsp; // end of critical section&lt;br /&gt; &amp;nbsp; &amp;nbsp; mutex.SIGNAL&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; empty.SIGNAL&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; try { &lt;br /&gt; &amp;nbsp; &amp;nbsp; Thread.currentThread&amp;#40;&amp;#41;.sleep&amp;#40;&amp;#40;int&amp;#41;&amp;#40;Math.random&amp;#40;&amp;#41; * 100&amp;#41;&amp;#41;;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; catch &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;#40;InterruptedException e&amp;#41;{}&lt;br /&gt;&lt;br /&gt; &amp;nbsp;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Thu, 04 Dec 2008 07:15:39 +0800</pubDate>
        </item>
        <item>
            <title>error C3861: &amp;#39;malloc&amp;#39;: identifier not found</title>
            <link>http://forum.lowyat.net/topic/850818</link>
            <description>&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;#include &amp;quot;malloc.h&amp;quot;&lt;br /&gt;#include &amp;quot;stdlib.h&amp;quot;&lt;br /&gt;#include &amp;quot;stdafx.h&amp;quot;&lt;br /&gt;#include &amp;quot;dos.h&amp;quot;&lt;br /&gt;#include &amp;quot;stdio.h&amp;quot;&lt;br /&gt;#include &amp;quot;process.h&amp;quot;&lt;br /&gt;#include &amp;quot;windows.h&amp;quot;&lt;br /&gt;#include &amp;quot;conio.h&amp;quot;&lt;br /&gt;#include &amp;quot;omp.h&amp;quot;&lt;br /&gt;&lt;br /&gt;#define N_THREADS&amp;nbsp; 6&lt;br /&gt;#define M&amp;nbsp; 3&lt;br /&gt;#define K&amp;nbsp; 2&lt;br /&gt;#define N&amp;nbsp; 3&lt;br /&gt;&lt;br /&gt;int main(int argc, char *argv[])&lt;br /&gt;{&lt;br /&gt;	DWORD ThreadId[N_THREADS];&lt;br /&gt;	HANDLE ThreadHandle[N_THREADS];&lt;br /&gt;	LPSECURITY_ATTRIBUTES lpThreadAttributes = NULL;&lt;br /&gt;	DWORD stackSize = 0;&lt;br /&gt;	DWORD dwCreationFlag = 0;&lt;br /&gt;	int thread_num = 0;&lt;br /&gt;&amp;nbsp; //create the thread&lt;br /&gt;	for(int numRow=0;numRow &amp;lt; K; numRow++)&lt;br /&gt;	{&lt;br /&gt;&amp;nbsp; for(int numColumn=0; numColumn &amp;lt; N; numColumn++ )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; 	&lt;b&gt;struct dataPassingToThread *data = (struct dataPassingToThread *)&amp;nbsp; malloc(sizeof(struct dataPassingToThread));&lt;/b&gt;&amp;nbsp; 	data-&amp;gt;numRow = numRow;&lt;br /&gt;&amp;nbsp; 	data-&amp;gt;numColumn = numColumn;&lt;br /&gt;&amp;nbsp; 	data-&amp;gt;thread_no = thread_num+1;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;don&amp;#39;t know why is the error occurred.......&lt;br /&gt;could anyone help?&lt;br /&gt;NOTE: currently using VS2005 with c++&lt;br /&gt;thank you in advance......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Wed, 19 Nov 2008 23:33:59 +0800</pubDate>
        </item>
        <item>
            <title>Function run over a certain period</title>
            <link>http://forum.lowyat.net/topic/804579</link>
            <description>hi......&lt;br /&gt;how would I make a function run for a certain amount of time?&lt;br /&gt;i would like to run an alert function every 3 minutes.....&lt;br /&gt;but i do not have any idea to do so......&lt;br /&gt;&lt;br /&gt;Can u guys pls help?&lt;br /&gt;&lt;br /&gt;Thank you in advance.&lt;br /&gt;&lt;br /&gt;Environment: Microsoft Visual Studio 2005 Window Application with C#</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Mon, 29 Sep 2008 20:57:20 +0800</pubDate>
        </item>
        <item>
            <title>sql problem</title>
            <link>http://forum.lowyat.net/topic/799584</link>
            <description>&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;SqlConnection conSaInv = new SqlConnection(&amp;quot;Data Source=MY-LAPTOP;Initial Catalog=Wai_Tat_db;Persist Security Info=True;User ID=sa;PWD=project&amp;quot;);&lt;br /&gt;            SqlCommand cmdSaInv = new SqlCommand(&amp;quot;select sum(PAYMENT_AMOUNT) from SALOON_RECEIPTS where SALOON_INV_NO=@no&amp;quot;, conSaInv);&lt;br /&gt;&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                conSaInv.Open();&lt;br /&gt;&lt;br /&gt;                cmdSaInv.Parameters.AddWithValue(&amp;quot;@no&amp;quot;, no);&lt;br /&gt;&lt;br /&gt;                dtrInv = cmdSaInv.ExecuteReader();&lt;br /&gt;&lt;br /&gt;                if (dtrInv.Read())&lt;br /&gt;                {&lt;br /&gt;                   &lt;span style='color:red'&gt;paid_amt = System.Double.Parse(dtrInv.GetSqlMoney(0).ToString());&lt;/span&gt;&lt;br /&gt;                    amt_balance = ttl - paid_amt;&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception e)&lt;br /&gt;            {&lt;br /&gt;                MessageBox.Show(e.Message, &amp;quot;Error&amp;quot;, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;            }&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;when i try to run the statement, error occurred at the highlighted part.&lt;br /&gt;&lt;br /&gt;error message : Input string was not in a correct format&lt;br /&gt;&lt;br /&gt;currently using Microsoft Visual Studio 2005 Window Application with C#&lt;br /&gt;&lt;br /&gt;Thank you in advance.....</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Tue, 23 Sep 2008 22:30:38 +0800</pubDate>
        </item>
        <item>
            <title>method to get system path</title>
            <link>http://forum.lowyat.net/topic/799072</link>
            <description>i would like to backup my application database to a certain location and it is able to allow user to choose where to store the backup file. So how can i get the system path?&lt;br /&gt;&lt;br /&gt;i should use OpenDialog or SaveDialog?&lt;br /&gt;i&amp;#39;d tried both but it could not be done.....&lt;br /&gt;it is because both of the above methods are forcing me to choose a file then only i got the system path.&lt;br /&gt;&lt;br /&gt;Can u guys provide some solutions?&lt;br /&gt;&lt;br /&gt;Thank you in advance...... &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Tue, 23 Sep 2008 11:55:11 +0800</pubDate>
        </item>
        <item>
            <title>Fail to backup database</title>
            <link>http://forum.lowyat.net/topic/794315</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;SqlConnection conBackUp = new SqlConnection&amp;#40;&amp;#34;Data Source=MY-LAPTOP;Initial Catalog=Wai_Tat_db;Persist Security Info=True;Asynchronous Processing=true;User ID=sa;PWD=project&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmdBackUp = new SqlCommand&amp;#40;&amp;#34;backup database Wai_Tat_db to disk= &amp;#39;C&amp;#58;&amp;#092;&amp;#092;Wai_Tat_db.bak&amp;#39; with init&amp;#34;, conBackUp&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conBackUp.Open&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmdBackUp.ExecuteNonQuery&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MessageBox.Show&amp;#40;&amp;#34;Database is backup to C&amp;#58;&amp;#092;&amp;#092;&amp;#34;, &amp;#34;Information&amp;#34;, MessageBoxButtons.OK, MessageBoxIcon.Information&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch &amp;#40;Exception e&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MessageBox.Show&amp;#40;e.Message, &amp;#34;Error&amp;#34;, MessageBoxButtons.OK, MessageBoxIcon.Error&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;finally&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conBackUp.Close&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;When the above function is called, an errro is prompted:&lt;br /&gt;&amp;quot;Cannot open backup device &amp;#39;C:&amp;#092;Wai_Tat_db.bak&amp;#39;. Operating system error 5(Access is denied.). BACKUP DATABASE is terminating abnormally.&amp;quot;&lt;br /&gt;&lt;br /&gt;So what is the problem actually?&lt;br /&gt;Thank you in advance.....&lt;br /&gt;&lt;br /&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Wed, 17 Sep 2008 20:54:27 +0800</pubDate>
        </item>
        <item>
            <title>sql statement problem</title>
            <link>http://forum.lowyat.net/topic/787186</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int sum1,sum2;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataReader dtr;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection con = new SqlConnection&amp;#40;&amp;#34;Data Source=.......&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd = new SqlCommand&amp;#40;&amp;#34;select sum&amp;#40;item1&amp;#41;, sum&amp;#40;item2&amp;#41; from ItemTable&amp;#34;,con&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;con.Open&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dtr = cmd.ExecuteReader&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum1=?????&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sum2=?????&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;con.Close&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dtr.Close&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;What should i write in the ????? in order to assign the sum of item1 and item2 to sum1 and sum2 respectively?&lt;br /&gt;&lt;br /&gt;Currently using Microsoft Visual Studio 2005, Window Application with C#.&lt;br /&gt;&lt;br /&gt;Thank you in advance.</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Tue, 09 Sep 2008 14:29:16 +0800</pubDate>
        </item>
        <item>
            <title>Change Drop Down List property during run time</title>
            <link>http://forum.lowyat.net/topic/780084</link>
            <description>how could i change the property of the Drop Down List during run time?&lt;br /&gt;&lt;br /&gt;i&amp;#39;d tried this before but it does&amp;#39;t working......&lt;br /&gt;&lt;br /&gt;public void New_button Click(.....)&lt;br /&gt;{&lt;br /&gt;DropDownList1.DropDownStyle=DropDownList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;is there anything i&amp;#39;ve missed out?&lt;br /&gt;&lt;br /&gt;currently using Microsoft Visual Studio 2005, Window Application with C#&lt;br /&gt;</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Sun, 31 Aug 2008 21:32:52 +0800</pubDate>
        </item>
        <item>
            <title>prevent editing in a drop down list</title>
            <link>http://forum.lowyat.net/topic/777559</link>
            <description>could anyone tell how to disable the edit mode of a drop down list?&lt;br /&gt;&lt;br /&gt;I mean I would like to force the end user to choose only the data inside the drop down list instead of adding themselve.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried all of the properties in the properties window of drop down list but it doesn&amp;#39;t has any property which refers to that function.&lt;br /&gt;&lt;br /&gt;Is there any way to do so???&lt;br /&gt;&lt;br /&gt;currently using Microsoft Visual Studio 2005, Window Application with C#.&lt;br /&gt;&lt;br /&gt;Thank you in advance.</description>
            <author>bzai123</author>
            <category>Codemasters</category>
            <pubDate>Thu, 28 Aug 2008 10:42:38 +0800</pubDate>
        </item>
    </channel>
</rss>
