<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>C# Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'C#' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 20 Nov 2009 20:09:41 -0700</pubDate>
    <lastBuildDate>Fri, 20 Nov 2009 20:09:41 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>accept paypal aberceombie fitch women  jackets gucci ed hardy boots</title>
      <link>http://www.programmersheaven.com/mb/csharp/409623/409623/accept-paypal-aberceombie-fitch-women--jackets-gucci-ed-hardy-boots/</link>
      <description>&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.clothinglookout.com"&gt;http://www.clothinglookout.com&lt;/a&gt; &lt;br /&gt;
Paypal,Cheap Diesel,Burberry T-shirts &lt;br /&gt;
Paypal,Wholesale Red Monkey,Evisu T-shirts &lt;br /&gt;
Paypal,Cheap Urban Armani,LV T-shirts &lt;br /&gt;
Paypal,Wholesale Hip Hop Coogi Tee Shirts &lt;br /&gt;
Paypal,Cheap Urban ED Hardy Men Sleeve &lt;br /&gt;
Paypal,Wholesale Gucci,Affliction T-shirts &lt;br /&gt;
Paypal,Cheap STUSSY Men Urban T-shirts &lt;br /&gt;
Paypal,Wholesale G-Star,Bape Men Jeans &lt;br /&gt;
Paypal,Cheap Urban Gucci,Levi’s Jeans &lt;br /&gt;
Paypal,Wholesale Akademiks,BBC Men Jeans &lt;br /&gt;
Paypal,Hip Hop 5ive Jungle Shorts Pants &lt;br /&gt;
Paypal,Urban Christian Audigier Big Clothing &lt;br /&gt;
Paypal,Replica Dolce Gabbana Men T-shirts &lt;br /&gt;
Paypal,Wholesale Polo,Lacoste Men T-shirts &lt;br /&gt;
Paypal,Cheap Juicy Couture Women Blouses &lt;br /&gt;
All product high quality with right price, ( Accept Paypal ) &lt;br /&gt;
our website: &lt;a href="http://www.clothinglookout.com"&gt;http://www.clothinglookout.com&lt;/a&gt; &lt;br /&gt;
Mail:clothinglookout@yahoo.com.cn &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409623/409623/accept-paypal-aberceombie-fitch-women--jackets-gucci-ed-hardy-boots/</guid>
      <pubDate>Fri, 20 Nov 2009 02:03:37 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>The public phone project</title>
      <link>http://www.programmersheaven.com/mb/csharp/409501/409501/the-public-phone-project/</link>
      <description>hi! i need a help.i need a code that recharges the public phone and when call is made it rates the amount of the money in specific time.i will appreciate the code in csharp or netbeans.please i need your help....&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409501/409501/the-public-phone-project/</guid>
      <pubDate>Wed, 18 Nov 2009 00:59:10 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>The public phone project</title>
      <link>http://www.programmersheaven.com/mb/csharp/409500/409500/the-public-phone-project/</link>
      <description>hi! i need a help.i need a code that recharges the public phone and when call is made it rates the amount of the money in specific time.please i need your help....&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409500/409500/the-public-phone-project/</guid>
      <pubDate>Wed, 18 Nov 2009 00:56:49 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Play FLV directly from memory.</title>
      <link>http://www.programmersheaven.com/mb/csharp/409498/409498/play-flv-directly-from-memory/</link>
      <description>Hi!&lt;br /&gt;
I should develop a flash video player that plays FLV securely, i.e. it should be loaded from remote URL into memory, decrypted and loaded into the player. The problem is that the standard flash player activex is not able to play FLV from memory directly. Is it possible to avoid creating temp files?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409498/409498/play-flv-directly-from-memory/</guid>
      <pubDate>Wed, 18 Nov 2009 00:50:50 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Play SWF without flash player installed</title>
      <link>http://www.programmersheaven.com/mb/csharp/409497/409497/play-swf-without-flash-player-installed/</link>
      <description>Is it possible to play flash without flash-player installed? I heard that SWF file and flash player itself may be included into one EXE file.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409497/409497/play-swf-without-flash-player-installed/</guid>
      <pubDate>Wed, 18 Nov 2009 00:49:14 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Own an antivirus system in C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/409424/409424/own-an-antivirus-system-in-c/</link>
      <description>Now I'm going to write own antivirus system with heuristic analysis. Main part is quite simple: antivirus provides access to virtual files for running application (maybe virus), which works with these files as if they are real. After this antivirus notify what running application attempted to do. I have BoxedApp SDK ( &lt;a href="http://boxedapp.com/"&gt;http://boxedapp.com/&lt;/a&gt; ) for emulation of a file system and registry. But antivirus may be more effective and flexible if there are additional tools for recognition of viruses. Maybe there are some ideas (except simple compare of known viruses’ code parts)? &lt;br /&gt;
