<?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>Sun, 22 Nov 2009 07:16:40 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>C# Null references just love me....</title>
			<link>http://www.daniweb.com/forums/thread240382.html</link>
			<pubDate>Sun, 22 Nov 2009 06:12:27 GMT</pubDate>
			<description><![CDATA[I got it when trying to initialize my array of sprites 
(( the only one trowing me null is the sprite2D[] AllianceCharacters 
 
 
declaration: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I got it when trying to initialize my array of sprites<br />
(( the only one trowing me null is the sprite2D[] AllianceCharacters<br />
<br />
<br />
declaration:<br />
 <pre style="margin:20px; line-height:13px">sprite2D[] AllianceCharacters;<br />
static string Cardspath = Directory.GetCurrentDirectory() + &quot;\\Content\\Cards&quot;;<br />
string[] ActionBar = Directory.GetFiles(Cardspath + &quot;\\ActionBar\\&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; string[] Equips = Directory.GetFiles(Cardspath + &quot;\\ActionBar\\Equips&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; string[] CharactersAlliance = Directory.GetFiles(Cardspath + &quot;\\Characters\\Alliance\\&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; string[] CharactersHorde = Directory.GetFiles(Cardspath + &quot;\\Characters\\Horde\\&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; string[] CharactersMonster = Directory.GetFiles(Cardspath + &quot;\\Characters\\Monster\\&quot;);</pre>initialization:<br />
 <pre style="margin:20px; line-height:13px">for (int i = 0; i &lt; CharactersAlliance.Length; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllianceCharacters[i] = new sprite2D(Content.Load&lt;Texture2D&gt;(Cardspath + &quot;\\Characters\\Alliance\\&quot; + CharactersAlliance[i]));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllianceCharacters[i].name = CharactersAlliance[i];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
//This is called at the beginning::<br />
 <pre style="margin:20px; line-height:13px">void FixNames()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int x, y, z, a, h, m;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = Equips.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z = ActionBar.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = CharactersAlliance.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h = CharactersHorde.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = CharactersMonster.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char[] xnb = { 'b', 'n', 'x', '.' };<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; y; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Equips[x] = Path.GetFileName(Equips[x]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Equips[x] = Equips[x].TrimEnd(xnb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; z; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ActionBar[x] = Path.GetFileName(ActionBar[x]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ActionBar[x] = ActionBar[x].TrimEnd(xnb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; a; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersAlliance[x] = Path.GetFileName(CharactersAlliance[x]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersAlliance[x] = CharactersAlliance[x].TrimEnd(xnb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; h; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersHorde[x] = Path.GetFileName(CharactersHorde[x]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersHorde[x] = CharactersHorde[x].TrimEnd(xnb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (x = 0; x &lt; m; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersMonster[x] = Path.GetFileName(CharactersMonster[x]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CharactersMonster[x] = CharactersMonster[x].TrimEnd(xnb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
any idea on what could be making it fail ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>gogodr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240382.html</guid>
		</item>
		<item>
			<title>controls in 3rd form</title>
			<link>http://www.daniweb.com/forums/thread240317.html</link>
			<pubDate>Sat, 21 Nov 2009 22:45:37 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I have some app like this: 
 
Form1 (Parent) -> open in load event a Form2 (child) which have a button that open a 3rd one child form (then close Form2). 
 
My question is how I can access a control property (like labeltext (in statusbar) in Form1)?  
 
Form1 Parent 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have some app like this:<br />
<br />
Form1 (Parent) -&gt; open in load event a Form2 (child) which have a button that open a 3rd one child form (then close Form2).<br />
<br />
My question is how I can access a control property (like labeltext (in statusbar) in Form1)? <br />
<br />
Form1 Parent<br />
 <pre style="margin:20px; line-height:13px"> private void Form1_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form2 chForm2 = new Form2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; chForm2.MdiParent = this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; chForm2.Show();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }</pre><br />
Form2 Child<br />
 <pre style="margin:20px; line-height:13px">Button click event<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form3 chForm3 = new Form3();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; chForm3.MdiParent = Form1.ActiveForm;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; chForm3.Show();</pre><br />
Now in Form1 I have a labeltext in statusbar that I want to control from Form3.<br />
<br />
Thanks a lot!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>chromatinpt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240317.html</guid>
		</item>
		<item>
			<title>null exception on Arithmetic operation</title>
			<link>http://www.daniweb.com/forums/thread240210.html</link>
			<pubDate>Sat, 21 Nov 2009 10:22:33 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm having exception on this line, when some of the textboxes do not have value in 
  <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...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm having exception on this line, when some of the textboxes do not have value in<br />
 <pre style="margin:20px; line-height:13px">if (Convert.ToInt32(LeaveDay.Text) + Convert.ToInt32(SickDay.Text) + Convert.ToInt32(WorkDay.Text) &gt; limitDay)</pre><br />
appreciate any help<br />
thanks<br />
snky</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>snakay</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240210.html</guid>
		</item>
		<item>
			<title>Custom event</title>
			<link>http://www.daniweb.com/forums/thread240200.html</link>
			<pubDate>Sat, 21 Nov 2009 09:23:05 GMT</pubDate>
			<description>Hi, 
 
using old pure C, I was able to define a custom windows message. Once done, it was possible to broadcast the message across my application. Any object, with defined listener was able to receive and process the message. OK, right now, I need to do the same in C#. I have a class (let’s call it...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
using old pure C, I was able to define a custom windows message. Once done, it was possible to broadcast the message across my application. Any object, with defined listener was able to receive and process the message. OK, right now, I need to do the same in C#. I have a class (let’s call it ABC), which should broadcast a message in case something happens. The application has multiple forms (some of the are active, some of them not - that’s why I need general broadcast message/event instead of call a specific method). In case, something happens (e.g. ABC finishes some calculation), I want ABC to send a broadcast message (by broadcast I mean, the ABC class doesn’t know, who will receive it). The message will be processed by all active forms with defined listener. Please, could you let me know, how to send the message and how to define the listeners?<br />
<br />
Marek</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>mstrop</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240200.html</guid>
		</item>
		<item>
			<title>show full path in title bar</title>
			<link>http://www.daniweb.com/forums/thread240182.html</link>
			<pubDate>Sat, 21 Nov 2009 07:33:44 GMT</pubDate>
			<description><![CDATA[hi again every one ... 
in my computer , 
tools -> folder option ... we can select check box like show full path in address bar or show full path in titlebar. 
 
that same thing i want to do it through code or thorugh API?? 
 
how can i achieve this in C#?? 
 
can set any parameter or call any api...]]></description>
			<content:encoded><![CDATA[<div>hi again every one ...<br />
in my computer ,<br />
tools -&gt; folder option ... we can select check box like show full path in address bar or show full path in titlebar.<br />
<br />
that same thing i want to do it through code or thorugh API??<br />
<br />
how can i achieve this in C#??<br />
<br />
can set any parameter or call any api to show full path in title bar or can get path from address bar through code??<br />
<br />
any help please ...</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/thread240182.html</guid>
		</item>
		<item>
			<title>Keep track of deletion and creation of file.</title>
			<link>http://www.daniweb.com/forums/thread240158.html</link>
			<pubDate>Sat, 21 Nov 2009 04:57:46 GMT</pubDate>
			<description>hi friends ... 
i want help regarding file management in windows. 
 
what i want to do is , 
Keep track of all files and folders created or deleted during a period of time. 
 
for example , 
during 5 to 6 pm somebudy else is using my computer. so at that time  
i want to track whatever action...</description>
			<content:encoded><![CDATA[<div>hi friends ...<br />
i want help regarding file management in windows.<br />
<br />
what i want to do is ,<br />
Keep track of all files and folders created or deleted during a period of time.<br />
<br />
for example ,<br />
during 5 to 6 pm somebudy else is using my computer. so at that time <br />
i want to track whatever action performed by that user reagarding files like deletion of some file or creation of some files etc.<br />
<br />
i have done a lot googling but not ot any solution.<br />
i also tried to get through system message queue.but still i m not getting wht i want.<br />
<br />
any one knows how can i achieve this??<br />
i just want to track that creation and deletion of file in database.<br />
<br />
or<br />
<br />
any one knows wht actually happen in system when user create any file or delete any file.i mean wht apis are call wht processes are called??</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/thread240158.html</guid>
		</item>
		<item>
			<title>Parent and Childs, menustrip</title>
			<link>http://www.daniweb.com/forums/thread240071.html</link>
			<pubDate>Fri, 20 Nov 2009 19:45:53 GMT</pubDate>
			<description>Hello! 
 
I have one main form (parent) which contains others child forms. The first child form is a login form, that after correct autentication opens another child form.  
 
Depending on the user (operator or supervisor) some items of menustrip in form Parent should be available or not. The...</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I have one main form (parent) which contains others child forms. The first child form is a login form, that after correct autentication opens another child form. <br />
<br />
Depending on the user (operator or supervisor) some items of menustrip in form Parent should be available or not. The supervisor will have full menu available, the user only some items.<br />
<br />
How can I do that? Any ideias?<br />
<br />
Thanks a lot.<br />
Tiago</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>chromatinpt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240071.html</guid>
		</item>
		<item>
			<title>Check if record exists in MSA using C#</title>
			<link>http://www.daniweb.com/forums/thread240067.html</link>
			<pubDate>Fri, 20 Nov 2009 19:02:26 GMT</pubDate>
			<description><![CDATA[Hi, 
 
No excuses: my problem is that I can't get my code to check if a certain record exists in a MSA database. 
 
My code needs to check if the database contains a row where 2, 3 or 4 specified fields exist.  
But, as mentioned, at the moment it only gives errors about missing parameters. ...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
No excuses: my problem is that I can't get my code to check if a certain record exists in a MSA database.<br />
<br />
My code needs to check if the database contains a row where 2, 3 or 4 specified fields exist. <br />
But, as mentioned, at the moment it only gives errors about missing parameters. <br />
Before I post the code I'd like to know what the correct way is, as the code is very secret :).</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Calaesto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240067.html</guid>
		</item>
		<item>
			<title>Sending data to e-mail</title>
			<link>http://www.daniweb.com/forums/thread240054.html</link>
			<pubDate>Fri, 20 Nov 2009 17:55:38 GMT</pubDate>
			<description>I have 3 textboxes..textBox1,textBox2,textBox3.I want that when user clicks on submit button all data should go to e-mail address.. 
 
Any one here can please help me to get through code? 
 
Thanks very much</description>
			<content:encoded><![CDATA[<div>I have 3 textboxes..textBox1,textBox2,textBox3.I want that when user clicks on submit button all data should go to e-mail address..<br />
<br />
Any one here can please help me to get through code?<br />
<br />
Thanks very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>th3learner</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240054.html</guid>
		</item>
		<item>
			<title><![CDATA[How to do a "Publish Application" correctly]]></title>
			<link>http://www.daniweb.com/forums/thread240046.html</link>
			<pubDate>Fri, 20 Nov 2009 16:57:44 GMT</pubDate>
			<description>I`ve done an application and I then I published it. That did a setup.exe file. 
If I want to install it on my pc its all ok, but if I want to install it on some other pc, there is an error. It`s still lookingfor the path I have the application.  
There are some problems with the database. It looks...</description>
			<content:encoded><![CDATA[<div>I`ve done an application and I then I published it. That did a setup.exe file.<br />
If I want to install it on my pc its all ok, but if I want to install it on some other pc, there is an error. It`s still lookingfor the path I have the application. <br />
There are some problems with the database. It looks like there is no BD attached into installer.<br />
<br />
<a rel="nofollow" class="t" href="http://www.file.si/files/rsp2pex03sxhgvfclmi5.jpg" target="_blank">PICTURE</a>.</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/thread240046.html</guid>
		</item>
		<item>
			<title>dll not found when changing the path</title>
			<link>http://www.daniweb.com/forums/thread240033.html</link>
			<pubDate>Fri, 20 Nov 2009 15:14:30 GMT</pubDate>
			<description><![CDATA[Hi everyone, sorry about my english. Im having a problem and i don't know how to fix it. 
 
I have a plugin-based application that i'm developing. Every plugin has a reference to a dll that has different static classes with functions. When i run the application with all the dlls (plugins and their...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone, sorry about my english. Im having a problem and i don't know how to fix it.<br />
<br />
I have a plugin-based application that i'm developing. Every plugin has a reference to a dll that has different static classes with functions. When i run the application with all the dlls (plugins and their references) in the same directory, the application works fine. But the problem comes when i change the application's path, leaving the dlls in other path. When i run the application, the plugin dll thrown an exception saying that the &quot;functions dll&quot; could not be found, but the dll is in the same directory as the plugin :| .<br />
<br />
If i don't explain well:<br />
<span style="color:Green">C:\app.exe<br />
C:\plugin.dll<br />
C:\functions.dll</span><br />
It works fine.<br />
<br />
<span style="color:Red">C:\test\app.exe<br />
C:\plugin.dll<br />
C:\functions.dll</span><br />
It doesn't work.<br />
<br />
I don't know where is the problem.<br />
I'll be really grateful for your help.<br />
<br />
Thanks<br />
Greetings</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>tincho87</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240033.html</guid>
		</item>
		<item>
			<title>Call some code when press some key ?</title>
			<link>http://www.daniweb.com/forums/thread240021.html</link>
			<pubDate>Fri, 20 Nov 2009 14:21:28 GMT</pubDate>
			<description><![CDATA[Hi, 
i would like that when pressing the key example "M" to call some code. Same as Ctrl+Alt+Delete and TaskManager but in my case i have process in background which maybe can be used for this?]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
i would like that when pressing the key example &quot;M&quot; to call some code. Same as Ctrl+Alt+Delete and TaskManager but in my case i have process in background which maybe can be used for this?</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/thread240021.html</guid>
		</item>
		<item>
			<title>displaying the image stored in the database in bigger size but in original dimension</title>
			<link>http://www.daniweb.com/forums/thread240019.html</link>
			<pubDate>Fri, 20 Nov 2009 14:02:39 GMT</pubDate>
			<description><![CDATA[<asp:Image ID="imgpdet" runat="server"  Height = 350"                 Width="350"/> 
 
I want to assign the height and width of the image which is the same of the original image from database . 
 
Actual problem is i have an horizontal and vertical photos , if i give height matching the horizontal...]]></description>
			<content:encoded><![CDATA[<div>&lt;asp:Image ID=&quot;imgpdet&quot; runat=&quot;server&quot;  Height = 350&quot;                 Width=&quot;350&quot;/&gt;<br />
<br />
I want to assign the height and width of the image which is the same of the original image from database .<br />
<br />
Actual problem is i have an horizontal and vertical photos , if i give height matching the horizontal photo the vertical photo will be displayed in expanded format.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240019.html</guid>
		</item>
		<item>
			<title>c# Video Editing.</title>
			<link>http://www.daniweb.com/forums/thread240012.html</link>
			<pubDate>Fri, 20 Nov 2009 13:10:45 GMT</pubDate>
			<description>hi to all, 
I have design a Application that takes input  
 
from the Web cam or other video devices. and  
 
have to add some frames in the Live video and  
 
then display.  
i have study out the direct sdk , which</description>
			<content:encoded><![CDATA[<div>hi to all,<br />
I have design a Application that takes input <br />
<br />
from the Web cam or other video devices. and <br />
<br />
have to add some frames in the Live video and <br />
<br />
then display. <br />
i have study out the direct sdk , which <br />
<br />
provide the flexible enviornment. but i dont <br />
<br />
get the proper flow.It is totaly based on the <br />
<br />
VC++ component.<br />
Please Help.<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>pkuchaliya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240012.html</guid>
		</item>
		<item>
			<title>Kuwahara Filter</title>
			<link>http://www.daniweb.com/forums/thread240006.html</link>
			<pubDate>Fri, 20 Nov 2009 12:41:33 GMT</pubDate>
			<description><![CDATA[I am trying to implement the Kuwahara Filter in C#. I think my code is right, but I am not getting an exact output. Can someone help me with where I am going wrong? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am trying to implement the Kuwahara Filter in C#. I think my code is right, but I am not getting an exact output. Can someone help me with where I am going wrong?<br />
<br />
 <pre style="margin:20px; line-height:13px">unsafe<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bitmap b1 = (Bitmap)pictureBox1.Image.Clone();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bitmap b2 = new Bitmap(b1.Width, b1.Height);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BitmapData bd1 = b1.LockBits(new Rectangle(0, 0, b1.Width, b1.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BitmapData bd2 = b2.LockBits(new Rectangle(0, 0, b2.Width, b2.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; byte* p1 = (byte*)(void*)bd1.Scan0.ToPointer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; byte* p2 = (byte*)(void*)bd2.Scan0.ToPointer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Graphics g = Graphics.FromImage(b2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //g.DrawImage(b1, new Rectangle(0, 0, b1.Width, b1.Height), new Rectangle(0, 0, b1.Width, b1.Height), GraphicsUnit.Pixel);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //g.Dispose();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] aminx = { -(b1.Width * b1.Height) / 2, 0, -(b1.Width * b1.Height) / 2, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] amaxx = { 0, (b1.Width * b1.Height) / 2, 0, (b1.Width * b1.Height) / 2 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] aminy = { -(b1.Width * b1.Height) / 2, -(b1.Width * b1.Height) / 2, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] amaxy = { 0, 0, (b1.Width * b1.Height) / 2, (b1.Width * b1.Height) / 2 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x = 0; x &lt; b2.Width; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int y = 0; y &lt; b2.Height; y++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] RValues = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] GValues = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] BValues = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] NumPixels = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MaxRValue = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MaxGValue = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MaxBValue = { 0, 0, 0, 0 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MinRValue = { 255, 255, 255, 255 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MinGValue = { 255, 255, 255, 255 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] MinBValue = { 255, 255, 255, 255 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 4; ++i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x2 = aminx[i]; x2 &lt; amaxx[i]; ++x2)<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; int TempX = x + x2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempX &gt;= 0 &amp;&amp; TempX &lt; b2.Width)<br />
&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; &nbsp; &nbsp; for (int y2 = aminy[i]; y2 &lt; amaxy[i]; ++y2)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int TempY = y + y2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempY &gt;= 0 &amp;&amp; TempY &lt; b2.Height)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Color TempColor = b1.GetPixel(TempX, TempY);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RValues[i] += p1[2];// TempColor.R;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GValues[i] += p1[1];// TempColor.G;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BValues[i] += p1[0];// TempColor.B;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (p1[2] &gt; MaxRValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxRValue[i] = p1[2];// TempColor.R;<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (p1[2] &lt; MinRValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MinRValue[i] = p1[2];// TempColor.R;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; if (p1[1] &gt; MaxGValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxGValue[i] = p1[1];// TempColor.G;<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (p1[1] &lt; MinGValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MinGValue[i] = p1[1];// TempColor.G;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; if (p1[0] &gt; MaxBValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MaxBValue[i] = p1[0];// TempColor.B;<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (p1[0] &lt; MinBValue[i])<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MinBValue[i] = p1[0];// TempColor.B;<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ++NumPixels[i];<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p1 += 3;<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; &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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int j = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int mind = 10000;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 4; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int cd = MaxRValue[i] - MinRValue[i] + MaxGValue[i] - MinGValue[i] + MaxBValue[i] - MinBValue[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cd &lt; mind &amp;&amp; NumPixels[i] &gt; 0)<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; j = i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mind = cd;<br />
&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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p2[0] = (byte)(BValues[j] / NumPixels[j]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p2[1] = (byte)(GValues[j] / NumPixels[j]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p2[2] = (byte)(RValues[j] / NumPixels[j]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Color meanpixel = Color.FromArgb(RValues[j] / NumPixels[j], GValues[j] / NumPixels[j], BValues[j] / NumPixels[j]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //b2.SetPixel(x, y, meanpixel);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b2.Save(@&quot;C:\users\pashok\tt.jpg&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int boo = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b2.Save(@&quot;C:\users\pashok\kuw.jpg&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b1.UnlockBits(bd1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b2.UnlockBits(bd2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.Text = &quot;at the end&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //pictureBox2.Image = (Image)b2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception ex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &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>sathya8819</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240006.html</guid>
		</item>
		<item>
			<title>vertical line</title>
			<link>http://www.daniweb.com/forums/thread240003.html</link>
			<pubDate>Fri, 20 Nov 2009 12:21:02 GMT</pubDate>
			<description><![CDATA[hello, 
 
I'm happy to participate in this forum and this is my first post. 
our instructor gave us an assignment to design an id using C# windows application and i don' know how to put vertical line using label or any thing 
 
thanks in advance]]></description>
			<content:encoded><![CDATA[<div>hello,<br />
<br />
I'm happy to participate in this forum and this is my first post.<br />
our instructor gave us an assignment to design an id using C# windows application and i don' know how to put vertical line using label or any thing<br />
<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>annaqah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240003.html</guid>
		</item>
		<item>
			<title>Cosequence of avoiding loops?</title>
			<link>http://www.daniweb.com/forums/thread239961.html</link>
			<pubDate>Fri, 20 Nov 2009 08:39:30 GMT</pubDate>
			<description><![CDATA[Suppose in my one particular piece of code, I am avoiding loops. 
ie instead of providing 'for' loop to do the task , I am copying and pasting a part three or four times to make it simple (?)to code. 
 
In this case what are the consequences of my action?  
 
I feel that only problem is a increased...]]></description>
			<content:encoded><![CDATA[<div>Suppose in my one particular piece of code, I am avoiding loops.<br />
ie instead of providing 'for' loop to do the task , I am copying and pasting a part three or four times to make it simple (?)to code.<br />
<br />
In this case what are the consequences of my action? <br />
<br />
I feel that only problem is a increased code size - which is not an issue when GBs of Hard disk space is available. Is my understanding correct? Any other issues like more RAM consumption or increased execution time? or anything else?<br />
<br />
Thanks<br />
Roy Thomas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RoyMicro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239961.html</guid>
		</item>
		<item>
			<title>Problem with DrawString under Windows 7</title>
			<link>http://www.daniweb.com/forums/thread239959.html</link>
			<pubDate>Fri, 20 Nov 2009 08:31:38 GMT</pubDate>
			<description><![CDATA[I need to convert text to image, using specified fonts, size, etc. 
Looks like everything is ok when using standard DrawString method 
but, when I'm trying to do it under Windows 7 I have my picture blurred 
this is a screenshot from Windows XP / Windows 2008 server...]]></description>
			<content:encoded><![CDATA[<div>I need to convert text to image, using specified fonts, size, etc.<br />
Looks like everything is ok when using standard DrawString method<br />
but, when I'm trying to do it under Windows 7 I have my picture blurred<br />
this is a screenshot from Windows XP / Windows 2008 server<br />
<a rel="nofollow" class="t" href="http://testmyblog.ho.ua/pictures/xp.png" target="_blank">http://testmyblog.ho.ua/pictures/xp.png</a><br />
and this is from Windows 7<br />
<a rel="nofollow" class="t" href="http://testmyblog.ho.ua/pictures/7.png" target="_blank">http://testmyblog.ho.ua/pictures/7.png</a><br />
also I tried to play with System.Drawing.Imaging.Encoder.Quality;<br />
but even with max value of EncoderParameter blur effect doesn't disappear <br />
I have no idea where is the problem, hope that you will be able to help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Solmyr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239959.html</guid>
		</item>
		<item>
			<title>Help For System Message Handling</title>
			<link>http://www.daniweb.com/forums/thread239946.html</link>
			<pubDate>Fri, 20 Nov 2009 07:15:25 GMT</pubDate>
			<description>In event driven programming windows os is passing message to all application thread for firing events. 
 
What i want to do is?? 
I want to receive all messages in my application which is generated by system to any application or any any thread. 
 
I know little bit about mouse hooking and keyboard...</description>
			<content:encoded><![CDATA[<div>In event driven programming windows os is passing message to all application thread for firing events.<br />
<br />
What i want to do is??<br />
I want to receive all messages in my application which is generated by system to any application or any any thread.<br />
<br />
I know little bit about mouse hooking and keyboard hooking.<br />
but this will only receive messages like mouse move or any key is pressed,hot key pressed etc.<br />
<br />
but i want to receive every every message like any file creation , file deletion or file accessed etc.<br />
<br />
i just want to receive this messages , i dont want to interupt any of message. I want this messages to keep track of what user have done during a period of time.<br />
<br />
please any help regarding this ...<br />
any api for this??<br />
or i have to create global hook.<br />
but in creation of global there is problem like we have to create dll in C++ for call back function.<br />
but i want to do it fully through C# and main thing is that i m having not much time.<br />
<br />
at max from today onwards i will have 7-8 day to complete this.<br />
<br />
any help or any advice like in which direction i should proccedd.<br />
thnks for giving your time.............</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/thread239946.html</guid>
		</item>
		<item>
			<title>C# Lists - Beginner Help (XNA)</title>
			<link>http://www.daniweb.com/forums/thread239879.html</link>
			<pubDate>Fri, 20 Nov 2009 01:13:43 GMT</pubDate>
			<description><![CDATA[Hello everyone, pleased to be on the forum. 
 
I'm currently undertaking some game development in Visual Studio, in my spare time. I've been programming for a few months, in Java, and now am having a go at C#. I have however run into a little snag with lists. I'm trying to create a board game, in...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone, pleased to be on the forum.<br />
<br />
I'm currently undertaking some game development in Visual Studio, in my spare time. I've been programming for a few months, in Java, and now am having a go at C#. I have however run into a little snag with lists. I'm trying to create a board game, in which the characters move one step at a time around the board.<br />
<br />
What I would like to know (as I've been searching for quite a while), is how to cycle through a List, and how to edit the contents of a list. In Java, I could use List.size() I believe, what is the C# equivalent?<br />
<br />
Here is a snippet of the code I am using:<br />
<br />
 <pre style="margin:20px; line-height:13px">//create a list of properties<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List &lt;Properties&gt;properties = new List&lt;Properties&gt;();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //initialize all the properties<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties.Add(new Properties(<span style="font-weight:bold">(pos1)</span>, &quot;GO&quot;, false, false, 0, 0, 0, 0, false, false));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties.Add(new Properties(<span style="font-weight:bold">(pos2)</span>, &quot;Derelict Building&quot;, false, false, 200, 6, 60, 200, false, false));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties.Add(new Properties(<span style="font-weight:bold">(pos3)</span>, &quot;Shooting Range&quot;, false, false, 200, 8, 80, 200, false, false));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties.Add(new Properties(<span style="font-weight:bold">(pos4)</span>, &quot;Youth Hostel&quot;, false, false, 0, 100, 250, 0, false, false));</pre><br />
I want to cycle through the list, and say that if a variable, player1pos, is equal to pos(i) (the emboldened items), then to decrement the value of a dice roll and move to the next item in the list.<br />
<br />
Here's a vague attempt at the code that obviously drew up syntactic errors...<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(player1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int x = diceRoll.Roll(1,6);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (x != 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i; i &lt; properties.size(); i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (player1pos == properties.pos(i)) <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; player1pos = properties.pos(i + 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = x - 1;&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Each position (pos1, pos2, pos3, player1pos) is a co-ordinate of the type Vector2. <br />
<br />
So basically, I want to cycle through a list, and to isolate the position variables.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Gerard I MUFC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239879.html</guid>
		</item>
		<item>
			<title>Weird error</title>
			<link>http://www.daniweb.com/forums/thread239863.html</link>
			<pubDate>Thu, 19 Nov 2009 23:29:47 GMT</pubDate>
			<description><![CDATA[Hi, 
 
In my code I'm getting a weird error. It's caused by this piece of code: 
 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
In my code I'm getting a weird error. It's caused by this piece of code:<br />
<br />
 <pre style="margin:20px; line-height:13px">response = SQLCommand.ExecuteNonQuery();</pre><br />
The error: There is missing a ; at the end of the SQL-instruction.<br />
My eyes may be bad, but I clearly see a ; at the end of this piece of code.<br />
<br />
Any solutions??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Calaesto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239863.html</guid>
		</item>
		<item>
			<title>input string was not in a correct format</title>
			<link>http://www.daniweb.com/forums/thread239831.html</link>
			<pubDate>Thu, 19 Nov 2009 19:39:22 GMT</pubDate>
			<description><![CDATA[Hi All, 
I am getting the message "input string was not in a correct format" about the line " numline[i] = Convert.ToDouble(num);" 
The program is supposed to read a csv and convert the fifth line of the file to an double array.  The line to be read in looks like (and keeps going with 20 more...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I am getting the message &quot;input string was not in a correct format&quot; about the line &quot; numline[i] = Convert.ToDouble(num);&quot;<br />
The program is supposed to read a csv and convert the fifth line of the file to an double array.  The line to be read in looks like (and keeps going with 20 more numbers in that form):<br />
&quot;22.925507, 0.0000000, 0.0000000, &quot;<br />
<br />
I'm new to C# and this seemingly simple task has taken surprisingly long!  Thanks in advance :)<br />
<br />
Liam<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ArrayList mtext = new ArrayList(); //declare array list for all data to be stored in as strings<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string textline; //each line of text, one at a time.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int i = 0; //counter for which value in textline<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double[] numline = new double[25]; //double equivalent of textline<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string[] textlinesplit = new string[25]; //after textline is split into seperate numbers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (StreamReader m_reader = new StreamReader(@&quot;C:\Users\Andreas\Documents\out5.csv&quot;)) //initialize file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ((textline = m_reader.ReadLine()) != null) //read until end of file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (textline.Length == 0) //if end of file, leave loop<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (mtext.Count == 3) //if we're on the 5th line of numbers, convert line to double array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textlinesplit = textline.Split(',');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (string num in textlinesplit)<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; if (num != null)<br />
&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; &nbsp; &nbsp; numline[i] = Convert.ToDouble(num);<br />
&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; i++;<br />
&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; mtext.Add(textline); // insert line at end of list<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>LiamOB</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239831.html</guid>
		</item>
		<item>
			<title>C# Smpp Gateway / Server</title>
			<link>http://www.daniweb.com/forums/thread239801.html</link>
			<pubDate>Thu, 19 Nov 2009 17:01:49 GMT</pubDate>
			<description><![CDATA[Hey All, 
 
not sure if i'm correct here but i will try. 
 
I'm creating at the moment a SMPP Server / Gateway in c#. 
The server itself is working fine but i have one little thing to finish the work (as ever). 
 
When receiving a new message through submit_sm i have a small issue decoding the...]]></description>
			<content:encoded><![CDATA[<div>Hey All,<br />
<br />
not sure if i'm correct here but i will try.<br />
<br />
I'm creating at the moment a SMPP Server / Gateway in c#.<br />
The server itself is working fine but i have one little thing to finish the work (as ever).<br />
<br />
When receiving a new message through submit_sm i have a small issue decoding the message. I get everything except the message itself. So what i mean is: I'm getting the service_type the esm class and everything in the message till the sm_length. The problem now is when the smpp client is sending the message with a default encoding and the message contains (äöüß) (German characters) then i won't get these characters back. I know that other systems like Nowsms or Ozeki NG can do that.<br />
<br />
Perhaps somebody has decoded such kind of message before and can give me some hints. I tried with different encoding mechanism but nothing helps here.<br />
<br />
Regards</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>viper77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239801.html</guid>
		</item>
		<item>
			<title>Creating form for application`s installation</title>
			<link>http://www.daniweb.com/forums/thread239799.html</link>
			<pubDate>Thu, 19 Nov 2009 16:55:13 GMT</pubDate>
			<description><![CDATA[I would like to do windows from with would guide the user through the installation of my already done win application. 
 
I already did the Setup Project (File > Add > New Project and select Other Project Types > Setup And Deployment > Setup Project. ) 
but I would like to do a window form (with...]]></description>
			<content:encoded><![CDATA[<div>I would like to do windows from with would guide the user through the installation of my already done win application.<br />
<br />
I already did the Setup Project (File &gt; Add &gt; New Project and select Other Project Types &gt; Setup And Deployment &gt; Setup Project. )<br />
but I would like to do a window form (with the whole installation procedure), where the user can choose the path where to install this app. and if he want the shortcuts on the desktop or in the user`s programs menu.<br />
<br />
Do I need to do a new Windows forms application, or can be build into the one I already did, or is this possible to get it somewhere - already made?<br />
<br />
That I can simply looks something like that:<br />
<a rel="nofollow" class="t" href="http://www.file.si/files/b783dnumjitk2c5mx0yc.jpg" target="_blank">PICTURE1</a><br />
or something more professional:<br />
<a rel="nofollow" class="t" href="http://www.file.si/files/ecpy0qz69wer29eie0yn.jpg" target="_blank">PICTURE 2</a><br />
<br />
These are just examples, of what I would like to do. Any Ideas?<br />
And the most important thing, if I do this win application, how do I then point to my setup.exe file, which is needed to extract?</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/thread239799.html</guid>
		</item>
		<item>
			<title>Connect C# to Mysql</title>
			<link>http://www.daniweb.com/forums/thread239784.html</link>
			<pubDate>Thu, 19 Nov 2009 15:31:52 GMT</pubDate>
			<description>I wanted to connect  mysql with C# But I was faced with the following error 
 
 
 
error text:connection unexpectedly terminated 
 
 
 
Please help me</description>
			<content:encoded><![CDATA[<div>I wanted to connect  mysql with C# But I was faced with the following error<br />
<br />
<br />
<br />
error text:connection unexpectedly terminated<br />
<br />
<br />
<br />
Please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>jas2010</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239784.html</guid>
		</item>
		<item>
			<title>How to impersonate not local user?</title>
			<link>http://www.daniweb.com/forums/thread239760.html</link>
			<pubDate>Thu, 19 Nov 2009 13:59:49 GMT</pubDate>
			<description><![CDATA[Hi, I ask you for a problem I can't resolve. 
  
I'm developing a form application in C# and I need to access a web application (IIS) within the intranet and not to insert crediantials manually (I keep them in code). 
  
I tried using both Win32NativeMethods.LogonUser and advapi32.dll's Logon User...]]></description>
			<content:encoded><![CDATA[<div>Hi, I ask you for a problem I can't resolve.<br />
 <br />
I'm developing a form application in C# and I need to access a web application (IIS) within the intranet and not to insert crediantials manually (I keep them in code).<br />
 <br />
I tried using both Win32NativeMethods.LogonUser and advapi32.dll's Logon User methods, but they both return false. Why? Username, domain and password I use are profiled on the remote machine, not on my local machine. Might this be the problem? <br />
<br />
There are some solutions on the web but they don't work for me. <br />
<br />
Could you help me, please? <br />
<br />
Following is the code I tried to use (references: <a rel="nofollow" class="t" href="http://platinumdogs.wordpress.com/2008/10/30/net-c-impersonation-with-network-credentials/#comment-770" target="_blank">http://platinumdogs.wordpress.com/20...s/#comment-770</a>) <br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Data;<br />
using System.Configuration;<br />
using System.Collections;<br />
using System.Web;<br />
using System.IO;<br />
using System.Security.Principal;<br />
using System.Runtime.InteropServices;<br />
using System.ComponentModel;<br />
<br />
namespace OpenWebBrowser_authenticated_CS<br />
{<br />
&nbsp; &nbsp; class Program<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; [STAThread]<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void Main(string[] args)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (new Impersonator(&quot;username&quot;, &quot;domain&quot;, &quot;password&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string siteUrl = &quot;http://mywebapplication&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Diagnostics.Process.Start(siteUrl);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public enum LogonType<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_INTERACTIVE = 2,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_NETWORK = 3,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_BATCH = 4,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_SERVICE = 5,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_UNLOCK = 7,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_NETWORK_CLEARTEXT = 8, // Win2K or higher<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_LOGON_NEW_CREDENTIALS = 9 // Win2K or higher<br />
&nbsp; &nbsp; };<br />
<br />
&nbsp; &nbsp; public enum LogonProvider<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_PROVIDER_DEFAULT = 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_PROVIDER_WINNT35 = 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_PROVIDER_WINNT40 = 2,<br />
&nbsp; &nbsp; &nbsp; &nbsp; LOGON32_PROVIDER_WINNT50 = 3<br />
&nbsp; &nbsp; };<br />
<br />
&nbsp; &nbsp; public enum ImpersonationLevel<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; SecurityAnonymous = 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; SecurityIdentification = 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; SecurityImpersonation = 2,<br />
&nbsp; &nbsp; &nbsp; &nbsp; SecurityDelegation = 3<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; class Win32NativeMethods<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; [DllImport(&quot;advapi32.dll&quot;, SetLastError = true)]<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static extern int LogonUser(string lpszUserName,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string lpszDomain,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string lpszPassword,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int dwLogonType,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int dwLogonProvider,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ref IntPtr phToken);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; [DllImport(&quot;advapi32.dll&quot;, CharSet = CharSet.Auto, SetLastError = true)]<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static extern int DuplicateToken(IntPtr hToken,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int impersonationLevel,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref IntPtr hNewToken);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; [DllImport(&quot;advapi32.dll&quot;, CharSet = CharSet.Auto, SetLastError = true)]<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static extern bool RevertToSelf();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; [DllImport(&quot;kernel32.dll&quot;, CharSet = CharSet.Auto)]<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static extern bool CloseHandle(IntPtr handle);<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; /// Allows code to be executed under the security context of a specified user account.<br />
&nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; /// &lt;remarks&gt; <br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; /// Implements IDispose, so can be used via a using-directive or method calls;<br />
&nbsp; &nbsp; ///&nbsp; ...<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp; var imp = new Impersonator( &quot;myUsername&quot;, &quot;myDomainname&quot;, &quot;myPassword&quot; );<br />
&nbsp; &nbsp; ///&nbsp; imp.UndoImpersonation();<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp; ...<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp;  var imp = new Impersonator();<br />
&nbsp; &nbsp; ///&nbsp; imp.Impersonate(&quot;myUsername&quot;, &quot;myDomainname&quot;, &quot;myPassword&quot;);<br />
&nbsp; &nbsp; ///&nbsp; imp.UndoImpersonation();<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp; ...<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp; using ( new Impersonator( &quot;myUsername&quot;, &quot;myDomainname&quot;, &quot;myPassword&quot; ) )<br />
&nbsp; &nbsp; ///&nbsp; {<br />
&nbsp; &nbsp; ///&nbsp;  ...<br />
&nbsp; &nbsp; ///&nbsp;  [code that executes under the new context]<br />
&nbsp; &nbsp; ///&nbsp;  ...<br />
&nbsp; &nbsp; ///&nbsp; }<br />
&nbsp; &nbsp; ///<br />
&nbsp; &nbsp; ///&nbsp; ...<br />
&nbsp; &nbsp; /// &lt;/remarks&gt;<br />
&nbsp; &nbsp; public class Impersonator : IDisposable<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private WindowsImpersonationContext _wic;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Begins impersonation with the given credentials, Logon type and Logon provider.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;userName&quot;&gt;Name of the user.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;domainName&quot;&gt;Name of the domain.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;password&quot;&gt;The password. &lt;see cref=&quot;System.String&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;logonType&quot;&gt;Type of the logon.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;logonProvider&quot;&gt;The logon provider. &lt;see cref=&quot;Mit.Sharepoint.WebParts.EventLogQuery.Network.LogonProvider&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Impersonator(string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Impersonate(userName, domainName, password, logonType, logonProvider);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Begins impersonation with the given credentials.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;userName&quot;&gt;Name of the user.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;domainName&quot;&gt;Name of the domain.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;password&quot;&gt;The password. &lt;see cref=&quot;System.String&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Impersonator(string userName, string domainName, string password)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Impersonate(userName, domainName, password, LogonType.LOGON32_LOGON_INTERACTIVE, LogonProvider.LOGON32_PROVIDER_DEFAULT);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Initializes a new instance of the &lt;see cref=&quot;Impersonator&quot;/&gt; class.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Impersonator()<br />
&nbsp; &nbsp; &nbsp; &nbsp; { }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UndoImpersonation();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Impersonates the specified user account.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;userName&quot;&gt;Name of the user.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;domainName&quot;&gt;Name of the domain.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;password&quot;&gt;The password. &lt;see cref=&quot;System.String&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void Impersonate(string userName, string domainName, string password)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Impersonate(userName, domainName, password, LogonType.LOGON32_LOGON_INTERACTIVE, LogonProvider.LOGON32_PROVIDER_DEFAULT);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Impersonates the specified user account.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;userName&quot;&gt;Name of the user.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;domainName&quot;&gt;Name of the domain.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;password&quot;&gt;The password. &lt;see cref=&quot;System.String&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;logonType&quot;&gt;Type of the logon.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ///&lt;param name=&quot;logonProvider&quot;&gt;The logon provider. &lt;see cref=&quot;Mit.Sharepoint.WebParts.EventLogQuery.Network.LogonProvider&quot;/&gt;&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void Impersonate(string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UndoImpersonation();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IntPtr logonToken = IntPtr.Zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IntPtr logonTokenDuplicate = IntPtr.Zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // revert to the application pool identity, saving the identity of the current requestor<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _wic = WindowsIdentity.Impersonate(IntPtr.Zero);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // do logon &amp; impersonate<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Win32NativeMethods.LogonUser(userName,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; domainName,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int)logonType,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int)logonProvider,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref logonToken) != 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Win32NativeMethods.DuplicateToken(logonToken, (int)ImpersonationLevel.SecurityImpersonation, ref logonTokenDuplicate) != 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WindowsIdentity wi = new WindowsIdentity(logonTokenDuplicate);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wi.Impersonate(); // discard the returned identity context (which is the context of the application pool)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new Win32Exception(Marshal.GetLastWin32Error());<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; &nbsp; &nbsp; throw new Win32Exception(Marshal.GetLastWin32Error());<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; if (logonToken != IntPtr.Zero)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Win32NativeMethods.CloseHandle(logonToken);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (logonTokenDuplicate != IntPtr.Zero)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Win32NativeMethods.CloseHandle(logonTokenDuplicate);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Stops impersonation.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void UndoImpersonation()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // restore saved requestor identity<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (_wic != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _wic.Undo();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _wic = null;<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>saggiatorius</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239760.html</guid>
		</item>
		<item>
			<title>PostGis plugin</title>
			<link>http://www.daniweb.com/forums/thread239743.html</link>
			<pubDate>Thu, 19 Nov 2009 13:14:53 GMT</pubDate>
			<description>Hi, 
Please can anybody help me how i can create plugin to Postgre SQL/PostGis? 
Thank you very much</description>
			<content:encoded><![CDATA[<div>Hi,<br />
Please can anybody help me how i can create plugin to Postgre SQL/PostGis?<br />
Thank you very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>kubo08</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239743.html</guid>
		</item>
		<item>
			<title>Best method to create text file</title>
			<link>http://www.daniweb.com/forums/thread239732.html</link>
			<pubDate>Thu, 19 Nov 2009 12:20:41 GMT</pubDate>
			<description>Hello 
          There seems to be different methods to create a text file in C#. 
 
I am getting a byte array from USB device. I need to store this as text file which is to be read, updated, and saved for future usage. 
 
The data comes in different packets not in a single stretch. 
which is the...</description>
			<content:encoded><![CDATA[<div>Hello<br />
          There seems to be different methods to create a text file in C#.<br />
<br />
I am getting a byte array from USB device. I need to store this as text file which is to be read, updated, and saved for future usage.<br />
<br />
The data comes in different packets not in a single stretch.<br />
which is the most suitable way for this purpose.<br />
<br />
<br />
Thank you<br />
<br />
Roy Thomas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RoyMicro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239732.html</guid>
		</item>
		<item>
			<title>zoooooom</title>
			<link>http://www.daniweb.com/forums/thread239687.html</link>
			<pubDate>Thu, 19 Nov 2009 09:06:25 GMT</pubDate>
			<description>hi, 
i have a graph and i wanna zoom somw particular area in it. 
Is there any zoom function available... 
thanx</description>
			<content:encoded><![CDATA[<div>hi,<br />
i have a graph and i wanna zoom somw particular area in it.<br />
Is there any zoom function available...<br />
thanx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239687.html</guid>
		</item>
		<item>
			<title>different Controls for different  rows in TemplateColumn of DataGridView</title>
			<link>http://www.daniweb.com/forums/thread239676.html</link>
			<pubDate>Thu, 19 Nov 2009 07:56:36 GMT</pubDate>
			<description>Hi, 
 Here my requirement is like,when I click on the row of the DataGridView, in required cloumns turn to Text boxes.This is known thing.But for different row should have different control in editing. 
 
Please check the attachment . 
for one row item template is Textbox, for some other  row it is...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
 Here my requirement is like,when I click on the row of the DataGridView, in required cloumns turn to Text boxes.This is known thing.But for different row should have different control in editing.<br />
<br />
Please check the attachment .<br />
for one row item template is Textbox, for some other  row it is  CmboBox.<br />
<br />
any body suggest me to sovle this issue.<br />
<br />
Thanks in Advance<br />
Venkat.</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/doc.gif" alt="File Type: doc" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12635&amp;d=1258617494">datagridview.doc</a> (186.0 KB)</td> </tr> </table> </fieldset>  </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/thread239676.html</guid>
		</item>
		<item>
			<title>Using params to pass multiple arrays of objects</title>
			<link>http://www.daniweb.com/forums/thread239657.html</link>
			<pubDate>Thu, 19 Nov 2009 06:13:09 GMT</pubDate>
			<description><![CDATA[Hey All 
 
I'm trying to write a simple write .csv file function that can take multiple arrays of objects and write to a specified file. I understand that I can use params to pass an unspecified number of variables, but is it possible to use it to pass an unspecified number of arrays of objects?...]]></description>
			<content:encoded><![CDATA[<div>Hey All<br />
<br />
I'm trying to write a simple write .csv file function that can take multiple arrays of objects and write to a specified file. I understand that I can use params to pass an unspecified number of variables, but is it possible to use it to pass an unspecified number of arrays of objects? Any tips would be greatly appreciated!<br />
<br />
Cameron</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>CanYouHandstand</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239657.html</guid>
		</item>
		<item>
			<title>Problems with deleting a node with XPath</title>
			<link>http://www.daniweb.com/forums/thread239615.html</link>
			<pubDate>Thu, 19 Nov 2009 02:15:11 GMT</pubDate>
			<description><![CDATA[The program I am working on is having a null reference exception whenever it tries to delete the node. 
 
The buggy code: 
 
First one is where the variable is declared for getting the name of the node to be deleted, just node htese are bits of the code 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>The program I am working on is having a null reference exception whenever it tries to delete the node.<br />
<br />
The buggy code:<br />
<br />
First one is where the variable is declared for getting the name of the node to be deleted, just node htese are bits of the code<br />
 <pre style="margin:20px; line-height:13px">foreach (XmlNode InstalledListNodes in PackagesNode)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; //If the title is the same as what the user typed, continue on<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (InstalledListNodes.Attributes[&quot;title&quot;].Value.Equals(packagename) == true)<br />
&nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uninstallernodename = InstalledListNodes.LocalName;</pre>Second one is where it is deleted<br />
 <pre style="margin:20px; line-height:13px">XmlNode PackagesListForRemoval = InstalledList.SelectSingleNode(&quot;/packages/installed/&quot; + uninstallernodename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PackagesListForRemoval.ParentNode.RemoveChild(PackagesListForRemoval);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InstalledList.Save(&quot;Apps.installed&quot;);</pre>The XML File<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />
&lt;packages&gt;<br />
&nbsp; &lt;installed&gt;<br />
&nbsp; &lt;sampleapp title=&quot;sampleapp&quot; id=&quot;00001&quot; unintallername=&quot;sampleapp.bat&quot; installdate=&quot;11/15/09&quot;&gt;&lt;/sampleapp&gt;<br />
&nbsp; &lt;sampleapp2 title=&quot;sampleapp2&quot; id=&quot;00002&quot; uninstallername=&quot;sampleapp2.bat&quot; installdate=&quot;11/16/09&quot;&gt;&lt;/sampleapp2&gt;<br />
&nbsp; &lt;/installed&gt;<br />
&nbsp; &lt;uninstalled&gt;<br />
<br />
&nbsp;&lt;/uninstalled&gt;<br />
&lt;/packages&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Jarrhed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239615.html</guid>
		</item>
		<item>
			<title>Multiple tables with MSA</title>
			<link>http://www.daniweb.com/forums/thread239593.html</link>
			<pubDate>Wed, 18 Nov 2009 23:43:19 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm stuck on some tables from MS Access. I have the following: 
 
Items: itemId(PK), Naam 
Combo: comboId(PK), Naam 
Combineren (combination): ID(PK), itemId(FK), comboId(FK) 
 
I want my app to show ComboNaam with ItemsNaam in my dataGridView in the following form:]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm stuck on some tables from MS Access. I have the following:<br />
<br />
Items: itemId(PK), Naam<br />
Combo: comboId(PK), Naam<br />
Combineren (combination): ID(PK), itemId(FK), comboId(FK)<br />
<br />
I want my app to show ComboNaam with ItemsNaam in my dataGridView in the following form:<br />
<br />
 <pre style="margin:20px; line-height:13px">string queryString = &quot;SELECT Combo.Naam FROM Combo ORDER BY Naam&quot;;<br />
LoadDG(queryString);</pre><br />
*NOTE* This code already works fine so don't worry about the dataGridView itself and suchs<br />
<br />
Any idea's??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Calaesto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239593.html</guid>
		</item>
		<item>
			<title>delay</title>
			<link>http://www.daniweb.com/forums/thread239578.html</link>
			<pubDate>Wed, 18 Nov 2009 22:25:31 GMT</pubDate>
			<description>hi, 
how can i make a delay of some time in c sharp</description>
			<content:encoded><![CDATA[<div>hi,<br />
how can i make a delay of some time in c sharp</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239578.html</guid>
		</item>
		<item>
			<title>round up</title>
			<link>http://www.daniweb.com/forums/thread239566.html</link>
			<pubDate>Wed, 18 Nov 2009 21:39:24 GMT</pubDate>
			<description>hi, 
how to round up a number. 
e.g. 3.4 to 3 and 3.5 to 4 
 
thanx in advance</description>
			<content:encoded><![CDATA[<div>hi,<br />
how to round up a number.<br />
e.g. 3.4 to 3 and 3.5 to 4<br />
<br />
thanx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239566.html</guid>
		</item>
		<item>
			<title>C# help with multidemensional arrays and list arrays</title>
			<link>http://www.daniweb.com/forums/thread239549.html</link>
			<pubDate>Wed, 18 Nov 2009 20:33:35 GMT</pubDate>
			<description>I am a student This is my very first post in this forum.  I have been taking this class in C# concentrating on window forms.  I have for the most part been able to figure out how to do what I have been assigned without outside help.  My grade to this point is 96% +.  I post all the previous...</description>
			<content:encoded><![CDATA[<div>I am a student This is my very first post in this forum.  I have been taking this class in C# concentrating on window forms.  I have for the most part been able to figure out how to do what I have been assigned without outside help.  My grade to this point is 96% +.  I post all the previous information to let anyone who would answer this post that I am not asking any one to do the assigment I am about describe.  All I want is a sample piece of code that I can use to accomplish this assignment.<br />
<br />
To start with I have a form that has a list box, 6 text boxes and 3 buttons  There are supposed to be 20 names in the listbox with this format  &quot;Doe, John&quot;  The Text boxes are places to display the first name, last name, street address, city, State, and finally the zipcode    The programs must have the funtionalbity to display all names in the listbox in alphabetical order( this part no Problem).  Each one of the names has its respective associated data.  My problem is this I don't know how enter the data in an array and then match that data with the respective owner of that data  what data to display is determined by the user of the program.  Please<br />
help I have to have this assignment turned in by Sunday  Thank you in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RogerBailey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239549.html</guid>
		</item>
		<item>
			<title>Syntaxis-error while using INSERT INTO</title>
			<link>http://www.daniweb.com/forums/thread239527.html</link>
			<pubDate>Wed, 18 Nov 2009 18:41:08 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to make a program that allows one to see a database (MS Access) and add items to the database. 
The database works perfectly (update and suchs) but the adding won't, sadly enough. 
The error I get is (translated as i'm using a Dutch version): Syntaxisfault in characterline. in...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to make a program that allows one to see a database (MS Access) and add items to the database.<br />
The database works perfectly (update and suchs) but the adding won't, sadly enough.<br />
The error I get is (translated as i'm using a Dutch version): Syntaxisfault in characterline. in query 'item);<br />
Item is the thing that needs to be added.<br />
The code below uses a typeString which is the choice you have to make with a combobox.<br />
Both options won't work, because of the same reason, even though they are different.<br />
<br />
 <pre style="margin:20px; line-height:13px">string SQLString = &quot;&quot;;<br />
if (typeString == &quot;Usable&quot;)<br />
{<br />
&nbsp;  SQLString = &quot;INSERT INTO Items(Naam) VALUES('&quot; + Item.Replace(&quot;'&quot;, Item) + &quot;);&quot;;<br />
}<br />
else<br />
{<br />
&nbsp;  if (typeString == &quot;Combo&quot;)<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  SQLString = &quot;INSERT INTO Combo(Naam) VALUES('&quot; + Item.Replace(&quot;'&quot;, &quot;''&quot;) + &quot;);&quot;;<br />
&nbsp;  }<br />
&nbsp;  else<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  MessageBox.Show(&quot;You need to select item type!&quot;);<br />
&nbsp;  }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Calaesto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239527.html</guid>
		</item>
		<item>
			<title>Adding Values to a MultiArray</title>
			<link>http://www.daniweb.com/forums/thread239525.html</link>
			<pubDate>Wed, 18 Nov 2009 18:24:35 GMT</pubDate>
			<description><![CDATA[Howdy all hope everyone is having fun with there own projects! But i have come once again to be a pain in the ^**^. 
 
I need to know an easy way of doing this -> as an example say: 
  
I would like to some how use a MultiDarray in this way. or another way. 
 
say i created something like this: 
 
...]]></description>
			<content:encoded><![CDATA[<div>Howdy all hope everyone is having fun with there own projects! But i have come once again to be a pain in the ^**^.<br />
<br />
I need to know an easy way of doing this -&gt; as an example say:<br />
 <br />
I would like to some how use a MultiDarray in this way. or another way.<br />
<br />
say i created something like this:<br />
<br />
 <pre style="margin:20px; line-height:13px"> string[,] Blah = new string[,] { { &quot;asda&quot;&quot;, &quot;now&quot; }, { &quot;tesr&quot;, &quot;basdjh&quot; } };</pre><br />
Now that's cool but i would like to add items to this array.<br />
so that in the end i could do some like <br />
<br />
<span style="color:Red">How to add to this array once it's been defined or in the process of init?</span><br />
<br />
 <pre style="margin:20px; line-height:13px">for(...)<br />
{<br />
string filenamestr;<br />
string pathnaestr;<br />
<br />
&nbsp;filenamestr = blah.getvalue(i,1);<br />
&nbsp;pathnaestr = blah.getvault(i,2);<br />
}</pre><br />
So what i mean is there anyway to create a method or store say multile values at given locations within that record(array).</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Soundgarden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239525.html</guid>
		</item>
		<item>
			<title>How to pass array of data from html form to C#.net</title>
			<link>http://www.daniweb.com/forums/thread239507.html</link>
			<pubDate>Wed, 18 Nov 2009 17:06:15 GMT</pubDate>
			<description><![CDATA[<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# Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">itemlist[loc] = new product(codes,size,descrip,color,olditem + 1,url)}<br />
&nbsp; &nbsp; else // new item<br />
&nbsp; &nbsp; {olditem =&nbsp; itemlist[item_num].quan<br />
&nbsp; &nbsp; itemlist[item_num] = new product(codes,size,descrip,color,olditem + 1,url);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; items_ordered = item_num<br />
&nbsp; &nbsp; item_num = item_num + 1<br />
&nbsp; &nbsp;  }</pre><br />
The above code is in javascript.<br />
the value of 'itemlist' is set whenever i click on additem in different html pages. I want to pass this itemlist values to default.aspx.cs so that it can display a confirmation page with all these values. Can you tell me what code i have to use in default.aspx.cs<br />
I tried using hidden variable in the html page which had the above java script n pass the hidden value to default.aspx.cs. But this did not work out for me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>roraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239507.html</guid>
		</item>
		<item>
			<title>PictureBox help URGENT PLEASE</title>
			<link>http://www.daniweb.com/forums/thread239487.html</link>
			<pubDate>Wed, 18 Nov 2009 15:40:34 GMT</pubDate>
			<description>Hi Guys,  
 
I need to hand in a project tomorrow morning and its almost 6pm here so I need help as soon as possible. 
 
I am trying to get the picture images from the Resource folder because I imported them to the Resource folder but cannot seem to retrieve them. 
 
My code looks like this to...</description>
			<content:encoded><![CDATA[<div>Hi Guys, <br />
<br />
I need to hand in a project tomorrow morning and its almost 6pm here so I need help as soon as possible.<br />
<br />
I am trying to get the picture images from the Resource folder because I imported them to the Resource folder but cannot seem to retrieve them.<br />
<br />
My code looks like this to retrieve them:<br />
<br />
 <pre style="margin:20px; line-height:13px">try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Reflection.Assembly thisExe;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisExe = System.Reflection.Assembly.GetExecutingAssembly();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.IO.Stream file = thisExe.GetManifestResourceStream(c.Image);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pic.Image = Image.FromStream(file);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception exc)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(exc.Message);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
Is that correct or how else can I get them from there? I need to put them in a Picture Box.<br />
<br />
I get the following exception when trying to retrieve them from the Resource folder:<br />
<br />
&quot;Value of 'null' is not valid for 'stream'&quot;<br />
<br />
Any help please, its really urgent.<br />
<br />
Thanks <br />
Wesley</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>wesleychin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239487.html</guid>
		</item>
		<item>
			<title>XMLReader</title>
			<link>http://www.daniweb.com/forums/thread239474.html</link>
			<pubDate>Wed, 18 Nov 2009 14:45:09 GMT</pubDate>
			<description><![CDATA[I'm sure I missed something simple but I'm getting frustrated with this code simply because I'm so sure it should work. 
 
I have created a short program for exporting some XML data was use at the office into .tsv files. I have a thread dedicated to reading the xml data from a file (and a writer...]]></description>
			<content:encoded><![CDATA[<div>I'm sure I missed something simple but I'm getting frustrated with this code simply because I'm so sure it should work.<br />
<br />
I have created a short program for exporting some XML data was use at the office into .tsv files. I have a thread dedicated to reading the xml data from a file (and a writer thread then writes the data to an outside file). My problem is that my reader opens an XML file, parses through the entire file, then causes the close() method.  The writer then finishes up writing and the program returns to the main form. The problem is if I choose to parse the same XML file again then the xmlreader starts reading at the position I left off from (in this case the end of the file). Thus the writer and reader do no work and I get a tsv file with only the column headers, but no data.<br />
<br />
<br />
My question is, what did I do wrong? I'm sure I just missed something simple.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; private void readXMLData()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Connect to the xml file.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //xmlreader = new XmlTextReader(inputFilePath);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XmlReaderSettings xmlreaderSettings = new XmlReaderSettings();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlreaderSettings.CloseInput = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlreaderSettings.ProhibitDtd = false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlreader = XmlReader.Create(inputFilePath, xmlreaderSettings);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Continue to do work as long as there is stuff to read off of the xmlreader.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (xmlreader.Read())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //Parsing code...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlreader.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GC.Collect();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
Any help would be greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>erees</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239474.html</guid>
		</item>
		<item>
			<title>DataBasing with C#</title>
			<link>http://www.daniweb.com/forums/thread239464.html</link>
			<pubDate>Wed, 18 Nov 2009 14:00:55 GMT</pubDate>
			<description><![CDATA[Hi I'am a beginner in C#. I would like to know how to connect to a database using C#. I'am using Visual Studio 2008.]]></description>
			<content:encoded><![CDATA[<div>Hi I'am a beginner in C#. I would like to know how to connect to a database using C#. I'am using Visual Studio 2008.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Daniel_Crouse</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239464.html</guid>
		</item>
		<item>
			<title>Restore button</title>
			<link>http://www.daniweb.com/forums/thread239446.html</link>
			<pubDate>Wed, 18 Nov 2009 13:09:19 GMT</pubDate>
			<description>hi, 
i want to deactivate the restore button that comes in output form. 
i there any way 2 do it</description>
			<content:encoded><![CDATA[<div>hi,<br />
i want to deactivate the restore button that comes in output form.<br />
i there any way 2 do it</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239446.html</guid>
		</item>
		<item>
			<title>Methods</title>
			<link>http://www.daniweb.com/forums/thread239430.html</link>
			<pubDate>Wed, 18 Nov 2009 11:15:46 GMT</pubDate>
			<description><![CDATA[I have created this web service 
 
  <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>...]]></description>
			<content:encoded><![CDATA[<div>I have created this web service<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Web;<br />
using System.Web.Services;<br />
using System.Web.Services.Protocols;<br />
<br />
[WebService(Namespace = &quot;http://tempuri.org/&quot;)]<br />
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]<br />
public class Service : System.Web.Services.WebService<br />
{<br />
&nbsp; &nbsp; public Service () {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Uncomment the following line if using designed components <br />
&nbsp; &nbsp; &nbsp; &nbsp; //InitializeComponent(); <br />
&nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; [WebMethod]<br />
&nbsp; &nbsp; public string user(string strusername, string strpassword)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; string user = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Geusts leave boxes blank&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((strusername == &quot;paul&quot;) &amp;&amp; (strpassword == &quot;paul&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user = &quot;Overall Co-Ordinator&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((strusername == &quot;lisa&quot;) &amp;&amp; (strpassword == &quot;lisa&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user = &quot;Overall Food Coordinator&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((strusername == &quot;rob&quot;) &amp;&amp; (strpassword == &quot;rob&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user = &quot;Overall Programme Coordinator&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((strusername == &quot;&quot;) &amp;&amp; (strpassword == &quot;&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user = &quot;Guest&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; return user;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; [WebMethod]<br />
&nbsp; &nbsp; public string HelloWorld() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return &quot;Hello World&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
}</pre><br />
I need to use it on a login page on a web-page. <br />
<br />
Then each user has a different page they are taken too. <br />
<br />
i.e. Overall Co-Ordinator see's the whole of my created database on his/her own page.  and food co ordinator can only veiw the food part of my database etc.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>foxypj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239430.html</guid>
		</item>
		<item>
			<title>Image distorted</title>
			<link>http://www.daniweb.com/forums/thread239420.html</link>
			<pubDate>Wed, 18 Nov 2009 10:44:03 GMT</pubDate>
			<description>I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I cannot understand how this is...</description>
			<content:encoded><![CDATA[<div>I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I cannot understand how this is possible, considering that I do not make any changes to the original image. Anyone can help me out?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sathya8819</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239420.html</guid>
		</item>
		<item>
			<title>Encrypting a video file using this code gives out of memory exception</title>
			<link>http://www.daniweb.com/forums/thread239409.html</link>
			<pubDate>Wed, 18 Nov 2009 09:47:53 GMT</pubDate>
			<description><![CDATA[<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# Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&nbsp; public void EncryptFile(string input, string output,RijndaelManaged alg1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileStream inputStream = new FileStream(input, FileMode.Open, FileAccess.Read);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileStream outputStream = new FileStream(output, FileMode.OpenOrCreate, FileAccess.Write);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SymmetricAlgorithm alg = new RijndaelManaged();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alg.Key = alg1.Key;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alg.IV = alg1.IV;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; byte[] data = new byte[inputStream.Length];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputStream.Read(data, 0, (int)data.Length);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alg.Padding = PaddingMode.PKCS7;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ICryptoTransform encryptor = alg.CreateEncryptor();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CryptoStream stream = new CryptoStream(outputStream, encryptor, CryptoStreamMode.Write);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // WRITE THE DATA ENCRYPTING<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stream.Write(data, 0, data.Length);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // CLOSE SEGMENT<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stream.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputStream.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outputStream.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
This is the algorithm which i use for encrypting file, but if try encrypting a huge video file of size 700 mb , it gives out of memory exception. <br />
<br />
so can u please tell me how to read just around 25 mb and encrypt that and next read the next 25mb and encrypt it into same file</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239409.html</guid>
		</item>
		<item>
			<title>Add new row in the last datagrid</title>
			<link>http://www.daniweb.com/forums/thread239384.html</link>
			<pubDate>Wed, 18 Nov 2009 07:38:35 GMT</pubDate>
			<description><![CDATA[Hi all 
i have question again, this is my code: 
 
  <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>Hi all<br />
i have question again, this is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px"> private void btAdd_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlDataAdapter adapter = new SqlDataAdapter();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataSet ds = new DataSet();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataView dv;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string sql = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string connetionString = &quot;Data Source=GOD_LOVE_ME;Initial Catalog=ProjetDB;Integrated Security=True&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sql = &quot;Select * from Material&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlConnection connection = new SqlConnection(connetionString);<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; connection.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlCommand command = new SqlCommand(sql, connection);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adapter.SelectCommand = command;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adapter.Fill(ds, &quot;Add New&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adapter.Dispose();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command.Dispose();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connection.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dv = new DataView(ds.Tables[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataRowView newRow = dv.AddNew();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;MaterialID&quot;] = txKode.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;MaterialName&quot;] = txNama.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;MatGroupID&quot;] = cbGroup.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow.EndEdit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dv.Sort = &quot;MaterialID&quot;;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DG1.DataSource = dv;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception ex)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show (ex.ToString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
this code for add row but my problem is how making row in last table, because my code only add in second row.<br />
<br />
best regards,<br />
martin</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>botaxsmaniz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239384.html</guid>
		</item>
		<item>
			<title>Qn:Reference and value types</title>
			<link>http://www.daniweb.com/forums/thread239382.html</link>
			<pubDate>Wed, 18 Nov 2009 07:14:04 GMT</pubDate>
			<description>I expect the following source code to output 
 
*value = 0, Copied value = 0 
value = 0, Copied value = 200* 
 
But it is actually giving 
 
*value = 0, Copied value = 0 
value = 200, Copied value = 200*</description>
			<content:encoded><![CDATA[<div>I expect the following source code to output<br />
<br />
<span style="font-weight:bold">value = 0, Copied value = 0<br />
value = 0, Copied value = 200</span><br />
<br />
But it is actually giving<br />
<br />
<span style="font-weight:bold">value = 0, Copied value = 0<br />
value = 200, Copied value = 200</span><br />
<br />
I have re-assigned<br />
<span style="font-style:italic">CopyMyValWithRef.reference.value = 200;</span><br />
<br />
This assignment must affect <span style="font-style:italic">CopyMyValWithRef.reference.value</span> only.<br />
This assignment is also affecting <span style="font-style:italic">MyValWithRef.reference.value</span><br />
<br />
What could be the reason for this.<br />
<br />
Source Code:<br />
<br />
 <pre style="margin:20px; line-height:13px"> class Program<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; struct MyValueType <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public int value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; class MyReferenceType<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public int value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; struct MyValueWithRefType<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public int value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public MyReferenceType reference;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; static void Main()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyValueWithRefType MyValWithRef = new MyValueWithRefType();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyValWithRef.reference = new MyReferenceType();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyValueWithRefType CopyMyValWithRef = MyValWithRef;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;value = {0}, Copied value = {1}&quot;, MyValWithRef.reference.value, CopyMyValWithRef.reference.value);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CopyMyValWithRef.reference.value = 200;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;value = {0}, Copied value = {1}&quot;, MyValWithRef.reference.value, CopyMyValWithRef.reference.value);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>vinodxx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239382.html</guid>
		</item>
		<item>
			<title>data from QuoteCenter using NDDE in .NET</title>
			<link>http://www.daniweb.com/forums/thread239376.html</link>
			<pubDate>Wed, 18 Nov 2009 06:50:26 GMT</pubDate>
			<description>HI, 
   Is any help me to read the data from QuoteCenter to .NET application. 
 
 
Thanks in advance. 
Venkat.</description>
			<content:encoded><![CDATA[<div>HI,<br />
   Is any help me to read the data from QuoteCenter to .NET application.<br />
<br />
<br />
Thanks in advance.<br />
Venkat.</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/thread239376.html</guid>
		</item>
		<item>
			<title>Active Directory ADsPath Attribute Format</title>
			<link>http://www.daniweb.com/forums/thread239365.html</link>
			<pubDate>Wed, 18 Nov 2009 06:30:17 GMT</pubDate>
			<description><![CDATA[Does anyone know how to get the adspath attribute value to a better looking string.  
 
Active Directory returns the following: "LDAP://contoso.com/CN=Sanch01R,OU=Managers,OU=Users,OU=InfoTech,DC=contoso,DC=com"; 
 
I would like it to read: contoso.com/infotech/users/managers/sanch01r 
 
The...]]></description>
			<content:encoded><![CDATA[<div>Does anyone know how to get the adspath attribute value to a better looking string. <br />
<br />
Active Directory returns the following: &quot;LDAP://contoso.com/CN=Sanch01R,OU=Managers,OU=Users,OU=InfoTech,DC=contoso,DC=com&quot;;<br />
<br />
I would like it to read: contoso.com/infotech/users/managers/sanch01r<br />
<br />
The IndexOf and Substring methods do not work consistently as we never know how many OU's would be returned, any ideas would be greatly appreciated!</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/thread239365.html</guid>
		</item>
		<item>
			<title>WPF UserControl MouseEvents to Winform</title>
			<link>http://www.daniweb.com/forums/thread239361.html</link>
			<pubDate>Wed, 18 Nov 2009 05:43:28 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
I have a WinForm application written in C#. I have added a WPF usercontrol added to the Winform and I want to get the mouse Events passed back to the WinForm. 
 
*So you can see in line 6, my XAML I have a MouseUp event:* 
 
UserControl x:Class="CustomRssFeed.MainWin"...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I have a WinForm application written in C#. I have added a WPF usercontrol added to the Winform and I want to get the mouse Events passed back to the WinForm.<br />
<br />
<span style="font-weight:bold">So you can see in line 6, my XAML I have a MouseUp event:</span><br />
 <pre style="margin:20px; line-height:13px">UserControl x:Class=&quot;CustomRssFeed.MainWin&quot;<br />
xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;<br />
xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;<br />
Height=&quot;41&quot; Width=&quot;699&quot; Foreground=&quot;#FFFFFFFF&quot; Loaded=&quot;MainWin_Loaded&quot; Unloaded=&quot;MainWin_Unloaded&quot;<br />
SizeChanged=&quot;MainWin_SizeChanged&quot;<br />
MouseUp=&quot;UserControl_MouseUp&quot;</pre><br />
<span style="font-weight:bold">and I have a XAML.CS with:</span><br />
<br />
 <pre style="margin:20px; line-height:13px">private void UserControl_MouseUp(object sender, MouseButtonEventArgs e)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
}</pre><br />
My question is how do I convert the 'MouseButtonEventArgs e' to a friendly WinForm version of MouseEventArgs ???</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>EcklerPa2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239361.html</guid>
		</item>
		<item>
			<title>Adding external callable api to program</title>
			<link>http://www.daniweb.com/forums/thread239300.html</link>
			<pubDate>Tue, 17 Nov 2009 22:28:15 GMT</pubDate>
			<description><![CDATA[I'm trying to create a simple application that is only supposed to be called by other applications. I've taken the concept from linux where you often have a application that depends on another, and then it does api-calls to that other application. The example I'm thinking about is libnotify which...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to create a simple application that is only supposed to be called by other applications. I've taken the concept from linux where you often have a application that depends on another, and then it does api-calls to that other application. The example I'm thinking about is libnotify which enables for notification of messages with or without image and title (this can for instance be found in ubuntu linux &gt; 9.04). And then somebody created a plugin for pidgin that when you receive a message call the libnotify-&quot;program&quot; to display the notification, instead of building it's own notification-method.<br />
<br />
Well, this is more or less what I want to create myself, but on windows. I've created a application that displays notifications (sort of like msn does on new message), and then I want to create for instance facebook-notifications that whenever it need to notify anything it will just call my notification-program. I've thought about making the all the specific parts as plugins (like a facebook plugin, and a twitter plugin), but then I have to load the external dlls into my already running program, and I rather like that the other programs can just call on the first one.<br />
<br />
Any help or thoughts on the subject would be appreciated.</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/thread239300.html</guid>
		</item>
		<item>
			<title><![CDATA[ExecuteReader requires an open and available Connection. The connection's current sta]]></title>
			<link>http://www.daniweb.com/forums/thread239216.html</link>
			<pubDate>Tue, 17 Nov 2009 14:56:21 GMT</pubDate>
			<description><![CDATA[Good Day All  
 
i have the Following Function  
 
  <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>Good Day All <br />
<br />
i have the Following Function <br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; private static void OMEGA_calcActvEqv()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; SqlConnection conn1 = CommonFunctions.getSQLConnectionForThread(THREAD_DATA[0].ToString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; string SQL = &quot;SELECT MAX(D.OFFS + 1) * MAX(R.OFFS + 1) FROM TBL_ROWS R, TBL_CLMN D; SELECT MAX(OFFS + 1) FROM TBL_ROWS;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SqlCommand cmd = new SqlCommand(SQL, conn1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; SqlDataReader rdr = cmd.ExecuteReader();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int size = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (rdr.Read())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; size = Convert.ToInt32(rdr[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int maxPeriods = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (rdr.NextResult())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (rdr.Read())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxPeriods = Convert.ToInt32(rdr[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; rdr.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; SQL = &quot;SELECT MEA.EQV [EQV], MEA.ACTV [ACTV] FROM MTM_EQV_ACTV MEA ORDER BY MEA.EQV, MEA.ACTV &quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((THREAD_DATA.Length &amp;gt; 3) &amp;amp;&amp;amp; (THREAD_DATA[3] != null))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string EQV = CommonFunctions.ExecuteScalarInThread(&quot;SELECT MEA.EQV FROM MTM_EQV_ACTV MEA WHERE ACTV=&quot; + THREAD_DATA[3], conn1).ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SQL = &quot;SELECT MEA.EQV [EQV], MEA.ACTV [ACTV] FROM MTM_EQV_ACTV MEA WHERE EQV='&quot; + EQV + &quot;' ORDER BY MEA.EQV, MEA.ACTV &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmd = new SqlCommand(SQL, conn1);<br />
&nbsp; &nbsp; &nbsp;  &lt;b&gt; rdr = cmd.ExecuteReader();&lt;/b&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; string eqvSet = string.Empty;<br />
&nbsp; &nbsp; &nbsp; &nbsp; List&amp;lt;int&amp;gt; actvs = new List&amp;lt;int&amp;gt;();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (rdr.Read())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (eqvSet != rdr[&quot;EQV&quot;].ToString())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (actvs.Count &amp;gt; 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OMEGA_intersectDomns(actvs, size, maxPeriods);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; actvs.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eqvSet = rdr[&quot;EQV&quot;].ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!DBNull.Value.Equals(rdr[&quot;ACTV&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; actvs.Add(Convert.ToInt32(rdr[&quot;ACTV&quot;]));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<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; if (!DBNull.Value.Equals(rdr[&quot;ACTV&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; actvs.Add(Convert.ToInt32(rdr[&quot;ACTV&quot;]));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; rdr.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (actvs.Count &gt; 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OMEGA_intersectDomns(actvs, size, maxPeriods);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; actvs.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn1.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn1.Dispose();<br />
&nbsp; &nbsp; }</pre><br />
<br />
and  the Definition of function ExecuteScalarInThread<br />
<br />
is <br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp; &nbsp; public static object ExecuteScalarInThread(string sql, SqlConnection conn1)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; SqlCommand sqlcommand = new SqlCommand(sql, conn1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //You need to apply the the connection to the command after connection open<br />
&nbsp; &nbsp; &nbsp; &nbsp; sqlcommand.CommandType = CommandType.Text;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; object ret = new object();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (conn1.State != ConnectionState.Open)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn1.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret = sqlcommand.ExecuteScalar();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch (Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret = e.Message;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; conn1.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; return ret;<br />
&nbsp; &nbsp; }</pre><br />
i get an Error in the bolded line of the Function   OMEGA_calcActvEqv() on this line <br />
<br />
 <pre style="margin:20px; line-height:13px"> rdr = cmd.ExecuteReader();</pre><br />
that says <br />
 <pre style="margin:20px; line-height:13px">ExecuteReader requires an open and available Connection. The connection's current state is closed.</pre><br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>vuyiswamb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239216.html</guid>
		</item>
		<item>
			<title>Product Key template and Its validation In Setup</title>
			<link>http://www.daniweb.com/forums/thread239213.html</link>
			<pubDate>Tue, 17 Nov 2009 14:49:34 GMT</pubDate>
			<description>Hi All, 
 
I am going to create a setup for Windows Application using C#.net. 
I have ProductKey and Its validating Exe also. 
I need to integrate this product key and validate it in the Application setup itself. 
Please help me to do in Inno setup Wizard.Anybody knows it please give step by step...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am going to create a setup for Windows Application using C#.net.<br />
I have ProductKey and Its validating Exe also.<br />
I need to integrate this product key and validate it in the Application setup itself.<br />
Please help me to do in Inno setup Wizard.Anybody knows it please give step by step Instruction for me.<br />
Please Send The details to my mail &lt;mail removed&gt;<br />
Thanks in Advance........<br />
<br />
-Neenu</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>NeenuThomas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239213.html</guid>
		</item>
		<item>
			<title>line</title>
			<link>http://www.daniweb.com/forums/thread239197.html</link>
			<pubDate>Tue, 17 Nov 2009 12:49:10 GMT</pubDate>
			<description>hi, 
i drew a line which fit in the output form when it is in minimized state. but when the it is maximized line remain the same height but the window expand. i want that the line and window expand and shrink in same ratio. 
i hope i made u  understand the problem.</description>
			<content:encoded><![CDATA[<div>hi,<br />
i drew a line which fit in the output form when it is in minimized state. but when the it is maximized line remain the same height but the window expand. i want that the line and window expand and shrink in same ratio.<br />
i hope i made u  understand the problem.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239197.html</guid>
		</item>
		<item>
			<title>Excel To Access...!!!</title>
			<link>http://www.daniweb.com/forums/thread239193.html</link>
			<pubDate>Tue, 17 Nov 2009 12:39:36 GMT</pubDate>
			<description><![CDATA[Hi all, How can i convert the excel worksheet into MS Access database, such that all the fields & data of excel becomes the fields of database, and then i could use that database for adding new item, modify and delete. 
I want to do this so as to avoid the typing of all the data entries from excel...]]></description>
			<content:encoded><![CDATA[<div>Hi all, How can i convert the excel worksheet into MS Access database, such that all the fields &amp; data of excel becomes the fields of database, and then i could use that database for adding new item, modify and delete.<br />
I want to do this so as to avoid the typing of all the data entries from excel to my database...... <br />
Can anyone help me in this...........</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/thread239193.html</guid>
		</item>
		<item>
			<title>showing calender icon for picking date</title>
			<link>http://www.daniweb.com/forums/thread239173.html</link>
			<pubDate>Tue, 17 Nov 2009 10:37:21 GMT</pubDate>
			<description>How can selected date could be entered in the web form using c#.net 2005, and show the calender icon instead of the actual calender size that we add from toolbox... any samples done on it is apprecited...thanx</description>
			<content:encoded><![CDATA[<div>How can selected date could be entered in the web form using c#.net 2005, and show the calender icon instead of the actual calender size that we add from toolbox... any samples done on it is apprecited...thanx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>deepas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239173.html</guid>
		</item>
		<item>
			<title>Better way to write something...</title>
			<link>http://www.daniweb.com/forums/thread239142.html</link>
			<pubDate>Tue, 17 Nov 2009 07:23:45 GMT</pubDate>
			<description><![CDATA[Do you guys know a better way to write 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...]]></description>
			<content:encoded><![CDATA[<div>Do you guys know a better way to write this?<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; bool a = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_1&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool b = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool c = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_3&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool d = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_4&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool ee = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_5&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool f = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_6&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool g = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_7&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool h = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_8&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool i = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_9&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool j = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_10&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool k = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_11&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool l = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_12&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool m = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_13&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool n = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_14&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool o = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_15&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool p = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_16&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool q = Directory.Exists(&quot;C:\\Program Files\\Java\\jdk1.6.0_17&quot;);</pre><br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_1&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (b)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_2&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (c)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_3&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (d)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_4&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ee)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_5&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (f)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_6&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (g)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_7&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (h)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_8&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_9&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (j)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_10&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (k)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_11&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (l)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_12&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (m)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_13&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_14&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (o)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_15&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (p)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_16&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (q)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = &quot;Jdk version: 1.6.0_17&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
I know it can be done better, but I don't know how.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Jaydenn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239142.html</guid>
		</item>
		<item>
			<title>C# Homework help URGENT</title>
			<link>http://www.daniweb.com/forums/thread239137.html</link>
			<pubDate>Tue, 17 Nov 2009 06:56:14 GMT</pubDate>
			<description><![CDATA[Hi guys, if anyone can help me with the basic C# programming concepts, please send me an email at <email snipped> and I can email you my project for you to see what the problem is with it.   
 
It is almost complete but it keeps throwing an exception and I do not know how to fix it.  I am trying to...]]></description>
			<content:encoded><![CDATA[<div>Hi guys, if anyone can help me with the basic C# programming concepts, please send me an email at &lt;email snipped&gt; and I can email you my project for you to see what the problem is with it.  <br />
<br />
It is almost complete but it keeps throwing an exception and I do not know how to fix it.  I am trying to create a blackjack game.<br />
<br />
Looking forward to the email response.  <br />
<br />
Wesley</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>wesleychin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239137.html</guid>
		</item>
		<item>
			<title><![CDATA[can't selected row or column in datagridview]]></title>
			<link>http://www.daniweb.com/forums/thread239112.html</link>
			<pubDate>Tue, 17 Nov 2009 04:31:47 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm newbe need your help. I have code: 
 
  <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>Hi all,<br />
<br />
I'm newbe need your help. I have code:<br />
<br />
 <pre style="margin:20px; line-height:13px">public void Material_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlConnection con;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SqlDataAdapter da;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataSet ds;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &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; con = new SqlConnection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.ConnectionString = &quot;Data Source=GOD_LOVE_ME;Initial Catalog=ProjetDB;Integrated Security=True&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.Open();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; da = new SqlDataAdapter(&quot;select * from Material&quot;, con);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ds = new DataSet();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; da.Fill(ds);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DG1.DataSource = ds;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
but.. I can't select row or column, can u help me chnge this code?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>botaxsmaniz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239112.html</guid>
		</item>
		<item>
			<title>help with double buffering images</title>
			<link>http://www.daniweb.com/forums/thread239093.html</link>
			<pubDate>Tue, 17 Nov 2009 03:19:00 GMT</pubDate>
			<description><![CDATA[Hi, 
I have been trying to solve this problem without any luck. Can someone please have a look at this code as it doesn't work 
 
Thank you 
 
After clicking a button I refresh the picture box the 
code below is in the picbox.Paint event. Basically what I am trying to do is to write a series of...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have been trying to solve this problem without any luck. Can someone please have a look at this code as it doesn't work<br />
<br />
Thank you<br />
<br />
After clicking a button I refresh the picture box the<br />
code below is in the picbox.Paint event. Basically what I am trying to do is to write a series of thumbnails to a buffer, then show the screen with all the thumbnails in place,<br />
I can do it without buffering but it is very slow.<br />
<br />
Any help welcome<br />
<br />
 <pre style="margin:20px; line-height:13px">_Buffer= new Bitmap(363,420);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Graphics g = e.Graphics;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int y1 = 0; y1 &lt; 12; y1++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point P1 = pp.Get_ThumbNail_Point_Pos(y1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theImage = new Bitmap(pp.pics[y1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imgThumb =&nbsp; &nbsp; theImage.GetThumbnailImage(98, 98, null, new IntPtr());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.DrawImage(_Buffer, P1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theImage.Dispose();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.Graphics.DrawImageUnscaled(_Buffer, 0, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>valter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239093.html</guid>
		</item>
		<item>
			<title>C# GUI for a C++ program?</title>
			<link>http://www.daniweb.com/forums/thread239077.html</link>
			<pubDate>Tue, 17 Nov 2009 01:00:24 GMT</pubDate>
			<description><![CDATA[Hello, 
My professor has asked me to write a C# GUI for a C++ program. I did not write the C++ program (hell, I'm not even completely sure what it does -- something to do with pattern recognition). I wanted to know how one would go about writing a C# GUI for a program written in another language. ...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
My professor has asked me to write a C# GUI for a C++ program. I did not write the C++ program (hell, I'm not even completely sure what it does -- something to do with pattern recognition). I wanted to know how one would go about writing a C# GUI for a program written in another language. <br />
<br />
I did a little bit of research online and saw the term &quot;wrapper&quot; used, but it wasn't very clear. Is there a way to access the C++ program's classes and functions through a C# GUI? Also, the C++ program allows command line commands for running it, so I was thinking maybe it's possible to have the GUI somehow interact with the C++ program through the command line. <br />
<br />
If anyone could explain my options to me I would greatly appreciate it. Please forgive me if I ask any stupid questions, as it's been about a year since I've programmed in C# <span style="font-style:italic">or</span> C++. <br />
<br />
Thanks in advance for your help!<br />
- EF<br />
<br />
P.S. - This is <span style="font-style:italic">not</span> for a homework assignment or class project.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>EvolutionFallen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239077.html</guid>
		</item>
		<item>
			<title>Actual Joystick Emulation in C#</title>
			<link>http://www.daniweb.com/forums/thread239050.html</link>
			<pubDate>Mon, 16 Nov 2009 21:49:50 GMT</pubDate>
			<description><![CDATA[Hello folks. 
 
I have done a good amount of research and I'm still unable to determine how I can perform real emulation of a joystick.  
What I found on the web was using the mouse movements to simulate a joystick that moves an imaginary little ball. 
 
No, what I wish to do is to emulate a real...]]></description>
			<content:encoded><![CDATA[<div>Hello folks.<br />
<br />
I have done a good amount of research and I'm still unable to determine how I can perform real emulation of a joystick. <br />
What I found on the web was using the mouse movements to simulate a joystick that moves an imaginary little ball.<br />
<br />
No, what I wish to do is to emulate a real joystick, programmatically.<br />
<br />
The reason is that I'm working with a hardware device for disabled people, this device allows a disabled person to access the PC and I want the device together with my code to replace the joystick. <br />
<br />
Basically, the disabled person uses this device in 'joystick' mode which will trigger/produce/generate the same output that a joystick outputs to Windows; to perform a real emulation of a standard joystick. <br />
<br />
Thank you for your time!</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/thread239050.html</guid>
		</item>
		<item>
			<title>Can you help with c# again.</title>
			<link>http://www.daniweb.com/forums/thread239038.html</link>
			<pubDate>Mon, 16 Nov 2009 21:18:51 GMT</pubDate>
			<description><![CDATA[<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# Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <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.Text;<br />
using System.Windows.Forms;<br />
using System.Collections;<br />
<br />
namespace CoinsExercise12StephenBarDev<br />
{<br />
&nbsp; &nbsp; public partial class FrmStephensCoinage : Form<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Array ValueOfCoins = Array.CreateInstance(typeof(String), 101);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double CoinInput;<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public FrmStephensCoinage()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.00&quot;, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.01&quot;,1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.02&quot;,2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.03&quot;,3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.04&quot;, 4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.05&quot;, 5);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.06&quot;, 6);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.07&quot;, 7);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.08&quot;, 8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.09&quot;, 9);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.10&quot;, 10);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.11&quot;, 11);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.12&quot;, 12);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.13&quot;, 13);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.14&quot;, 14);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.15&quot;, 15);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.16&quot;, 16);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.17&quot;, 17);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.18&quot;, 18);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.19&quot;, 19);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.20&quot;, 20);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.21&quot;, 21);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.22&quot;, 22);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.23&quot;, 23);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.24&quot;, 24);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.25&quot;, 25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.26&quot;, 26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.27&quot;, 27);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.28&quot;, 28);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.29&quot;, 29);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.30&quot;, 30);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.31&quot;, 31);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.32&quot;, 32);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.33&quot;, 33);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.34&quot;, 34);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.35&quot;, 35);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.36&quot;, 36);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.37&quot;, 37);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.38&quot;, 38);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.39&quot;, 39);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.40&quot;, 40);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.41&quot;, 41);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.42&quot;, 42);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.43&quot;, 43);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.44&quot;, 44);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.45&quot;, 45);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.46&quot;, 46);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.47&quot;, 47);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.48&quot;, 48);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.49&quot;, 49);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.50&quot;, 50);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.51&quot;, 51);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.52&quot;, 52);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.53&quot;, 53);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.54&quot;, 54);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.55&quot;, 55);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.56&quot;, 56);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.57&quot;, 57);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.58&quot;, 58);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.59&quot;, 59);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.60&quot;, 60);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.61&quot;, 61);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.62&quot;, 62);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.63&quot;, 63);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.64&quot;, 64);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.65&quot;, 65);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.66&quot;, 66);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.67&quot;, 67);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.68&quot;, 68);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.69&quot;, 69);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.70&quot;, 70);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.71&quot;, 71);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.72&quot;, 72);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.73&quot;, 73);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.74&quot;, 74);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.75&quot;, 75);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.76&quot;, 76);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.77&quot;, 77);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.78&quot;, 78);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.79&quot;, 79);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.80&quot;,80);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.81&quot;, 81);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.82&quot;, 82);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.83&quot;, 83);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.84&quot;, 84);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.85&quot;, 85);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.86&quot;, 86);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.87&quot;, 87);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.88&quot;, 88);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.89&quot;, 89);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.90&quot;, 90);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.91&quot;, 91);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.92&quot;, 92);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.93&quot;, 93);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.94&quot;, 94);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.95&quot;, 95);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.96&quot;, 96);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.97&quot;, 97);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.98&quot;, 98);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;0.99&quot;, 99);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ValueOfCoins.SetValue(&quot;1.00&quot;, 100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void BtnCalculate_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CoinInput = double.Parse(TbValueOfCoinage.Text);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(0)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;Enter At least A penny&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(1)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(2)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(3)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(4)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(5)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(6)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(7)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(8)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(9)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(10)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(11)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(12)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(13)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(14)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(15)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(16)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(17)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(18)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(19)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(20)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(21)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(22)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(23)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(24)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(25)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(26)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(27)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(28)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(29)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(30)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(31)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(32)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(33)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue (34)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(35)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(36)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(37)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(38)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(39)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(40)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(41)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(42)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(43)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(44)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(45)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(46)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(47)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(48)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(49)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(50)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;//&nbsp; --------------------------------------------------------------------------------------- 1-50p<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(51)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(52)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(53)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(54)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(55)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(56)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue (57)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(58)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(59)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(60)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(61)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(62)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(63)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(64)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(65)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(66)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(67)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(68)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(69)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(70)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(71)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(72)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(73)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue (74)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(75)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(76)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue (77)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(78)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(79)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(80)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(81)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(82)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(83)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(84)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(85)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(86)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(87)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(88)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(89)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(90)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(91)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(92)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(93)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(94)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(95)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(96)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(97)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(98)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(99)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 1.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput == Convert.ToDouble(ValueOfCoins.GetValue(100)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 2.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CoinInput &gt; Convert.ToDouble(ValueOfCoins.GetValue(100)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;Enter Currency less than 1.00&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;Make Sure You use 1.00 or 0 in front of pence.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; ------------------------------------------- 50 to 10<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<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;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void BtnExit_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void BtnClear_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf50s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf2s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CoinInput = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf20s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf10s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf5s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LblTotalOf1s.Text = 0.ToString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TbValueOfCoinage.Focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TbValueOfCoinage.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void FrmStephensCoinage_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre><br />
i want to know if there is another way of writing this program to <br />
<br />
calculate and displays the minimum number of pennies, two pence coins, five pence coins, ten pence coins, twenty pence coins and fifty pence coins that add up to that amount.<br />
<br />
<br />
possibly Using a loop to calculate the number of each coin that’s required. I think The loop should divide the remaining cents by each coin value, starting with the largest value. dominators. <br />
<br />
<br />
any comments on this, please any help would be apprechiated.<br />
<span style="text-decoration:underline"><br />
written by stephen barratt.</span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>brightsolar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239038.html</guid>
		</item>
		<item>
			<title>loops???</title>
			<link>http://www.daniweb.com/forums/thread239027.html</link>
			<pubDate>Mon, 16 Nov 2009 20:20:37 GMT</pubDate>
			<description>question: 
4. A program is required for a grocer that will add two weights together (in pounds and ounces). The program should also convert the total weight to a value in kilograms. 
 
Use three functions. 
 
Function 1: allows the user to enter the name of the produce, and the weights in pounds...</description>
			<content:encoded><![CDATA[<div>question:<br />
4. A program is required for a grocer that will add two weights together (in pounds and ounces). The program should also convert the total weight to a value in kilograms.<br />
<br />
Use three functions.<br />
<br />
Function 1: allows the user to enter the name of the produce, and the weights in pounds and ounces, which are validated and stored..<br />
<br />
Function 2: calculates the total weight in pounds and ounces and converts that to kilograms.<br />
<br />
Function 3: displays the name of the produce, the total weight in pounds and ounces and the total weight in kilograms.<br />
Think about function 2 and the actual values that will be returned from this function.<br />
<br />
The user should be given an option to convert another weight or end the program <br />
<br />
Note: there are 16 ounces in one pound, and there are 0.454 kilograms in one pound.<br />
<br />
here is what i have so far:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; string product;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single weightp = 0f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single weighto= 0f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single convertp= 0f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single ptokilo = 0.45359237f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single converto= 0f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single otokilo = 0.0283495231f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Single totalkiloweight = 0f;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;the name of the produce&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; product = Console.ReadLine();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter weight in poounds&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; weightp = Convert.ToInt32(Console.ReadLine());<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Enter weight in Ounces&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; weighto = Convert.ToInt32(Console.ReadLine());<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; convertp = weightp * ptokilo;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Here is pounds converted to kilograms&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(convertp);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; converto = weighto * otokilo;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Here is Ounces converted to kilograms&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(converto);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalkiloweight = converto + convertp;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Here is the total Weight in Kilograms for the two weights&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(totalkiloweight);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.ReadKey();</pre> any idead how to add a loop iv tried a while loop shows so many errors when i try to add it</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>memory100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239027.html</guid>
		</item>
		<item>
			<title>write name to text file???</title>
			<link>http://www.daniweb.com/forums/thread239025.html</link>
			<pubDate>Mon, 16 Nov 2009 20:17:47 GMT</pubDate>
			<description><![CDATA[here is the question: 
5. Write a basic program that allows the user to write names to a text file and read from the text file and displaying them on the screen. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>here is the question:<br />
5. Write a basic program that allows the user to write names to a text file and read from the text file and displaying them on the screen.<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; string filename;<br />
StreamReader outputFile = new StreamReader(&quot;c:\\PriceList.txt&quot;);<br />
<br />
// Read the first item.<br />
filename = outputFile.ReadLine();<br />
// If an item was read, display it and read the remaining items.<br />
while (filename != null)<br />
{<br />
&nbsp; &nbsp; Console.WriteLine(filename);<br />
&nbsp; &nbsp; filename = outputFile.ReadLine();<br />
}<br />
outputFile.Close();</pre>shows up error!!! dont knwo what to dio!! any clues???</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>memory100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239025.html</guid>
		</item>
		<item>
			<title><![CDATA[Adding sourname "Save Dump" to the application event log]]></title>
			<link>http://www.daniweb.com/forums/thread239021.html</link>
			<pubDate>Mon, 16 Nov 2009 20:10:28 GMT</pubDate>
			<description><![CDATA[I am trying to write some test code to simulated a blue screen application event log entry. I have the generic function  
 
  <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"...]]></description>
			<content:encoded><![CDATA[<div>I am trying to write some test code to simulated a blue screen application event log entry. I have the generic function <br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; private void AddEventLogEntry(string source, string errorText, int eventId, short category)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string log = &quot;Application&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!EventLog.SourceExists(source))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EventLog.CreateEventSource(source, log);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EventLog.WriteEntry(source, errorText,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EventLogEntryType.Information, eventId, category);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
This will write any source entry to the application event log until I try with source name &quot;Save Dump&quot; when for some reason windows puts this in the system event log.<br />
<br />
Example <br />
<br />
 <pre style="margin:20px; line-height:13px">AddEventLogEntry(&quot;Save Dump&quot;,&nbsp; &quot;error text&quot;,&nbsp; 1, 4);</pre><br />
Any ideas how to get a Source of &quot;Save Dump&quot; in the application event log.<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>cstrachan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239021.html</guid>
		</item>
		<item>
			<title>Tamagotchi</title>
			<link>http://www.daniweb.com/forums/thread239005.html</link>
			<pubDate>Mon, 16 Nov 2009 18:55:57 GMT</pubDate>
			<description>Start off this is my first post so go easy on me :) 
 
I am a beginner at C# programming and have been set the task of making a tamagotchi in a console application, my question is there anyone who can point me in the direction of a good tutorial or can supply some starter code or hints to get me...</description>
			<content:encoded><![CDATA[<div>Start off this is my first post so go easy on me :)<br />
<br />
I am a beginner at C# programming and have been set the task of making a tamagotchi in a console application, my question is there anyone who can point me in the direction of a good tutorial or can supply some starter code or hints to get me going.<br />
<br />
Thanks<br />
:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>narg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239005.html</guid>
		</item>
		<item>
			<title>SHDocVw insert element in document.body?</title>
			<link>http://www.daniweb.com/forums/thread239002.html</link>
			<pubDate>Mon, 16 Nov 2009 18:34:09 GMT</pubDate>
			<description><![CDATA[Hi, I am trying to inject html and js into an IE from a bho. 
To get the body I use: 
  <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...]]></description>
			<content:encoded><![CDATA[<div>Hi, I am trying to inject html and js into an IE from a bho.<br />
To get the body I use:<br />
 <pre style="margin:20px; line-height:13px">public static SHDocVw.WebBrowser webBrowser;<br />
HTMLDocument document = (HTMLDocument)webBrowser.Document;<br />
IHTMLElement body = (IHTMLElement)document.body;</pre><br />
My idea was to use body.appendChild but that will only work for the webbrowser control and not for SHDocVw.WebBrowser.<br />
<br />
I can't use execScript() because I want to also add external js files, that's why I want to use a script element.<br />
<br />
How can I in inject a script element into the body or head?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>trogster</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239002.html</guid>
		</item>
		<item>
			<title>Using classes-objects to fill an array</title>
			<link>http://www.daniweb.com/forums/thread238973.html</link>
			<pubDate>Mon, 16 Nov 2009 16:53:50 GMT</pubDate>
			<description>ok guys what im trying here is to fill array with a big integer number(which is string) by using class-objects 
first i made two references n1\n2 to the objects entry and arr 
-constructor to assign entry to null  
i used a property ( as wanted in the question ) to fill them  
then i used the pad...</description>
			<content:encoded><![CDATA[<div>ok guys what im trying here is to fill array with a big integer number(which is string) by using class-objects<br />
first i made two references n1\n2 to the objects entry and arr<br />
-constructor to assign entry to null <br />
i used a property ( as wanted in the question ) to fill them <br />
then i used the pad left to make them from equal length<br />
then i made another constructor to fill the array but its makin an error <br />
the error is not in the compile time but in the run-time :S<br />
can anyone figure out wats going on<br />
 <pre style="margin:20px; line-height:13px">namespace Program<br />
{<br />
&nbsp;  class BigIntegerNumber<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; public string entry;<br />
&nbsp; &nbsp; &nbsp; int[] arr;<br />
&nbsp; &nbsp; &nbsp; public BigIntegerNumber()<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  entry = null;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; public string Fill<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  get<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return entry;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  set<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entry = value;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; public BigIntegerNumber(int s)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  arr = new int[s.Length];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0;i&lt;s;i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[i] = Convert.ToInt32(entry[i] - 48);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; static void Main(string[] args)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  BigIntegerNumber n1 = new BigIntegerNumber();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  BigIntegerNumber n2 = new BigIntegerNumber();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.Write(&quot;Please,Enter the first number :&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  n1.Fill = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.Write(&quot;Please,Enter the second number :&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  n2.Fill = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int local_size;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (n1.entry.Length &gt; n2.entry.Length)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n2.entry = n2.entry.PadLeft(n1.entry.Length, '0');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local_size = n1.entry.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n1.entry = n1.entry.PadLeft(n2.entry.Length, '0');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local_size = n2.entry.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(n1.entry);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int s1 = n1.entry.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(n2.entry);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int s2 = n2.entry.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  n1 = new BigIntegerNumber(s1);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  n2 = new BigIntegerNumber(s2);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}</pre></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/thread238973.html</guid>
		</item>
		<item>
			<title>line graph</title>
			<link>http://www.daniweb.com/forums/thread238927.html</link>
			<pubDate>Mon, 16 Nov 2009 13:42:34 GMT</pubDate>
			<description>hi, 
i have array of x and y values, and i want to draw a line graph using this values. And i dont have any ideas related graphs. 
so, can u help from where to start...</description>
			<content:encoded><![CDATA[<div>hi,<br />
i have array of x and y values, and i want to draw a line graph using this values. And i dont have any ideas related graphs.<br />
so, can u help from where to start...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238927.html</guid>
		</item>
		<item>
			<title>How to selected drowndown list options in web browser</title>
			<link>http://www.daniweb.com/forums/thread238924.html</link>
			<pubDate>Mon, 16 Nov 2009 13:25:38 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
Im working a web browser automation project. There is an ajax controlled dropdown list in a web site. 
 
It was like this; 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
Im working a web browser automation project. There is an ajax controlled dropdown list in a web site.<br />
<br />
It was like this;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;option value=&quot;test1&quot;&gt;test1&lt;/option&gt;<br />
&lt;option value=&quot;test2&quot;&gt;test2&lt;/option&gt;<br />
&lt;option value=&quot;test3&quot;&gt;test3&lt;/option&gt;<br />
&lt;option value=&quot;test4&quot;&gt;test4&lt;/option&gt;<br />
&lt;option value=&quot;test5&quot;&gt;test5&lt;/option&gt;</pre><br />
When i was selected test2 ajax is working and its giving another div. (I need this div)<br />
<br />
I use this codes;<br />
<br />
 <pre style="margin:20px; line-height:13px">webbrowser1.Document.GetElementsByTagName(&quot;select&quot;)[0].Document.GetElementsByTagName(&quot;option&quot;)[1].SetAttribute(&quot;selected&quot;, &quot;selected&quot;);</pre><br />
Its only changing attribute and for this reason it doesnt working ajax.<br />
<br />
How can i select option 1?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>fatihunal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238924.html</guid>
		</item>
		<item>
			<title>Admin and user functionality?</title>
			<link>http://www.daniweb.com/forums/thread238903.html</link>
			<pubDate>Mon, 16 Nov 2009 12:01:34 GMT</pubDate>
			<description>Hi i am making a C# window application, in which i have two accounts one for user, and other for admin. 
How can i provide different different rights to user and admin. 
Like i want that all the buttons and everything should be visible to both user and admin, but admin could edit and modify...</description>
			<content:encoded><![CDATA[<div>Hi i am making a C# window application, in which i have two accounts one for user, and other for admin.<br />
How can i provide different different rights to user and admin.<br />
Like i want that all the buttons and everything should be visible to both user and admin, but admin could edit and modify whatever he wants, but for user i want certain functions and buttons to be disabled, user could see them but could not perform any functionality.<br />
How can i do this, 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/thread238903.html</guid>
		</item>
		<item>
			<title>Nucleus Detection</title>
			<link>http://www.daniweb.com/forums/thread238890.html</link>
			<pubDate>Mon, 16 Nov 2009 11:02:09 GMT</pubDate>
			<description>Hi, 
 
I am trying to implement a project where I need to detect something. I have the digitized form of a human cell and I need to detect regions separately in the image. This part is over. The next part is where I have to detect overlapping regions. Another part is to detect the nucleus of these...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to implement a project where I need to detect something. I have the digitized form of a human cell and I need to detect regions separately in the image. This part is over. The next part is where I have to detect overlapping regions. Another part is to detect the nucleus of these cells. Can someone help me with the code?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sathya8819</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238890.html</guid>
		</item>
		<item>
			<title>Connecting to database from windows mobile</title>
			<link>http://www.daniweb.com/forums/thread238882.html</link>
			<pubDate>Mon, 16 Nov 2009 10:06:36 GMT</pubDate>
			<description>Hi,im developing a windows mobile the application in c#. 
Can any one suggest me which data base to use and how to connect to database in c#. 
 
 
Actually im a java developer this is my first .net app.</description>
			<content:encoded><![CDATA[<div>Hi,im developing a windows mobile the application in c#.<br />
Can any one suggest me which data base to use and how to connect to database in c#.<br />
<br />
<br />
Actually im a java developer this is my first .net app.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>srinivas.g</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238882.html</guid>
		</item>
		<item>
			<title>{System.Runtime.InteropServices.ExternalException} = Array index out of bounds</title>
			<link>http://www.daniweb.com/forums/thread238880.html</link>
			<pubDate>Mon, 16 Nov 2009 10:02:04 GMT</pubDate>
			<description><![CDATA[I am trying to import mails from Outlook to my Database during execution of code it is throwing the "Excepiton ComException unhandeled by User Code" Array index out of bounds. 
it was working fine in the biggening but suddenly start throwing this exception. 
 
Here is my code 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I am trying to import mails from Outlook to my Database during execution of code it is throwing the &quot;Excepiton ComException unhandeled by User Code&quot; <span style="color:Red">Array index out of bounds</span>.<br />
it was working fine in the biggening but suddenly start throwing this exception.<br />
<br />
Here is my code<br />
<br />
 <pre style="margin:20px; line-height:13px"> try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Microsoft.Office.Interop.Outlook.Application MYAPP = new Microsoft.Office.Interop.Outlook.ApplicationClass();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Microsoft.Office.Interop.Outlook.NameSpace mapiNameSpace = MYAPP.GetNamespace(&quot;MAPI&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Microsoft.Office.Interop.Outlook.MAPIFolder myInbox = mapiNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);<br />
&nbsp;<br />
for (int i = 0; i &lt;= myInbox.Items.Count; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lblSubject = ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Subject; //throws exception here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtBody = ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).Body;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // if (((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).CC.Length &gt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Mail_CC = ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[i]).CC;<br />
}<br />
<br />
&nbsp;catch (System.Exception ex)<br />
<br />
{<br />
<br />
string error = ex.Message;<br />
<br />
}</pre><br />
I was Having the same problem few days back when Dear MikiUrban Help me out. but I have still the problem when I start reading mail from OutLook from SUBJECT Line its throws the base <span style="color:Red">{System.Runtime.InteropServices.ExternalException} = &quot;Array index out of bounds&quot;</span>, if I comment the Subject Line then same error in 'Body' while reading the next item of mail. Please anybuddy Help me I will be very thankful.....</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/thread238880.html</guid>
		</item>
		<item>
			<title><![CDATA[SaveFileDialog & Populating listBox..HELP!]]></title>
			<link>http://www.daniweb.com/forums/thread238876.html</link>
			<pubDate>Mon, 16 Nov 2009 09:48:42 GMT</pubDate>
			<description><![CDATA[Having problems succuessfully populating the listBox via arrays. Array size is input by user. Also, cant quite get the SaveFileDialog working with the option for the user to create own filename & location. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Having problems succuessfully populating the listBox via arrays. Array size is input by user. Also, cant quite get the SaveFileDialog working with the option for the user to create own filename &amp; location.<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.IO;<br />
<br />
namespace _7_3<br />
{<br />
&nbsp; &nbsp; public partial class Form1 : Form<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //string[] studentData = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int arraySize = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; int counter = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <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; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public 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 button1_Click(object sender, EventArgs e)<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; &nbsp; &nbsp; string firstName = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string lastName = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; firstName = Convert.ToString(textBoxFirstName.Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lastName = Convert.ToString(textBoxLastName.Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arraySize = Convert.ToInt32(textBoxSize.Text);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string[] studentData = new string[arraySize];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //send data to array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; studentData[counter] = textBoxFirstName.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; studentData[counter] = textBoxLastName.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //clear textbox fields<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBoxLastName.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBoxFirstName.Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBoxFirstName.Focus();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (arraySize == counter)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;All students have been input.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File.WriteAllLines(&quot;TextFile.txt&quot;, studentData);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception err)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(err.Message);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void exitToolStripMenuItem_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Application.Exit();<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 />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string[] textFile = File.ReadAllLines(&quot;TextFile.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listBox1.DataSource = textFile.ToList();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void button3_Click(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SaveFileDialog Open = new SaveFileDialog();<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>jk8204</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238876.html</guid>
		</item>
		<item>
			<title>Draw Charts</title>
			<link>http://www.daniweb.com/forums/thread238869.html</link>
			<pubDate>Mon, 16 Nov 2009 08:33:41 GMT</pubDate>
			<description>Hi all, 
i am making a c# window application,in which i am entering marks of students of individual subjects in database. 
Now, how can i pick these values from database dynamically and draw the pie chart and bar graph of these marks. 
I want that as i click on button, the graph should be shown(of...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
i am making a c# window application,in which i am entering marks of students of individual subjects in database.<br />
Now, how can i pick these values from database dynamically and draw the pie chart and bar graph of these marks.<br />
I want that as i click on button, the graph should be shown(of its marks)..........<br />
i am using Ms access data base for this. <br />
Kindly help me in this...........</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/thread238869.html</guid>
		</item>
		<item>
			<title>How to add Installed templates</title>
			<link>http://www.daniweb.com/forums/thread238841.html</link>
			<pubDate>Mon, 16 Nov 2009 06:11:11 GMT</pubDate>
			<description>Hello All, 
 
   I have an application to log my test results to microsoft excel work sheet. Im developing a program in C#.net and Iwant to log the text results to microsoft excel and for that I searched  microsoft excel in Visual studio installed template list but its not there. 
 
Can you please...</description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
   I have an application to log my test results to microsoft excel work sheet. Im developing a program in C#.net and Iwant to log the text results to microsoft excel and for that I searched  microsoft excel in Visual studio installed template list but its not there.<br />
<br />
Can you please help me how to add microsoft excel to visual studio installed template list.<br />
<br />
Thanks and regards,<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/thread238841.html</guid>
		</item>
		<item>
			<title>.Evaluate xpath statement</title>
			<link>http://www.daniweb.com/forums/thread238782.html</link>
			<pubDate>Mon, 16 Nov 2009 00:08:30 GMT</pubDate>
			<description><![CDATA[I tested /project/pages/page[@completed='n'][not(text())=''] at http://www.mizar.dk/XPath/Default.aspx with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#? 
 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>I tested /project/pages/page[@completed='n'][not(text())=''] at <a rel="nofollow" class="t" href="http://www.mizar.dk/XPath/Default.aspx" target="_blank">http://www.mizar.dk/XPath/Default.aspx</a> with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#?<br />
<br />
 <pre style="margin:20px; line-height:13px">string xpath = &quot;/project/pages/page[@completed='n'][not(text())='']&quot;;<br />
bool not_finished = (bool)xd.CreateNavigator().Evaluate(xpath);</pre><br />
 <pre style="margin:20px; line-height:13px">&lt;project&gt;<br />
&nbsp; &lt;pages&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;1&quot; completed=&quot;y&quot;&gt;one&lt;/page&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;2&quot; completed=&quot;y&quot;&gt;two&lt;/page&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;3&quot; completed=&quot;y&quot;&gt;three&lt;/page&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;4&quot; completed=&quot;y&quot;&gt;four&lt;/page&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;5&quot; completed=&quot;y&quot;&gt;five&lt;/page&gt;<br />
&nbsp; &nbsp; &lt;page id=&quot;6&quot; completed=&quot;y&quot;&gt;six&lt;/page&gt;<br />
&nbsp; &lt;/pages&gt;<br />
&lt;/project&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>scott_rider</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238782.html</guid>
		</item>
		<item>
			<title>format exception was unhandled</title>
			<link>http://www.daniweb.com/forums/thread238764.html</link>
			<pubDate>Sun, 15 Nov 2009 21:52:30 GMT</pubDate>
			<description><![CDATA[<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# Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px"><br />
&nbsp;float[] x = new float[10000];<br />
&nbsp;float[] y = new float[10000];<br />
&nbsp;int c=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using (StreamReader sr = new StreamReader(&quot;e: \\CuPeak.dat&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!sr.EndOfStream)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = sr.ReadLine();&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; string[] variables = s.Split(' ');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[c]&nbsp; = float.Parse(variables[0]);//run time ERROR in this line &quot; format exception was unhandled&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y[c] = float.Parse(variables[1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(x[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238764.html</guid>
		</item>
		<item>
			<title>button prob</title>
			<link>http://www.daniweb.com/forums/thread238759.html</link>
			<pubDate>Sun, 15 Nov 2009 21:30:24 GMT</pubDate>
			<description>I HVE make class in one form of windows application..n want to call that class in 2nd  form of windows application tools that is in button ..so can u plzz tell me the coding as soon as possible..its urgent...</description>
			<content:encoded><![CDATA[<div>I HVE make class in one form of windows application..n want to call that class in 2nd  form of windows application tools that is in button ..so can u plzz tell me the coding as soon as possible..its urgent...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>xtremebeauty</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238759.html</guid>
		</item>
		<item>
			<title>Reading txt file, casting to array, Display in listBox</title>
			<link>http://www.daniweb.com/forums/thread238755.html</link>
			<pubDate>Sun, 15 Nov 2009 21:09:29 GMT</pubDate>
			<description><![CDATA[my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text 
 
what i have so far: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text<br />
<br />
what i have so far:<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp; &nbsp; &nbsp; &nbsp; private StreamReader strRead;<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; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void Form1_Load(object sender, EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[] gradeArray = new int[24];&nbsp; // array to hold grades<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string gradeValue = &quot;&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // string to hold current grade;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strRead = new StreamReader(&quot;Grades.txt&quot;);&nbsp; // streamreader for input file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int traverseGradeArray = 0;&nbsp; &nbsp; &nbsp;  // index used for gradeArray.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int averageGrades = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int totalGrades = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int numberofGrades = 0;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // initialize gradeArray elements to -1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 24; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gradeArray[i] = -1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; // for int i<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // while not at the end of the file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ((gradeValue = fil.ReadLine()) != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set current gradeArray value to what was read from file.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gradeArray[traverseGradeArray] = Convert.ToInt32(gradeValue);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // increment element counter<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; traverseGradeArray++;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; // while not at the end of the file<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // output contents of gradeArray to listBox<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 24; i++)<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalGrades = totalGrades + gradeArray[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; averageGrades = totalGrades / 24;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listBoxOutput.Items.Add(averageGrades);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gradeArray = new int[24];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalGrades = gradeArray.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listBoxOutput.Items.Add(totalGrades);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 24; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (gradeArray[i] &gt;= 91)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.listBoxOutput.Text = &quot;A&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
stuck &amp; stressed..PLEASE HELP!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>jk8204</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238755.html</guid>
		</item>
		<item>
			<title>WPF Benefits</title>
			<link>http://www.daniweb.com/forums/thread238749.html</link>
			<pubDate>Sun, 15 Nov 2009 20:07:09 GMT</pubDate>
			<description>Hi, 
 
I am going to start learning WPF.  I have some experience building Windows Forms based application with SQL Server 2005 (Disconnected mode, datasets, adapters, e.t.c). 
 
What benefits will WPF give me, the developer, and the users of the app? 
 
If somebody who has worked with both (Forms...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am going to start learning WPF.  I have some experience building Windows Forms based application with SQL Server 2005 (Disconnected mode, datasets, adapters, e.t.c).<br />
<br />
What benefits will WPF give me, the developer, and the users of the app?<br />
<br />
If somebody who has worked with both (Forms 2.0, WPF 3.5), please can you provide some details.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>eddy_boy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238749.html</guid>
		</item>
		<item>
			<title>Ethernet and Virtual Serial Port</title>
			<link>http://www.daniweb.com/forums/thread238748.html</link>
			<pubDate>Sun, 15 Nov 2009 20:06:36 GMT</pubDate>
			<description><![CDATA[I am a beginner  in C#. I want to develop a software which will work through Ethernet. I know something about "Serial Port". But I know little about Networking. So I want some software[free] which will create Virtual serial port to both end of the Network and will redirect the Data send through...]]></description>
			<content:encoded><![CDATA[<div>I am a beginner  in C#. I want to develop a software which will work through Ethernet. I know something about &quot;Serial Port&quot;. But I know little about Networking. So I want some software[free] which will create Virtual serial port to both end of the Network and will redirect the Data send through this Ports to respective I.P. via Ethernet.<br />
  Can anybody help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>royael</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238748.html</guid>
		</item>
		<item>
			<title>Getting the 1st none occupide ID in db</title>
			<link>http://www.daniweb.com/forums/thread238660.html</link>
			<pubDate>Sun, 15 Nov 2009 14:16:06 GMT</pubDate>
			<description><![CDATA[I have this code now for inserting new ID into database: 
_IDs are all primary key._ 
  <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...]]></description>
			<content:encoded><![CDATA[<div>I have this code now for inserting new ID into database:<br />
<span style="text-decoration:underline">IDs are all primary key.</span><br />
 <pre style="margin:20px; line-height:13px">MaxID = 0;<br />
string GetMaxID = &quot;SELECT MAX(IDPerson) AS IDPerson FROM Persons&quot;;<br />
SqlCommand cmd = new SqlCommand(GetMaxID, sqlConn);<br />
sqlConn.Open(); <br />
SqlDataReader reader = cmd.ExecuteReader();<br />
if (reader.Read())<br />
{<br />
&nbsp; &nbsp; MaxID = reader.GetInt32(0);<br />
}<br />
MaxID++;<br />
reader.Close();<br />
sqlConn.Close();</pre>This is the code which looks for the highes ID in the database and addes up 1 (+1) and this is then the newest ID which I can use.<br />
<br />
But if I delete this ID out of the database, that number will never be used again.<br />
<br />
I would like to know how can I fulfil all those deleted IDs again.<br />
<br />
----------------------------------------<br />
If you do not understand what I`m talking about<b></b>:<br />
<br />
1. I create a table with some IDs inside: 1,2,3,4,5,6,7,8,9,10<br />
2. then I delete IDs: 2,3,7  <br />
3. In db I have now IDs(1,4,5,6,8,9,10) <br />
4. With code above I can never ever reach IDs 2,3 and 7<br />
5. My goal is and I would like to do exactly this - to reach these IDs 2,3,7 again <br />
<br />
Or if I want to get just one free ID - the 1st unoccupied ID from Zero up (in my examle, this would be number 2).<br />
<br />
Can someone hel me out?</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/thread238660.html</guid>
		</item>
		<item>
			<title>C# Defragmenter</title>
			<link>http://www.daniweb.com/forums/thread238631.html</link>
			<pubDate>Sun, 15 Nov 2009 11:12:45 GMT</pubDate>
			<description>Hi! 
Does anyone know how can I make my own defragmentation tool in C# ? (similar with the windows one).</description>
			<content:encoded><![CDATA[<div>Hi!<br />
Does anyone know how can I make my own defragmentation tool in C# ? (similar with the windows one).</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>xacronyx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238631.html</guid>
		</item>
		<item>
			<title>Microsoft XNA Game Studio 2.0</title>
			<link>http://www.daniweb.com/forums/thread238551.html</link>
			<pubDate>Sat, 14 Nov 2009 22:12:21 GMT</pubDate>
			<description><![CDATA[Has anyone red "Microsoft XNA Game Studio 2.0"? I'M having a really hard time with it. From the get go, the book doesn't explain what to do with the code. It instructs me to alter a Draw() function, near the bottom of the code and then later wants me to make an new one at the top. It doesn't say,...]]></description>
			<content:encoded><![CDATA[<div>Has anyone red &quot;Microsoft XNA Game Studio 2.0&quot;? I'M having a really hard time with it. From the get go, the book doesn't explain what to do with the code. It instructs me to alter a Draw() function, near the bottom of the code and then later wants me to make an new one at the top. It doesn't say, take out the old one, add the new one to the old, it just says look how this one is different from the other one. Obviously I cant compile the program like this. Has anyone else figured out how to read this book?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Garrett85</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238551.html</guid>
		</item>
		<item>
			<title>Disabling menuStrip</title>
			<link>http://www.daniweb.com/forums/thread238548.html</link>
			<pubDate>Sat, 14 Nov 2009 21:44:09 GMT</pubDate>
			<description><![CDATA[I would like to know if is it possilbe to disable a menuStrip on windows forms? But not whole, I would like to disable only one specific menu. 
I know I can disable whole with:  
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I would like to know if is it possilbe to disable a menuStrip on windows forms? But not whole, I would like to disable only one specific menu.<br />
I know I can disable whole with: <br />
 <pre style="margin:20px; line-height:13px">this.menuStrip1.Enabled = false;</pre><br />
Look at this <a rel="nofollow" class="t" href="http://www.file.si/files/i81oold7vofces8vea47.jpg" target="_blank">image</a> - I would like to disable menus:<br />
- &quot;Shrani novo datoteko&quot; and<br />
- &quot;Shrani besedilo&quot;<br />
<br />
Is this possilbe?</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/thread238548.html</guid>
		</item>
		<item>
			<title>Check DataGridViewCheckBoxColumn</title>
			<link>http://www.daniweb.com/forums/thread238547.html</link>
			<pubDate>Sat, 14 Nov 2009 21:26:16 GMT</pubDate>
			<description>hi 
i have a WinForm with DataGridViewControll. 
 
one of the datagrid columns is a DataGridViewCheckBoxColumn. 
 
how can i Check or uncheck the Checkbox column of a certain row ?</description>
			<content:encoded><![CDATA[<div>hi<br />
i have a WinForm with DataGridViewControll.<br />
<br />
one of the datagrid columns is a DataGridViewCheckBoxColumn.<br />
<br />
how can i Check or uncheck the Checkbox column of a certain row ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>emilio</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238547.html</guid>
		</item>
		<item>
			<title>read notepad</title>
			<link>http://www.daniweb.com/forums/thread238545.html</link>
			<pubDate>Sat, 14 Nov 2009 21:14:30 GMT</pubDate>
			<description><![CDATA[hi, 
to read from  a notepad i hv used the following code. 
bt the problem is, it will not read the next line. 
so how to read line by line..... 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
to read from  a notepad i hv used the following code.<br />
bt the problem is, it will not read the next line.<br />
so how to read line by line.....<br />
<br />
 <pre style="margin:20px; line-height:13px">using (StreamReader sr = new StreamReader(&quot;c: \\key.txt&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = sr.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //etc.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(s);//its showing the output<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string[] variables = s.Split(' ');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  float fvalue = float.Parse(variables[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Console.WriteLine(fvalue);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sidd.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238545.html</guid>
		</item>
		<item>
			<title>Loop help.</title>
			<link>http://www.daniweb.com/forums/thread238534.html</link>
			<pubDate>Sat, 14 Nov 2009 19:44:32 GMT</pubDate>
			<description><![CDATA[So, what I'm trying to do is to check if a letter already exists within an array, so I use a for loop and it works very well. 
 
So if the character exists within the array, it will not add the letter you put in the input box into the array, but if it doesn't exist, then go ahead and add the letter...]]></description>
			<content:encoded><![CDATA[<div>So, what I'm trying to do is to check if a letter already exists within an array, so I use a for loop and it works very well.<br />
<br />
So if the character exists within the array, it will not add the letter you put in the input box into the array, but if it doesn't exist, then go ahead and add the letter to the array.<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bokstav == enBokstav)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int arrIndex = 0; arrIndex &lt; gjettet_bokstaver.Length; arrIndex++)<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; if (bokstav == gjettet_bokstaver[arrIndex])<br />
&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; &nbsp; &nbsp; MessageBox.Show(&quot;Du har allerede brukt den bokstaven&quot;);<br />
&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (bokstav != gjettet_bokstaver[array_size])<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; gjettet_bokstaver[array_size] += bokstav;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array_size++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RiktigBokstav.Text += gjettet_bokstaver[(array_size - 1)];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
So, my problem is that, if the letter exists in the array, there will come a poup box saying it's already used and it will still add a new character instead of stopping the script, sort of.<br />
<br />
Thanks in advance :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>CyberPirate1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238534.html</guid>
		</item>
		<item>
			<title>Code Snippet Very simple console barchart</title>
			<link>http://www.daniweb.com/code/snippet238532.html</link>
			<pubDate>Sat, 14 Nov 2009 19:37:57 GMT</pubDate>
			<description><![CDATA[Well, I don't think I can make this any simpler. I hope newbies in the C# language can learn from it.]]></description>
			<content:encoded><![CDATA[<div>Well, I don't think I can make this any simpler. I hope newbies in the C# language can learn from it.</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/thread238532.html</guid>
		</item>
		<item>
			<title>InternetExplorerClass - fire events</title>
			<link>http://www.daniweb.com/forums/thread238526.html</link>
			<pubDate>Sat, 14 Nov 2009 18:58:49 GMT</pubDate>
			<description><![CDATA[Hello, I am trying to open an IE from a BHO and fire an event , the event would cancel some BHO features for the new opened IE. 
 
I'm using: 
 
   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hello, I am trying to open an IE from a BHO and fire an event , the event would cancel some BHO features for the new opened IE.<br />
<br />
I'm using:<br />
<br />
  <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp;  public void OpenBrowser(string url)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; object o = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ie.BeforeNavigate2 += new DWebBrowserEvents2_BeforeNavigate2EventHandler(this.childIE_BeforeNavigate2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IWebBrowserApp wb = (IWebBrowserApp)ie;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.Visible = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.ToolBar = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.MenuBar = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wb.Navigate(url, ref o, ref o, ref o, ref o);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; void childIE_BeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Windows.Forms.MessageBox.Show(&quot;BeforeNavigate2&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CANCELFeatures = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre>But childIE_BeforeNavigate2 never gets fired.<br />
Is there something else I can do to pass any kind of var and catch it on the new opened IE to cancel the BHO features?<br />
<br />
The BHO features are &quot;hooked&quot; with this code:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; public int SetSite(object site)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (site != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webBrowser = (WebBrowser)site;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webBrowser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webBrowser.NavigateComplete2 += new DWebBrowserEvents2_NavigateComplete2EventHandler(this.OnNavigateComplete2);<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; webBrowser.DocumentComplete -= new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webBrowser.NavigateComplete2 -= new DWebBrowserEvents2_NavigateComplete2EventHandler(this.OnNavigateComplete2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; webBrowser = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre>Any help will be appreciated.<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>trogster</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238526.html</guid>
		</item>
		<item>
			<title>C# XNA Help with NullReference please</title>
			<link>http://www.daniweb.com/forums/thread238524.html</link>
			<pubDate>Sat, 14 Nov 2009 18:24:43 GMT</pubDate>
			<description><![CDATA[I'm developing a 3D Board Game based on the World of Warcraft miniatures board game. 
 
I don't know what's wrong ... the game runs and the system is like this 
 
I have a model that can move in a map through Cells 
I made a procedure so you click and move but there is a problem when you return to...]]></description>
			<content:encoded><![CDATA[<div>I'm developing a 3D Board Game based on the World of Warcraft miniatures board game.<br />
<br />
I don't know what's wrong ... the game runs and the system is like this<br />
<br />
I have a model that can move in a map through Cells<br />
I made a procedure so you click and move but there is a problem when you return to the CellSpace[1,1] it calls a NullReference for gameobject.model.mesh in RayIntersectsModel(Ray ray, GameObject gameobject);<br />
<br />
<br />
anyone can help me finding a solution for this please?<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using Microsoft.Xna.Framework;<br />
using Microsoft.Xna.Framework.Audio;<br />
using Microsoft.Xna.Framework.Content;<br />
using Microsoft.Xna.Framework.GamerServices;<br />
using Microsoft.Xna.Framework.Graphics;<br />
using Microsoft.Xna.Framework.Input;<br />
using Microsoft.Xna.Framework.Media;<br />
using Microsoft.Xna.Framework.Net;<br />
using Microsoft.Xna.Framework.Storage;<br />
<br />
namespace WoWminis<br />
{<br />
&nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; /// This is the main type for your game<br />
&nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; public class Game1 : Microsoft.Xna.Framework.Game<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; GraphicsDeviceManager graphics;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SpriteBatch spriteBatch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public MouseState cursorstate;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; GameObject terrain = new GameObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; GameObject BaseTop = new GameObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; GameObject BaseBottom = new GameObject();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Vector3 cameraPosition = new Vector3(0.0f, 130.0f, 50.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Vector3 cameraLookAt = new Vector3(0.0f, 0.0f, 7.5f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Matrix cameraProjectionMatrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Matrix cameraViewMatrix;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; KeyboardState oldState;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; SpriteFont font;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double posX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double posZ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Vector2 debugDrawpointX = new Vector2(0.01f, 0.01f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Vector2 debugDrawpointZ = new Vector2(0.01f, 0.05f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Rectangle viewportRect;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; BoardCells[,] Cell = new BoardCells[11, 12];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; sprite2D cursor;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; GameObject[,] CellSpace = new GameObject[11, 12];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Ubase BASE = new Ubase();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool pressed = false;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Game1()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics = new GraphicsDeviceManager(this);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Content.RootDirectory = &quot;Content&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.graphics.PreferredBackBufferWidth = 1280;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.graphics.PreferredBackBufferHeight = 720;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //this.graphics.IsFullScreen = true;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Allows the game to perform any initialization it needs to before starting to run.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// This is where it can query for any required services and load any non-graphic<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// related content.&nbsp; Calling base.Initialize will enumerate through any components<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// and initialize them as well.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void Initialize()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO: Add your initialization logic here<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base.Initialize();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// LoadContent will be called once per game and is the place to load<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// all of your content.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void LoadContent()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Create a new SpriteBatch, which can be used to draw textures.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch = new SpriteBatch(GraphicsDevice);<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; terrain.model = Content.Load&lt;Model&gt;(&quot;Models\\Map&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; terrain.rotation = new Vector3(-1 * MathHelper.ToRadians(90.0f), 0.0f, -1 * MathHelper.ToRadians(90.0f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.model = Content.Load&lt;Model&gt;(&quot;Models\\BaseTop&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.rotation = new Vector3(-1 * MathHelper.ToRadians(90.0f), 0.0f, -1 * MathHelper.ToRadians(0.0f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.scale = 0.15f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.model = Content.Load&lt;Model&gt;(&quot;Models\\BaseBottom&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.rotation = new Vector3(-1 * MathHelper.ToRadians(90.0f), 0.0f, -1 * MathHelper.ToRadians(90.0f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.scale = 0.15f;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = new Vector3(0.0f, 1.0f, 0.0f);<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font = Content.Load&lt;SpriteFont&gt;(&quot;Fonts\\GameFont&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; viewportRect = new Rectangle(0, 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.GraphicsDevice.Viewport.Width,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.GraphicsDevice.Viewport.Height);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LoadBoard();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[1, 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[1, 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.name = &quot;Test&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.turn = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor = new sprite2D(Content.Load&lt;Texture2D&gt;(&quot;Sprites\\Cursor&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.position = Vector2.Zero;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //test<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt; 11; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x = 1; x &lt; 12; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x] = new GameObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].model = Content.Load&lt;Model&gt;(&quot;Models\\CellSpace&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].rotation = new Vector3(-1 * MathHelper.ToRadians(90.0f), 0.0f, -1 * MathHelper.ToRadians(90.0f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].position = Cell[i, x].position - new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].scale = 0.4f;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO: use this.Content to load your game content here<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// UnloadContent will be called once per game and is the place to unload<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// all content.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void UnloadContent()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO: Unload any non ContentManager content here<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// Allows the game to run logic such as updating the world,<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// checking for collisions, gathering input, and playing audio.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;param name=&quot;gameTime&quot;&gt;Provides a snapshot of timing values.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void Update(GameTime gameTime)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Allows the game to exit<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.Exit();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO: Add your update logic here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //cursor<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mouseload();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursorstate = Mouse.GetState();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.position.X = cursorstate.X;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.position.Y = cursorstate.Y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //camera<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraViewMatrix = Matrix.CreateLookAt(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraPosition,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraLookAt,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3.Up);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MathHelper.ToRadians(45.0f),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.GraphicsDevice.Viewport.AspectRatio,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.0f,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10000.0f);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Debug<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; posX = Math.Round(BaseTop.position.X, 3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; posZ = Math.Round(BaseTop.position.Z, 3);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //keys<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; KeyboardState keyboardState = Keyboard.GetState();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (keyboardState.IsKeyUp(Keys.C))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraPosition = new Vector3(0.0f, 130.0f, 50.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraLookAt = new Vector3(0.0f, 0.0f, 7.5f);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (keyboardState.IsKeyDown(Keys.C))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraPosition = new Vector3(0.0f, 10.0f, BaseTop.position.Z + 20f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cameraLookAt = BaseTop.position;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (keyboardState.IsKeyDown(Keys.Escape))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.Exit();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UpdateInput();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base.Update(gameTime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void UpdateInput()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; KeyboardState newState = Keyboard.GetState();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Is the SPACE key down?<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (newState.IsKeyDown(Keys.Space))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // If not down last update, key has just been pressed.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!oldState.IsKeyDown(Keys.Space))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.rotation.Z += MathHelper.ToRadians(36.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*else if (oldState.IsKeyDown(Keys.Space))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Key was down last update, but not down now, so<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // it has just been released.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }*/<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Update saved state.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oldState = newState;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// This is called when the game should draw itself.<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;/summary&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; /// &lt;param name=&quot;gameTime&quot;&gt;Provides a snapshot of timing values.&lt;/param&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void Draw(GameTime gameTime)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphicsDevice.Clear(Color.CornflowerBlue);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawGameObject(terrain);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawGameObject(BaseTop);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawGameObject(BaseBottom);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt; 11; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x = 1; x &lt; 12; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawGameObject(CellSpace[i, x]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.BackToFront, SaveStateMode.SaveState);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.DrawString(font, &quot; PositionX: &quot; + BASE.posX.ToString(),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debugDrawpointX.X * viewportRect.Width,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debugDrawpointX.Y * viewportRect.Height),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color.Yellow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.DrawString(font, &quot; PositionZ: &quot; + BASE.posZ.ToString(),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debugDrawpointZ.X * viewportRect.Width,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debugDrawpointZ.Y * viewportRect.Height),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color.Yellow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.DrawString(font, &quot; Debug: &quot; + Cell[1, 1].position.X.ToString(),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debugDrawpointZ.X * viewportRect.Width,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (debugDrawpointZ.Y + 0.1f) * viewportRect.Height),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color.Yellow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.Draw(cursor.sprite,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.position,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Color.White,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.rotation,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor.center, 1.0f,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SpriteEffects.None, 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.End();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO: Add your drawing code here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawModelNames();<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base.Draw(gameTime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; void DrawGameObject(GameObject gameobject)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (ModelMesh mesh in gameobject.model.Meshes)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (BasicEffect effect in mesh.Effects)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.EnableDefaultLighting();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.PreferPerPixelLighting = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.FogEnabled = false;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.World = Matrix.CreateFromYawPitchRoll(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.Y,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.X,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.Z) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateScale(gameobject.scale) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateTranslation(gameobject.position);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.Projection = cameraProjectionMatrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; effect.View = cameraViewMatrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mesh.Draw();<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static bool RayIntersectsModel(Ray ray, GameObject gameobject)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (ModelMesh mesh in gameobject.model.Meshes)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix world = Matrix.CreateFromYawPitchRoll(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.Y,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.X,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gameobject.rotation.Z) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateScale(gameobject.scale) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateTranslation(gameobject.position);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BoundingSphere sphere =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TransformBoundingSphere(mesh.BoundingSphere, world);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (sphere.Intersects(ray) != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<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 false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static BoundingSphere TransformBoundingSphere(BoundingSphere sphere,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix transform)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BoundingSphere transformedSphere;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 scale3 = new Vector3(sphere.Radius, sphere.Radius, sphere.Radius);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scale3 = Vector3.TransformNormal(scale3, transform);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transformedSphere.Radius = Math.Max(scale3.X, Math.Max(scale3.Y, scale3.Z));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transformedSphere.Center = Vector3.Transform(sphere.Center, transform);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return transformedSphere;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public Ray CalculateCursorRay(Matrix projectionMatrix, Matrix viewMatrix)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 nearSource = new Vector3(cursorstate.X, cursorstate.Y, 0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 farSource = new Vector3(cursorstate.X, cursorstate.Y, 1f);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 nearPoint = GraphicsDevice.Viewport.Unproject(nearSource,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projectionMatrix, viewMatrix, Matrix.Identity);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 farPoint = GraphicsDevice.Viewport.Unproject(farSource,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projectionMatrix, viewMatrix, Matrix.Identity);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector3 direction = farPoint - nearPoint;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; direction.Normalize();<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new Ray(nearPoint, direction);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private void DrawModelNames()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.BackToFront, SaveStateMode.SaveState);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ray cursorRay = CalculateCursorRay(cameraProjectionMatrix, cameraViewMatrix);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, BaseTop))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix world = Matrix.CreateFromYawPitchRoll(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.rotation.Y,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.rotation.X,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.rotation.Z) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateScale(BaseTop.scale) *<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matrix.CreateTranslation(BaseTop.position);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 textPosition =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(cursorstate.X, cursorstate.Y - 60);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 stringCenter =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font.MeasureString(&quot;test&quot;) / 2;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 shadowOffset = new Vector2(3, 2);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.DrawString(font, &quot;Test&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textPosition + shadowOffset, Color.Black, 0.0f,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stringCenter, 1.0f, SpriteEffects.None, 1.0f);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.DrawString(font, &quot;Test&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textPosition, Color.White, 0.0f,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stringCenter, 1.0f, SpriteEffects.None, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posZ == 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posX == 1 &amp; BASE.posZ == 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX, BASE.posZ + 1].position = Cell[BASE.posX,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ + 1].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX + 1, BASE.posZ].position = Cell[BASE.posX + 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posX == 10)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX, BASE.posZ + 1].position = Cell[BASE.posX,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ + 1].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX - 1, BASE.posZ].position = Cell[BASE.posX - 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX - 1, BASE.posZ + 1].position = Cell[BASE.posX - 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ + 1].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posX &gt;= 2 &amp; BASE.posX &lt;= 9)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX - 1, BASE.posZ + 1].position = Cell[BASE.posX - 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ + 1].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX - 1, BASE.posZ].position = Cell[BASE.posX - 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX, BASE.posZ + 1].position = Cell[BASE.posX,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ + 1].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[BASE.posX + 1, BASE.posZ].position = Cell[BASE.posX + 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ].position + new Vector3(0.0f, 0.1f, 0.0f);<br />
<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; else<br />
&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; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (click == true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posZ == 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posX == 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //C<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX, BASE.posZ + 1]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = BASE.posZ + 1;<br />
<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; //D<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX + 1, BASE.posZ]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX + 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX + 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX + 1;<br />
<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; else<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; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (BASE.posX == 10)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //A<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX - 1, BASE.posZ]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX - 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX - 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX - 1;<br />
<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; //B<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX - 1, BASE.posZ + 1]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX - 1, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX - 1, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX - 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = BASE.posZ + 1;<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; //C<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX, BASE.posZ + 1]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = BASE.posZ + 1;<br />
<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; else<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; click = false;<br />
&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; if (BASE.posX &gt;= 2 &amp; BASE.posX &lt;= 9)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //A<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX - 1, BASE.posZ]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX - 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX - 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX - 1;<br />
<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; //B<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX - 1, BASE.posZ + 1]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX - 1, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX - 1, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX - 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = BASE.posZ + 1;<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; //C<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX, BASE.posZ + 1]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX, BASE.posZ + 1].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posZ = BASE.posZ + 1;<br />
<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; //D<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (RayIntersectsModel(cursorRay, CellSpace[BASE.posX + 1, BASE.posZ]))<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; resetcells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseBottom.position = Cell[BASE.posX + 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BaseTop.position = Cell[BASE.posX + 1, BASE.posZ].position + new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BASE.posX = BASE.posX + 1;<br />
<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; else<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; click = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spriteBatch.End();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; void mouseload()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cursorstate.LeftButton == ButtonState.Pressed)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pressed = true;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cursorstate.LeftButton == ButtonState.Released &amp;&amp; pressed)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pressed = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; void resetcells()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt; 11; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x = 1; x &lt; 12; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (CellSpace[i, x] == null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x] = new GameObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].model = Content.Load&lt;Model&gt;(&quot;Models\\CellSpace&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].rotation = new Vector3(-1 * MathHelper.ToRadians(90.0f), 0.0f, -1 * MathHelper.ToRadians(90.0f));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].position = Cell[i, x].position - new Vector3(0.0f, 1.0f, 0.0f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].scale = 0.4f;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CellSpace[i, x].position = Cell[i, x].position - new Vector3(0.0f, 1.0f, 0.0f);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; void LoadBoard()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
//I know I should use loops but trust me.. I need it like this right now, and making it a loop wont improve the processing, is the same thing.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Board positions<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 11] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 1] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 2] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 3] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 4] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 5] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 6] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 7] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 8] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 9] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 10] = new BoardCells();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 11] = new BoardCells();<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 1].position = new Vector3(-42.5f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 2].position = new Vector3(-36.75f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 3].position = new Vector3(-42.5f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 4].position = new Vector3(-36.75f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 5].position = new Vector3(-42.5f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 6].position = new Vector3(-36.75f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 7].position = new Vector3(-42.5f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 8].position = new Vector3(-36.75f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 9].position = new Vector3(-42.5f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 10].position = new Vector3(-36.75f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 11].position = new Vector3(-42.5f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 1].position = new Vector3(-31f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 2].position = new Vector3(-25.25f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 3].position = new Vector3(-31f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 4].position = new Vector3(-25.25f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 5].position = new Vector3(-31f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 6].position = new Vector3(-25.25f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 7].position = new Vector3(-31f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 8].position = new Vector3(-25.25f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 9].position = new Vector3(-31f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 10].position = new Vector3(-25.25f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 11].position = new Vector3(-31f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 1].position = new Vector3(-19.5f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 2].position = new Vector3(-13.5f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 3].position = new Vector3(-19.5f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 4].position = new Vector3(-13.5f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 5].position = new Vector3(-19.5f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 6].position = new Vector3(-13.5f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 7].position = new Vector3(-19.5f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 8].position = new Vector3(-13.5f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 9].position = new Vector3(-19.5f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 10].position = new Vector3(-13.5f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 11].position = new Vector3(-19.5f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 1].position = new Vector3(-7.5f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 2].position = new Vector3(-1.75f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 3].position = new Vector3(-7.5f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 4].position = new Vector3(-1.75f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 5].position = new Vector3(-7.5f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 6].position = new Vector3(-1.75f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 7].position = new Vector3(-7.5f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 8].position = new Vector3(-1.75f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 9].position = new Vector3(-7.5f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 10].position = new Vector3(-1.75f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 11].position = new Vector3(-7.5f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 1].position = new Vector3(4f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 2].position = new Vector3(10f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 3].position = new Vector3(4f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 4].position = new Vector3(10f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 5].position = new Vector3(4f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 6].position = new Vector3(10f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 7].position = new Vector3(4f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 8].position = new Vector3(10f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 9].position = new Vector3(4f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 10].position = new Vector3(10f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 11].position = new Vector3(4f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 1].position = new Vector3(15.75f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 2].position = new Vector3(21.75f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 3].position = new Vector3(15.75f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 4].position = new Vector3(21.75f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 5].position = new Vector3(15.75f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 6].position = new Vector3(21.75f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 7].position = new Vector3(15.75f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 8].position = new Vector3(21.75f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 9].position = new Vector3(15.75f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 10].position = new Vector3(21.75f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 11].position = new Vector3(15.75f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 1].position = new Vector3(27.5f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 2].position = new Vector3(33.5f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 3].position = new Vector3(27.5f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 4].position = new Vector3(33.5f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 5].position = new Vector3(27.5f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 6].position = new Vector3(33.5f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 7].position = new Vector3(27.5f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 8].position = new Vector3(33.5f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 9].position = new Vector3(27.5f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 10].position = new Vector3(33.5f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 11].position = new Vector3(27.5f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 1].position = new Vector3(39.25f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 2].position = new Vector3(45f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 3].position = new Vector3(39.25f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 4].position = new Vector3(45f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 5].position = new Vector3(39.25f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 6].position = new Vector3(45f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 7].position = new Vector3(39.25f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 8].position = new Vector3(45f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 9].position = new Vector3(39.25f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 10].position = new Vector3(45f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 11].position = new Vector3(39.25f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 1].position = new Vector3(51f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 2].position = new Vector3(56.75f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 3].position = new Vector3(51f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 4].position = new Vector3(56.75f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 5].position = new Vector3(51f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 6].position = new Vector3(56.75f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 7].position = new Vector3(51f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 8].position = new Vector3(56.75f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 9].position = new Vector3(51f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 10].position = new Vector3(56.75f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 11].position = new Vector3(51f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 1].position = new Vector3(62.6f, 0.1f, 50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 2].position = new Vector3(68.5f, 0.1f, 40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 3].position = new Vector3(62.6f, 0.1f, 30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 4].position = new Vector3(68.5f, 0.1f, 20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 5].position = new Vector3(62.6f, 0.1f, 10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 6].position = new Vector3(68.5f, 0.1f, 0.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 7].position = new Vector3(62.6f, 0.1f, -10.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 8].position = new Vector3(68.5f, 0.1f, -20.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 9].position = new Vector3(62.6f, 0.1f, -30.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 10].position = new Vector3(68.5f, 0.1f, -40.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 11].position = new Vector3(62.6f, 0.1f, -50.3f);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Board Mountains<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 1].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 2].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 3].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 4].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 5].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 6].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 7].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 8].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 9].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 10].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 11].isMountain = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Board Forest<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[1, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[2, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[3, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[4, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[5, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[6, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[7, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[8, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[9, 11].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 1].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 2].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 3].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 4].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 5].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 6].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 7].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 8].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 9].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 10].isForest = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[10, 11].isForest = false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt; 11; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int x = 1; x &lt; 12; x++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[i, x].posX = i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cell[i, x].posZ = x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<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>gogodr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238524.html</guid>
		</item>
		<item>
			<title>looking for help in visual c#</title>
			<link>http://www.daniweb.com/forums/thread238449.html</link>
			<pubDate>Sat, 14 Nov 2009 07:47:19 GMT</pubDate>
			<description>a = int.Parse(textBox1.Text); 
            b = int.Parse(textBox2.Text); 
            c = a(int.Parse(comboBox1.Text)); 
            textBox3.Text = c.ToString(); 
 
I am inputing 2 values in a and b ....and through combox1 I am doing calculations 
 
Thanks</description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">a = int.Parse(textBox1.Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = int.Parse(textBox2.Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c = a(int.Parse(comboBox1.Text));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox3.Text = c.ToString();</pre><br />
I am inputing 2 values in a and b ....and through combox1 I am doing calculations<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>th3learner</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238449.html</guid>
		</item>
		<item>
			<title>Looking for a team of junior C# .NET programmers</title>
			<link>http://www.daniweb.com/forums/thread238386.html</link>
			<pubDate>Fri, 13 Nov 2009 21:42:16 GMT</pubDate>
			<description><![CDATA[Hi! 
 
I'd like to create a team of 3-5 junior developers that would like to work on small projects. The emphasis is on learning, and luckily making some money out of it. 
 
CRITERIA: 
 
- Work from home. 
- Fluent in English. 
- Some experience in web application programming, using VS.2008 C#...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
I'd like to create a team of 3-5 junior developers that would like to work on small projects. The emphasis is on learning, and luckily making some money out of it.<br />
<br />
CRITERIA:<br />
<br />
- Work from home.<br />
- Fluent in English.<br />
- Some experience in web application programming, using VS.2008 C# .NET, and MS SQL server 2008.<br />
- Willingness to learn and improve programming skills.<br />
- Team-work.<br />
<br />
<br />
<br />
Contact and more information on:<br />
<br />
dotnet.programming.job[at]gmail.com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>ivicaolic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238386.html</guid>
		</item>
		<item>
			<title>Code Snippet Bouncing ball</title>
			<link>http://www.daniweb.com/code/snippet238279.html</link>
			<pubDate>Fri, 13 Nov 2009 13:47:45 GMT</pubDate>
			<description>Wanted to let two forms work together. One form would be the input form and the main form would consume this data. I managed to succeed with the help of a few of my friends here at daniweb., who helped me setup a static form. 
Just posted a bit of the most relevant code here, the rest of the...</description>
			<content:encoded><![CDATA[<div>Wanted to let two forms work together. One form would be the input form and the main form would consume this data. I managed to succeed with the help of a few of my friends here at daniweb., who helped me setup a static form.<br />
Just posted a bit of the most relevant code here, the rest of the project can be found in the attachments. I also like to mention a technique used here to attach a value to a selection of a name in a combobox.(Found it on MSDN) See the list of Planets. (Yes, throw a ball on different locations in the solar system!) I guess enough comments are provided to understand what is happening.<br />
The final piece of code gets executed if you click the execute button.<br />
In the <span style="font-weight:bold">BounceTrajectCalculation</span> the position of the ball over time gets calculated. It makes heavy use of the data from the inputform.<br />
The heart of the calculation(iteration) happens here:<br />
 <pre style="margin:20px; line-height:13px">t = t0 + InputData.timeIncr;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //time<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hDis = hDis0 + InputData.velocity * InputData.timeIncr; //length<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vel = Vel0 - InputData.g * InputData.timeIncr;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //velocity<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; h = h0 + 0.5 * (Vel + Vel0) * InputData.timeIncr;&nbsp; &nbsp; &nbsp;  //length</pre><br />
Those familiar with numerical integration will notice a method of Euler here. Hope the comments are sufficient to see what is happening. The code may be used as you see fit. Don't blame me if your tennis ball follows a different trajectory than predicted here;)</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=12548&amp;d=1258120017" target="_blank">Bounce Ball.jpg</a> (47.6 KB)</td> </tr> </table> </fieldset>   <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=12547&amp;d=1258119960">Bouncing ball.zip</a> (117.0 KB)</td> </tr> </table> </fieldset>  </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/thread238279.html</guid>
		</item>
		<item>
			<title>reading a binary long data access database using oledbdatareader error</title>
			<link>http://www.daniweb.com/forums/thread238268.html</link>
			<pubDate>Fri, 13 Nov 2009 12:37:06 GMT</pubDate>
			<description><![CDATA[<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# Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">// writing to access database <br />
<br />
&nbsp; byte[] buff = null;<br />
&nbsp;  FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BinaryReader br = new BinaryReader(fs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  long numBytes = fs.Length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff = br.ReadBytes((int)numBytes);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  mycon.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OleDbCommand cmd = new OleDbCommand(&quot;INSERT INTO song VALUES('1','&quot; + buff + &quot;')&quot;, mycon);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.ExecuteNonQuery();<br />
<br />
// reading from access database<br />
<br />
&nbsp;OleDbCommand cmd = new OleDbCommand(&quot;select file from song&quot;, mycon);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  System.Data.OleDb.OleDbDataReader dr;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dr = cmd.ExecuteReader();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dr.Read();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp = (byte[])dr[&quot;file&quot;];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int len = temp.Length;</pre><br />
although while writing the byte array is of size 970 kb while reading it from the access database and when i try to store it into byte array i get only 25 bytes , solution ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238268.html</guid>
		</item>
		<item>
			<title>how to check which item is checked/selected in checkedlistbox</title>
			<link>http://www.daniweb.com/forums/thread238249.html</link>
			<pubDate>Fri, 13 Nov 2009 10:09:27 GMT</pubDate>
			<description><![CDATA[Hi,  
 I am create one application in which i use checkedlistbox. In checkedlist box i display all employee name and calculate id of particular checked employees. but how to check which employee's name checked in checked list box and how to compare this employee is checked or selected. 
 
Regards,...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
 I am create one application in which i use checkedlistbox. In checkedlist box i display all employee name and calculate id of particular checked employees. but how to check which employee's name checked in checked list box and how to compare this employee is checked or selected.<br />
<br />
Regards,<br />
shailaja</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/thread238249.html</guid>
		</item>
	</channel>
</rss>
