<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - C#</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our C# forum is the place for Q&A-style discussions related to the programming language known as Microsoft's response to java. Note that we also have an ASP.NET forum within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 07 Nov 2009 22:18:39 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - C#</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Best way to handle column conversion for DataTable.Load</title>
			<link>http://www.daniweb.com/forums/thread236861.html</link>
			<pubDate>Sat, 07 Nov 2009 20:35:13 GMT</pubDate>
			<description><![CDATA[Hello friends! I have some database tables that store Image/Bitmap as part of each record as a Byte[]. I also have method that loads all the tables records into a DataTable and I would like some suggestions on how I can get this Byte[] column in my DataTable to be of type  
System.Drawing.Image...]]></description>
			<content:encoded><![CDATA[<div>Hello friends! I have some database tables that store Image/Bitmap as part of each record as a Byte[]. I also have method that loads all the tables records into a DataTable and I would like some suggestions on how I can get this Byte[] column in my DataTable to be of type <br />
System.Drawing.Image after or during the load from the  <pre style="margin:20px; line-height:13px">DbDataReader</pre>.<br />
<br />
Thanks in advance!<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; public DataTable SelectAll(string tableName, DbConnection conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataTable dt = new DataTable();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string query = &quot;SELECT * FROM &quot; + tableName;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (DbCommand cmd = GetDbCommand(query, conn))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (DbDataReader dr = cmd.ExecuteReader())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dt.Load(dr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (DbException ex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Exception: {0}\r\n&nbsp;  Stack Trace: {1}&quot;, ex.Message, ex.StackTrace);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Diagnostics.Debugger.Break();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return dt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>DdoubleD</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236861.html</guid>
		</item>
		<item>
			<title>Problem with ComboBox display</title>
			<link>http://www.daniweb.com/forums/thread236829.html</link>
			<pubDate>Sat, 07 Nov 2009 17:25:54 GMT</pubDate>
			<description>Hi all, 
For a combobox I was trying to imitate the behaviour of this code example:http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember.aspx 
So I have this class: 
class Planet 
    { 
        private string myName; 
        private double...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
For a combobox I was trying to imitate the behaviour of this code example:<a rel="nofollow" class="t" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.valuemember.aspx" target="_blank">http://msdn.microsoft.com/en-us/libr...luemember.aspx</a><br />
So I have this class:<br />
 <pre style="margin:20px; line-height:13px">class Planet<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private string myName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private double myGravitationalAcceleration;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Planet(string strName, double Acceleration)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.myName = strName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.myGravitationalAcceleration = Acceleration;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public string Name<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return myName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public double GravitationalAcceleration<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return myGravitationalAcceleration;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre>And a form with a combobox on it and this code:<br />
 <pre style="margin:20px; line-height:13px">public partial class InputData : Form<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public InputData()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;Planet&gt; Planets = new List&lt;Planet&gt;();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Earth at equator 0°&quot;, 9.78));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Earth at equinox 23.5°&quot;, 9.788));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Earth at lattitude 50°&quot;, 9.81));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Earth at pole 90°&quot;, 9.83));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Moon&quot;, 1.63));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Mars&quot;, 3.69));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Venus&quot;, 8.87));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Planets.Add(new Planet(&quot;Titan&quot;, 1.352));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraviAccelCombo.DataSource = Planets;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //add names of properties here, seems cool!<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraviAccelCombo.DisplayMember = &quot;Name&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraviAccelCombo.ValueMember = &quot;GravitationalAcceleration&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //private void GraviAccelCombo_SelectedIndexChanged(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; //{<br />
&nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; GraviAccelCombo.Text = GraviAccelCombo.SelectedValue.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; //}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void GraviAccelCombo_SelectedValueChanged(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (GraviAccelCombo.SelectedIndex != -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraviAccelCombo.Text = GraviAccelCombo.SelectedValue.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre><br />
What I want is: the user selects a planet(yeah there are moons too) name and in the display area of the combo I like to display the gravitational acceleration value. So if I select &quot;Venus&quot; from the dropdownlist, GraviAccelCombo.Text is equal to 8.87, but the word &quot;Venus&quot; gets still displayed instead of &quot;8.87&quot;. Have a feeling it must be something very obvious, but I have no clue what so ever.<br />
Any help is again greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>ddanbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236829.html</guid>
		</item>
		<item>
			<title>Problem with 2 forms working together.</title>
			<link>http://www.daniweb.com/forums/thread236794.html</link>
			<pubDate>Sat, 07 Nov 2009 14:24:27 GMT</pubDate>
			<description><![CDATA[I have a main form which is going to use much input data typed in by the user. So I thought to make a separate form to handle the input. The closest to a solution was this thread http://www.daniweb.com/forums/thread231368.html 
But I don't want the second form to be disposed off, or be closed by...]]></description>
			<content:encoded><![CDATA[<div>I have a main form which is going to use much input data typed in by the user. So I thought to make a separate form to handle the input. The closest to a solution was this thread <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread231368.html" target="_blank">http://www.daniweb.com/forums/thread231368.html</a><br />
But I don't want the second form to be disposed off, or be closed by clicking the close icon. I like to store the input data in the second form(seems logical to me) and let the main form use them.<br />
I don't want the input form to be visible all of the time. Just want to let it pop up when the user needs it(via menu or button, don't know yet)<br />
This is my code so far a main form with a button and a click event and an inputdata form:<br />
   <pre style="margin:20px; line-height:13px"> public partial class Form1 : Form<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private InputData InputForm = new InputData();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Form1()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void button1_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InputForm.Show();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre>Not very much, I know. But what would be the most elegant way to handle this?<br />
As always, any help is greatly appreciated.:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>ddanbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236794.html</guid>
		</item>
		<item>
			<title>key strength</title>
			<link>http://www.daniweb.com/forums/thread236765.html</link>
			<pubDate>Sat, 07 Nov 2009 11:43:35 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm trying to create a program which provides a key strength. Visual studio don't show errors, but the program hangs on QuadWordFromBigEndian functions. Whats wrong?  
Program stop workin on this line: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm trying to create a program which provides a key strength. Visual studio don't show errors, but the program hangs on QuadWordFromBigEndian functions. Whats wrong? <br />
Program stop workin on this line:<br />
 <pre style="margin:20px; line-height:13px">01.x = (&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (((UInt64)block[0]) &lt;&lt; 56) | (((UInt64)block[1]) &lt;&lt; 48) |&nbsp;  <br />
02.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[2]) &lt;&lt; 40) | (((UInt64)block[3]) &lt;&lt; 32) |&nbsp;  <br />
03.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[4]) &lt;&lt; 24) | (((UInt64)block[5]) &lt;&lt; 16) |&nbsp;  <br />
04.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[6]) &lt;&lt; 8) | ((UInt64)block[7])&nbsp;  <br />
05.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );</pre><br />
An show this error: <br />
<br />
&quot;Index was outside the bounds of the array.&quot;  <br />
<br />
But I do not know how to fix. What should be the array index.<br />
<br />
Thanks <br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">private void button1_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; byte[] sec_key = System.Text.Encoding.UTF8.GetBytes(textBox1.Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (IsWeakKey(sec_key)) { label1.Text = &quot;Yes&quot;; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else { label1.Text = &quot;No&quot;; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static bool IsLegalKeySize(byte[] sec_key) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sec_key.Length == 8) return(true); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return(false); <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static UInt64 QuadWordFromBigEndian(byte[] block)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UInt64 x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[0]) &lt;&lt; 56) | (((UInt64)block[1]) &lt;&lt; 48) |<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[2]) &lt;&lt; 40) | (((UInt64)block[3]) &lt;&lt; 32) |<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[4]) &lt;&lt; 24) | (((UInt64)block[5]) &lt;&lt; 16) |<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (((UInt64)block[6]) &lt;&lt; 8) | ((UInt64)block[7])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (x);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static bool IsWeakKey(byte[] sec_key)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UInt64 key = QuadWordFromBigEndian(sec_key);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((key == 0x0101010101010101) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (key == 0xfefefefefefefefe) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (key == 0x1f1f1f1f0e0e0e0e) ||<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (key == 0xe0e0e0e0f1f1f1f1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Lolalola</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236765.html</guid>
		</item>
		<item>
			<title>getting binary data out of the database</title>
			<link>http://www.daniweb.com/forums/thread236760.html</link>
			<pubDate>Sat, 07 Nov 2009 10:24:53 GMT</pubDate>
			<description><![CDATA[I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code:<br />
 <pre style="margin:20px; line-height:13px">byte[] myFile = Encoding.UTF8.GetBytes(richTextBox1.Text);</pre>Here the text is changed into binary data, and them I add parameters and all whats needed, and finally:<br />
 <pre style="margin:20px; line-height:13px">cmd1.ExecuteNonQuery();</pre>Then, when I want to open it, it opens in word (the code is made, that it opens in this program - depending on an extention and a file type). <br />
<br />
So, when the Word is starting up, 1st it asks me if I want to change it (to use some other coding). I select nothing and click Ok. The text is there but it is not in the shape I inserted it into richTextBox. The font are all the same and are in Courier New (I didn`t save the the text in with this font, and even the text was not all the same).<br />
<br />
Anyone has any clue how to get the same text out, as I saw inserted into richTextBox?  Is this maybe anything to do with richTextBox, or this is only a matter of coding?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Mitja Bonca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236760.html</guid>
		</item>
		<item>
			<title>Can I have some help on storing a running total and how to exit out for each section?</title>
			<link>http://www.daniweb.com/forums/thread236633.html</link>
			<pubDate>Fri, 06 Nov 2009 20:19:15 GMT</pubDate>
			<description><![CDATA[Hello Guys, 
 
I am trying to code this assignment below but I can't seem to get the running total 
stored for each user that I have listed below(A, B, E).  Can someone guide me on how 
I can store the running total for each user so that I can have it stored when the 
user enters "Z"?  I have...]]></description>
			<content:encoded><![CDATA[<div>Hello Guys,<br />
<br />
I am trying to code this assignment below but I can't seem to get the running total<br />
stored for each user that I have listed below(A, B, E).  Can someone guide me on how<br />
I can store the running total for each user so that I can have it stored when the<br />
user enters &quot;Z&quot;?  I have searched on different webpages and forums but I have yet<br />
to find one that helps?  I joined this forum to help me in my assistance to<br />
conquer .NET(C#)so that I can be a developer in this.  Can someone assist me kindly?<br />
(I am a current I.T. professional and this sucks that I can't seem to solve it, it seems<br />
so simple.)<br />
<br />
Assignment question:<br />
<br />
Three salespeople work at Sunshine Hot Tubs-Andrea, Brittany, and Eric.  <br />
Write a program that prompts the user for a salesperson’s initial (‘A’,’B’, or’E’). <br />
 While the user does not type ‘Z’, continue by prompting for the amount of <br />
a sale the salesperson made.  Calculate the salesperson’s commission as <br />
10 percent of the sale amount, and add the commission to a running total <br />
for that salesperson.  After the user types ‘Z’ for an initial, display each <br />
salesperson’s total commission earned.<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
public class TubSales<br />
{<br />
&nbsp; &nbsp; public static void Main()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; string inputString;//This grabs the user's response for the salespersons initial.<br />
&nbsp; &nbsp; &nbsp; &nbsp; char response;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please enter a salesperson's initial('A' for Andrea, 'B' for Brittany and 'E' for Eric and 'Z'to display each saleperson's total commmission earned)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; response = Convert.ToChar(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_A = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_B = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_E = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double commission = 0.10 * saleAmount;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (response != 'Z')<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'A')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_A = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_A += saleAmount;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'B')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_B = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_B += commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'E')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_E = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_E += commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (response == 'Z')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;The total commission for each salesperson respectively is: Andrea with {0}, Brittany with {1} and Eric with {2}.&quot;, saleAmount_A.ToString(&quot;C&quot;), saleAmount_B.ToString(&quot;C&quot;), saleAmount_E.ToString(&quot;C&quot;));<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>choosenalpha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236633.html</guid>
		</item>
		<item>
			<title>Active Directory Query and TreeView Help</title>
			<link>http://www.daniweb.com/forums/thread236566.html</link>
			<pubDate>Fri, 06 Nov 2009 13:44:17 GMT</pubDate>
			<description><![CDATA[Hey guys, I am writing an Active Directory Tool and I created a Dictionary<> that iterates through all of the available attributes from the LDAP server. The Keys are the names of the attributes (displayname, samaccountname, gn, sn, etc), the TValues are the associated values to the keys. I am able...]]></description>
			<content:encoded><![CDATA[<div>Hey guys, I am writing an Active Directory Tool and I created a Dictionary&lt;&gt; that iterates through all of the available attributes from the LDAP server. The Keys are the names of the attributes (displayname, samaccountname, gn, sn, etc), the TValues are the associated values to the keys. I am able to add the Keys to a TreeView, but I need help adding all of the values as child nodes under it's appropriate Node. Any help would be greatly appreciated. <br />
<br />
Here is the code:<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp;private void srchByID()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string Search = txtSearch.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Root = Searcher.DE(&quot;contoso.com&quot;, &quot;administrator&quot;, &quot;system32!&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ADSearch = Searcher.DS(Root);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ADSearch.Filter = &quot;(&amp;(objectClass=person)(&quot; + SearchType + &quot;=&quot; + Search + &quot;))&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ADSearch.Filter = Searcher.Filter(&quot;Person&quot;, &quot;SAMAccountName&quot;, Search);&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SearchResultCollection results = ADSearch.FindAll();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (SearchResult result in results)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dictionary&lt;string, ResultProperty&gt;.KeyCollection kc = BuildResult(result).Keys; //This passes a Dictionary to 'kc'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (string key in kc) //iterate through dictionary and add keys to TreeView.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TreeNode node = default(TreeNode);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; node = treeView1.Nodes.Add(key);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; node.Tag = key;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dictionary&lt;string, ResultProperty&gt;.ValueCollection vc = BuildResult(result).Values;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (ResultProperty value in vc)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // This is where I am needing help//<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //The code here should be a child node of the keys.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultPropertyCollection rpc = result.Properties; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtLogonName.Text = DATA.GetRSString(&quot;SAMAccountName&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtDisplayName.Text = DATA.GetRSString(&quot;DisplayName&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtEmail.Text = DATA.GetRSString(&quot;Mail&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtADsPath.Text = DATA.GetRSString(&quot;ADSPath&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtTelephoneNumber.Text = DATA.GetRSString(&quot;TelephoneNumber&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtSecretQuestion.Text = DATA.GetRSString(&quot;ExtensionAttribute1&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtTitle.Text = DATA.GetRSString(&quot;Title&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtDepartment.Text = DATA.GetRSString(&quot;Department&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtHomeDirectory.Text = DATA.GetRSString(&quot;HomeDirectory&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtBadPasswordCount.Text = DATA.GetRSString(&quot;BadPwdCount&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtCreatedOn.Text = DATA.GetRSString(&quot;WhenCreated&quot;, rpc);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtID.Text = DATA.GetRSString(&quot;Company&quot;, rpc);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridView1.Rows.Add(DATA.GetRSString(&quot;SAMAccountName&quot;, rpc), DATA.GetRSString(&quot;Mail&quot;, rpc), DATA.GetRSString(&quot;DisplayName&quot;, rpc), DATA.GetRSString(&quot;ExtensionAttribute1&quot;, rpc), DATA.GetRSString(&quot;Company&quot;, rpc));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (results.Count == 0) MessageBox.Show(&quot;Unable to find: &quot; + &quot;&quot; + Search + &quot;&quot;, &quot;Object Not Found&quot;, MessageBoxButtons.OK, MessageBoxIcon.Error);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else ADSearch.Dispose();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (COMException ex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;&quot; + ex.Message + &quot;&quot;, &quot;Query Failed&quot;, MessageBoxButtons.OK, MessageBoxIcon.Error);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sanch01r</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236566.html</guid>
		</item>
		<item>
			<title>Retrieveing binary data</title>
			<link>http://www.daniweb.com/forums/thread236539.html</link>
			<pubDate>Fri, 06 Nov 2009 10:37:56 GMT</pubDate>
			<description><![CDATA[I did like: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>C#...]]></description>
			<content:encoded><![CDATA[<div>I did like:<br />
<br />
 <pre style="margin:20px; line-height:13px">FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @&quot;\MyTempDir&quot; + listBox1.SelectedItem&quot;, FileMode.Create);</pre>And you know what happens? It partly works. It opens the files (if its a pdf file, it opens in a acrobat reader, if doc it opens in word,...) but there is no file in that directory.  listBox1.SelectedItem hold the full name of the file (like: &quot;myFile.doc&quot;).<br />
<br />
Strange, why is not there?  The code go through well, it creates the file, but the file it is not shown in the specified (MyTempDir) folder.<br />
<br />
-----------------------------------------------------------------------------------------------------------------------------------------------------------<br />
<br />
If I just simply declare the file name in the code like:<br />
<br />
 <pre style="margin:20px; line-height:13px">FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @&quot;\MyTempDir&quot; + @&quot;\myFile.doc&quot;, FileMode.Create);</pre>It again creates the file but this time it even phisicly appears in the specified (MyTempDir) folder.  <br />
<br />
Why is there the difference between these two example?  <br />
<br />
 <br />
<br />
Any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Mitja Bonca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236539.html</guid>
		</item>
		<item>
			<title>Binding data to the custom DataGridView</title>
			<link>http://www.daniweb.com/forums/thread236515.html</link>
			<pubDate>Fri, 06 Nov 2009 08:38:57 GMT</pubDate>
			<description>All, 
 
I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using  
 
C# and .NET). Now, I could able to use it properly by placing it on a panel control. I have added label as button on panel control to display  
...</description>
			<content:encoded><![CDATA[<div>All,<br />
<br />
I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using <br />
<br />
C# and .NET). Now, I could able to use it properly by placing it on a panel control. I have added label as button on panel control to display <br />
<br />
data from datasource on to datagrid and create a binding source. Another Label which act as a button is used to update data from grid to <br />
<br />
databse. <br />
<br />
Issue: I pressed show label to display data in a dsatagridview. Modified the grid cell value and immediately pressed update label which is on <br />
<br />
same panel control. I observed that, the cursor is still in the grid cell when I press Save button. While saving, the cell value is null even <br />
<br />
though I have entered something in the presentation layer. My expected behaviour is to get the modified value while saving.<br />
<br />
 Special Case: After typing something in the grid cell, if I click on somewhere else like the row below where I entered something, before I <br />
<br />
click on Save button, it is working fine. (Here, mainly I tried to remove the focus from the currently modified cell)<br />
<br />
Is there any way to bind sources before I click on save button? Please suggest me.<br />
<br />
Please feel free to ask me if you need any information.<br />
<br />
I have also seen same kind of problem on this forum, but unfortunately the author got the answer and didnt post it back.<br />
<br />
here is that URL: <br />
<br />
<a rel="nofollow" class="t" href="http://social.msdn.microsoft.com/Forums/en/winformsdesigner/thread/54dcc87a-adc2-4965-b306-9aa9e79c2946" target="_blank">http://social.msdn.microsoft.com/For...6-9aa9e79c2946</a> <br />
<br />
Please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>jchaturv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236515.html</guid>
		</item>
		<item>
			<title>Field Initialiser problem</title>
			<link>http://www.daniweb.com/forums/thread236512.html</link>
			<pubDate>Fri, 06 Nov 2009 08:10:29 GMT</pubDate>
			<description>Hi C# friends,... 
My code goes like this for creating a library..... 
 
using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Net; 
using System.Net.Sockets; 
using System.Threading;</description>
			<content:encoded><![CDATA[<div>Hi C# friends,...<br />
My code goes like this for creating a library.....<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Net;<br />
using System.Net.Sockets;<br />
using System.Threading;<br />
<br />
<br />
namespace ClientLibrary<br />
{<br />
&nbsp; &nbsp; public class ClientLibrary<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private&nbsp; bool connectionStatus;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private&nbsp; Socket oClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; private Thread Receiving_Thread = new Thread(receiveFromServer);<br />
&nbsp; &nbsp; &nbsp; &nbsp; public&nbsp; String receivedMessage;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void connectToMessageServer()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oClientSocket.Connect(&quot;CCPCOMP1&quot;, 5000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connectionStatus = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Receiving_Thread.Start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception exep)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connectionStatus = false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void sendToServer(String messageToBeSent)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Encoding ASCII = Encoding.ASCII;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Byte&#91;&#93; messageToBeSentInBytes = ASCII.GetBytes(messageToBeSent);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oClientSocket.Send(messageToBeSentInBytes);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception exep)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public&nbsp; void receiveFromServer()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Encoding ASCII = Encoding.ASCII;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Byte&#91;&#93; receiveMessageInBytes = new Byte&#91;100&#93;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oClientSocket.Receive(receiveMessageInBytes);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; receivedMessage = ASCII.GetString(receiveMessageInBytes);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception exep)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; }<br />
}</pre><br />
<br />
<br />
<br />
<br />
<br />
When i compile it i get the error<br />
Error	4	A field initializer cannot reference the nonstatic field, method, or property 'ClientLibrary.ClientLibrary.receiveFromServer()'	c:\MyFTP\ClientLibrary\ClientLibrary\ClientLibrary\Main.cs	15	54	ClientLibrary<br />
<br />
<br />
PLease help me outtt.....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>themigrant</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236512.html</guid>
		</item>
		<item>
			<title>Enable Macros</title>
			<link>http://www.daniweb.com/forums/thread236500.html</link>
			<pubDate>Fri, 06 Nov 2009 07:14:27 GMT</pubDate>
			<description><![CDATA[Hi! 
I'm having some problem with Macros in VC#.When i opened the Macros window and checking the samples like Accessibility, VSEditor,VSDebugger  in Macros Window, I dont know what  had happened,all the c# coding lines has converted to single color,i.e.BLACK.The code is not showing the different...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
I'm having some problem with Macros in VC#.When i opened the Macros window and checking the samples like Accessibility, VSEditor,VSDebugger  in Macros Window, I dont know what  had happened,all the c# coding lines has converted to single color,i.e.BLACK.The code is not showing the different colors for the namespace,Commented lines etc.  all are in same colori.e. there is no difference between namespace,Commented lines .<br />
Can  anyone please help me on this,how to change   the colors of namespace,Commented lines to its original colors.<br />
<br />
I think that the Macros r disabled.How to enable it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>arunkumars</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236500.html</guid>
		</item>
		<item>
			<title>using INI(setting) file in c#</title>
			<link>http://www.daniweb.com/forums/thread236486.html</link>
			<pubDate>Fri, 06 Nov 2009 05:48:01 GMT</pubDate>
			<description><![CDATA[hi, 
I want to access ini file in my application , which asked for the centre ID b4 login & starts, it asked this only for one tym when it start at first tym & never asked this question again. 
The second reason to use ini file is , i want to pass a string of database connection from the ini file...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
I want to access ini file in my application , which asked for the centre ID b4 login &amp; starts, it asked this only for one tym when it start at first tym &amp; never asked this question again.<br />
The second reason to use ini file is , i want to pass a string of database connection from the ini file to my connection.dll file, bcz the connections details can be change in future, so i cnt hard coded it in my application.<br />
Can any one tell me how to use this from ini file.<br />
actually i m new to these file concepts , so i hv no idea for that. so pls provide me some steps or code 4 that.<br />
Thanx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kool.net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236486.html</guid>
		</item>
		<item>
			<title>Returning an array of objects</title>
			<link>http://www.daniweb.com/forums/thread236407.html</link>
			<pubDate>Thu, 05 Nov 2009 23:04:20 GMT</pubDate>
			<description><![CDATA[Hello, I'm a newbie on C# and I have a question in two parts. 
Say I have a class Team that defines name and location. I need to write a method that returns an array of Teams. 
My first question is... by best pracitce, should I define this method within my Team class? or should it be out side since...]]></description>
			<content:encoded><![CDATA[<div>Hello, I'm a newbie on C# and I have a question in two parts.<br />
Say I have a class Team that defines name and location. I need to write a method that returns an array of Teams.<br />
My first question is... by best pracitce, should I define this method within my Team class? or should it be out side since its returning an array of teams.... (or it doesn't matter)<br />
My second question is, what's the best way to return an array of objects? ArrayList?<br />
<br />
Thanks in advance!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>yodito</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236407.html</guid>
		</item>
		<item>
			<title>Retrieveing binary data out of the database</title>
			<link>http://www.daniweb.com/forums/thread236358.html</link>
			<pubDate>Thu, 05 Nov 2009 19:44:31 GMT</pubDate>
			<description>1. How to retrieve stored file our of the database? 
 
have stored (for example) a pdf file into database, as a data type of varbinary(MAX) - binary data. How can I get this file back, like it was before? 
 
 
 
Important things I have stored for the particular file are: 
 
- ID</description>
			<content:encoded><![CDATA[<div>1. How to retrieve stored file our of the database?<br />
<br />
have stored (for example) a pdf file into database, as a data type of varbinary(MAX) - binary data. How can I get this file back, like it was before?<br />
<br />
<br />
<br />
Important things I have stored for the particular file are:<br />
<br />
- ID<br />
<br />
- File name<br />
<br />
- File type (pdf, word, ... document)<br />
<br />
- and of course the content (which is now in binary data)<br />
<br />
<br />
<br />
2. One more small thing:<br />
<br />
I would like to get the ID from a Method1 which retrieves the ID, into another Method2 (in the same class), where I will use this ID as a variable.<br />
<br />
I have this code for examle:<br />
<br />
 <pre style="margin:20px; line-height:13px">private void listBox1_SelectedIndexChanged(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int IDDocument; //How to get into IDDocument an ID value from the GetID method (from int Doc_ID)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GetID(IDDocument);&nbsp; //I got an error here: Use of unassigned local variable 'IDDocument<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string SQL = &quot;SELECT Content FROM Documents WHERE DocumentID = '&quot; + IDDocoment + &quot;'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //...<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void GetID(int Doc_ID)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string DocID = &quot;SELECT DocumentID FROM Documents WHERE Name = '&quot; + listBox1.SelectedItem + &quot;'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlCommand cmd = new SqlCommand(DocID, sqlConn);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.CommandType = CommandType.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlConn.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlDataReader reader = cmd.ExecuteReader();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (reader.Read())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Doc_ID = reader.GetInt32(0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reader.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlConn.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Mitja Bonca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236358.html</guid>
		</item>
		<item>
			<title>MySql table data always null values on INSERT</title>
			<link>http://www.daniweb.com/forums/thread236323.html</link>
			<pubDate>Thu, 05 Nov 2009 17:01:57 GMT</pubDate>
			<description>A few days ago I decided to install MySql v1.2.17 and I downloaded a client class library: MySql.Data.dll v5.0.9.0 (by MySQL AB). I included the client classes inside my wrapper class and had it creating, dropping, inserting, and deleting tables..., or so I thought. I guess I never actually looked...</description>
			<content:encoded><![CDATA[<div>A few days ago I decided to install MySql v1.2.17 and I downloaded a client class library: MySql.Data.dll v5.0.9.0 (by MySQL AB). I included the client classes inside my wrapper class and had it creating, dropping, inserting, and deleting tables..., or so I thought. I guess I never actually looked at the records it was creating from my test class.<br />
<br />
<span style="font-weight:bold">Here is the problem:</span> All my row data is always NULL values and I cannot figure out why this is! I broke out the wrapper code and placed base class calls into a simple set of statements as represented here:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; public static void MySqlTestInsert()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string connStr = TestDbWrapper.BuildConnectionString(DbWrapperType.MySql);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string insertCmd = &quot;INSERT INTO TestDbWrapper &quot; +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;(FieldInt32, FieldVarchar_50, FieldBoolean, FieldDateTime) Values &quot; +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;(@FieldInt32, @FieldVarchar_50, @FieldBoolean, @FieldDateTime)&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (MySqlConnection conn = (MySqlConnection)DbWrapper.GetDbConnection(DbWrapperType.MySql, connStr))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (MySqlCommand cmd = new MySqlCommand(insertCmd, conn))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.Add(new MySqlParameter(&quot;@FieldInt32&quot;, 10));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.Add(new MySqlParameter(&quot;@FieldVarchar_50&quot;, &quot;some text...&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.Add(new MySqlParameter(&quot;@FieldBoolean&quot;, true));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.Add(new MySqlParameter(&quot;@FieldDateTime&quot;, DateTime.Now));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.ExecuteNonQuery();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (DbException ex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Exception: {0}\r\n&nbsp;  Stack Trace: {1}&quot;, ex.Message, ex.StackTrace);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
I don't get any errors, just NULL values in my columns. I have full schema privileges for the database and am able drop, create, and select just fine--though all the values are NULL because that is how they are being inserted.<br />
<br />
Any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>DdoubleD</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236323.html</guid>
		</item>
		<item>
			<title>Hi, I dont get what Iv done wrong</title>
			<link>http://www.daniweb.com/forums/thread236306.html</link>
			<pubDate>Thu, 05 Nov 2009 15:40:54 GMT</pubDate>
			<description>Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in a picturebox, I am drawing the fractal to a bitmap then getting the...</description>
			<content:encoded><![CDATA[<div>Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in a picturebox, I am drawing the fractal to a bitmap then getting the picturebox to display the bitmap. If anyone can explain what Im doing wrong that would be great.<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Drawing.Drawing2D;<br />
using System.Design;<br />
<br />
namespace Assignment_Attempt_3<br />
{<br />
&nbsp; &nbsp; public partial class Form1 : Form<br />
&nbsp; &nbsp; {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Form1()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Image bp = new Bitmap(this.pictureBox1.Height,this.pictureBox1.Width);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Graphics g1 = Graphics.FromImage(bp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pictureBox1.Image = bp;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public struct HSBColor<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; float h;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float s;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int a;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public HSBColor(float h, float s, float b)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.a = 0xff;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.h = Math.Min(Math.Max(h, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.s = Math.Min(Math.Max(s, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.b = Math.Min(Math.Max(b, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public HSBColor(int a, float h, float s, float b)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.a = a;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.h = Math.Min(Math.Max(h, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.s = Math.Min(Math.Max(s, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.b = Math.Min(Math.Max(b, 0), 255);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public float H<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return h; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public float S<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return s; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public float B<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return b; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public int A<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return a; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Color Color<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FromHSB(this);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public static Color FromHSB(HSBColor hsbColor)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float r = hsbColor.b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float g = hsbColor.b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float b = hsbColor.b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (hsbColor.s != 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float max = hsbColor.b;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float dif = hsbColor.b * hsbColor.s / 255f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float min = hsbColor.b - dif;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float h = hsbColor.h * 360f / 255f;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (h &lt; 60f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = h * dif / 60f + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (h &lt; 120f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = -(h - 120f) * dif / 60f + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (h &lt; 180f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = (h - 120f) * dif / 60f + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (h &lt; 240f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = -(h - 240f) * dif / 60f + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (h &lt; 300f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = (h - 240f) * dif / 60f + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (h &lt;= 360f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = -(h - 360f) * dif / 60 + min;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.FromArgb<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hsbColor.a,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int)Math.Round(Math.Min(Math.Max(r, 0), 255)),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int)Math.Round(Math.Min(Math.Max(g, 0), 255)),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int)Math.Round(Math.Min(Math.Max(b, 0), 255))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; private const int MAX = 256;&nbsp; &nbsp; &nbsp; // max iterations<br />
&nbsp; &nbsp; &nbsp; &nbsp; private const double SX = -2.025; // start value real<br />
&nbsp; &nbsp; &nbsp; &nbsp; private const double SY = -1.125; // start value imaginary<br />
&nbsp; &nbsp; &nbsp; &nbsp; private const double EX = 0.6;&nbsp; &nbsp; // end value real<br />
&nbsp; &nbsp; &nbsp; &nbsp; private const double EY = 1.125;&nbsp; // end value imaginary<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static int x1, y1, xs, ys, xe, ye;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static double xstart, ystart, xende, yende, xzoom, yzoom;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static bool action, rectangle, finished;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static float xy;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private Image bp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private Graphics g1;<br />
&nbsp; &nbsp; //private HSB HSBcol=new HSB();<br />
<br />
&nbsp; &nbsp; public void init() // all instances will be prepared<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //HSBcol = new HSB();<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.Size = new Size(640, 480);<br />
&nbsp; &nbsp; &nbsp; &nbsp; finished = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; x1 = this.Width;<br />
&nbsp; &nbsp; &nbsp; &nbsp; y1 = this.Height;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xy = (float)x1 / (float)y1;<br />
&nbsp; &nbsp; &nbsp;  //?JAVA? picture = createImage(x1, y1);<br />
&nbsp; &nbsp; &nbsp;  //?JAVA? g1 = picture.getGraphics();<br />
&nbsp; &nbsp; &nbsp; &nbsp; finished = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mandelbrot();<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void destroy() // delete all instances <br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (finished)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bp = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g1 = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GC.Collect(); // garbage collection<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void start()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; action = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; rectangle = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; initvalues();<br />
&nbsp; &nbsp; &nbsp; &nbsp; xzoom = (xende - xstart) / (double)x1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; yzoom = (yende - ystart) / (double)y1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mandelbrot();<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void stop()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void mandelbrot() // calculate all points<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int x, y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float h, b, alt = 0.0f;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; action = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; x1; x += 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (y = 0; y &lt; y1; y++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h = pointcolour(xstart + xzoom * (double)x, ystart + yzoom * (double)y); // color value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (h != alt)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = 1.0f - h * h; // brightnes<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color color = HSBColor.FromHSB(new HSBColor(h * 255, 0.8f * 255, b * 255));&nbsp; // VERY IMPORTANT<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //djm <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alt = h;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pen pen = new Pen(color);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g1.DrawLine(pen, x, y, x + 1, y);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; action = true;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private float pointcolour(double xwert, double ywert) // color value from 0.0 to 1.0 by iterations<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; double r = 0.0, i = 0.0, m = 0.0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int j = 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while ((j &lt; MAX) &amp;&amp; (m &lt; 4.0))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = r * r - i * i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = 2.0 * r * i + ywert;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = m + xwert;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return (float)j / (float)MAX;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void initvalues() // reset start values<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; xstart = SX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ystart = SY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; xende = EX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; yende = EY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((float)((xende - xstart) / (yende - ystart)) != xy)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xstart = xende - (yende - ystart) * (double)xy;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void pictureBox1_MouseDown(object sender, MouseEventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //e.consume();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (action)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xs = e.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ys = e.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void pictureBox1_MouseUp(object sender, MouseEventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int z, w;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //e.consume();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (action)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xe = e.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ye = e.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (xs &gt; xe)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = xs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xs = xe;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xe = z;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ys &gt; ye)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = ys;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ys = ye;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ye = z;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; w = (xe - xs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = (ye - ys);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((w &lt; 2) &amp;&amp; (z &lt; 2)) initvalues();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (((float)w &gt; (float)z * xy)) ye = (int)((float)ys + (float)w / xy);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else xe = (int)((float)xs + (float)z * xy);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xende = xstart + xzoom * (double)xe;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yende = ystart + yzoom * (double)ye;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xstart += xzoom * (double)xs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ystart += yzoom * (double)ys;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xzoom = (xende - xstart) / (double)x1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yzoom = (yende - ystart) / (double)y1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mandelbrot();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rectangle = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Refresh();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void pictureBox1_MouseMove(object sender, MouseEventArgs e)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //e.consume();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (action)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xe = e.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ye = e.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rectangle = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Refresh();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Byrne86</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236306.html</guid>
		</item>
		<item>
			<title>From Javascript calling a Class in CS</title>
			<link>http://www.daniweb.com/forums/thread236295.html</link>
			<pubDate>Thu, 05 Nov 2009 14:56:31 GMT</pubDate>
			<description><![CDATA[I have a simple program. On the left I have a tree view (obout) very good by the way, and a grid on the right. 
 
In my cs file, I wrote a class for the grid. I pass a value and the grid is populated. 
 
When I click on a "leaf", I want to reopen the grid with the value of the "leaf". 
 
When I...]]></description>
			<content:encoded><![CDATA[<div>I have a simple program. On the left I have a tree view (obout) very good by the way, and a grid on the right.<br />
<br />
In my cs file, I wrote a class for the grid. I pass a value and the grid is populated.<br />
<br />
When I click on a &quot;leaf&quot;, I want to reopen the grid with the value of the &quot;leaf&quot;.<br />
<br />
When I click on a &quot;leaf&quot; the control is back to javascript and I have the value of the leaf.<br />
<br />
My question now is how can I call the class from javascript ?<br />
<br />
Also is there's another solution ?<br />
<br />
Thanks<br />
Real</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>realdrouin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236295.html</guid>
		</item>
		<item>
			<title>Need Suggestion for Live Data</title>
			<link>http://www.daniweb.com/forums/thread236282.html</link>
			<pubDate>Thu, 05 Nov 2009 14:11:05 GMT</pubDate>
			<description>Hi, 
 
I want to write a small desktop application which will fetch Live stock price from NSE/BSE or Yahoo finance website. In order to create such application I need the guidance that how shoudl I proceed with? 
 
The major problem I am facing is connecting a desktop application with intenet and...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I want to write a small desktop application which will fetch Live stock price from NSE/BSE or Yahoo finance website. In order to create such application I need the guidance that how shoudl I proceed with?<br />
<br />
The major problem I am facing is connecting a desktop application with intenet and fetching records.<br />
<br />
Any help or guidenace is appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>vksingh24</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236282.html</guid>
		</item>
		<item>
			<title>C# Serial Ports</title>
			<link>http://www.daniweb.com/forums/thread236260.html</link>
			<pubDate>Thu, 05 Nov 2009 12:44:51 GMT</pubDate>
			<description>Hi,  
I am having problems with a device bulit by a colleague that needs to be working for Tuesday.  If you talk to this device in HyperTerminal it errors all the time as it get the data from the UART too quickly it , he has found a thing call Advanced Serial Port Monitor which lets the user type a...</description>
			<content:encoded><![CDATA[<div>Hi, <br />
I am having problems with a device bulit by a colleague that needs to be working for Tuesday.  If you talk to this device in HyperTerminal it errors all the time as it get the data from the UART too quickly it , he has found a thing call Advanced Serial Port Monitor which lets the user type a complete string before sending it. My code replicates this but I am having trouble seeing the replies <br />
coming back while Advanced Serial Port Monitor says this is being sent  I am not picking them up.  My first though was a timer how ever this does not appear to work, I think now I have found a way around it using Events rather than the timers is this even possible???  <br />
 <pre style="margin:20px; line-height:13px">private void port_DataReceivedATE(object sender, SerialDataReceivedEventArgs e) <br />
{ <br />
byte[] dataATE = new byte[myComPort.BytesToRead]; <br />
myComPort.Read(dataATE, 0, dataATE.Length); <br />
if ((dataATE.Length &gt; 1) &amp;&amp; (dataATE[dataATE.Length - 1] == 13)) <br />
{ <br />
Array.Resize(ref dataATE, dataATE.Length); <br />
} <br />
bufferATE.AddRange(dataATE); <br />
ProcessBufferATE(); <br />
<br />
} <br />
private void ProcessBufferATE() <br />
{ <br />
byte[] byteATE = new byte[buffer.Count]; <br />
buffer.CopyTo(0, byteATE, 0, buffer.Count); <br />
buffer.RemoveRange(0, buffer.Count); <br />
<br />
string dataATE; <br />
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); <br />
dataATE = enc.GetString(byteATE); <br />
this.BeginInvoke(new MethodInvoker(delegate() { rtbIncoming.Text += dataATE; })); <br />
} <br />
<br />
private void myComPort_DateRecived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) <br />
{ <br />
}</pre><br />
This does even less than it did before. I'm guessing I need some code in the myComPort_DateRecived() the unit I am talking to has all commands framed by #, ie #L# or #W512#. what I'm thinking is &quot; <pre style="margin:20px; line-height:13px">if(myComPort.BytesToRead &gt; 0) <br />
{ <br />
dataInATE = myComPort.Read() //not really sure which Read func to use???? <br />
if(dataInATE = (char)35) <br />
{ <br />
StartOfByte = true; <br />
} <br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(StartOFByte == true) <br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  while(dataInATE != (char)35)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataInATE += dataInATE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
} <br />
<br />
//copy data out of dataInATE to a rich text box <br />
dataInATE =rtbIncoming.Text;</pre><br />
Umm will this get around the problem I'm having or is it going to get worse!<br />
<br />
Glenn</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>glennpatton</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236260.html</guid>
		</item>
		<item>
			<title>How to display values from database into datagridview</title>
			<link>http://www.daniweb.com/forums/thread236255.html</link>
			<pubDate>Thu, 05 Nov 2009 12:28:46 GMT</pubDate>
			<description>Hi, 
How to display values from database into datagridview using SQLAdapter and Dataset.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
How to display values from database into datagridview using SQLAdapter and Dataset.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>ShailaMohite</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236255.html</guid>
		</item>
		<item>
			<title>not able read special charactered strings -EXCEL to DataSet-C#</title>
			<link>http://www.daniweb.com/forums/thread236254.html</link>
			<pubDate>Thu, 05 Nov 2009 12:27:58 GMT</pubDate>
			<description><![CDATA[Hi all, 
my code is like.. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
my code is like..<br />
 <pre style="margin:20px; line-height:13px">string strConn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strConn = &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Data Source=C:\\ifocus\\Excel Worksheet.xls;&quot; +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Extended Properties=Excel 8.0;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OleDbDataAdapter myCommand = new OleDbDataAdapter(&quot;SELECT * FROM [Sheet1$]&quot;, strConn);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myDataSet = new DataSet();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myCommand.Fill(myDataSet, &quot;ExcelInfo&quot;);</pre><br />
and My EXCEL data is like <br />
-------------------------------------------------------------------------------------<br />
Gold  ---            <span style="font-weight:bold">in@GLDM.1</span>	--        14,917.00--	<span style="font-weight:bold">Gold MCX</span><br />
--------------------------------------------------------------------------------------<br />
ALUM---	         <span style="font-weight:bold">in@ALUM.1</span>	   --     630.00    -- 	<span style="font-weight:bold">Aluminium MCX</span><br />
<br />
<br />
Im gettings values from row as  'Gold' 'EmptySpace' '14,917.00' 'EmptySpace'<br />
 I need to get 'in@GLDM.1' &amp; 'Gold MCX' as it is from Excel sheet.<br />
in myDataSet when check for 'in@ALUM.1' data, for that cell it is showing Empty.<br />
<br />
Could you Please any body sovle it.<br />
<br />
Thanks in Advance...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>venkates.99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236254.html</guid>
		</item>
		<item>
			<title>Problem While Reading Mail Attachment file in C#</title>
			<link>http://www.daniweb.com/forums/thread236226.html</link>
			<pubDate>Thu, 05 Nov 2009 10:17:03 GMT</pubDate>
			<description><![CDATA[Hi,  
 
 I have an assignment to read mails from Outlook and store them in DB in C# plateform.  
 
When I read the attachment File and store its contents in BYTE[] when I run the query to store contents in Database it is throwing EXCEPTION  
---Quote--- 
"An object or column name is missing or...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
<br />
 I have an assignment to read mails from Outlook and store them in DB in C# plateform. <br />
<br />
When I read the attachment File and store its contents in BYTE[] when I run the query to store contents in Database it is throwing EXCEPTION <div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  &quot;An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as &quot;&quot; or [] are not allowed. Add a name or single space as the alias name. <br />
The name &quot;System.Byte&quot; is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted. &quot;  <hr /> </td> </tr> </table> </div>.<br />
What should I do to Store the Contents. I am Reusing the code from online Help.<br />
<br />
 <pre style="margin:20px; line-height:13px">for (int j = 1; j &lt;= ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Attachments.Count; j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string filePath = Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath) + ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Attachments[j].FileName;&nbsp; // @&quot;G:/prabu&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Attachments[j].SaveAsFile(filePath);<br />
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int length = (int)fs.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <span style="color:Red"> content = new byte[length];</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fs.Read(content, 0, length);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  fs.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileInfo f = new FileInfo(filePath);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f.Delete();<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre>when Content Type is in Query it is &quot;System.Byte&quot; Hope You Guys have got the problem i m not pretty good with coding so please exuse if couldn't convey in a Better way. <br />
<br />
Regards,<br />
Hamza</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Rishi_Hamza</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236226.html</guid>
		</item>
		<item>
			<title>List of Objects !!!</title>
			<link>http://www.daniweb.com/forums/thread236184.html</link>
			<pubDate>Thu, 05 Nov 2009 08:17:56 GMT</pubDate>
			<description><![CDATA[Hello all, 
 
i want to creat a list of an object  
so i used ArrayList  in C# 
 
 
after declaring a class book 
i declare the array list as follwing: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
i want to creat a list of an object <br />
so i used ArrayList  in C#<br />
<br />
<br />
after declaring a class book<br />
i declare the array list as follwing:<br />
 <pre style="margin:20px; line-height:13px">private ArrayList mobileStore = new ArrayList();</pre><br />
then i have an object of class , say Mobile<br />
 <pre style="margin:20px; line-height:13px">Mobile m1;</pre><br />
and finally i tried to add the object m1 to the array list <br />
<br />
<span style="color:red">mobileStore.Add(m1);</span><br />
but the error occurs !! <br />
<br />
<span style="color:Red"><br />
Invalid token '(' in class, struct, or interface member declarationInvalid token ')' in class, struct, or interface member declaration	</span><br />
<br />
<br />
<br />
<br />
<br />
-------------------<br />
<br />
then i tried anoter way :<br />
<br />
<br />
List&lt;Mobile&gt; store = new List&lt;Mobile&gt;();<br />
<br />
but the problem was the same ???? <br />
<br />
<br />
<span style="color:Green">how can i fix it ?</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>CSG-SQU</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236184.html</guid>
		</item>
		<item>
			<title>password setting in a software</title>
			<link>http://www.daniweb.com/forums/thread236181.html</link>
			<pubDate>Thu, 05 Nov 2009 08:11:12 GMT</pubDate>
			<description><![CDATA[i have created a billing software...its been used by admin and the staff.so i need to set password for admin in my software.so that he can have rights to change the values in the database...if used by staff means he shouldn't do the above modifications]]></description>
			<content:encoded><![CDATA[<div>i have created a billing software...its been used by admin and the staff.so i need to set password for admin in my software.so that he can have rights to change the values in the database...if used by staff means he shouldn't do the above modifications</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>umeshabi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236181.html</guid>
		</item>
		<item>
			<title>Matrix problem</title>
			<link>http://www.daniweb.com/forums/thread236180.html</link>
			<pubDate>Thu, 05 Nov 2009 08:08:50 GMT</pubDate>
			<description>can somebody help me with this program?? 
i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location where i want to start (n,n) n=1,2,3,4,5 and the...</description>
			<content:encoded><![CDATA[<div>can somebody help me with this program??<br />
i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location where i want to start (n,n) n=1,2,3,4,5 and the computer will calculate the path...<br />
ex: starting from (1,1) we have:<br />
  1   6  15  10  21<br />
  14   9  20   5  16<br />
  19   2   7  22  11<br />
   8  13  24  17   4<br />
  25  18   3  12  23<br />
 you can see that the sequence of the numbers is in L. i need at least a start head</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>nick30266</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236180.html</guid>
		</item>
		<item>
			<title>click events for rutime generated controls</title>
			<link>http://www.daniweb.com/forums/thread236159.html</link>
			<pubDate>Thu, 05 Nov 2009 06:42:38 GMT</pubDate>
			<description>hi, 
Can any1 help me... 
 
problem: 
I hav 2 create some buttons and labels during runtime...(already done).. 
nw i wnt to fire sm events for each such generated controls... 
 
main objective is to pass argumnts to a function that create a new form n pass the value to it,,, 
just like generating a...</description>
			<content:encoded><![CDATA[<div>hi,<br />
Can any1 help me...<br />
<br />
problem:<br />
I hav 2 create some buttons and labels during runtime...(already done)..<br />
nw i wnt to fire sm events for each such generated controls...<br />
<br />
main objective is to pass argumnts to a function that create a new form n pass the value to it,,,<br />
just like generating a form with friends name when we click frinds name on another page(eg: Gtalk)<br />
:(</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>bk_bhupendra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236159.html</guid>
		</item>
		<item>
			<title>Algorithm LR  parse for c sharp</title>
			<link>http://www.daniweb.com/forums/thread236143.html</link>
			<pubDate>Thu, 05 Nov 2009 05:07:23 GMT</pubDate>
			<description><![CDATA[In computer science, an LR parser is a parser for source code written in a computer language that reads input from Left to right and produces a Rightmost derivation. The term LR(k) parser is also used; where the k refers to the number of unconsumed "look ahead" input symbols that are used in making...]]></description>
			<content:encoded><![CDATA[<div>In computer science, an LR parser is a parser for source code written in a computer language that reads input from Left to right and produces a Rightmost derivation. The term LR(k) parser is also used; where the k refers to the number of unconsumed &quot;look ahead&quot; input symbols that are used in making parsing decisions. Usually k is 1 and is often omitted.<br />
The syntax of many programming languages can be defined by a grammar that is LR, or close to being so, and for this reason LR parsers are often used by compilers to perform syntax analysis of source code.<br />
<br />
An LR Parser is a recursive program that can be proven correct by direct computation, and can be implemented more efficiently (in time) as a recursive ascent parser, a set of mutually-recursive functions for every grammar, much like a recursive descent parser. Conventionally, however, LR parsers are presented and implemented as table-based stack machines in which the call stack of the underlying recursive program is explicitly manipulated<br />
<br />
For Example:<br />
        n          m                n<br />
A=[1    (234)       5        6 ]<br />
n,m&gt;0<br />
<br />
LR parsers are difficult to produce by hand and they are usually constructed by a parser generator or a compiler-compiler. Depending on how the parsing table is generated, these parsers can be called simple LR parsers (SLR), look-ahead LR parsers (LALR), or canonical LR parsers. LALR parsers have more language recognition power than SLR parsers. Canonical LR parsers have more recognition power than LALR parsers.<br />
<br />
A=1A6|1B6<br />
B=234|B<br />
B=6<br />
numbers= Console.ReadLine()<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char&#91;&#93; pile = new char&#91;numbers.Length + 2&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char&#91;&#93; piles = new char&#91;numbers.Length + 2&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char&#91;&#93; enter = new char&#91;numbers.Length + 1&#93;;</pre><br />
It is usually not possible to characterize the state of the parser with a single item because it may not know in advance which rule it is going to use for reduction. For example if there is also a rule E → E * B then the items E → E • + B and E → E • * B will both apply after a string corresponding with E has been read. Therefore we will characterize the state of the parser by a set of items, in this case the set { E → E • + B, E → E • * B }.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pile&#91;0&#93; = '#';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char i = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (a = 0, i = 1; A1 &lt; numbers.Length; a++, i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pile&#91;i&#93; = once&#91;a&#93;;</pre>Parsing is also an earlier term for the diagramming of sentences of natural languages, and is still used for the diagramming of inflected languages, such as the Romance languages or Latin. The term parsing comes from Latin pars  meaning part<br />
<br />
You gotta repeat this in the new pile <br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (j= 0; j &lt;= (k- 1); j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; piles&#91;i&#93; = pile&#91;i&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; piles&#91;k&#93; = numbers&#91;0&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (i = k + 1; i &lt; endingpart; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; piles&#91;i&#93; = pile&#91;i + 2&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endingpart = endingpart - printing.Length + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pile = piles; k++;</pre><br />
The most common use of a parser is as a component of a compiler or interpreter. This parses the source code of a computer programming language to create some form of internal representation. Programming languages tend to be specified in terms of a context-free grammar because fast and efficient parsers can be written for them. Parsers are written by hand or generated by parser generators.<br />
The next stage is parsing or syntactic analysis, which is checking that the tokens form an allowable expression. This is usually done with reference to a context-free grammar which recursively defines components that can make up an expression and the order in which they must appear. However, not all rules defining programming languages can be expressed by context-free grammars alone, for example type validity and proper declaration of identifiers. These rules can be formally expressed with attribute grammars.<br />
<br />
This way you will be able to construct your LR parser with any kind of gramathics.<br />
<br />
It will be finished in other time, so I hope that this will help you.<br />
<br />
@MASTER<br />
THE MASTER OF THE WEB<br />
--------------------------------</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>@MASTER</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236143.html</guid>
		</item>
		<item>
			<title>backup and restore sql database</title>
			<link>http://www.daniweb.com/forums/thread236131.html</link>
			<pubDate>Thu, 05 Nov 2009 04:03:02 GMT</pubDate>
			<description><![CDATA[m using visual studio 2005 and sql server 2005. 
i want to create a backup of the sql server which m doin using the following code.. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>m using visual studio 2005 and sql server 2005.<br />
i want to create a backup of the sql server which m doin using the following code..<br />
 <pre style="margin:20px; line-height:13px">if (saveBackupDialog.ShowDialog() == DialogResult.OK)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlCommand cmd = new SqlCommand();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.CommandText = @&quot;backup database dbname to disk =@loc with init,stats=10&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.Add(&quot;@loc&quot;, SqlDbType.VarChar);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters[&quot;@loc&quot;].Value = saveBackupDialog.FileName.ToString() + &quot;.bak&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Connection = Module1.sqlcon;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Module1.sqlcon.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.ExecuteNonQuery();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Module1.sqlcon.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
however m unable to restore the backup.<br />
ive used a couple of codes<br />
 <pre style="margin:20px; line-height:13px">if (openFileDialog1.ShowDialog() == DialogResult.OK)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
{<br />
<br />
Restore rDatabase = new Restore();<br />
<br />
// Set the restore type to a database restore<br />
rDatabase.Action = RestoreActionType.Database;<br />
<br />
// Assign a db to restore operation<br />
rDatabase.Database = &quot;coloursoft&quot;;<br />
<br />
// Set the backup device to restore from file<br />
BackupDeviceItem bkDevice = new BackupDeviceItem(openFileDialog1.FileName, DeviceType.File);<br />
<br />
// Add the backup device to the restore type<br />
rDatabase.Devices.Add(bkDevice);<br />
<br />
// Replace the Db if already exists<br />
rDatabase.ReplaceDatabase = true;<br />
Server srv = new Server(&quot;server = ABC;uid=sa;pwd=sasa&quot;);<br />
<br />
if (File.Exists(openFileDialog1.FileName))<br />
// restore<br />
rDatabase.SqlRestore(srv);<br />
}<br />
catch (Exception ex)<br />
{<br />
&nbsp; &nbsp; MessageBox.Show(ex.ToString());<br />
}</pre>i get the following error<br />
<span style="font-style:italic"><br />
Restore failed for Server 'server = ABC;uid=sa;pwd=sasa'.<br />
</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>babbu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236131.html</guid>
		</item>
		<item>
			<title>Strange Root element missing exception in XML</title>
			<link>http://www.daniweb.com/forums/thread236068.html</link>
			<pubDate>Wed, 04 Nov 2009 22:29:03 GMT</pubDate>
			<description><![CDATA[I get an error trying to parse som XML. The error is System.Xml.XmlException: Root element is missing.., and I can't understand why. Here is the code I run: 
 
            MemoryStream xmlStream = new MemoryStream(); 
            StreamWriter xmlStreamWriter = new StreamWriter(xmlStream); 
        ...]]></description>
			<content:encoded><![CDATA[<div>I get an error trying to parse som XML. The error is  <pre style="margin:20px; line-height:13px">System.Xml.XmlException: Root element is missing..</pre>, and I can't understand why. Here is the code I run:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MemoryStream xmlStream = new MemoryStream();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StreamWriter xmlStreamWriter = new StreamWriter(xmlStream);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String xml = &quot;&lt;html&gt;\n&lt;body&gt;\n\n&lt;h1&gt;My First Heading&lt;/h1&gt;\n\n&lt;p&gt;My first paragraph.&lt;/p&gt;\n\n&lt;/body&gt;\n&lt;/html&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlStreamWriter.Write(xml);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlStreamWriter.Flush();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XmlReader reader = XmlReader.Create(xmlStream);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StringWriter jsonStringWriter = new StringWriter();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonWriter writer = new JsonTextWriter(jsonStringWriter);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writer.Formatting = Newtonsoft.Json.Formatting.Indented;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JsonMLParser.Encode(reader, writer);</pre><br />
The exception gets thrown during  <pre style="margin:20px; line-height:13px">JsonMLParser.Encode()</pre> during  <pre style="margin:20px; line-height:13px">reader.MoveToContent()</pre> which is the first call to the xml-reader.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Alxandr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236068.html</guid>
		</item>
		<item>
			<title>error with stream</title>
			<link>http://www.daniweb.com/forums/thread236027.html</link>
			<pubDate>Wed, 04 Nov 2009 18:26:02 GMT</pubDate>
			<description><![CDATA[Hi, why i can read and write to file? 
Show error only on the "file".  Any other well, but I can not read or write. 
 
I use: using System.IO; 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi, why i can read and write to file?<br />
Show error only on the &quot;file&quot;.  Any other well, but I can not read or write.<br />
<br />
I use: using System.IO;<br />
 <pre style="margin:20px; line-height:13px">private void button1_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OpenFileDialog of = new OpenFileDialog();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; of.ShowDialog();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.Text = of.FileName;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:Red">file </span>= new FileStream(textBox1.Text, FileMode.OpenOrCreate, FileAccess.Read);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StreamReader sr = new StreamReader(<span style="color:red">file</span>);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = sr.ReadToEnd();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sr.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:red">file</span>.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void button2_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SaveFileDialog of = new SaveFileDialog();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; of.ShowDialog();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox2.Text = of.FileName;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(textBox2.Text);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileStream file = new FileStream(textBox2.Text, FileMode.OpenOrCreate, FileAccess.Write);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StreamWriter sw = new StreamWriter(file);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sw.Write(&quot;Hello file system world!&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sw.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file.Close();<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Lolalola</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236027.html</guid>
		</item>
		<item>
			<title>Dynamically Reference Member Variable</title>
			<link>http://www.daniweb.com/forums/thread235988.html</link>
			<pubDate>Wed, 04 Nov 2009 15:03:16 GMT</pubDate>
			<description>I have a function which initiates commands for a command class. Since there are many commands to initiate, writing code for each one would be tedious. 
 
The function definition is as follows- 
 
        private static void InitCommand(KeyGesture input, String text, String name) 
        { 
       ...</description>
			<content:encoded><![CDATA[<div>I have a function which initiates commands for a command class. Since there are many commands to initiate, writing code for each one would be tedious.<br />
<br />
The function definition is as follows-<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; private static void InitCommand(KeyGesture input, String text, String name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InputGestureCollection inputs = new InputGestureCollection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputs.Add(input);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type t = typeof(UploadCommands);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t.GetMember(name);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (RoutedUICommand)t.GetMember(name) = new RoutedUICommand(text, name, typeof(UploadCommands), inputs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Now, my problem is that I wish to reference the commands dynamically. I pass in the command name, it references the public static RoutedUICommand variable.<br />
<br />
In PHP, the equivalent would be-<br />
<br />
 <pre style="margin:20px; line-height:13px">$class-&gt;$member = &quot;Blah, blah&quot;;</pre><br />
I can't figure out how this would be done in C#.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Ishbir</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235988.html</guid>
		</item>
		<item>
			<title>textbox limitation ?</title>
			<link>http://www.daniweb.com/forums/thread235980.html</link>
			<pubDate>Wed, 04 Nov 2009 14:36:50 GMT</pubDate>
			<description>Hi, 
i need to block input if first char 2 and second char must not be more 5. And first char input must be 1 or 2. Specifically I need the input of only 1-25 and nothing else. I tried and only allow entry of numbers, but fail to limit specified :(.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
i need to block input if first char 2 and second char must not be more 5. And first char input must be 1 or 2. Specifically I need the input of only 1-25 and nothing else. I tried and only allow entry of numbers, but fail to limit specified :(.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Dum_</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235980.html</guid>
		</item>
		<item>
			<title>MySQL insert from C# App.</title>
			<link>http://www.daniweb.com/forums/thread235966.html</link>
			<pubDate>Wed, 04 Nov 2009 13:06:55 GMT</pubDate>
			<description><![CDATA[I've spent a bit of time porting my database connection over to MySQL.  It's taken a bit of time, but generally been fairly easy.  However, one of my insert queries is currently failing due to an auto increment ID field.  I have this insert query: 
 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>I've spent a bit of time porting my database connection over to MySQL.  It's taken a bit of time, but generally been fairly easy.  However, one of my insert queries is currently failing due to an auto increment ID field.  I have this insert query:<br />
<br />
 <pre style="margin:20px; line-height:13px">INSERT INTO entries(text, name, screen_name, user_id, posi_score)values(@txt, @nm, @scrNm, @uid, @posi_score)</pre><br />
This table also has an entry_id field that is auto Increment.  The query runs fine when I use it in PHPMyAdmin, but when debugging my application, I get an exception telling me that entry_id cannot be null.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>benkyma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235966.html</guid>
		</item>
		<item>
			<title>Mouse Events Handling</title>
			<link>http://www.daniweb.com/forums/thread235963.html</link>
			<pubDate>Wed, 04 Nov 2009 12:57:15 GMT</pubDate>
			<description><![CDATA[---Quote--- 
How can i change the color or do smthing else when mouse pointer go over a button.... 
 
help with all mouse event handler 
 
(i have tried some codes but errors) 
 
[eg: Error	1	No overload for 'Form_Over' matches delegate 'System.EventHandler'	]]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  How can i change the color or do smthing else when mouse pointer go over a button....<br />
<br />
help with all mouse event handler<br />
<br />
(i have tried some codes but errors)<br />
<br />
[eg: Error	1	No overload for 'Form_Over' matches delegate 'System.EventHandler'	]<br />
<br />
pls help...<br />
thnx in advnc...  <hr /> </td> </tr> </table> </div>:(</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>bk_bhupendra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235963.html</guid>
		</item>
		<item>
			<title>How to play Video?</title>
			<link>http://www.daniweb.com/forums/thread235954.html</link>
			<pubDate>Wed, 04 Nov 2009 12:26:44 GMT</pubDate>
			<description>Hi all, 
Can anyone tell me how can we play the video(.wmv) in C# window application .................? 
Let i have some links on window form, As the user click on that link, related video should start playing..... 
And i am using VS2008....... 
Kindly help me regarding this............</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
Can anyone tell me how can we play the video(.wmv) in C# window application .................?<br />
Let i have some links on window form, As the user click on that link, related video should start playing.....<br />
And i am using VS2008.......<br />
Kindly help me regarding this............</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>VibhorG</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235954.html</guid>
		</item>
		<item>
			<title>C# Multi-form pre-render?</title>
			<link>http://www.daniweb.com/forums/thread235942.html</link>
			<pubDate>Wed, 04 Nov 2009 11:52:33 GMT</pubDate>
			<description><![CDATA[Hi 
 
I'm creating a multiple form GUI app using a scene-manager to set the current visible form.  
 
There isn't an issue regarding it working, that's fine. What I am noticing is that when each form is set to be active/visible, it takes a few seconds to load each component, and looks horrid. This...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I'm creating a multiple form GUI app using a scene-manager to set the current visible form. <br />
<br />
There isn't an issue regarding it working, that's fine. What I am noticing is that when each form is set to be active/visible, it takes a few seconds to load each component, and looks horrid. This is potentially for a business related endeavor, so I'm looking for a way to buffer the form so it loads fully before it is displayed.<br />
<br />
I'm not sure if this is an issue with the use of a scene-manager, or it is something that is consistent across all C# form applications.<br />
<br />
I've done a few google searches relating to this, but there was little aside from using &quot;hide()&quot; until it was loaded. That doesn't really work.<br />
<br />
Any information would be great</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Dekken</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235942.html</guid>
		</item>
		<item>
			<title>Saving and Discarding mails</title>
			<link>http://www.daniweb.com/forums/thread235929.html</link>
			<pubDate>Wed, 04 Nov 2009 10:23:21 GMT</pubDate>
			<description>Hai, 
I am developing and application based on mail sending where i need a   
functionality based on saving the content(mail) and deleting mail. 
Plzzzz Help</description>
			<content:encoded><![CDATA[<div>Hai,<br />
I am developing and application based on mail sending where i need a  <br />
functionality based on saving the content(mail) and deleting mail.<br />
Plzzzz Help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>dhana3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235929.html</guid>
		</item>
		<item>
			<title>Product names showing as the class name</title>
			<link>http://www.daniweb.com/forums/thread235792.html</link>
			<pubDate>Tue, 03 Nov 2009 23:10:02 GMT</pubDate>
			<description><![CDATA[I am making a program for a fruit stand and I like for it to show the names of the products and not the name of the derive class. I think I need a method or rewrite my code somewhere, could someone take a look and give me a hand?  
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>I am making a program for a fruit stand and I like for it to show the names of the products and not the name of the derive class. I think I need a method or rewrite my code somewhere, could someone take a look and give me a hand? <br />
<br />
 <pre style="margin:20px; line-height:13px">using System; <br />
public class Product { <br />
&nbsp;  protected string name; <br />
&nbsp;  protected double cost; <br />
&nbsp;  protected int inStock; <br />
&nbsp;  public Product(){ <br />
&nbsp; &nbsp; &nbsp; this.name = &quot;&quot;; <br />
&nbsp; &nbsp; &nbsp; this.cost = 0; <br />
&nbsp; &nbsp; &nbsp; this.inStock = 0; <br />
&nbsp;  } <br />
&nbsp;  public Product(string name, double cost, int inStock) <br />
&nbsp;  { <br />
&nbsp; &nbsp; &nbsp; this.name = name; <br />
&nbsp; &nbsp; &nbsp; this.cost = cost; <br />
&nbsp; &nbsp; &nbsp; this.inStock = inStock; <br />
&nbsp;  } <br />
&nbsp;  public int GetInStock() { return this.inStock; } <br />
&nbsp;  public double Buy(int number) <br />
&nbsp;  { <br />
&nbsp; &nbsp; &nbsp; double totalCost = 0; <br />
&nbsp; &nbsp; &nbsp; if (number &lt;= this.inStock){ <br />
&nbsp; &nbsp; &nbsp; &nbsp;  this.inStock -= number; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  totalCost = number * this.cost; <br />
&nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; return totalCost; <br />
&nbsp;  } <br />
} <br />
<br />
public class Fruit : Product { <br />
&nbsp;  public Fruit(string name, double cost, int inStock) <br />
&nbsp;  { <br />
&nbsp; &nbsp; &nbsp; this.name = name; <br />
&nbsp; &nbsp; &nbsp; this.cost = cost; <br />
&nbsp; &nbsp; &nbsp; this.inStock = inStock;&nbsp; &nbsp; <br />
&nbsp;  } <br />
} <br />
<br />
public class Veges : Product{ <br />
&nbsp;  public Veges(string name, double cost, int inStock) <br />
&nbsp;  { <br />
&nbsp; &nbsp; &nbsp; this.name = name; <br />
&nbsp; &nbsp; &nbsp; this.cost = cost; <br />
&nbsp; &nbsp; &nbsp; this.inStock = inStock; <br />
&nbsp;  } <br />
} <br />
public class TestProduct <br />
{ <br />
&nbsp;  public static void Main() <br />
&nbsp;  { <br />
&nbsp; &nbsp; &nbsp; Fruit apple = new Fruit(&quot;Apple&quot;,2.5,20); <br />
&nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;{0} in stock {1}&quot;, apple, <br />
&nbsp; &nbsp; &nbsp; &nbsp;  apple.GetInStock()); <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; Fruit oranges = new Fruit(&quot;Oranges&quot;,2.3,50); <br />
&nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;{0} in stock {1}&quot;, oranges, <br />
&nbsp; &nbsp; &nbsp; &nbsp;  oranges.GetInStock()); <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; Veges lettuce = new Veges(&quot;Lettuce&quot;,3,80); <br />
&nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;{0} in stock {1}&quot;, lettuce, <br />
&nbsp; &nbsp; &nbsp; &nbsp;  lettuce.GetInStock()); <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; Veges cucumber = new Veges(&quot;Cucumber&quot;,4,5); <br />
&nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;{0} in stock {1}&quot;, cucumber, <br />
&nbsp; &nbsp; &nbsp; &nbsp;  cucumber.GetInStock()); <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.ReadKey(); <br />
&nbsp;  }&nbsp; &nbsp; &nbsp;  <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>mejohnm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235792.html</guid>
		</item>
		<item>
			<title>How to CREATE a mySQL database in C# code</title>
			<link>http://www.daniweb.com/forums/thread235791.html</link>
			<pubDate>Tue, 03 Nov 2009 23:05:23 GMT</pubDate>
			<description>My C# program is able to work with existing MySQL and Access databases. Additionally, it will also create a new Access database if none exists. I am not able to get it to create a new mySQL database though.  
 
When the program attempts to run the ExecuteNonQuery command for CREATE DATABASE, it...</description>
			<content:encoded><![CDATA[<div>My C# program is able to work with existing MySQL and Access databases. Additionally, it will also create a new Access database if none exists. I am not able to get it to create a new mySQL database though. <br />
<br />
When the program attempts to run the ExecuteNonQuery command for CREATE DATABASE, it fails because it requires an open database connection (ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.) But how can you have an open connection to a database that is yet to exist?!<br />
<br />
My code structure to create a new Access database is in this order:<br />
<br />
1. Create the database<br />
2. Open the database<br />
3. Create a database table<br />
<br />
Is this the same order that I should apply for creating a mySQL database?<br />
<br />
Thank you to all responders.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>lukeser</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235791.html</guid>
		</item>
		<item>
			<title><![CDATA[Help me for this big project digram<=>coding]]></title>
			<link>http://www.daniweb.com/forums/thread235773.html</link>
			<pubDate>Tue, 03 Nov 2009 21:39:20 GMT</pubDate>
			<description>I have idea to make program more like plugin. 
the program for support the coder. 
you can code by making diagram for the program. 
I stucking in the idea, how to draw the boxn. the important is you can zoom in zoom out,with connection . 
Anyone have any idea what should I use. english is not my...</description>
			<content:encoded><![CDATA[<div>I have idea to make program more like plugin.<br />
the program for support the coder.<br />
you can code by making diagram for the program.<br />
I stucking in the idea, <span style="color:red">how to draw the boxn. the important is you can zoom in zoom out,with connection .</span><br />
Anyone have any idea what should I use. english is not my primary language so I don't know what the words.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>tgsoon2002</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235773.html</guid>
		</item>
		<item>
			<title>UDP Port Forwarding</title>
			<link>http://www.daniweb.com/forums/thread235716.html</link>
			<pubDate>Tue, 03 Nov 2009 18:09:33 GMT</pubDate>
			<description><![CDATA[Hello all. 
 
I'm feeling pretty confused about how UDP port forwarding is done. My situation is: I have *Comp1* with a local IP (192.168.0.2) connected to *Comp2* with external IP and internet connection, and some unknown Internet Client (*IC*) (three of them actually), who needs to send data to...]]></description>
			<content:encoded><![CDATA[<div>Hello all.<br />
<br />
I'm feeling pretty confused about how UDP port forwarding is done. My situation is: I have <span style="font-weight:bold">Comp1</span> with a local IP (192.168.0.2) connected to <span style="font-weight:bold">Comp2</span> with external IP and internet connection, and some unknown Internet Client (<span style="font-weight:bold">IC</span>) (three of them actually), who needs to send data to the <span style="font-weight:bold">Server</span> hosted at Comp1 through UDP port 7777 and then receive a response.<br />
<br />
I managed to forward UDP data from Comp2 to Comp1 by simply accepting IC's packets at Comp2's port 7777 and sending them to Comp1's port 7777, but the problem is that Comp1's Server sees sender as Comp2 and sends response to it (192.168.0.1), rather than to IC. I can't modify Server application and it judges about packets' source by UDP's IEP. Server then stores IEPs and sends data itself (it's p2p application actually).<br />
<br />
I would think that the task is impossible, but this kind of forwarding is implemented in applications like AUTAPF (for both UDP and TCP ports).<br />
<br />
So how do I forward ICs' data from Comp2 to Comp1 with Comp1's Server knowing, that response must be sent to ICs?<br />
<br />
<br />
<br />
Here's what I managed to do:<br />
<br />
 <pre style="margin:20px; line-height:13px">namespace PortForwarder<br />
{<br />
&nbsp; &nbsp; class Program<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static UdpClient UDP1 = new UdpClient(7777);<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void Main(string&#91;&#93; args)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Title = &quot;Port Forwarder&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;-= Port Forwarder started. =-&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;UDP ports forwarded: 7777&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UDP1.BeginReceive(ReceiveDataUDP1, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (true) { };<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  static void ReceiveDataUDP1(IAsyncResult ar)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IPEndPoint IEP = new IPEndPoint(IPAddress.Any, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Byte&#91;&#93; receiveBytes = UDP1.EndReceive(ar, ref IEP);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Trying to &quot;lie&quot; about local IEP results in exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // UdpClient US1 = new UdpClient(IEP);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // US1.Send(receiveBytes, receiveBytes.Length, &quot;192.168.0.2&quot;, 7777);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UDP1.Send(receiveBytes, receiveBytes.Length, &quot;192.168.0.2&quot;, 7777);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UDP1.BeginReceive(ReceiveDataUDP1, null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre><br />
P.S. Comp1 is connected to the internet through Comp2's ICS (Internet Connection Sharing). Comp2 is running Windows Server 2008 and connects to the internet through VPN connection. I tried to set up NAT there, but VPN connection cannot be shared for some reason (and sharing public adapter doesn't help). If, by any chance, anybody knows how it's configured, I would be really grateful. :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Cogneter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235716.html</guid>
		</item>
		<item>
			<title>voice chat over LAN</title>
			<link>http://www.daniweb.com/forums/thread235666.html</link>
			<pubDate>Tue, 03 Nov 2009 13:33:13 GMT</pubDate>
			<description>can anyone help me for creating a prg for voice chat over LAN... 
thanxs in advnce....</description>
			<content:encoded><![CDATA[<div>can anyone help me for creating a prg for voice chat over LAN...<br />
thanxs in advnce....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>bk_bhupendra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235666.html</guid>
		</item>
		<item>
			<title>close button event for form</title>
			<link>http://www.daniweb.com/forums/thread235665.html</link>
			<pubDate>Tue, 03 Nov 2009 13:29:57 GMT</pubDate>
			<description>how can i control the close button in a form.... 
(the three bottons minimize,maxi,close for all windows form) 
i hav attached a fig... jst check it... 
n pls reply</description>
			<content:encoded><![CDATA[<div>how can i control the close button in a form....<br />
(the three bottons minimize,maxi,close for all windows form)<br />
i hav attached a fig... jst check it...<br />
n pls reply</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12442&amp;d=1257254936" target="_blank">untitled.JPG</a> (20.4 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>bk_bhupendra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235665.html</guid>
		</item>
		<item>
			<title>Know when sql server data has changed</title>
			<link>http://www.daniweb.com/forums/thread235648.html</link>
			<pubDate>Tue, 03 Nov 2009 12:27:01 GMT</pubDate>
			<description>Hi, 
I have an app that gets data out of the database. This data is updated via a separate application. At the moment the first application has to check every x seconds if there is any new data. I seem to remember reading a while ago something about subscribing to data changes or something so that...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have an app that gets data out of the database. This data is updated via a separate application. At the moment the first application has to check every x seconds if there is any new data. I seem to remember reading a while ago something about subscribing to data changes or something so that instead of it being a pull from sql server, sql server actually notifies the app that there is new data and then the app can go get it, and therefore doesn't have to check itself.<br />
<br />
Is that right, or did I dream that?<br />
<br />
Cheers,<br />
Rob</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>qldrobbo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235648.html</guid>
		</item>
		<item>
			<title>Dot in textbox.</title>
			<link>http://www.daniweb.com/forums/thread235572.html</link>
			<pubDate>Tue, 03 Nov 2009 06:00:41 GMT</pubDate>
			<description>Hi All.............. 
I have made an application in C# .NET , in which there is a textbox. 
In the textbox I want to insert a dot such that it remains there always 
but during runtime ,it should be hidden(invisible)and whatever I enter  
in the textbox during execution that content in the textbox...</description>
			<content:encoded><![CDATA[<div>Hi All..............<br />
I have made an application in C# .NET , in which there is a textbox.<br />
In the textbox I want to insert a dot such that it remains there always<br />
but during runtime ,it should be hidden(invisible)and whatever I enter <br />
in the textbox during execution that content in the textbox should start <br />
after the dot(which remains hidden).<br />
And when someone press backspace or delete key, dot should not be removed And when someone select the whole textbox content, <br />
and try to delete all content, So in that case also dot should not be removed.other content can be removed.<br />
Kindly give some solution...............</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>xyz12</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235572.html</guid>
		</item>
		<item>
			<title>how to embed SCPI and GPIB type commands</title>
			<link>http://www.daniweb.com/forums/thread235564.html</link>
			<pubDate>Tue, 03 Nov 2009 05:22:49 GMT</pubDate>
			<description>Hi all, 
 
Can somebody show me an example how to embed SCPI and GPIB type commands in C sharp for instrument control? It is for controlling a spectrum analyzer through Ethernet interface. 
 
Thanks and regards, 
 
 
George</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
Can somebody show me an example how to embed SCPI and GPIB type commands in C sharp for instrument control? It is for controlling a spectrum analyzer through Ethernet interface.<br />
<br />
Thanks and regards,<br />
<br />
<br />
George</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>george_82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235564.html</guid>
		</item>
		<item>
			<title>Crystal Reports using own quries</title>
			<link>http://www.daniweb.com/forums/thread235560.html</link>
			<pubDate>Tue, 03 Nov 2009 05:08:51 GMT</pubDate>
			<description><![CDATA[hiii, 
I m new to create reports in c#, so can any one tell me how to i create crystal reportsusing my queries?? 
& How to show it???  
Is there any namespace for using crystal report actually my prg give a error at compile tym : the error is related to report viewer. 
Thanks in advance.]]></description>
			<content:encoded><![CDATA[<div>hiii,<br />
I m new to create reports in c#, so can any one tell me how to i create crystal reportsusing my queries??<br />
&amp; How to show it??? <br />
Is there any namespace for using crystal report actually my prg give a error at compile tym : the error is related to report viewer.<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kool.net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235560.html</guid>
		</item>
		<item>
			<title>transaction in .net</title>
			<link>http://www.daniweb.com/forums/thread235524.html</link>
			<pubDate>Tue, 03 Nov 2009 02:17:17 GMT</pubDate>
			<description>can anyone explain tranaction in .net ..when we go for it ?  
 explain locking in .net along with example plz?</description>
			<content:encoded><![CDATA[<div>can anyone explain tranaction in .net ..when we go for it ? <br />
 explain locking in .net along with example plz?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sivak</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235524.html</guid>
		</item>
		<item>
			<title>Toolbox vs manual creation</title>
			<link>http://www.daniweb.com/forums/thread235445.html</link>
			<pubDate>Mon, 02 Nov 2009 19:24:21 GMT</pubDate>
			<description>With apologies to ddanbe, I just have a question regarding using the IDE toolbox vs programmatically creating form objects at run time. I use to fall into the habit of only using the tool box to create from objects such as buttons or picture boxes but have now started to create them in the form...</description>
			<content:encoded><![CDATA[<div>With apologies to ddanbe, I just have a question regarding using the IDE toolbox vs programmatically creating form objects at run time. I use to fall into the habit of only using the tool box to create from objects such as buttons or picture boxes but have now started to create them in the form constructor. For example on my last project I needed to create 26 buttons, with each button representing the alphabet. I found that I could create them with less code and  have all 26 buttons use one click() method. Normally I would have dragged and dropping each button from the tool box, modified its properties and created a cick() method for each button. <br />
<br />
However this does make the form code look a bit messy since it is not in the form.designer.cs class. <br />
<br />
I know it probably depends on circumstance but what method is better than other? Does it matter?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RunTimeError</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235445.html</guid>
		</item>
		<item>
			<title>2 keys down</title>
			<link>http://www.daniweb.com/forums/thread235402.html</link>
			<pubDate>Mon, 02 Nov 2009 16:26:56 GMT</pubDate>
			<description><![CDATA[hi...i'm making a game that uses the direction arrows and fires with space...the problem is that when i keep holding 2 keys it makes only the behavior of one....can any1 tell me what i shall do]]></description>
			<content:encoded><![CDATA[<div>hi...i'm making a game that uses the direction arrows and fires with space...the problem is that when i keep holding 2 keys it makes only the behavior of one....can any1 tell me what i shall do</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kadamora</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235402.html</guid>
		</item>
		<item>
			<title>Which will be faster?</title>
			<link>http://www.daniweb.com/forums/thread235353.html</link>
			<pubDate>Mon, 02 Nov 2009 13:29:42 GMT</pubDate>
			<description>Hi There 
 
I am new to c#. I am using SqlDataReader to read database records(using c#).I have found lots of way to do it,but for performance i have found that ordinal reading is fast. Now I want to read a guid field ,as we know that with ordinal reading we can do this in two way...</description>
			<content:encoded><![CDATA[<div>Hi There<br />
<br />
I am new to c#. I am using SqlDataReader to read database records(using c#).I have found lots of way to do it,but for performance i have found that ordinal reading is fast. Now I want to read a guid field ,as we know that with ordinal reading we can do this in two way<br />
1)reader.GetGuid(0)<br />
2) (Guid)reader[0]<br />
<br />
but I don't know which will be faster...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>mahendra dubey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235353.html</guid>
		</item>
		<item>
			<title>Listview item display</title>
			<link>http://www.daniweb.com/forums/thread235343.html</link>
			<pubDate>Mon, 02 Nov 2009 12:52:17 GMT</pubDate>
			<description>Listview item display: 
 
In my application when I am entering string it compares with formtext of each form.If it matches with 
any of the formText ,it displays the image of panel2 that is on each form .These images appears in listview 
as a result of matching of two strings(string in textbox and...</description>
			<content:encoded><![CDATA[<div>Listview item display:<br />
<br />
In my application when I am entering string it compares with formtext of each form.If it matches with<br />
any of the formText ,it displays the image of panel2 that is on each form .These images appears in listview<br />
as a result of matching of two strings(string in textbox and string of formtext)...<br />
Now problem is that when results are displayed in listview ,then the images appears in center and I want to <br />
left allign each image in teh column.<br />
How can I allign the images to the left in the column like we have SNO. alligned to the left in column1.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>avirag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235343.html</guid>
		</item>
		<item>
			<title>convert amount to words</title>
			<link>http://www.daniweb.com/forums/thread235307.html</link>
			<pubDate>Mon, 02 Nov 2009 10:12:38 GMT</pubDate>
			<description>hi, 
can any one tell me how to i convert amount(in digitts) to word. 
thanks in advance</description>
			<content:encoded><![CDATA[<div>hi,<br />
can any one tell me how to i convert amount(in digitts) to word.<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kool.net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235307.html</guid>
		</item>
		<item>
			<title>What is designer.cs?</title>
			<link>http://www.daniweb.com/forums/thread235271.html</link>
			<pubDate>Mon, 02 Nov 2009 07:36:28 GMT</pubDate>
			<description><![CDATA[Hello All, 
 
 Can somebody tell me what is designer.cs file in C# and what is its use in programming. I'm new in C# and I also want to know more about this automatically created designer.cs file while programming.  
 
Thanks, 
 
George]]></description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
 Can somebody tell me what is designer.cs file in C# and what is its use in programming. I'm new in C# and I also want to know more about this automatically created designer.cs file while programming. <br />
<br />
Thanks,<br />
<br />
George</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>george_82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235271.html</guid>
		</item>
		<item>
			<title>Seperating UI code</title>
			<link>http://www.daniweb.com/forums/thread235258.html</link>
			<pubDate>Mon, 02 Nov 2009 06:14:18 GMT</pubDate>
			<description><![CDATA[Hey guys, 
 
I just have a question regarding the separation of UI code from business/logic code. I always seem to get in trouble for putting to much code in form classes. I don't understand where the line is drawn between code that needs to be in form/UI code vs code that needs to be put in a...]]></description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
<br />
I just have a question regarding the separation of UI code from business/logic code. I always seem to get in trouble for putting to much code in form classes. I don't understand where the line is drawn between code that needs to be in form/UI code vs code that needs to be put in a separate class. Further it seems a bit over kill to have to create a separate class and do logic in there just to do something simple. Lastly, what is the point? I really don't understand what the big deal is. I know that it is good practice but I mean is it really that big of an issue? In the example below I am getting the time and bringing up a message box. Now normally I would put this into the form code: <br />
<br />
Form1.cs (UI Code)<br />
 <pre style="margin:20px; line-height:13px">int hour = DateTime.Now.Hour;<br />
<br />
if(hour == 12)<br />
{<br />
&nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;It's time&quot;)<br />
}</pre><br />
By definition this is logic so I need to make an entirely separate class to satisfy the &quot;separation of UI&quot; rule such as I have done below?<br />
<br />
Form1.cs (UI)<br />
<br />
 <pre style="margin:20px; line-height:13px">timelogic timeClass = new timelogic();<br />
<br />
if(timeClass.returnTime())<br />
{<br />
&nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;It's time&quot;)<br />
}</pre><br />
timelogic.cs<br />
 <pre style="margin:20px; line-height:13px">public bool returnTime()<br />
{<br />
&nbsp; &nbsp;  int hour = DateTime.Now.Hour;<br />
<br />
&nbsp; &nbsp;  if(hour == 12)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  return false;<br />
}</pre><br />
It seems to be a bit over kill. I get even more confused because I am using logic within my form class to bring up a message box so am I breaking the rule? Can someone explain the proper method for separating logic/business code from UI code?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RunTimeError</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235258.html</guid>
		</item>
		<item>
			<title>C#Net2003 - Add CheckBox in DataGrid</title>
			<link>http://www.daniweb.com/forums/thread235257.html</link>
			<pubDate>Mon, 02 Nov 2009 06:06:18 GMT</pubDate>
			<description>Hi there, 
Please help me. I am having problem trying to include Checkbox in 1st Column in DataGrid for all the Rows. Being a newbie and  I am struggling doing it. I need your help.</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
Please help me. I am having problem trying to include Checkbox in 1st Column in DataGrid for all the Rows. Being a newbie and  I am struggling doing it. I need your help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>LennieKuah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235257.html</guid>
		</item>
		<item>
			<title>how to establish VPN between 2 PC through code?</title>
			<link>http://www.daniweb.com/forums/thread235207.html</link>
			<pubDate>Mon, 02 Nov 2009 02:04:32 GMT</pubDate>
			<description>I want to establish a VPN network between two PC of different lan network.Can i obtain this through my C# code. 
 
I am having no idea regarding this. 
Can any one tell me how can establish VPN through. 
TO obtain this in which direction i should  progress. 
IF any one having any article link...</description>
			<content:encoded><![CDATA[<div>I want to establish a VPN network between two PC of different lan network.Can i obtain this through my C# code.<br />
<br />
I am having no idea regarding this.<br />
Can any one tell me how can establish VPN through.<br />
TO obtain this in which direction i should  progress.<br />
IF any one having any article link regarding this or any any one knows about which namespace or clesses should i use to get this.<br />
<br />
please u r having any information regarding this. reply to this thread.<br />
m waiting for ur replies ...<br />
thnkss</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>crazyboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235207.html</guid>
		</item>
		<item>
			<title>Noobie: Help with executing command line exe and parameter</title>
			<link>http://www.daniweb.com/forums/thread235192.html</link>
			<pubDate>Mon, 02 Nov 2009 00:13:17 GMT</pubDate>
			<description><![CDATA[Hi Guys I was wondering if anyone could assist me by telling me / correcting my code as to where I am going wrong. 
 
I'm trying to simply excute flvmeta.exe, and pass the parameters:   
 
"flvmeta input.flv output.flv"  
 
when I do this manually it works fine, however when I build and try and run...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys I was wondering if anyone could assist me by telling me / correcting my code as to where I am going wrong.<br />
<br />
I'm trying to simply excute flvmeta.exe, and pass the parameters:  <br />
<br />
&quot;flvmeta input.flv output.flv&quot; <br />
<br />
when I do this manually it works fine, however when I build and try and run this .exe it does not run the: &quot;flvmeta input.flv output.flv&quot; I know that it is finding the flvmeta.exe, however for some reason there is an issue with my startInfo.Arguments. Could someone please help me out, I'm loosing my hair.<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Diagnostics;<br />
<br />
class Program<br />
{<br />
&nbsp; &nbsp; static void Main()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; LaunchCommandLineApp();<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; /// Launch the legacy application with some options set.<br />
&nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; static void LaunchCommandLineApp()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // For the example<br />
&nbsp; &nbsp; &nbsp; &nbsp; const string inputFLV = &quot;input.flv&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; const string outputFLV = &quot;output.flv&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Use ProcessStartInfo class<br />
&nbsp; &nbsp; &nbsp; &nbsp; ProcessStartInfo startInfo = new ProcessStartInfo();<br />
&nbsp; &nbsp; &nbsp; &nbsp; startInfo.CreateNoWindow = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; startInfo.UseShellExecute = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; startInfo.FileName = &quot;flvmeta.exe&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; startInfo.WindowStyle = ProcessWindowStyle.Hidden;<br />
&nbsp; &nbsp; &nbsp; &nbsp; startInfo.Arguments = &quot;flvmeta &quot; + inputFLV + &quot; &quot; + outputFLV + &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Start the process with the info we specified.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Call WaitForExit and then the using statement will close.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (Process exeProcess = Process.Start(startInfo))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(startInfo.Arguments);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exeProcess.WaitForExit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Log error.<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>help-me-please</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235192.html</guid>
		</item>
		<item>
			<title><![CDATA[[ASK] C# Namespace Problem]]></title>
			<link>http://www.daniweb.com/forums/thread235149.html</link>
			<pubDate>Sun, 01 Nov 2009 19:10:47 GMT</pubDate>
			<description><![CDATA[Hi, I've code like this 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>Hi, I've code like this<br />
<br />
 <pre style="margin:20px; line-height:13px">namespace RestaurantSoftClassLib.Karyawan<br />
{<br />
&nbsp;  public class Karyawan<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  blablabla<br />
&nbsp;  }<br />
}</pre><br />
when I want to use the Karyawan's Class in User's Class<br />
 <pre style="margin:20px; line-height:13px">using RestaurantSoftClassLib.Karyawan;<br />
<br />
namespace RestaurantSoftClassLib.User<br />
{<br />
&nbsp; &nbsp; public class User<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Karyawan.Karyawan karyawan;<br />
&nbsp; &nbsp; &nbsp; &nbsp; blablabla<br />
&nbsp; &nbsp; }<br />
}</pre><br />
why I used to write Karyawan two times, Karyawan.Karyawan not just Karyawan?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>skylancer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235149.html</guid>
		</item>
		<item>
			<title>sqlException--invalid expression</title>
			<link>http://www.daniweb.com/forums/thread235135.html</link>
			<pubDate>Sun, 01 Nov 2009 17:46:19 GMT</pubDate>
			<description><![CDATA[Hello every one.. 
I have this exception while trying to execute an insert command into a simple sql database 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>Hello every one..<br />
I have this exception while trying to execute an insert command into a simple sql database<br />
<br />
 <pre style="margin:20px; line-height:13px">string myChar = charNameTextBox.Text;<br />
<br />
&nbsp;string command = &quot;insert into data (char,Entropy,Uniformity,stadev,smoothness,skewness,kurtosis) values(&quot; + myChar + &quot;,&quot; + entropy + &quot;,&quot; + uniformity + &quot;,&quot; + standardDeviation + &quot;,&quot; + Smoothness + &quot;,&quot; + skewness + &quot;,&quot; + kurtosis + &quot;)&quot;;<br />
<br />
sqlComm = new SqlCommand(command, sqlConn);<br />
sqlComm.ExecuteNonQuery();</pre><br />
this is the exception ..occures against char with value myChar..<br />
 char is defined as nvarchar(MAX)<br />
--------<br />
The name &quot;ب&quot; is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.<br />
--------<br />
<br />
im sure i made a mistake but i can't discover where and i have not been working with database for a long time..<br />
<br />
thanks in advance..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>dima shawahneh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235135.html</guid>
		</item>
		<item>
			<title>Trying to iterate through XML files</title>
			<link>http://www.daniweb.com/forums/thread235132.html</link>
			<pubDate>Sun, 01 Nov 2009 17:21:01 GMT</pubDate>
			<description><![CDATA[I would like ask for some advice please, I am trying to create a program in C# but have the following problem. I am currently trying to loop through a batch of XML files that are stored in a folder.  However, I just don't want to loop through the XML file name, as I need to check through all the...]]></description>
			<content:encoded><![CDATA[<div>I would like ask for some advice please, I am trying to create a program in C# but have the following problem. I am currently trying to loop through a batch of XML files that are stored in a folder.  However, I just don't want to loop through the XML file name, as I need to check through all the nodes in each XML file(650 files) for certain values.  I know how to loop through a specific Xml file but unsure of how to actually loop through all XMl files to retrieve the values inside the values.  For now, all I have is code  to read through a specific XML file as shown below.  I would be grateful for any assistance in this matter.<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Xml;<br />
using System.IO;<br />
using System.Xml.Linq;<br />
<br />
namespace VoteProg_1<br />
{<br />
&nbsp; &nbsp; public partial class Form1 : Form<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Form1()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; XmlTextReader XReader = new XmlTextReader&nbsp; &nbsp; &nbsp; (&quot;C:\\Users\\Mark\\Documents\\VoteResults2\\result001.xml&quot;);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  private void label1_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void button1_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  foreach (string fileName in XFiles)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (XReader.Read()) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (XReader.NodeType) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case XmlNodeType.Element: // The node is an element.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.Text = XReader.Name.ToString();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case XmlNodeType.Text: //Display the text in each element.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.Text = XReader.Value.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case XmlNodeType.EndElement: //Display the end of the element.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  textBox1.Text = XReader.Name.ToString();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // textBox1.Text = XmlStr.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void label13_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void Form1_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void button2_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>markyjj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235132.html</guid>
		</item>
		<item>
			<title>How to Import emails from external email server using C#</title>
			<link>http://www.daniweb.com/forums/thread235131.html</link>
			<pubDate>Sun, 01 Nov 2009 17:16:37 GMT</pubDate>
			<description><![CDATA[Hi,  
 
I'm new to .net. I'm finding difficulty in figuring out how to Import emails from external email servers using C# ... I want to access any external mail server to import email addresses from it ... Kindly Please guide me !!!  
 
I will really appreciate your help ... Looking forward for...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
<br />
I'm new to .net. I'm finding difficulty in figuring out how to Import emails from external email servers using C# ... I want to access any external mail server to import email addresses from it ... Kindly Please guide me !!! <br />
<br />
I will really appreciate your help ... Looking forward for your feedback</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>explore</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235131.html</guid>
		</item>
		<item>
			<title>Issues on uninstallation</title>
			<link>http://www.daniweb.com/forums/thread235103.html</link>
			<pubDate>Sun, 01 Nov 2009 14:18:37 GMT</pubDate>
			<description>I am using windows installer for creating setup.exe for my windows application. I have included CustomUninstall.exe to uninstall my product  using start menu.Uninstall works perfectly but when the installed folder structure is open in the windows explorer i am getting one warning saying...</description>
			<content:encoded><![CDATA[<div>I am using windows installer for creating setup.exe for my windows application. I have included CustomUninstall.exe to uninstall my product  using start menu.Uninstall works perfectly but when the installed folder structure is open in the windows explorer i am getting one warning saying &quot;C:\Program\Product name refers to location that is unavailable It could be on a harddrive on this computer ,or a network .&quot;   .Can anybody help me.<br />
<br />
Also i would like to know some more info about uninstall<br />
    Is it possibl to change the UI before uninstall.By default Its like&quot;Are you sure to uninstall this product&quot;.<br />
    How can i change to &quot;Are you sure to uninstall [product-name]&quot;.<br />
<br />
     How can i provide one confirmation message after successful uninstall.<br />
<br />
Does anyone have any solutions to this problems?<br />
<br />
Thanks,<br />
Patro</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>patro.kumar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235103.html</guid>
		</item>
		<item>
			<title>send sms with c#.net</title>
			<link>http://www.daniweb.com/forums/thread235051.html</link>
			<pubDate>Sun, 01 Nov 2009 10:50:58 GMT</pubDate>
			<description>I want to send sms with c#. 
no anybody help me?</description>
			<content:encoded><![CDATA[<div>I want to send sms with c#.<br />
no anybody help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Soldier1386</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235051.html</guid>
		</item>
		<item>
			<title>Ship applications developed in .net using C#</title>
			<link>http://www.daniweb.com/forums/thread235019.html</link>
			<pubDate>Sun, 01 Nov 2009 04:36:45 GMT</pubDate>
			<description><![CDATA[Hi 
I have developed application in .net framework 3.5 WPF. 
Well, you know WPF also requires .net framwork 3.5 SP1. 
 
Now it's works fine on my computer. 
But i need to ship it the client. 
 
What will be the software requirements at the client side to run my application. 
 
Is it possible that i...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
I have developed application in .net framework 3.5 WPF.<br />
Well, you know WPF also requires .net framwork 3.5 SP1.<br />
<br />
Now it's works fine on my computer.<br />
But i need to ship it the client.<br />
<br />
What will be the software requirements at the client side to run my application.<br />
<br />
Is it possible that i just pack everything in a single exe file or a folder and client don't have to install anything else except to double click the exe file and start using it.<br />
<br />
Well the problem occured when i developed the application in WPF and ship it to client but at client computer there was .net framework 3.5 installed along with .net framework 3.5 service pack one.<br />
So i suggested him to install both of them and then he can use the application i developed.<br />
<br />
Well, you understand that it's complicated for client to handle these technical issues and moreover .net framework 3.5 is large and along with it they also had to install .net framework 3.5 sp1.<br />
<br />
Well, i don't think this is a best idea, there must be something else easier and more compact.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>nccsbim071</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235019.html</guid>
		</item>
		<item>
			<title>develop applications for vista on windows xp machine</title>
			<link>http://www.daniweb.com/forums/thread235016.html</link>
			<pubDate>Sun, 01 Nov 2009 04:18:43 GMT</pubDate>
			<description>Hi 
All the coders out there. I need a suggestion. 
I have windows xp installed on my computer and i need to develop application for windows vista. 
 
I would prefer to use .net framework 2.0 and visual studio 2005. 
Instead of .net framework 3.5 and visual studio 2008. 
 
Well, selection between...</description>
			<content:encoded><![CDATA[<div>Hi<br />
All the coders out there. I need a suggestion.<br />
I have windows xp installed on my computer and i need to develop application for windows vista.<br />
<br />
I would prefer to use .net framework 2.0 and visual studio 2005.<br />
Instead of .net framework 3.5 and visual studio 2008.<br />
<br />
Well, selection between .net framework is not a problem. It's ok if i could just use any of them. But i need to develop it on windows xp machine and would expect to implement it on windows vista or higher version of windows.<br />
<br />
How can i do this?<br />
Please help<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>nccsbim071</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235016.html</guid>
		</item>
		<item>
			<title>hi..</title>
			<link>http://www.daniweb.com/forums/thread235015.html</link>
			<pubDate>Sun, 01 Nov 2009 04:12:37 GMT</pubDate>
			<description>i need some sample code on retrieving data from the database and put it in the form particulary in the groupbox.. 
 
we are doing a project study, text to voice translator.. 
 
when the user enter the word in the textbox and clicks the speak button, the english equivalent word of the input word is...</description>
			<content:encoded><![CDATA[<div>i need some sample code on retrieving data from the database and put it in the form particulary in the groupbox..<br />
<br />
we are doing a project study, text to voice translator..<br />
<br />
when the user enter the word in the textbox and clicks the speak button, the english equivalent word of the input word is displayed in the groupbox...<br />
<br />
how is it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>jejannah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235015.html</guid>
		</item>
		<item>
			<title>How to Close User Control?</title>
			<link>http://www.daniweb.com/forums/thread234998.html</link>
			<pubDate>Sun, 01 Nov 2009 01:52:05 GMT</pubDate>
			<description>hi, i am having problem with closing user control. 
 
i have some function in my parent form(with panel2): 
 
public void ActivateUserControlOne() 
{ 
            panel2.Controls.Clear(); 
            UserControlOne = new UserControlOne();            
           ...</description>
			<content:encoded><![CDATA[<div>hi, i am having problem with closing user control.<br />
<br />
i have some function in my parent form(with panel2):<br />
<br />
 <pre style="margin:20px; line-height:13px">public void ActivateUserControlOne()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; panel2.Controls.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UserControlOne = new UserControlOne();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; panel2.Controls.Add(this.UserControlOne);<br />
}</pre>...and UserControlOne appears.<br />
i want to close(remove) UserControlOne on Cancel()(Cancel is function in UserControlOne) and load another User Control (UserControl2) to panel2:<br />
<br />
 <pre style="margin:20px; line-height:13px">public void Cancel()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.Parent.Controls.Remove(this);<br />
<br />
}</pre><br />
any ideas how to do that?!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>milosz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234998.html</guid>
		</item>
		<item>
			<title>Tables</title>
			<link>http://www.daniweb.com/forums/thread234993.html</link>
			<pubDate>Sun, 01 Nov 2009 01:05:37 GMT</pubDate>
			<description><![CDATA[So, i'm new to C# and not really sure how to do this. I need to create an options table where when the user loads it, it looks sort of like this http://img11.imageshack.us/img11/9012/formf.jpg 
 
On the initial load, all of the data members are on top, loaded from an array. If the user doesn't want...]]></description>
			<content:encoded><![CDATA[<div>So, i'm new to C# and not really sure how to do this. I need to create an options table where when the user loads it, it looks sort of like this <a rel="nofollow" class="t" href="http://img11.imageshack.us/img11/9012/formf.jpg" target="_blank">http://img11.imageshack.us/img11/9012/formf.jpg</a><br />
<br />
On the initial load, all of the data members are on top, loaded from an array. If the user doesn't want a particular data member to be used all they have to do is highlight it and click the down arrow. This moves the entire row from the top table to the bottom table visual wise, and to a different array data wise. I assume I would use something like a ListView, but I'm not sure how to make it behave like I want it to. When the user clicks a row I want the whole row to be highlighted, and I would like the give the user the ability to sort all rows by a particular column.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>LucerinRed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234993.html</guid>
		</item>
		<item>
			<title>Voice Streaming</title>
			<link>http://www.daniweb.com/forums/thread234986.html</link>
			<pubDate>Sat, 31 Oct 2009 22:51:10 GMT</pubDate>
			<description>Please can anyone help me with the codes on voice streaming of the following scenario... 
 
I want to develop a code which can run on my PDAs making both of them to be able 2 communicate with each other over a network (the PDAs are wi-fi enabled) 
 
Mode of communication is : 1. Voice calls 
      ...</description>
			<content:encoded><![CDATA[<div>Please can anyone help me with the codes on voice streaming of the following scenario...<br />
<br />
I want to develop a code which can run on my PDAs making both of them to be able 2 communicate with each other over a network (the PDAs are wi-fi enabled)<br />
<br />
Mode of communication is : 1. Voice calls<br />
                                            2. Text messaging<br />
<br />
I intend to have a server (my laptop) which handles the whole of the switching process, and also is able to pass voice n data btw itself and the PDAs.<br />
<br />
Scenario<br />
Have two personal digital assistants ( PDAs) and my laptop which connect to each other over a network.<br />
I need to develop a code which will help stream voice and data over the network, making the PDAs able to make voice calls to each other and also to my laptop which also acts as the server or switching system here.<br />
<br />
The laptop helps to switch calls btw both parties and also help to initiate an end to call btw both parties.<br />
The laptop also runs both the client aand server software.<br />
<br />
The switching should be fast and effective...Compression of voice over the network is allowed.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>tobibabs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234986.html</guid>
		</item>
		<item>
			<title>Get the column values from the SQLite database</title>
			<link>http://www.daniweb.com/forums/thread234938.html</link>
			<pubDate>Sat, 31 Oct 2009 16:03:07 GMT</pubDate>
			<description><![CDATA[Hello guys, can someone tell me how can I get the values from the columns ? 
 
My sql table is: 
 
Table name: settbl 
Table columns: id, first (int), second (int) 
 
...and now, I want to get the values from "first" and "second", but I got the error message "Object reference no set to an instance...]]></description>
			<content:encoded><![CDATA[<div>Hello guys, can someone tell me how can I get the values from the columns ?<br />
<br />
My sql table is:<br />
<br />
Table name: settbl<br />
Table columns: id, first (int), second (int)<br />
<br />
...and now, I want to get the values from &quot;first&quot; and &quot;second&quot;, but I got the error message &quot;Object reference no set to an instance of an object&quot;.<br />
<br />
This is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px">sqlIteCon = new SQLiteConnection(&quot;Data Source=set.db;Version=3;New=False;Compress=True;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlIteCon.Open();<br />
string SelectQuery = &quot;SELECT * FROM settbl&quot;;<br />
SQLiteCommand sqlCommand = new SQLiteCommand(SelectQuery, sqlIteCon);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SQLiteDataReader sqlRead = sqlCommand.ExecuteReader();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int a = sqlRead.GetInt32(sqlRead.GetOrdinal(&quot;first&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int b = sqlRead.GetInt32(sqlRead.GetOrdinal(&quot;second&quot;));</pre><br />
Thanks...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Krstevski</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234938.html</guid>
		</item>
		<item>
			<title>not able to see form design in C#</title>
			<link>http://www.daniweb.com/forums/thread234903.html</link>
			<pubDate>Sat, 31 Oct 2009 13:28:44 GMT</pubDate>
			<description><![CDATA[the design form show following error... 
pls help... 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>the design form show following error...<br />
pls help...<br />
 <pre style="margin:20px; line-height:13px"><br />
&lt;html&gt;&lt;head&gt;&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=UTF-8&quot;&gt;&lt;title&gt;&lt;/title&gt;&lt;style&gt;.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;DIV class=&quot;DetailsStyle&quot; width=&quot;100%&quot;&gt;&lt;table border=&quot;0&quot; width=&quot;100%&quot; id=&quot;table1&quot; height=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td height=&quot;40&quot; bgcolor=&quot;#FF9999&quot; width=&quot;8%&quot; style=&quot;letter-spacing: 0&quot; align=&quot;center&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;C:\Documents and Settings\fagmann09\Local Settings\Temp\1502A4.tmp&quot; width=&quot;35&quot; height=&quot;35&quot; alt=&quot;ErrorImage&quot; &gt;&lt;/td&gt;&lt;td height=&quot;40&quot; bgcolor=&quot;#FF9999&quot; width=&quot;91%&quot; style=&quot;vertical-align: top; letter-spacing: 0&quot; align=&quot;left&quot;&gt;&lt;b&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot; fontsize=&quot;70%&quot;&gt;One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.&lt;/font&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;DIV id=&quot;div1&quot; class=&quot;ErrorStyle&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;font-weight: 600&quot;&gt;&lt;br&gt;The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'. &lt;/span&gt;&lt;br&gt;&lt;a href=&quot;&quot; id=&quot;details0&quot;&gt;Hide&lt;/a&gt;&lt;font color=&quot;#0000FF&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp&lt;/font&gt;&lt;a href=&quot;&quot; id=&quot;task0&quot;&gt;Edit&lt;/a&gt;&lt;font color=&quot;#0000FF&quot;&gt;&lt;/font&gt;&lt;/span&gt;&lt;/DIV&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;DIV id=&quot;div20&quot; class=&quot;StackStyleVisible&quot; width=&quot;100%&quot;&gt;&lt;br&gt;&nbsp;  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)&lt;br&gt;&nbsp;  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)&lt;br&gt;&nbsp;  at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>bk_bhupendra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234903.html</guid>
		</item>
		<item>
			<title>How to use trigger in C#</title>
			<link>http://www.daniweb.com/forums/thread234893.html</link>
			<pubDate>Sat, 31 Oct 2009 13:02:41 GMT</pubDate>
			<description>Dear All 
 
I am new in ADO.Net and i am using C#. My problem is I want to execute one trigger in my program I am having name of student in my student table now from my C# program I will pass any name which is in table from textbox and that name should go to the trigger through update query. Here...</description>
			<content:encoded><![CDATA[<div>Dear All<br />
<br />
I am new in ADO.Net and i am using C#. My problem is I want to execute one trigger in my program I am having name of student in my student table now from my C# program I will pass any name which is in table from textbox and that name should go to the trigger through update query. Here is the trigger and Update query -  <pre style="margin:20px; line-height:13px">Create trigger tr1 on student<br />
after update as<br />
begin<br />
update m set m.due_amount=m.due_amount-d.st_pay <br />
from master as m inner join inserted as d on d.st_name = m.st_name <br />
end<br />
&nbsp;<br />
update student set st_pay=500<br />
where st_name='ram'</pre><br />
Can anyone help me how can I use this trigger and query in C#.<br />
<br />
Thanx in advance with lots of expectation from this forum</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>AnkitKumar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234893.html</guid>
		</item>
		<item>
			<title>class file in C#...help   ASAP!!!!</title>
			<link>http://www.daniweb.com/forums/thread234885.html</link>
			<pubDate>Sat, 31 Oct 2009 11:26:25 GMT</pubDate>
			<description><![CDATA[hey guys just need some help here..i don't know how program it in C#.. 
 
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...]]></description>
			<content:encoded><![CDATA[<div>hey guys just need some help here..i don't know how program it in C#..<br />
<br />
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<br />
<br />
P.S. can you send the files(database files and class files) SNIP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>glad024</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234885.html</guid>
		</item>
		<item>
			<title>SMS Sender in C#.NET</title>
			<link>http://www.daniweb.com/forums/thread234879.html</link>
			<pubDate>Sat, 31 Oct 2009 10:42:48 GMT</pubDate>
			<description>Hi, 
I am building a C#.Net application for sending sms through GSM Modem in a mobile phone, I am able to send the sms with this application but the problem is I need to display the inbox list in the mobile. I searched a lot to retrieve the inbox list the the AT Command for the GSM modem is not...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I am building a C#.Net application for sending sms through GSM Modem in a mobile phone, I am able to send the sms with this application but the problem is I need to display the inbox list in the mobile. I searched a lot to retrieve the inbox list the the AT Command for the GSM modem is not working for me. I tried CMGL AT command.<br />
<br />
Please send if anybody know how to get the sms inbox list in a mobile phone.<br />
<br />
My application details : SNIP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>josephjohn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234879.html</guid>
		</item>
		<item>
			<title>call sub child froms in mdi form</title>
			<link>http://www.daniweb.com/forums/thread234873.html</link>
			<pubDate>Sat, 31 Oct 2009 10:30:10 GMT</pubDate>
			<description><![CDATA[hi, 
i have a mdi form named MDIParent2  in my application and it has many child forms. 
 child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2. 
can any one tell me how to i call sub child  & sub - sub child forms in same parent form.]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
i have a mdi form named MDIParent2  in my application and it has many child forms.<br />
 child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2.<br />
can any one tell me how to i call sub child  &amp; sub - sub child forms in same parent form.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kool.net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234873.html</guid>
		</item>
		<item>
			<title>help !!!!!!!</title>
			<link>http://www.daniweb.com/forums/thread234844.html</link>
			<pubDate>Sat, 31 Oct 2009 07:36:41 GMT</pubDate>
			<description>can anybody please help me in mt major project.... 
my topics is document to xml converter using .net technology... 
i am not getting how to do it ???</description>
			<content:encoded><![CDATA[<div>can anybody please help me in mt major project....<br />
my topics is document to xml converter using .net technology...<br />
i am not getting how to do it ???</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Madhavi R</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234844.html</guid>
		</item>
		<item>
			<title>Add user control in application</title>
			<link>http://www.daniweb.com/forums/thread234842.html</link>
			<pubDate>Sat, 31 Oct 2009 07:28:03 GMT</pubDate>
			<description>I have made a project and now when it comes to designing I could not find any better way. 
I searched google and found certain applications  which have  already made user controls like silver panel,navigation bar etc........ 
Now can anyone tell me how can I use these user controls from that...</description>
			<content:encoded><![CDATA[<div>I have made a project and now when it comes to designing I could not find any better way.<br />
I searched google and found certain applications  which have  already made user controls like silver panel,navigation bar etc........<br />
Now can anyone tell me how can I use these user controls from that application into my own application .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>vinnijain</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234842.html</guid>
		</item>
		<item>
			<title>Converting Java to C# GDI problem</title>
			<link>http://www.daniweb.com/forums/thread234809.html</link>
			<pubDate>Sat, 31 Oct 2009 03:34:18 GMT</pubDate>
			<description><![CDATA[Ok I'm converting a program from Java to C# and currently stuck on a certain aspect of it. 
 
 
Ok I have; 
 
private Graphics g1; 
private Bitmap picture; 
picture = new Bitmap(x1, y1); 
g1 = Graphics.FromImage(picture); 
pbMand.Image = picture;]]></description>
			<content:encoded><![CDATA[<div>Ok I'm converting a program from Java to C# and currently stuck on a certain aspect of it.<br />
<br />
<br />
Ok I have;<br />
<br />
 <pre style="margin:20px; line-height:13px">private Graphics g1;<br />
private Bitmap picture;<br />
picture = new Bitmap(x1, y1);<br />
g1 = Graphics.FromImage(picture);<br />
pbMand.Image = picture;</pre><br />
pbMand is the name of my picture box, which I will use to display the image (not drawing directly to form, using PB).<br />
<br />
Then further on I have...<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g1.setColor(Color.FromArgb(Convert.ToInt16(h), Convert.ToInt16(0.8f), Convert.ToInt16(b)));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //djm test<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color col = Color.getHSBColor(h, 0.8f, b);</pre><br />
I can't find an equivilent form javas setColor to something in C#...It seems to lack anything colour related in g1's methods.<br />
<br />
And the error it gives is...<br />
Error	1	'System.Drawing.Graphics' does not contain a definition for 'setColor' and no extension method 'setColor' accepting a first argument of type 'System.Drawing.Graphics' could be found (are you missing a using directive or an assembly reference?<br />
<br />
Any help to solve this issue would be appreciated. I'm not sure what other information I can give either, so feel free to ask questions :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>ronson</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234809.html</guid>
		</item>
		<item>
			<title>Help with picking the right audio/video libraries</title>
			<link>http://www.daniweb.com/forums/thread234780.html</link>
			<pubDate>Fri, 30 Oct 2009 22:45:40 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
I'm working on a multimedia project that involves capturing images from a web cam, analyzing pixels and playing some audio. 
 
I got a hold of some sample code that plays audio and reads images using DirectX, but I was really disappointed with the stability of the application overall...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I'm working on a multimedia project that involves capturing images from a web cam, analyzing pixels and playing some audio.<br />
<br />
I got a hold of some sample code that plays audio and reads images using DirectX, but I was really disappointed with the stability of the application overall (perhaps bad sample code? not sure...). This was in Visual C++ too. I think I'd like to do it in C#.NET or Java.<br />
<br />
Does anyone have any library/API recommendations for the following:<br />
- capturing images from a web cam. I've never done this before programmatically...<br />
- reading pixels from graphic images (captured images)<br />
- playing mp3 files; possibility for fade in/fade out would be ideal<br />
<br />
I've done the research, but I thought I'd get your feedback as well in case you've actually worked with them. Even if not, feedback is still very much appreciated!<br />
<br />
Thank You,<br />
Tim</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>timhysniu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234780.html</guid>
		</item>
		<item>
			<title>minmizing form size less than what it allows</title>
			<link>http://www.daniweb.com/forums/thread234739.html</link>
			<pubDate>Fri, 30 Oct 2009 17:40:50 GMT</pubDate>
			<description><![CDATA[hello every one 
i m trying to minimize the form size  
but less than what it allows for me 
 
if i do like this .. it is okey 
this.Size = new Size(124, 36); 
 
but less than these values for the width and length 
it won't work..]]></description>
			<content:encoded><![CDATA[<div>hello every one<br />
i m trying to minimize the form size <br />
but less than what it allows for me<br />
<br />
if i do like this .. it is okey<br />
this.Size = new Size(124, 36);<br />
<br />
but less than these values for the width and length<br />
it won't work..<br />
<br />
i need to make it smaller..<br />
im not sure if this problem makes sense</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>dima shawahneh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234739.html</guid>
		</item>
		<item>
			<title>Simple Database Handling</title>
			<link>http://www.daniweb.com/forums/thread234734.html</link>
			<pubDate>Fri, 30 Oct 2009 16:58:51 GMT</pubDate>
			<description><![CDATA[I am using C# in Visual Studio to modify an ASP web application. 
 
The application is currently using SQL Server as it's database.  SQL Server is way overkill for this application.  We're talking 1 table, maybe 40 - 50 records, with maybe 2 add/modify/delete transactions a week. 
 
I'd like to get...]]></description>
			<content:encoded><![CDATA[<div>I am using C# in Visual Studio to modify an ASP web application.<br />
<br />
The application is currently using SQL Server as it's database.  SQL Server is way overkill for this application.  We're talking 1 table, maybe 40 - 50 records, with maybe 2 add/modify/delete transactions a week.<br />
<br />
I'd like to get the client off SQL Server, as they're paying a hosting company for it.  Is there anything in the .NET arsenal that would allow me to do this simple db handling?  (The hosting company does not support mySQL or Postgress)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>gotherthanthou</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234734.html</guid>
		</item>
		<item>
			<title>Evenhandler Problem</title>
			<link>http://www.daniweb.com/forums/thread234710.html</link>
			<pubDate>Fri, 30 Oct 2009 15:20:37 GMT</pubDate>
			<description>I am creating a gridview dynamically using Itemplate but I have run into an issue where the event handlers I create for my drop down boxes in edititem template are accumulating every time it fires.  
 
To be more specific. When I enter edit mode and select a new item in the dropdownlist the event...</description>
			<content:encoded><![CDATA[<div>I am creating a gridview dynamically using Itemplate but I have run into an issue where the event handlers I create for my drop down boxes in edititem template are accumulating every time it fires. <br />
<br />
To be more specific. When I enter edit mode and select a new item in the dropdownlist the event handler fires twice (this I know is because the event handler is updating a second dropdownlist), but if I change another dropdownlist during the same edit session or change the same dropdownlist again the new event fires then the original two fire again. Then if I make a third change I get four events and it keeps incrementing. <br />
<br />
I am removing the orignal event handler before adding a new event handler so there shouldn;t be multiple handlers for each instance.<br />
<br />
 <pre style="margin:20px; line-height:13px"> else if (ControlType == &quot;DropDown&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var dropVals = new Dictionary&lt;string, string&gt;();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DropDownList field_dropbox = new DropDownList();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; field_dropbox.ID = FieldName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; field_dropbox.SelectedIndexChanged -= new EventHandler(field_dropbox_SelectedIndexChanged);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; field_dropbox.SelectedIndexChanged += new EventHandler(field_dropbox_SelectedIndexChanged);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; field_dropbox.AutoPostBack = true;</pre><br />
My event handler updates another dropdown so I know why the event should fire twice but it doesn't explain why they keep firing.<br />
<br />
 <pre style="margin:20px; line-height:13px">protected void field_dropbox_SelectedIndexChanged(Object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string syncDrop = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string list = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var _sync = new Dictionary&lt;string,string&gt;();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _sync = GlobalVars._DropSync;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list = ((DropDownList)sender).ID.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (_sync.ContainsKey(list))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; syncDrop = _sync&#91;list&#93;.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GridViewRow gvr = (GridViewRow)(((Control)sender).NamingContainer);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the reference of the first DropDownlist that will generate this SelectedIndexChanged event<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DropDownList dropdownlist1 = (DropDownList)gvr.FindControl(list);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the reference of second DropDownlist in the same row.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DropDownList ddlSync = (DropDownList)gvr.FindControl(syncDrop);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ddlSync != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ddlSync.ClearSelection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ddlParagraph.Items.FindByText(dropdownlist1.SelectedItem.Value.ToString()).Selected = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ddlSync.Items.FindByText(dropdownlist1.SelectedValue.ToString()).Selected = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //new Page().Session&#91;&quot;EventhandlerFired&quot;&#93; = ((DropDownList)sender).ID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Is there a way to purge the eventhandler after it is fired so it does not fire if I make a subsequent change?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>cgyrob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234710.html</guid>
		</item>
		<item>
			<title>Network programming Issue C# TCP</title>
			<link>http://www.daniweb.com/forums/thread234661.html</link>
			<pubDate>Fri, 30 Oct 2009 10:48:07 GMT</pubDate>
			<description>Following is the Objective of my program 
1.Creating a TCP Server 
2.Multiple clients can attach to it 
3.Clients send data to the TCP Server and the server in-turn send the same data to all other clients 
  
I have the following problem 
 
When run on the same machine with 10 to 12 clients ....</description>
			<content:encoded><![CDATA[<div>Following is the Objective of my program<br />
1.Creating a TCP Server<br />
2.Multiple clients can attach to it<br />
3.Clients send data to the TCP Server and the server in-turn send the same data to all other clients<br />
 <br />
I have the following problem<br />
<br />
When run on the same machine with 10 to 12 clients . Clients receive data from other clients with one data from a client at a time.<br />
<br />
But when clients are different machines (10-12), client receives two messages for a single receive call,spuriously.(this doesnt happen with the same machine).<br />
Please help me out in this issue. i need only one message at a time.<br />
Suggest some ways....Thanks in Advance</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12377&amp;d=1256899580">ThinTCPClient.zip</a> (142.9 KB)</td> </tr><tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12378&amp;d=1256899664">SimpleThreadedTCPServer.zip</a> (127.4 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>themigrant</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234661.html</guid>
		</item>
		<item>
			<title>Converting or Casting Query</title>
			<link>http://www.daniweb.com/forums/thread234660.html</link>
			<pubDate>Fri, 30 Oct 2009 10:41:31 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm new to c# although have written in a few other langues in the past. I'm trying to get a list of services and their status and create an xml file from this info. 
 
I use the ServiceController. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm new to c# although have written in a few other langues in the past. I'm trying to get a list of services and their status and create an xml file from this info.<br />
<br />
I use the ServiceController.<br />
 <pre style="margin:20px; line-height:13px">ServiceController[] services = ServiceController.GetServices();</pre><br />
If I send the info to the console:-<br />
<br />
 <pre style="margin:20px; line-height:13px">Console.WriteLine(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;{0},{1}&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; service.ServiceName,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; service.Status);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
It works fine such as IMAP,running<br />
<br />
If I try to write service.Status to an xml file :-<br />
<br />
 <pre style="margin:20px; line-height:13px">textWriter.WriteString(service.Status);</pre><br />
I get the error <br />
<br />
Error	2	Argument '1': cannot convert from 'System.ServiceProcess.ServiceControllerStatus' to 'string'<br />
<br />
I'm confused as I can't see why it can write to the console but not to an XML file.<br />
<br />
I hope I 've given enough info and that someone can point me in the right direction.<br />
<br />
Many thanks<br />
Hirez.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Hirez</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234660.html</guid>
		</item>
		<item>
			<title>Back And forward Button in window Application?</title>
			<link>http://www.daniweb.com/forums/thread234659.html</link>
			<pubDate>Fri, 30 Oct 2009 10:32:10 GMT</pubDate>
			<description>Hi i am making an window application in C# .net using VS......... 
I want to know how can i apply the functionality of back and forward on button , like we have in windows toolbar............. 
Can anyone help me in this...............</description>
			<content:encoded><![CDATA[<div>Hi i am making an window application in C# .net using VS.........<br />
I want to know how can i apply the functionality of back and forward on button , like we have in windows toolbar.............<br />
Can anyone help me in this...............</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>abc16</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234659.html</guid>
		</item>
		<item>
			<title>Big Numbers Problem</title>
			<link>http://www.daniweb.com/forums/thread234630.html</link>
			<pubDate>Fri, 30 Oct 2009 08:41:23 GMT</pubDate>
			<description>hello my friends I need a little help over here :  
im workin on a calculator that should provide the user with these services: 
•	Read a big integer number up to 300 ( use arrays ) . 
•	Sum two big integer numbers (with using the carry). 
•	Product two big integer numbers (with using the carry)....</description>
			<content:encoded><![CDATA[<div>hello my friends I need a little help over here : <br />
im workin on a calculator that should provide the user with these services:<br />
•	Read a big integer number up to 300 ( use arrays ) .<br />
•	Sum two big integer numbers (with using the carry).<br />
•	Product two big integer numbers (with using the carry).<br />
•	Write a big Integer number.<br />
<br />
so this is wat i did <br />
 <pre style="margin:20px; line-height:13px"> class Program<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; static void Main(string[] args)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  //inputting the two numbers .<br />
&nbsp; &nbsp; &nbsp; &nbsp;  string number1, number2;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int sumsize, p;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  number1 = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  number2 = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  //modifying the numbers to be from the same length .<br />
&nbsp; &nbsp; &nbsp; &nbsp;  /*i added one to the sum array size(sumsize) to avoid <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  the over flow */<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (number1.Length &gt; number2.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; number2 = number2.PadLeft(number1.Length, '0');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sumsize = number1.Length+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p = number1.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; number1 = number1.PadLeft(number2.Length, '0');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sumsize = number2.Length+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p = number2.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  //declaring the two arrays and filling them with characters .<br />
&nbsp; &nbsp; &nbsp; &nbsp; /* the input is string so when converting it to int i found that <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i should subtract 48 to get the right result */<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int[] arr1 = new int[number1.Length];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; number1.Length; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr1[i] = Convert.ToInt32(number1[i] - 48);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int[] arr2 = new int[number2.Length];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; number2.Length; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr2[i] = Convert.ToInt32(number2[i] - 48);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  //displaying the two arrays .<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(&quot;\n1ST.Number is: \n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; number1.Length; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(arr1[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(&quot;\n\n2ND.Number is: \n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; number2.Length;&nbsp; &nbsp; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(arr2[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  // till here everything is workin properly .. then --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int[] sum = new int[sumsize];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int carry = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int holder;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // the sum <br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (int i = p-1; i &gt;=0; i--)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; holder=arr1[i] + arr2[i] + carry;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (holder &lt; 10)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sum[sumsize-1] = arr1[i] + arr2[i] + carry;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  carry = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sum[sumsize-1] = holder % 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  carry = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sumsize--;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(&quot;sum is=&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0;i&lt;sumsize;i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.Write(sum[i]);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}</pre><br />
unfortunately its not workin right, <br />
so please any help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Alicito</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234630.html</guid>
		</item>
		<item>
			<title>WPF WebBrowser Control</title>
			<link>http://www.daniweb.com/forums/thread234612.html</link>
			<pubDate>Fri, 30 Oct 2009 07:08:44 GMT</pubDate>
			<description><![CDATA[I have a php website which i want to run in C# wpf webbrowser control. 
 
I have a validated a username and password for the site by connecting to it's database using .net. 
 
Now i want the functionality to take username and password and submit the post form to php page that will validate the...]]></description>
			<content:encoded><![CDATA[<div>I have a php website which i want to run in C# wpf webbrowser control.<br />
<br />
I have a validated a username and password for the site by connecting to it's database using .net.<br />
<br />
Now i want the functionality to take username and password and submit the post form to php page that will validate the username and password again(of course it is already validated) or not validate and send the user to the page that it needs to redirect. and i want that page to be seen in my webbrowser control.<br />
<br />
How do i do this.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>nccsbim071</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234612.html</guid>
		</item>
		<item>
			<title>Begginers Q: why not:   Person(Console.ReadLine())=new Person();  ???</title>
			<link>http://www.daniweb.com/forums/thread234598.html</link>
			<pubDate>Fri, 30 Oct 2009 05:27:58 GMT</pubDate>
			<description><![CDATA[Hello everyone/anyone. 
This is my first post anywhere on the internet .But I've spent  years reading them trying to learn varios things. I read on an MSDN forum that its appropriate to ask after 2hours of trying or something like that,But that would be many times a day for me so i'l try to limit...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone/anyone.<br />
This is my first post anywhere on the internet .But I've spent  years reading them trying to learn varios things. I read on an MSDN forum that its appropriate to ask after 2hours of trying or something like that,But that would be many times a day for me so i'l try to limit it.<br />
My point is I mean well, and any well meaning advice such as (you're asking questions to often!) or (Less preamble get to the point!) and particularly how I could contribute, with my very basic computer abilities , is  really appreciated.<br />
<br />
first some code<br />
 [ code]<br />
<br />
static void Main(string[] args)<br />
        {<br />
            Person Michael = new Person();<br />
            Person Mary = new Person();<br />
<br />
            // Specify some values for the instance variables<br />
            Michael.Age = 20;<br />
            Michael.HairColor = &quot;Brown&quot;;<br />
            Michael.Ocupation = &quot;Teacher&quot;;<br />
            Mary.Age = 25;<br />
            Mary.HairColor = &quot;Black&quot;;<br />
            Mary.Ocupation = &quot;nurse&quot;;<br />
            Console.WriteLine(&quot;Please enter a new persons name to add , and press enter:&quot;);<br />
<br />
            Person (Console.ReadLine()) = new Person();<br />
<br />
<br />
[code]<br />
error:ConsoleApplication1.Person is a 'type 'but used like a 'variable'<br />
<br />
Why is the last line not acceptable?.Intuitivly i've always tried to do that. What is the simplest alternative (that actully works :))?.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>smoking clutch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234598.html</guid>
		</item>
		<item>
			<title>Treeview node.</title>
			<link>http://www.daniweb.com/forums/thread234590.html</link>
			<pubDate>Fri, 30 Oct 2009 04:35:28 GMT</pubDate>
			<description>Hi all i have a problem in C# window application........... 
Well i am making a application in which i am making treeview control, in which i have some nodes, and when i click on particular node, so related form is displaying  in side panel............ 
But the problem is that,After debugging when...</description>
			<content:encoded><![CDATA[<div>Hi all i have a problem in C# window application...........<br />
Well i am making a application in which i am making treeview control, in which i have some nodes, and when i click on particular node, so related form is displaying  in side panel............<br />
But the problem is that,After debugging when my application is start so  first node of that treeview looks automatically selected, and corresponding form is displaying in side panel, which i dont want, i want when i click on that node, then only corresponding form will be open in side panel....<br />
In case of below nodes of treeview it is working fine, this problem only occurs in case of first node of treeview control................<br />
Can anyone help me in this..............</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>xyz12</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234590.html</guid>
		</item>
		<item>
			<title>Need help for building a console based calculator using C#</title>
			<link>http://www.daniweb.com/forums/thread234578.html</link>
			<pubDate>Fri, 30 Oct 2009 03:47:38 GMT</pubDate>
			<description>kindly if any one help me to create a calculator which is consaole based yet simple..  
Regardz all... 
Waitin for ur kind help..</description>
			<content:encoded><![CDATA[<div>kindly if any one help me to create a calculator which is consaole based yet simple.. <br />
Regardz all...<br />
Waitin for ur kind help..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>rutaba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234578.html</guid>
		</item>
		<item>
			<title>C#</title>
			<link>http://www.daniweb.com/forums/thread234572.html</link>
			<pubDate>Fri, 30 Oct 2009 03:35:31 GMT</pubDate>
			<description>Hay  
i am new to the developnment  currently i am working on datagrid  
i just want to know how to select a row on a datagrid using check boxes</description>
			<content:encoded><![CDATA[<div>Hay <br />
i am new to the developnment  currently i am working on datagrid <br />
i just want to know how to select a row on a datagrid using check boxes</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sawiyan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234572.html</guid>
		</item>
		<item>
			<title>How to write socket programming in pda</title>
			<link>http://www.daniweb.com/forums/thread234566.html</link>
			<pubDate>Fri, 30 Oct 2009 02:39:40 GMT</pubDate>
			<description>Hello, 
I am developed application  about order management in restaurant with pda. 
 
The socket programming is used for it. we try socket programming with two  desktop project its done well. but at Pda the  socket programming is not performed . Help me how to code socket in pda</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I am developed application  about order management in restaurant with pda.<br />
<br />
The socket programming is used for it. we try socket programming with two  desktop project its done well. but at Pda the  socket programming is not performed . Help me how to code socket in pda</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>akil007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234566.html</guid>
		</item>
		<item>
			<title>Register Edit By Specific process</title>
			<link>http://www.daniweb.com/forums/thread234544.html</link>
			<pubDate>Fri, 30 Oct 2009 00:28:24 GMT</pubDate>
			<description>i want to know the strategy to know Register Edit By Specific process 
 
how can i get its status and implement in c# i need necessary help for this point any tutorial link idea</description>
			<content:encoded><![CDATA[<div>i want to know the strategy to know Register Edit By Specific process<br />
<br />
how can i get its status and implement in c# i need necessary help for this point any tutorial link idea</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sembawyo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234544.html</guid>
		</item>
		<item>
			<title>SqlDatabase</title>
			<link>http://www.daniweb.com/forums/thread234447.html</link>
			<pubDate>Thu, 29 Oct 2009 15:05:05 GMT</pubDate>
			<description><![CDATA[How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved around freely?]]></description>
			<content:encoded><![CDATA[<div><img src="/cgi-bin/mimetex.cgi?How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved around freely?" alt="How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved around freely?" border="0" /></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Philip134</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234447.html</guid>
		</item>
		<item>
			<title>SqlDatabase</title>
			<link>http://www.daniweb.com/forums/thread234446.html</link>
			<pubDate>Thu, 29 Oct 2009 14:59:47 GMT</pubDate>
			<description><![CDATA[How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved aroun freely?]]></description>
			<content:encoded><![CDATA[<div><img src="/cgi-bin/mimetex.cgi?How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved aroun freely?" alt="How do i insert a Sql database into a project so that the project won't be dependent on sql server and can be moved aroun freely?" border="0" /></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Philip134</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234446.html</guid>
		</item>
		<item>
			<title>OO Quandary</title>
			<link>http://www.daniweb.com/forums/thread234439.html</link>
			<pubDate>Thu, 29 Oct 2009 14:11:15 GMT</pubDate>
			<description><![CDATA[I've been making more of an effort lately to build better OO designs, creating classes for distinct collections of members etc. However, i've hit a bit of a wall in my project. 
 
The program is designed to control an automated watering system. The system is split into multiple bays which are...]]></description>
			<content:encoded><![CDATA[<div>I've been making more of an effort lately to build better OO designs, creating classes for distinct collections of members etc. However, i've hit a bit of a wall in my project.<br />
<br />
The program is designed to control an automated watering system. The system is split into multiple bays which are turned on and off independantly.<br />
<br />
I have my form which shows a map of the system with a custom button for each bay. I also have controls that allow the user to create a sequence of bays. eg, turn on bay 1, then bay 2, then 3 &amp; 4..etc.<br />
<br />
I have a class which stores details of the bay, one which stores a step in the sequence, one which stores the entire sequence and the form to handle user input. (see attached class diagram)<br />
<br />
The problem i have is that the Bay Class has a draw method that paints it to the form. The colour it is painted depends on wether the bay is on or off. This is no problem since the on/off status is stored within the bay. The problem is that i need to add a third colour option, the third colour will be used if the bay isnt on in the current step, but IS part of a different step in the sequence.<br />
<br />
My quandary is this: do i a) include a flag in the bay to show that it is in another step, b) have the step check with the sequence to see if any steps contain it, or c) check in the main form and pass a colour to the draw method?<br />
<br />
Ive always had a problem thinkin in terms of OO...my early projects were coded ENTIRELY on a single form...makes me cringe looking back lol. To my mind, having a flag in the bay class is storing information about the sequence in the bay which doesnt feel right, but having the bay communicate with the sequence feels wrong too; i may be wrong, but i thought the classes behaviour should be internal.<br />
<br />
Anyone with a good grasp of OO wanna throw me a bone :p Whats the best way to handle this, and have i made a complete mess of it so far. I'd rather get it right and get a better grasp on OO than kludge it :)</div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12366&amp;d=1256825458" target="_blank">CD.jpg</a> (78.7 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Ryshad</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234439.html</guid>
		</item>
		<item>
			<title>Changing F key functions</title>
			<link>http://www.daniweb.com/forums/thread234399.html</link>
			<pubDate>Thu, 29 Oct 2009 11:08:20 GMT</pubDate>
			<description>Hello everyone, I would like to write an application that would allow me to change the functions of the usually-useless F keys (especially F8, I hate that one) into functions that I specify in code. I would like to let some of them open certain files, or paste text.. etc 
 
So how can I modify and...</description>
			<content:encoded><![CDATA[<div>Hello everyone, I would like to write an application that would allow me to change the functions of the usually-useless F keys (especially F8, I hate that one) into functions that I specify in code. I would like to let some of them open certain files, or paste text.. etc<br />
<br />
So how can I modify and disable key functions in C# without using hooks?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Voulnet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234399.html</guid>
		</item>
		<item>
			<title>Dictionary.TryGetValue problem</title>
			<link>http://www.daniweb.com/forums/thread234381.html</link>
			<pubDate>Thu, 29 Oct 2009 09:45:41 GMT</pubDate>
			<description><![CDATA[Here the my code( Im new to DOT NET) 
 
Im using some socket.connection with port 25. 
 
private readonly byte[] _buffer = new byte[1024]; 
int structId = BitConverter.ToInt32(_buffer, 0); 
Type currentStructType; 
if (!Structs.TryGetValue(structId, out currentStructType)) 
              throw new...]]></description>
			<content:encoded><![CDATA[<div><span style="font-style:italic">Here the my code( Im new to DOT NET)</span><br />
<br />
Im using some socket.connection with port 25.<br />
<br />
private readonly byte[] _buffer = new byte[1024];<br />
int structId = BitConverter.ToInt32(_buffer, 0);<br />
Type currentStructType;<br />
if (!Structs.TryGetValue(structId, out currentStructType))<br />
              throw new BufferParserException(string.Format(&quot;Structure  with ID = {0} is not supported.&quot;, structId));<br />
<br />
<span style="font-style:italic">here Im getting structId= 540029490 always.<br />
and aboue if condition also FALSE always.means its throwing ex.<br />
I need to get it TRUE.</span><br />
currentStruct = (IParserStruct)Activator.CreateInstance(currentStructType);<br />
<span style="font-style:italic">here getting currentStruct = null always.</span><br />
structLength = BitConverter.ToInt32(_buffer, 4);<br />
if (currentStruct == null || structLength == -1)<br />
              throw new BufferParserException(&quot;Got to read the structure, but not created.&quot;);<br />
<br />
Im not getting wts happening here, how to solve this problem.<br />
<br />
Please guide me to solve it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>venkates.99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234381.html</guid>
		</item>
		<item>
			<title>using databases in c#</title>
			<link>http://www.daniweb.com/forums/thread234366.html</link>
			<pubDate>Thu, 29 Oct 2009 08:55:42 GMT</pubDate>
			<description><![CDATA[hello everybody, 
this is my first post in this forum and i hope to find help. i'm beginner in c# and i search for simple tutorials in databases access in c#.]]></description>
			<content:encoded><![CDATA[<div>hello everybody,<br />
this is my first post in this forum and i hope to find help. i'm beginner in c# and i search for simple tutorials in databases access in c#.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>basma.lm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234366.html</guid>
		</item>
	</channel>
</rss>
