- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 384
- Posts with Upvotes
- 300
- Upvoting Members
- 156
- Downvotes Received
- 18
- Posts with Downvotes
- 16
- Downvoting Members
- 13
Developer from England working in the healthcare sector. Currently working in Web Development, but I'm pretty much an all-rounder covering; ASM/C++/OpenGL & Direct X/C# and various web development languages.
- Interests
- Computer Gaming, Animé and Cars
- PC Specs
- i7 2600K @ 4.8Ghz, nVidia Titan, 32Gb RAM, 8Tb Storage + 256Gb SSD
948 Posted Topics
Re: http://www.gamedev.net is going to be your best free resource. | |
Re: It's because you're making the buttons appear and disappear. When you move your mouse over them, your mouse "leaves" the form window and enters the button window, causing your `Form2_MouseLeave` method to execute, causing your buttons to become invisible. This causes your mouse to "enter" the form window, causing `Form2_MouseEnter` … | |
Re: [QUOTE=rigz;1629233]Yah that is the good thing about it but im just a beginner :) and those WinExec were just explored through net..Anyone suggestions?[/QUOTE] Whatever website told you WinExec was a good idea, please burn it in a fire :) Use a loop like jonsca suggested with a conditional to set … | |
Re: OP: [url]http://www.daniweb.com/forums/post1251316.html#post1251316[/url] That post is the correct way to do this. Please ignore the MaskedTextbox control. It is nothing but a nuisance for anything but input. Using Ed's method is quick and easy. | |
Re: An error like that could mean something blew up in the Window constructor for your WPF Form. (Could be a method or child method or child constructor, there's a lot of possibilities) I would do a debug step through so you can see exactly where in your code it leaves … | |
Re: Create a `TcpClient` and connect to the POP3 server, open a `NetworkStream` that uses the client and download all the data available. You can then parse this using the POP3 specification. You can parse this data into a class for storage (file or database) In your client application you need … | |
Re: Firstly, you only set your active release mode to 32bit, if you were trying to compile in debug mode, you're likely to have built in 64bit. Registering a 32bit DLL in the 64bit framework won't work either, you'll need to register it with the 32bit framework. Finally (and probably the … | |
Re: No it is a bug. [This Hotfix should work](http://support.microsoft.com/kb/2464222) Unfortunately, it means that you need to include this hotfix with your application redist. Edit: Reading the bug report there is a workaround - Add the style as a dynamic resource reference or add it as a static resource to the … | |
Now, before you say it already exists (because it does) I found that those didn't really have the generic ability to find any control on a form, regardless of containers. So, here you have a piece of code which will find any control on a form and will also search … | |
Re: If you want to program for MS Windows, and you want a desktop application that's not using something like OpenGL or DirectX, then you really don't want C++. The framework for Windows UI apps in C++ is MFC, which...I don't even want to go there, the nightmares never stop... However, … | |
Re: Don't re-invent the wheel :) [VB SysInfo control](http://vb.mvps.org/samples/SysInfo/) | |
Re: If you're in kernel mode (driver level) then this will register a method that will be executed when a new process on the machine starts. If you want to do the same thing in C# you can use WMI. Use the `ManagementEventWatcher`, execute a query against `Win32_ProcessStartTrace` and register a … | |
Re: IE != Visual Studio browser control. It's a very thin shim only really used for rendering pure HTML. If you want more advanced functionality I would look at using [WebKit](http://webkitdotnet.sourceforge.net/basics.php) or [Chromium](https://www.teamdev.com/dotnetbrowser). | |
Re: 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. | |
Re: It might be a bit extreme, but where you set isFinished, could you just [icode]return;[/icode] and exit the method? Otherwise, you will need a second boolean check. [code] if (!isFinished) { // If the level has arrived at the current destination node and not at the final node // Destination … | |
Re: Speaking of quantum theory, there is a conciousness hypothesis that consciousness is the result of a collapsing quantum waveform. *shrugs* not sure I could prescribe to this... <--- Edit: I can't even find the article anymore, my Google fu is weak today. It was published as a scientific paper for … | |
Re: If you really really want to go ahead with C# as your single language, you should look up [TAO GL](http://en.wikipedia.org/wiki/Tao_Framework) Without making the COM calls to the Windows API yourself, this is about as good as it gets. If I were you, pick up an existing game engine (Unity/Unreal) and … | |
## Why am I Here? ## This question is not as philosophical as it sounds, but it's one worth answering. I am here because I want to help people understand programming and help make us all better programmers. Sometimes I have questions to ask, sometimes I have answers to give. … | |
This "FakeWebClient" will allow a C# application to send and receive cookies as part of the request. This behaviour is not available by default. Please note that on line 35 there is a possible NullReferenceException, I managed this at a level higher but you may wish to handle it in … | |
Re: Actually we use a similar construct here; it's great for doing something X times but be warned that there are three levels of indirection and a delegate object construction plus the delegate invocation. It has an impact when you get into large numbers. | |
Re: Make sure you're running it in Debug mode. In Release this could have been optimised away because you're not using the variable. | |
Re: If you have an image in code then you should be able to get the byte array out of the object that contains the data. It might be called `GetBytes()` or something. In any case, look for a method which will give you a byte array. I also noticed that … | |
Re: Have a try at doing it first. If you enjoy it then there's no problem! Right? :) If you get stuck come back with what you've done and what your *specific* problem is. Then we can help. Doing your work for you is cheating at best and plagiarism at the … | |
![]() | Re: Ok so the only way this would really provide security is if you used some unknown password (referred to as salt) to generate the hashes. Otherwise, anyone would be able to modify the table and then generate the hash to make it look like it hadn't been tampered with. Using … |
Re: In C# you can think of all classes as references (pointers) Like ddanbe said above, if you *really* want the pointer, you can use the `unsafe` keyword and then use it like C++. A more safe way is to marshall it out into an `IntPtr` object, but this is generally … | |
Re: Depends what you want to do with it. What scenarios are you looking for? | |
Re: > 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 easy to game. If I post in the thread with 4 accounts and my main account, it means I can … | |
Re: Was that a challenge? ;) EDIT: Done :) using Common; using System; using System.Collections.Generic; using System.Linq; namespace StringSplitTest { public class MainClass : IExecutionClass { const string str = "abc,123.xyz;praise;end,file,clear"; public bool Execute(params object[] programData) { SplitStringByNonAlphanumerics(str).ForEach((s) => Console.WriteLine(s)); return true; } public List<string> SplitStringByNonAlphanumerics(string stringToSplit) { return stringToSplit.Split(stringToSplit.Where(c => … | |
Re: Try setting the order weights to a negative number in your base class. | |
Re: 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 application involved, the problem is extremely exaggerated compared to the problem with DW. It is enough to bring my entire … | |
Re: If you look at the available constructors for `StreamWriter` you will see that one of them can be used to indicate you want to append to the file. | |
Re: There's a couple of ways. As well as using TLS (standard SSL solution) you can also use Certificate based authentication (effectively enforcing that both client and server have valid certificates) You can also use Username and Password based authentication (including domain authentication if you have that available) The easiest, if … | |
Re: Has your machine crashed? Has it been forced to power off (battery flat)? Is it starting up from Sleep or Hibernate? All these will cause a lot of disk usage as the machine boots back up. If your drive isn't particularly fast, this could take a while. | |
Re: They don't get installed into a browser, they're installed in the computers certificate store. (either by user or by machine) Certificate/SSL Certificate no difference. Certificates are produced to a well defined standard and they include a key of a certain size along with descriptor information. That is a certificate. You … | |
Re: You need to add it as an application in IIS. If you upload the code files using FTP, you can use IIS Manager to add the WCF application (as an application) to your website. Note that you must have the HTTP Activation Service enabled on your server in order for … | |
Re: In terms of geometry isn't a dimension simply an axis that is perpendicular to all other axes? Quaternion mathematics for rotation for example. Also I don't believe in time as a dimension but as an artifact of something else. If time were a spatial dimension, why do we get relativity … | |
Re: You need to think about the problem and [how binary searches work](http://en.wikipedia.org/wiki/Binary_search_algorithm). If you understand how binary searches work, then the answer is obvious. The fact you ask this question means you don't grasp the issue, so rather than answering the immediate question, it would be better if you understood … | |
When you upvote or downvote someone with a comment, if you reverse your vote it doesn't reverse the score you gave them. In my case, I accidentally upvoted someone because I hovered the downvote button and then I [must have] passed over the upvote button when I when I moved … | |
Re: You might be better using a small database like SQLExpress to write your data to rather than a text file. Sharing read/write access is a dangerous game... | |
Re: You could use `Custom item = data.OrderByDescending(obj => obj.Index).FirstOrDefault();` Does the same thing but looks tidier :) | |
Re: If you won't include a third library with common functionality/types, you need to re-design your application so that you no longer have the circular dependency. How you do that is down to you as the application designer. | |
Re: In C# objects and structs are treated differently by what basic type they are. An Object (class) in C# is a reference type and so whenever you pass an instance of that class to a method, you're really only passing a reference to that class. This has the benefit of … | |
Re: Are there any hard coded paths? You need to list what the runtime errors are. | |
Re: > Ok. I was going to do that as a last resort since multiple people might connect at once and mix up the names. Thanks anyway. You can't. Data comes down each socket from a specific client (unless you're using Broadcast). So if you keep that socket in a particular … | |
Not sure if it's just me but the home page doesn't work. It's just presenting the background colour but no content. The following is received by the browser: <!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en-US" lang="en-US"> <head> <!-- CSS --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" … | |
Re: Depends what you're talking about (again). Unfortunately there are two meanings for "4K". One is the industry standard, 4096x2160 and the other is UHDTV which is 3840x2160. I will continue to assume 4K means 3840x2160 as this is what monitors and TV broadcasts will be. Assuming that you're watching on … | |
Re: Well it should all work the same way, how are you initiating the "Create New" logical task? It should be as simple as adding the data object to your context and saving, but you will need code logic to handle that case rather than updating existing model data. | |
Re: What does the EntityValidationErrors property contain? | |
Re: If the host doesn't have any documentation, find another host. If you pay for a simple development website that uses ASP.NET, they often come with database hosting. i realise you're looking for free but they can have some rather aggressive limitations. Connecting to a SQL instance is done via ConnectionStrings. … | |
Re: This sounds very much like [Coded UI](https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CDoQFjAA&url=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fdd286681(v%3Dvs.100).aspx&ei=CP9-U92UMcm70QWw94GgCQ&usg=AFQjCNGpqAIy_caRWTNBIvSNUFZw6RGzEg&sig2=1oOfTD2C6WZrA-rqYCn5aQ&bvm=bv.67720277,d.d2k) So it might be worth checking that out first. Otherwise, I'd recommend that you decide on what possible actions you can have. Examples might include "EnterURL", "Click Hyperlink", "Submit Form Details" etc. Then whenever a user did something on your built in control, … |
The End.