&lt;br /&gt;
Thank you!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409424/409424/own-an-antivirus-system-in-c/</guid>
      <pubDate>Tue, 17 Nov 2009 01:47:12 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Using ActiveX controls and DLLs directly from memory buffer (C#)</title>
      <link>http://www.programmersheaven.com/mb/csharp/409423/409423/using-activex-controls-and-dlls-directly-from-memory-buffer-c/</link>
      <description>Hi!&lt;br /&gt;
Is it possible to use ActiveX controls and dynamic libraries without installing an application, by simply running EXE file? It’s means there is no temporary files, all ActiveX controls and DLLs are used from memory buffer.&lt;br /&gt;
Thank you!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409423/409423/using-activex-controls-and-dlls-directly-from-memory-buffer-c/</guid>
      <pubDate>Tue, 17 Nov 2009 01:46:01 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Connection String</title>
      <link>http://www.programmersheaven.com/mb/csharp/409320/409409/re-connection-string/#409409</link>
      <description>Thanks, I done... &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409320/409409/re-connection-string/#409409</guid>
      <pubDate>Mon, 16 Nov 2009 22:53:26 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Creating menu for a ASP.Net application</title>
      <link>http://www.programmersheaven.com/mb/csharp/409382/409382/creating-menu-for-a-aspnet-application/</link>
      <description>Hi, &lt;br /&gt;
&lt;br /&gt;
I am creating an ASP.Net application in VS2008. I would like to create a horizontal menu bar at the top. The values of this menu bar should be dynamic. By dynamic i mean that we should be able to add new values or remove the existing values from the menu bar.&lt;br /&gt;
&lt;br /&gt;
e.g. Menu options are: Import, Export, Search and Reports. The reports have 2 sub menus: A and B&lt;br /&gt;
&lt;br /&gt;
Now if i want to add another menu tab sometime later in future, i should be able to do that not through the UI. &lt;br /&gt;
&lt;br /&gt;
Any suggestions as to how can we implement this? Any small code snippet is welcome.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance. &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409382/409382/creating-menu-for-a-aspnet-application/</guid>
      <pubDate>Mon, 16 Nov 2009 09:26:29 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Connection String</title>
      <link>http://www.programmersheaven.com/mb/csharp/409320/409342/re-connection-string/#409342</link>
      <description>Hi mohanavv..&lt;br /&gt;
&lt;br /&gt;
First add OLEDB data adapter to your web page and fill the database information in the property windows of OLEDB data adapter.&lt;br /&gt;
&lt;br /&gt;
thereby you will get the connection string from the same property window of the adapter.&lt;br /&gt;
&lt;br /&gt;
Copy it and paste it in your source code.&lt;br /&gt;
__________________________________________________
____________________&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.Prodigyapex.com/"&gt;Web Development Services&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409320/409342/re-connection-string/#409342</guid>
      <pubDate>Sun, 15 Nov 2009 23:50:59 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Connection String</title>
      <link>http://www.programmersheaven.com/mb/csharp/409320/409320/connection-string/</link>
      <description>Hi! &lt;br /&gt;
I'm new in C# pls. help me&lt;br /&gt;
&lt;br /&gt;
How to make connection string (web.config) for connect MS access database in C # and how to call that connection string in webform&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409320/409320/connection-string/</guid>
      <pubDate>Sun, 15 Nov 2009 04:10:13 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Interactive Hello World question</title>
      <link>http://www.programmersheaven.com/mb/csharp/408670/409259/re-interactive-hello-world-question/#409259</link>
      <description>Just add this next to the &lt;br /&gt;
Console.WriteLine("Hello {0}, Good Luck in C#", name);&lt;br /&gt;
&lt;br /&gt;
*********************&lt;br /&gt;
&lt;br /&gt;
 Console.ReadKey(true);&lt;br /&gt;
&lt;br /&gt;
//This should solve your problem&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408670/409259/re-interactive-hello-world-question/#409259</guid>
      <pubDate>Fri, 13 Nov 2009 12:16:38 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Hello!!!! Enybody out there???</title>
      <link>http://www.programmersheaven.com/mb/csharp/408136/409256/re-hello-enybody-out-there/#409256</link>
      <description>you can save each data in the textboxes to a text file and loads it again when the appilication loads. something like this... when you should include &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System.IO;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//user closes the application &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
           File.WriteAllText("c:\\data1.txt",textBox1.Text);&lt;br /&gt;
           File.WriteAllText("c:\\data2.txt",textBox2.Text);&lt;br /&gt;
            ...&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
// when the user opens the application&lt;br /&gt;
&lt;br /&gt;
  private void Form1_Load(object sender, EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
           textBox1.Text= File.ReadAllText("c:\\data1.Text");&lt;br /&gt;
            ....&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
//Hope this helps&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408136/409256/re-hello-enybody-out-there/#409256</guid>
      <pubDate>Fri, 13 Nov 2009 12:08:03 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Facial Expression Recogntion</title>
      <link>http://www.programmersheaven.com/mb/csharp/409158/409158/facial-expression-recogntion/</link>
      <description>Is their anyone who had already programmed a facial expression system??? can you be generous enough to share it with me?? or at least the steps on how to start making from the interfacing of the camera to the computer, face detection, and facial expression recognition...pls help me... i really need it in about a week...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409158/409158/facial-expression-recogntion/</guid>
      <pubDate>Thu, 12 Nov 2009 05:38:13 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>The update() of my application doesnt perform any updates or deals wit</title>
      <link>http://www.programmersheaven.com/mb/csharp/409128/409128/the-update-of-my-application-doesnt-perform-any-updates-or-deals-wit/</link>
      <description>Hi, &lt;br /&gt;
&lt;br /&gt;
I have written an application to perform a simple CRUD operation i've used MVC design pattern... DAL was designed using the wizard. &lt;br /&gt;
I was able preserve the olds value of teh fields of EMployee class using a seperatemethod &lt;br /&gt;
&lt;br /&gt;
PreserveOldValues() &lt;br /&gt;
{ &lt;br /&gt;
       //code &lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
in the SearchByIndex() i call the fill method and i used the data to initialize the current Employee object also i preserve those values using &lt;br /&gt;
PreserveOldValues() the i call update() and internall i pass the preserved values...... &lt;br /&gt;
&lt;br /&gt;
However it doesnt do concurrencies and updates... please review my code and give me guidance to fix the problem.... &lt;br /&gt;
&lt;br /&gt;
all the required file are in attachemtn and database is in Data.zip file &lt;br /&gt;
&lt;br /&gt;
ATTACHEMTN can be downloaded from here&lt;br /&gt;
&lt;a href="http://www.quickfilepost.com/download.do?get=f339aa16aea48e9873fa9d9a48747a0e"&gt;http://www.quickfilepost.com/download.do?get=f339aa16aea48e9873fa9d9a48747a0e&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
cheers &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409128/409128/the-update-of-my-application-doesnt-perform-any-updates-or-deals-wit/</guid>
      <pubDate>Wed, 11 Nov 2009 23:00:08 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>copying elements of global lists</title>
      <link>http://www.programmersheaven.com/mb/csharp/409039/409039/copying-elements-of-global-lists/</link>
      <description>I'm a hardware engineer doing my first c# program.&lt;br /&gt;
&lt;br /&gt;
I have 2 global lists defined in my form as:&lt;br /&gt;
&lt;br /&gt;
        List &amp;lt;CUserMem&amp;gt; MemoryBank = new List&amp;lt;CUserMem&amp;gt;(100);&lt;br /&gt;
        List &amp;lt;CUserMem&amp;gt; CombinedMemories = new List&amp;lt;CUserMem&amp;gt;(100);&lt;br /&gt;
&lt;br /&gt;
The first list is used by several functions. Sooner or later, I must do "garbage collection" in a different function and extract (copy) the useful elements of the first list into the second list. This works the first time, but when I do that, the references are then set to be the same. The next time I update an element in the first list, the paired entry in the second list is also updated. I don't want that.&lt;br /&gt;
&lt;br /&gt;
I tried to prevent this by reading the element of the first list into a temporary (local) variable and then copying the temp into the second list, but apparently when the local variable is destroyed the elements still have the same reference.&lt;br /&gt;
&lt;br /&gt;
What's the right way to fix this?&lt;br /&gt;
&lt;br /&gt;
Chuck</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409039/409039/copying-elements-of-global-lists/</guid>
      <pubDate>Tue, 10 Nov 2009 12:14:52 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>want to update the properties of all winforms and it's controls</title>
      <link>http://www.programmersheaven.com/mb/csharp/408931/408931/want-to-update-the-properties-of-all-winforms-and-its-controls/</link>
      <description>Hello Experts..&lt;br /&gt;
&lt;br /&gt;
I need your suggestions to acheive the following task:&lt;br /&gt;
&lt;br /&gt;
My project has 40 winforms with different controls (i.e Text boxes,Labels,Table layout panels,Datagrid,buttons...etc).&lt;br /&gt;
&lt;br /&gt;
I want to set the same properties for a control in all forms [ ex: if we take button control properties(like text color, style, image) should be same for all buttons on all forms].&lt;br /&gt;
&lt;br /&gt;
Why this ??&lt;br /&gt;
Want to display a control in all forms should be the same.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Rao&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408931/408931/want-to-update-the-properties-of-all-winforms-and-its-controls/</guid>
      <pubDate>Fri, 06 Nov 2009 11:29:48 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>table wont update fields</title>
      <link>http://www.programmersheaven.com/mb/csharp/408838/408838/table-wont-update-fields/</link>
      <description>hello here, i have one problem, here is code first&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;public void SaveToDb(HttpServerUtility Server, int JezikID)
    {
        OleDbConnection conn = new OleDbConnection(new Util(Server).ConnectionString);
        conn.Open();

        //save text

        OleDbCommand cmd = new OleDbCommand("Insert into Tekst (JezikID, Tekst, tekst_rijeci, tekst_znak) values (@JezikID, @Tekst, @tekst_rijeci, @tekst_znak)", conn);
        cmd.Parameters.Add(new OleDbParameter("@JezikID", JezikID));
        cmd.Parameters.Add(new OleDbParameter("@Tekst", m_Text));
        cmd.Parameters.Add(new OleDbParameter("@tekst_rijeci", BrojRijeci));
        cmd.Parameters.Add(new OleDbParameter("@tekst_znak", BrojZnakova));
        cmd.ExecuteNonQuery();
        cmd.Dispose();
        
        // Save letters of bigram

        foreach(Ngram ngram in m_bigramCharList)
        {
            cmd = new OleDbCommand("select ID from BigramChar where bigram = @bigram", conn);
              cmd.Parameters.Add(new OleDbParameter("@bigram", ngram.Znakovi));
            cmd.Parameters.Add(new OleDbParameter("@bigram_broj", ngram.Count));
            object NgramID = cmd.ExecuteScalar();
            cmd.Dispose();

            // if there is no ngram, insert, or if it is ngram, update...

            if (NgramID != null)
            {
                int iNgramID = (int)NgramID;                
            cmd = new OleDbCommand("UPDATE BigramChar SET bigram_broj =  bigram_broj + @bigram_broj, bigram_txt = bigram_txt + @bigram_txt WHERE ID = @ID", conn);
            cmd.Parameters.Add(new OleDbParameter("@ID", NgramID));
                cmd.Parameters.Add(new OleDbParameter("@JezikID", JezikID));
                cmd.Parameters.Add(new OleDbParameter("@bigram_broj", ngram.Count));
                cmd.Parameters.Add(new OleDbParameter("@bigram_txt", BrojZnakova));
                cmd.ExecuteNonQuery();
                cmd.Dispose();
                
            }
            else
            {
                cmd = new OleDbCommand("insert into BigramChar (JezikID, bigram, bigram_broj, bigram_txt) values (@JezikID, @bigram, @bigram_broj, @bigram_txt)", conn);
                cmd.Parameters.Add(new OleDbParameter("@JezikID", JezikID));
                cmd.Parameters.Add(new OleDbParameter("@bigram", ngram.Znakovi));
                cmd.Parameters.Add(new OleDbParameter("@bigram_broj", ngram.Count));
                cmd.Parameters.Add(new OleDbParameter("@bigram_txt", BrojZnakova));
                cmd.ExecuteNonQuery();
                cmd.Dispose();
            }
        }&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
so table wont update fields, i tried this&lt;br /&gt;
&lt;br /&gt;
here is my table with bigrams&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;ID	JezikID	bigram	bigram_broj	bigram_txt&lt;br /&gt;
922	5	ja	1	6&lt;br /&gt;
923	5	a 	1	6&lt;br /&gt;
924	5	 t	1	6&lt;br /&gt;
925	5	ti	1	6&lt;br /&gt;
926	5	i 	1	6&lt;br /&gt;
927	5	 o	1	6&lt;br /&gt;
928	5	on	1	6&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;foreach(Ngram ngram in m_bigramCharList)
        {
            cmd = new OleDbCommand("select ID from BigramChar where bigram = @bigram", conn);
			cmd.Parameters.Add(new OleDbParameter("@bigram", ngram.Znakovi));
			object NgramID = cmd.ExecuteScalar();
			cmd.Dispose();
			...

if (NgramID != null)
            {
                int iNgramID = (int)NgramID;
                    
                &lt;strong&gt;cmd = new OleDbCommand("insert into tbl_ID (charID) VALUES (@ID)", conn);&lt;/strong&gt;
				cmd.Parameters.Add(new OleDbParameter("@ID", iNgramID));
				...&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
i have this in new table with ID of each bigram&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;ID	charID&lt;br /&gt;
590	922                                             - ID of ja&lt;br /&gt;
591	923						- ID of a&lt;br /&gt;
592	924						- ...&lt;br /&gt;
593	925&lt;br /&gt;
594	926&lt;br /&gt;
595	927&lt;br /&gt;
596	928&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
so he found ID and he still does not want to update, if i try to do it like this and after i change the code and use exact numbers for &lt;strong&gt;@bigram_txt&lt;/strong&gt; and &lt;strong&gt;@bigram_broj&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;foreach(Ngram ngram in m_bigramCharList)
        {
            cmd = new OleDbCommand("select ID from BigramChar where bigram = @bigram", conn);
			cmd.Parameters.Add(new OleDbParameter("@bigram", ngram.Znakovi));
			object NgramID = cmd.ExecuteScalar();
			cmd.Dispose();
			...

if (NgramID != null)
            {
                int iNgramID = (int)NgramID;
                    
                &lt;strong&gt;cmd = new OleDbCommand("UPDATE BigramChar SET bigram_broj =  bigram_broj + 1, bigram_txt = bigram_txt + 2 WHERE ID = @ID", conn);&lt;/strong&gt;
				cmd.Parameters.Add(new OleDbParameter("@ID", iNgramID));
				...&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
he update fields with 1 or 2 it depends how much bigrams he found.&lt;br /&gt;
bigram is for example from word = "preview" &lt;br /&gt;
1. pr&lt;br /&gt;
2. re&lt;br /&gt;
3. ev&lt;br /&gt;
4. vi&lt;br /&gt;
5. ie&lt;br /&gt;
6. ew&lt;br /&gt;
&lt;br /&gt;
can someone help me with this please&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408838/408838/table-wont-update-fields/</guid>
      <pubDate>Wed, 04 Nov 2009 16:10:17 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Active Directories</title>
      <link>http://www.programmersheaven.com/mb/csharp/408688/408688/active-directories/</link>
      <description>Hi All,&lt;br /&gt;
Has anyone worked with the Active Directories in .NET using c# . I have a task to access the active directory and retrieve the user information from thr directory. So, I will like to know that whether admin priveleges are required to access the information using c# and also methods to retrieve the information..&lt;br /&gt;
&lt;br /&gt;
Please help me on this.&lt;br /&gt;
Thanks bye&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408688/408688/active-directories/</guid>
      <pubDate>Sun, 01 Nov 2009 21:19:30 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: HELP ME! CODING ERROR!</title>
      <link>http://www.programmersheaven.com/mb/csharp/388364/408678/re-help-me-coding-error/#408678</link>
      <description>Just simply remove the first boxes you entered, the IF statement alone is sufficient for exit box, see below&lt;br /&gt;
//CODE&lt;br /&gt;
&lt;br /&gt;
private void button1_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
if (MessageBox.Show"Are you Sure to Exit. Click Yes to Confirm and No to continue", "WinForm", MessageBoxButtons.YesNo, MessageBoxIcon.Question)== DialogResult.Yes)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
Application.Exit();&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
MessageBox.Show("Thanx for not terminating me!", "As you wish",MessageBoxButtons.OK, MessageBoxIcon.Information);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/388364/408678/re-help-me-coding-error/#408678</guid>
      <pubDate>Sun, 01 Nov 2009 14:50:53 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Interactive Hello World question</title>
      <link>http://www.programmersheaven.com/mb/csharp/408670/408670/interactive-hello-world-question/</link>
      <description>I am working through the C# e-book. Here is the code for the part I have a question about:&lt;br /&gt;
&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace InteractiveHelloWorld&lt;br /&gt;
{&lt;br /&gt;
    class MainClass&lt;br /&gt;
    {&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
            Console.Write("Please enter your name: ");&lt;br /&gt;
            string name = Console.ReadLine();&lt;br /&gt;
            Console.WriteLine&lt;br /&gt;
            ("Hello {0}, Good Luck in C#", name);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
When I click Start Debugging in Visual Studio 2008, it pops up a command prompt window asking me my name, like it should. But when I type in my name and hit enter, it then displays the next line (Hello Marc, Good Luck in C#) and then &lt;span style="text-decoration: underline;"&gt;immediately&lt;/span&gt; closes.&lt;br /&gt;
&lt;br /&gt;
Is it supposed to close so fast like this? It only displays the second line for like a 10th of a second before closing. I can hardly even read the second line before it closes. Am I doing something wrong or is this normal?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408670/408670/interactive-hello-world-question/</guid>
      <pubDate>Sun, 01 Nov 2009 11:23:03 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>class file in C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/408625/408625/class-file-in-c/</link>
      <description>hey guys just need some help here..i don't know how program it in C#..&lt;br /&gt;
&lt;br /&gt;
i need a class file in C# using Microsoft Visual Studio 2008 that will save inputted data to the MySQL database..and also a class file that will transfer data from a table to another table in the database..pls badly need it..looking forward to your immediate response..tnx so much&lt;br /&gt;
&lt;br /&gt;
P.S. can you send the files(database files and class files) in my email?daisukeunknown@yahoo.com&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408625/408625/class-file-in-c/</guid>
      <pubDate>Sat, 31 Oct 2009 04:10:27 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>class file in C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/408624/408624/class-file-in-c/</link>
      <description>hey guys just need some help here..i don't know how program it in C#..&lt;br /&gt;
&lt;br /&gt;
i need a class file in C# using Microsoft Visual Studio 2008 that will save inputted data to the MySQL database..and also a class file that will transfer data from a table to another table in the database..pls badly need it..looking forward to your response..tnx so much&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/408624/408624/class-file-in-c/</guid>
      <pubDate>Sat, 31 Oct 2009 04:04:23 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: search algorithmn for 8 puzzles</title>
      <link>http://www.programmersheaven.com/mb/csharp/394587/408492/re-search-algorithmn-for-8-puzzles/#408492</link>
      <description>Sorry. You need to do it yourself. I wont do any update for this code anymore. It's just very simple modification as I've already provided completed source code. Good time for you to learn. Good Luck.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/394587/408492/re-search-algorithmn-for-8-puzzles/#408492</guid>
      <pubDate>Wed, 28 Oct 2009 12:35:53 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: search algorithmn for 8 puzzles</title>
      <link>http://www.programmersheaven.com/mb/csharp/394587/408490/re-search-algorithmn-for-8-puzzles/#408490</link>
      <description>thank you very much i want to enter these states by the user please help me&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/394587/408490/re-search-algorithmn-for-8-puzzles/#408490</guid>
      <pubDate>Wed, 28 Oct 2009 12:31:18 -0700</pubDate>
      <category>C#</category>
    </item>
  </channel>
</rss>