• Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Drag .txt file on .exe and start texteditor

    These things are called Command Line Arguments (for your reference). You can retrieve them in a WinForms app by calling `Environment.GetCommandLineArgs()` Command line arguments are space delimited, so if you …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Chat Rooms

    Given that I spent most of this weekend asleep and/or playing MTG, I'll do it this week :)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Get paid to answer questions

    > I suppose if a member has 4 accounts they could still make 4 entries whoever chooses the winner. > > If honesty and integrity cannot be relied upon, the …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Get paid to answer questions

    > What if only those members who are selected and participate in the thread get to vote on either a single member or all members get a cut. Again too …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Chat Rooms

    I completely forgot this thread even existed :) I can't remember what my reasoning was for the state information to be client side. I'm sure there was one, but it …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Webservice adding async to my method?

    Oh you mean the old style Async! Sorry, I thought you meant the new one :) That looks okay. I'd do it slightly differently by abstracting the client away, but …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Webservice adding async to my method?

    Any particular reason you can't use the async keyword? If so, just take it off. An async method returns a Task, the result of the Task is your data type. …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in memory stream pdf to "DIV"

    Well, your two options are (to achieve what you want); 1. Decode the PDF server side and parse into HTML format. Insert that between your div 2. Run some kind …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in chat application understanding

    I think you should clarify what you want. As in, do you want to connect to *any* website regardless of whether or not it's controlled by you, or, would this …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Gave Reputation to Sulaiman_1 in C# Counter

    string CounterSql = "SELECT counter from counters where ctrtype = 'station'"; OleDbCommand CBCmd = new OleDbCommand(CounterSql, AMSCONN); AMSCONN.Open(); OleDbDataReader CBReader = CBCmd.ExecuteReader(); if(CBReader.read()) Code_txt.Text=(int.parse(CBReader[0].toString())+1).toString(); else Code_txt.Text="1" AMSCONN.Close();
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Random class c#

    Random number generators, in a lot of cases, need to be deterministic and you often need more than one in order for it to remain deterministic. If the RNG were …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Gps related web application

    Probably better asking on Business Exchange. You're essentially asking us to pitch business ideas at you. ;)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WinForms obsolete attribute on partial class

    I would do a little re-design there. Whilst `const` ought to be flagged by Obsolete, I would redesign and make a public property that returns your const. Mark the property …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Gave Reputation to Momerath in How to get the most recently selected item in a listbox?

    There is no need to pass any of that stuff by reference, remove it all. You mix modes (windows controls writing to the console). Your methods have overly complicated signatures …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Gave Reputation to cgeier in How to get the most recently selected item in a listbox?

    I re-worked the above code to create a version that allows you to specify if you want the last "Selected" item, the last "De-selected" item, or last item that was …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Initializing Arrays

    If you're using a List as ddanbe suggested, as an extra bonus you can use the ForEach method on the list object. `guys.ForEach(guy => guy.UpdateLabels());` There's little difference between `foreach` …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Initializing Arrays

    Nothing really, they both have the same outcome. The second way is the preferred method if you know the contents before hand. It boils down to; `Guy[] guys = new …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Unique 6 digit number

    If you simply want uniqueness, take the highest number you already have and add 1. Simple yet effective. You said that you don't want to have to iterate through all …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Emails to a Bounced Address

    Hmm, I wouldn't remove on a simple edit. I would put a little button on your profile page that clears the flag. I've always prefered explicit over implicit, especially in …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Problem with code fomatting

    Maybe it was a cache/refresh thing, but to me it looks the same as you've typed it... ![d5f3daab889e7e5b28e890cac5f0f315](/attachments/large/3/d5f3daab889e7e5b28e890cac5f0f315.PNG "d5f3daab889e7e5b28e890cac5f0f315")
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in capture the selected area of the desktop as a video in picturebox in visual

    I would scour google for a C++ library that can capture a desktop area. You will be able to link to your C++ from C# by using DllImport. This allows …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in capture the selected area of the desktop as a video in picturebox in visual

    You won't be able to do this entirely in C# unless you utilise something like SharpDX. You will need to call out to a C++ library in all liklihood. Once …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Created Emails to a Bounced Address

    Would it be possible for you to mark this as read and retry? My mail server went down for a while and bounced some of the DW emails. Now everytime …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in how to add web page in windows forms project

    Open it in a browser or in the form?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in The Sony problem

    Unless someone reverse engineers the proprietary protocol I doubt third party manufacturers will be able to. There is no real standard for how accessories communicate with their host hardware. Also, …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Version Control

    Not sure what website you were looking at but I haven't been able to find that. Git is available as OpenSource from their website. Install and configure a repository, there …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Version Control

    I personally think of the "cloud" to mean geo-redundant storage and distribution, much in the way content delivery networks work. i.e. I upload a picture of my cat to "the …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in webBrowser control doesn´t show webpage

    You could try and use WebKit.NET. This will attempt to use the same browser component that is used in Safari. Other than that, there is the Chromium Embedded Framework, but …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in webBrowser control doesn´t show webpage

    The web browser control is based on Internet Explorer. If the web page doesn't work in IE, it won't work in your WebControl either.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Version Control

    @jwenting Have you considered hosting your own Mercurial server?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Memory Leak in Daniweb? (Chrome)

    I would like to add that this is not only DW exhibiting the issue (for me). This also occurs is Battlelog (for Battlefield 4). Because of the size of the …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WPF-White Screen Problem

    Given that it works elsewhere, just not on your machine, indicates a possible issue with your machine. The graphics drivers perhaps. Unfortunately, beyond this, I'm out of ideas.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WPF-White Screen Problem

    When you reinstalled your OS, did you copy the entire source folder to backup? Inside there's an obj directory. Try deleting that folder and rebuilding.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How do I call string a defined outside of the class ?

    You'd need to make it `static`, or if it never changes, `const`
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WPF-White Screen Problem

    Google for dxwebsetup and download the one directly from Microsoft. This will ensure you're up to date.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in about getting unwanted default values in my rich text box

    Have you check the value for `videoid` is a valid value? Did you also run the query against the database manually and check the result? What type of object is …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in about getting unwanted default values in my rich text box

    I don't really understand your question. Could you try and explain it again please?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WPF-White Screen Problem

    Have you tried updating DirectX?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Any other barbershoppers here?

    That's a pity, really your only way to keep something alive is to recruit the youth and teach them. Music changes and evolves, there's no reason you can't have good …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in The sum of digits of a number in C#

    Yep, although your will also add up standard characters too :P You could also use '0' instead of 48. Just easier to remember :) Also, strictly speaking, you could do …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Strange behaviour with TCPClient ReadTimeout

    Ah, sorry I'm used to dealing with Sockets and not the TcpClient abstraction. Calling close on the TcpClient should be enough. You could try switching to `MessageReader.ReadBytes`. The advantage here …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Any other barbershoppers here?

    Hmm, I can only find a classic rock band from California. Is this you guys? (It appears to be a quartet and has a guy called Jim in it)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in The sum of digits of a number in C#

    Take the value, mod by 10 add to result, divide original result by 10 (ignore decimal place) iterate in loop until original value is 0. For those of you who …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Strange behaviour with TCPClient ReadTimeout

    According to specification, a TCP/IP connection has no requirement to idle timeout. You're now essentially saying "I'm expecting data to be received within 20 seconds, otherwise, something went wrong." The …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Any other barbershoppers here?

    No but it sounds interesting. Are you in one?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Code Release

    I believe it would be fairly easy to host your own Mercurial server.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Gridview Binding with linq statement

    Probably means the join is failing. Check that your User table contains SiteIDs that are contained in your Sites able where the firstname is equal to what you're searching for. …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Flat Screen monitor goes white

    Sounds like the LVDS board is dying/dead. If you can take it back, do so. If not, you could probably buy a replacement board from HP, but it might be …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Gave Reputation to rubberman in SAS vs SATA SSD?

    For a system drive (read-mostly, write occasionally) then an SSD is a good choice (mirrored drives for reliability). For data storage (a lot of writing and over-writing, database, etc) then …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Undefined function 'REPLICATE' in expression

    Your padding is unecessary as you are parsing it to an int. 000001 simply becomes 1 once parsed. If you need to retain the leading 0s then you need to …

The End.