<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Generatedname</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Tue, 13 Oct 2026 23:23:14 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Read Keyboard input from inactive form</title>
            <link>http://forum.lowyat.net/topic/522064</link>
            <description>I&amp;#39;m trying to make a program that will allow me to turn certain keys into macro keys.  In other words, while its not the active form, it will be reading keyboard input and if the 3 key is pressed, it will do another button sequence.&lt;br /&gt;&lt;br /&gt;Basically, if anyone uses ventrilo, there is a bush-to-talk feature, and it has to read input for that push-to-talk key while not being the active window.&lt;br /&gt;&lt;br /&gt;Thats what I need to do too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m writing it in c#, but any .net code will help.  Thanks.</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Mon, 17 Sep 2007 22:35:34 +0800</pubDate>
        </item>
        <item>
            <title>C# Query Builder using Variables</title>
            <link>http://forum.lowyat.net/topic/495255</link>
            <description>I&amp;#39;m currently making a small application to run a database that has 2 tables.&lt;br /&gt;&lt;br /&gt;One table has primary key &amp;quot;ID&amp;quot;&lt;br /&gt;&lt;br /&gt;The other table has the Foreign key &amp;quot;ID&amp;quot; and another field.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying to use a bindingNavigator to navigate through the ID&amp;#39;s, and a dataGridView to show the other field with the foreign key.&lt;br /&gt;&lt;br /&gt;I figure the best way to do this is make a Query and call the query whenever the value of the bindingNavigator changes.&lt;br /&gt;&lt;br /&gt;Problem is I cannot get the query builder to use Variables (bindingNavigatorPositionItem.Text).  Gives me the error &amp;quot;No Value given for one or more required parameters&amp;quot;.&lt;br /&gt;&lt;br /&gt;The query I am using:  SELECT BoxContentLine FROM BoxContents WHERE (ID = bindingNavigatorPositionItem.[Text])&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using an OLE DB connection.&lt;br /&gt;&lt;br /&gt;Not sure what other details I can give.  Hopefully someone out there and used variables in the query builder and can tell me where I&amp;#39;m going wrong.&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;&lt;br /&gt;-generatedname</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Sat, 28 Jul 2007 05:01:13 +0800</pubDate>
        </item>
        <item>
            <title>Java  + POI API</title>
            <link>http://forum.lowyat.net/topic/471763</link>
            <description>Alright, I wanted to right a Web Start application that would read in 2 excel files and combine them using similar titles.&lt;br /&gt;&lt;br /&gt;One field contains a hexadecimal hash code, that can sometimes be all numbers.&lt;br /&gt;(E3FAB321  or  31493817)  When it is all numbers, excel sets that cell&amp;#39;s type to be number, while the alpha-numerics are of type String.  (this is fine except:)&lt;br /&gt;&lt;br /&gt;When the program loads the cell value for the number (usually an 8-digit number), it puts it into exponential form, which then gets put into a string array as &amp;quot;3.4718956E7&amp;quot; or similar, instead of the original 8-digit number being put into the string array.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;switch&amp;#40;tmpCell.getCellType&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;{&lt;br /&gt; &amp;nbsp; case HSSFCell.CELL_TYPE_STRING&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;input2Data&amp;#91;i&amp;#93;&amp;#91;j&amp;#93; = tmpCell.getStringCellValue&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; case HSSFCell.CELL_TYPE_NUMERIC&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;double d = tmpCell.getNumericCellValue&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if&amp;#40;HSSFDateUtil.isCellDateFormatted&amp;#40;tmpCell&amp;#41;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar cal = new GregorianCalendar&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cal.setTime&amp;#40;HSSFDateUtil.getJavaDate&amp;#40;d&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String cellText = &amp;#40;String.valueOf&amp;#40;cal.get&amp;#40;Calendar.YEAR&amp;#41;&amp;#41;&amp;#41;.substring&amp;#40;2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cellText = cal.get&amp;#40;Calendar.MONTH&amp;#41;+1 + &amp;#34;/&amp;#34; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +cal.get&amp;#40;Calendar.DAY_OF_MONTH&amp;#41; + &amp;#34;/&amp;#34; + cellText;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input2Data&amp;#91;i&amp;#93;&amp;#91;j&amp;#93; = cellText;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input2Data&amp;#91;i&amp;#93;&amp;#91;j&amp;#93; = String.valueOf&amp;#40;d&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt; &amp;nbsp; default&amp;#58;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Thats the code that is in a nested for loop, going through each cell of the excel spreadsheet grabbing the values and dumping them into input2Data[][] which is just a string array that is basically going to clone the spreadsheet.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried using a setCellType() command on the cell before reading it, but it does not work and I still get an error saying getStringCellValue() on a NUMERIC cell.&lt;br /&gt;&lt;br /&gt;Any suggestions are appreciated&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Tue, 12 Jun 2007 22:57:18 +0800</pubDate>
        </item>
        <item>
            <title>Java:  Reading and combining excel files</title>
            <link>http://forum.lowyat.net/topic/454644</link>
            <description>Here is a description of the project I am trying to create:&lt;br /&gt;&lt;br /&gt;First note....its an applet.&lt;br /&gt;I need to allow the user to give the applet 2 files (XLS or CSV), and take those 2 files, find similar column headings...and combine the 2 files together&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So for example:&lt;br /&gt;&lt;br /&gt;1 spreadsheet could have something like:&lt;br /&gt;&lt;br /&gt;Name : Age : Address : Occupation&lt;br /&gt;&lt;br /&gt;and the other have&lt;br /&gt;&lt;br /&gt;Name : Address : Degree : Lowyat Login&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the resulting spreadsheet would look like&lt;br /&gt;&lt;br /&gt;Name : Age : Address : Occupation : Degree : Lowyat Login&lt;br /&gt;&lt;br /&gt;and would have all the records from both spreadsheets, filled in with the information possible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Does anyone know of a library that allows such a broad input of a spreadsheet?&lt;br /&gt;&lt;br /&gt;jXLS only seems to support reading XLS files that I know the exact mapping of, but I need it to be able to read any spreadsheet that the user throws at it.&lt;br /&gt;&lt;br /&gt;Can jXLS do this?  (jxls.sourceforge.net does not have enough documentation to suggest this sort of task, so I&amp;#39;m wondering if anyone has used it before for this purpose and how you did it)&lt;br /&gt;&lt;br /&gt;Otherwise, are there any other libraries out there that do support this?&lt;br /&gt;&lt;br /&gt;Or, is there a way to read an XLS file from an input stream and put the cell values into a 2 dimensional string array?&lt;br /&gt;&lt;br /&gt;Thanks in advance for your help.&lt;br /&gt;&lt;br /&gt;[addedon]May 10, 2007, 6:21 am[/addedon]on a side note...&lt;br /&gt;&lt;br /&gt;This does not have to be java.&lt;br /&gt;&lt;br /&gt;All I need is for the application to run on a website (no d/l and install).  If anyone has better ideas on languages to use, you are welcome to suggest it.....I just immediately thought of java.&lt;br /&gt;&lt;br /&gt;[addedon]May 10, 2007, 7:13 am[/addedon]alright didn&amp;#39;t get any replies but that is ok.&lt;br /&gt;&lt;br /&gt;Through my research I found that jXLS uses a library that does the excel stuff for it.&lt;br /&gt;&lt;br /&gt;Turns out this library allows for simply reading an XLS file cell by cell PERFECT&amp;#33;&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='http://jakarta.apache.org/poi/index.html' target='_blank'&gt;http://jakarta.apache.org/poi/index.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;there is the link in case anyone else comes across this problem, and I feel confident that it will work out for me.</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Thu, 10 May 2007 00:21:28 +0800</pubDate>
        </item>
        <item>
            <title>MySQL Processing Problems</title>
            <link>http://forum.lowyat.net/topic/447825</link>
            <description>I made a website for my work using php and mysql.  As the database grows, it takes longer to load.  And now, with over 1000 records (1 field is PDF file), the website just locks up (seems like the server is having a hard time processing the query).&lt;br /&gt;&lt;br /&gt;When I run the site on a local server, the server has no trouble processing the query, but the client CPU usage goes through the roof loading the website with the table (99% used by firefox).&lt;br /&gt;&lt;br /&gt;Now for the questions:&lt;br /&gt;&lt;br /&gt;Is there a better database I should be using instead of MySQL?&lt;br /&gt;&lt;br /&gt;If so, how complicated of a switch would it be?&lt;br /&gt;&lt;br /&gt;Is the client processing always going to take forever, no matter what database I use?  And is that because loading the html itself is what takes forever?&lt;br /&gt;&lt;br /&gt;And lastly, if the client is always going to get overworked, would my best bet be to switch to a new server that can handle my massive needs?&lt;br /&gt;&lt;br /&gt;Thanks in advance.</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Wed, 25 Apr 2007 23:27:29 +0800</pubDate>
        </item>
        <item>
            <title>c# webbrowser drop down menus</title>
            <link>http://forum.lowyat.net/topic/425842</link>
            <description>OK, tyring to make a program to work with my website to make data entry alot less of a headache.&lt;br /&gt;&lt;br /&gt;Using c#, I have a webbrowser object that will navigate to the website, and can be used like a normal browser, I have controls on the side of the c# application that will be for all the fields needed to be entered (matches the &amp;quot;new record&amp;quot; page on the website).&lt;br /&gt;&lt;br /&gt;So far, when the page loads for the &amp;quot;new record&amp;quot;, the combo box on my application populates with all the values from the drop down menu on the web site.&lt;br /&gt;&lt;br /&gt;My question is, once the user selects an option using the c# application, how can I change the website&amp;#39;s drop down menu match what the user selected?&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried a couple other lines of code, this is what I&amp;#39;m working with right now (not functioning)&lt;br /&gt;&lt;br /&gt;webBrowser1.Document.GetElementsByTagName(&amp;quot;select&amp;quot;)[&amp;quot;Manufacturer&amp;quot;].SetAttribute(&amp;quot;value&amp;quot;,cboManufacturer.SelectedText);&lt;br /&gt;&lt;br /&gt;I&amp;#39;m wondering if there is another attribute I can use, or if I need to target the index values....anyone done this sort of thing before?&lt;br /&gt;&lt;br /&gt;Thanks a ton.&lt;br /&gt;&lt;br /&gt;[addedon]March 13, 2007, 3:03 am[/addedon]I have also tried&lt;br /&gt;&lt;br /&gt;webBrowser1.Document.GetElementsByTagName(&amp;quot;select&amp;quot;)[&amp;quot;Manufacturer&amp;quot;].SetAttribute(&amp;quot;selected&amp;quot;,cboManufacturer.SelectedText);&lt;br /&gt;&lt;br /&gt;I&amp;#39;m thinking the problem is that the select tags themselves cannot have such attributes, as the selected is normally associated with the option tag.&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t think of a way to set selected to the specific option tag, since it doesn&amp;#39;t appear to recieve a value, but its just there:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;select .....&amp;#62;&lt;br /&gt;&amp;#60;option value=&amp;#34;1&amp;#34; selected&amp;#62;1&amp;#60;/option&amp;#62;&lt;br /&gt;&amp;#60;option value=&amp;#34;2&amp;#34;&amp;#62;2&amp;#60;/option&amp;#62;&lt;br /&gt;&amp;#60;/select&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Tue, 13 Mar 2007 02:58:19 +0800</pubDate>
        </item>
        <item>
            <title>c# picturebox image clipping</title>
            <link>http://forum.lowyat.net/topic/403571</link>
            <description>I have an image that is all the cards in a deck of cards, layed out like a tile-based image.  (each card is 25x40 pixels, 1 image for all the cards).&lt;br /&gt;&lt;br /&gt;This is the code I have:&lt;br /&gt;//Card1 and Card2 are the pictureboxes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Graphics g = Card1.CreateGraphics();&lt;br /&gt;Image tmpImage = Image.FromFile(&amp;quot;deck.png&amp;quot;);&lt;br /&gt;g.Clear(Color.Black);&lt;br /&gt;g.DrawImage(tmpImage, new Rectangle(0, 0, 25, 40), new Rectangle(tmp[0], tmp[1],&lt;br /&gt;                     25, 40), GraphicsUnit.Pixel);&lt;br /&gt;&lt;br /&gt;g = Card2.CreateGraphics();&lt;br /&gt;g.Clear(Color.Black);&lt;br /&gt;g.DrawImage(tmpImage, new Rectangle(0, 0, 25, 40), new Rectangle(tmp[2], tmp[3],&lt;br /&gt;                     25, 40), GraphicsUnit.Pixel);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, is there something else that I need to add?  I&amp;#39;m not too sure how the CreateGraphics() works for associating the PictureBox to the Graphics object, I just took that idea from another example that used a textBox.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code compiles and runs no warning/errors.  When executing, it does not change the picturebox images.  However, I can see a flicker when the application is running slower than normal,and the picturebox went back to its original image.  And one time when running the application, the picturebox ended up having a blurry Image that is a mix between it&amp;#39;s original art and the clip from the deck image (looked like a corrupt image loaded).&lt;br /&gt;&lt;br /&gt;More info:  The pictureboxes are set to load an image file that is 25x40 (a blank card) at startup.</description>
            <author>Generatedname</author>
            <category>Codemasters</category>
            <pubDate>Thu, 25 Jan 2007 01:58:01 +0800</pubDate>
        </item>
    </channel>
</rss>
