948 Posted Topics
Re: The actual approach would be fairly easy (although long-winded) if it weren't for the following case: *112014* *11***20***14* 20th Nov 2014 or; *1***1***2014* 1st Jan 2014 or; *1***12***014* 12th Jan 2014 All three are valid according to your interpretation rules, the code can make no distinction between any of them. … | |
Re: Hi AoD, I think it's because you're disposing of something that's being passed to your method. This is pretty much a big no-no. You don't know what happens to that object outside of the method you've written, disposing of it could present problems. Whilst I understand that calling dispose is … | |
Re: Here's a few of my photos :) http://puu.sh/8TOCA <--- So relaxed. When I picked my camera up she was on her back, but she rolled onto her side as I got the camera in place. http://puu.sh/8TPZa <--- Food coma time! They've just eaten and now it's time for a nap … | |
Re: It looks like you're using a high dpi setting for your fonts and the DirectX layer migh be trying to anti-alias it (this can give the experience of blurred lines as that's pretty much its job ;) ) Check that you don't have some kind of AA switch set and … | |
Re: 12:24 - It's cold. It's grey. Welcome to England :P | |
Re: You need to use the `OnSelectedIndexChanged` event. This will allow you to grab the current selection from the combo box as it changes. You would then put this value into your data container so that when you "Submit" your component to the database, it will contain the correct value. | |
Re: 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 entered `/f:myfile.txt` you would get "/f:myfile.txt" as a single argument in your application. When you drag and drop, it simply … | |
I don't know if it's just me, but I find the fact that the rooms re-order their position slightly irritating. The active room always makes itself the first in the list (after the room list). When you select another room, the room you were just in is then pushed to … | |
Re: 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 website be yours and provided for the purpose/support of your chat application? | |
Re: 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. So it might say `Task<string>` which means you can call the webservice from your application (synchronously) by called `webService.GetMyString().Result;` If … | |
Re: Well, I know this is a little late, just like your request for help ;) but here's a couple of things you can do in future (if you don't get the position) 1. Prepare a portfolio of applications. Not only does this show you know the language, but you also … | |
Re: 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 of Java Applet that requests the file from your database. That file would still need to download to the client … | |
Re: 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 static, you would be limited to one. Due to threading, this means that the RNG *may not* be deterministic. For … | |
Re: Probably better asking on Business Exchange. You're essentially asking us to pitch business ideas at you. ;) | |
Re: 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 as obsolete and it should flag it. | |
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 the website attempts to send one I get a PM saying that the address previously bounced and I should edit … | |
Re: Is there any particular reason you want to write it yourself? There are many applications out there that perform the same task. Morally speaking, as I don't know you, I'd be rather reluctant to help you here. Something like this could be built, deployed and used in a malicious fashion. … | |
Re: 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 Guy[3];` -- You're reserving space for 3 "Guy" objects in this array. You don't yet know what object is going … | |
Re: 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 previous codes, yet, you have to anyway to check that the number you have is unique. There are ways to … | |
Re: Maybe it was a cache/refresh thing, but to me it looks the same as you've typed it...  | |
Re: 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 you have the stream, you can display it on a form. A picture box might not be the best control … | |
Re: Open it in a browser or in the form? | |
Re: 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, if they're using a direct electrical link rather than a software interface (with standard hardware such as a USB type … | |
| |
![]() | Re: If you don't add it to source control it will still exist on disk. Part of the build process, though, will be to copy your localdb to the correct location. If you add your local db as a file in your project, then set it as "Copy to Output path" … ![]() |
Re: You'd need to make it `static`, or if it never changes, `const` | |
| |
Re: I don't really understand your question. Could you try and explain it again please? | |
| |
Re: 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 are interested in my on going "One Line Challenge", this can be done on a single line. | |
Re: 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 OS or network card itself will handle the underlying connection when this happens and in some cases could take this … | |
Re: 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. Also, when you execute this look at what LINQ to SQL is generated using SQL Profiler. You can execute this … | |
Re: You could try installing the VB6 runtime. It's a long shot but it might be a corrupt/missing library issue: [Click Here](http://www.microsoft.com/en-us/download/details.aspx?id=24417) | |
| |
Re: 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 cheaper to buy a new monitor. | |
Re: Your stuttering and speeding up issue, is more than likely the connection between you and the server. That's probably not something you can fix unless it's a problem with your router. As for the freezing up issue, I also use 8.1 and have had no issues. What I have found, … | |
Re: Because people don't want to pay for anything. You go on a mobile store, want to find a game. Oh this costs 20p??? I'm not paying for it! People will download a game for free, get drawn in and then *need* to spend money on it. This is the driving … | |
Re: If you want to use a single DbConext, then you must do just that all the way through the application. It sounds like the DbContext has cached the previous version of the model and you've updated the model but bypassed the DbContext (so the cache hasn't updated) | |
Re: I can't reproduce your first (screenshot) issue, but I agree with the second one. Does the same for me too. The URI Id is different by 1 between each post. | |
Re: Depends what you mean by interactive! Technically an accounting program is interactive, but often that's not what people mean :) But a simple yet fun project...How about creating a multiplayer (keyboard sharing) game of Battleship? The rules are simple, it's sufficiently easy to design and implement, yet complex enough to … | |
![]() | Re: You can use WPF with the inbuilt designer to put the controls on there. LINQ to SQL you can use by defining your entities in C# and then creating a DataContext to your database. You would then query it using LINQ. I suggest you read [Here](http://msdn.microsoft.com/en-us/library/bb425822.aspx#linqtosql_topic1) |
Re: You should probably copyright from the first registered date to the current date, especially as Dani has made changes to both the UI and the API this year. I'm not sure how it works in the US but in the UK and EU typically you would include the start and … | |
Re: At the moment C# is probably the easiest language to write in for both desktop *and* web applications simultaneously. | |
Re: Set your combobox `Text` property to the default value you want to display. If the selected index doesn't exist in the DB, set your `SelectedIndex` on the combo box to -1. This will revert it to your default text. | |
Re: Well first, you can't declare a `List<List<string>>` as a `List<List<double>>` as the types aren't implicitly compatible :) List initialisation by constructor is different to arrays. You have to remember that when declaring a List you're using a generic type; `List<T>()` In this case your `T` is `List<string>` a declared *type* … | |
Re:  1. Click on the attached image. 2. Press the keyboard key combination CONTROL P at the same time. 3. Click OK. 4. ???? 5. Profit (and/or admire your square). | |
Hello, I got a message this morning from a mod that had deleted a duplicate post. Which is all fair enough....Except I never saw the duplicate post in question. When I went to check the thread this morning, sure enough my original post was still there so sat bemused that … | |
Re: 1. Instantiate a Player object per player. 2. On each player's turn. Use a random number generator between 0 -> 60 (there's an example of an RNG call in the picture) 3. Save each indidual score as an arrow in the Arrows class (You have three; arrowOne, arrowTwo, arrowThree) 4. … | |
Re: IIS tends to ignore those settings. Why? Who knows... However, it will pull them from the AppConfig if you set them. <add key="loginUrl" value="~/login/" /> <add key="defaultUrl" value="~/unauthorized/" /> If you add those into your config, it should work. | |
Re: Do you really mean multicast? Multicast is to send a single packet to multiple destinations in a single transmit. If this is really what you want, try something like [NORM](http://www.nrl.navy.mil/itd/ncs/products/norm) |
The End.