948 Posted Topics
Re: Cast your sender to a checkbox and see if your array contains that checkbox... private void CheckBoxChanged(object sender, EventArgs e) { CheckBox selectedBox = sender as CheckBox; if(selectedBox == null) { // Somehow a different control type called this method. return; } if(myCheckBoxArray.Contains(selectedBox)) { // Do what you need to … | |
Re: I tend to write articles or code snippets in the software sections that make use of this markup, so I must contest your suggestion to remove it from them. ![]() | |
Re: It means that the string is "Literal". So you can't use escape strings in it. For example: `Console.WriteLine(@"This\nis a new line");` Output: `This\nis a new line` `Console.WriteLine("This\nis a new line");` Output: `This` `is a new line` | |
Re: Actually I disagree. In fact the reverse *may* be true. If you think about "love" in an adult sense, it's driven by several instinctive biological factors. If children, there's an innocence they have; meaning they are not bound like we are as adults. It's more unconditional. | |
http://services.parliament.uk/bills/2012-13/enterpriseandregulatoryreform.html Anyone seen this? Pretty much means that rights holders no longer have rights over their own work without registering them on a work-by-work basis. This allows companies to use, sell and sub-licence your works without asking you permission. Might be wise to start taking all your pictures off the … | |
Re: The DB doesn't care that it's a file. To the DB your content is just an array of bytes. I suggest updating your table definition to include the filetype and possible the filename. That will help you write the file correctly and sort by the filetype you want. | |
Re: It took you a year to do that? | |
Re: You're not a real programmer, you can't program in binary >:( Such are some elitist people. I would argue that people who create website front-ends (purely HTML) aren't programmers, but scripters instead. That's where my line is drawn ^^ | |
Re: If you're using `ShowDialog` to display the form and not Disposing after returning, this will cause a memory leak: public DialogResult StartForm() { MyForm form = new MyForm(); // Memory Leak return form.ShowDialog(); } public DialogResult StartForm_Safe() { using(MyForm form = new MyForm()) { DialogResult result = form.ShowDialog(); return result; … | |
Re: Override `WNDPROC` and grab the co-ordinates from the `WM_MOUSEDOWN` message | |
Re: Generally see these going for £15-£20 at car-boot sales (some as low as £10 but they look knackered) | |
Re: What does it say in the course material you've been studying? To start, i'd capture the mouse position from the moment you receive a mouse down message to the moment you receive the mouse up message and plotting that in data points. You can then either display or translate these … | |
Re: I once had to compile the Chromium source code on a Celeron laptop with 512Mb of RAM. Took 14 hours and the build failed, best 3 days off ever ;) | |
Re: I'm inferring from your code that you're using a `NotifyIcon` with some tooltip text. The limitation actually resides here, as the text for this can be no longer than 63 characters. It's possible to hack around it using reflection, but if you can get it down to 63 characters that … | |
Re: Yes, you can download a video just like a file and you can play it using the built in player. Conceptual Framework? I assume this is something you do? But to answer your question, yes, in Android, you can download a video and play it. | |
Re: Ok, to compile you need both a solution and a project. 1. Find your code files on disk and copy them somewhere you remember 2. Close the solution you have open 3. File, New.. Project and choose either Winforms or Console depending on what you want to do 4. Right … | |
Re: Let's not forget about her drive to meet the "Clean Air Act" closing most of the pits off in the 80's and effectively crippling the country's industrial and manufacturing sector. The UK produced some of the best steel in the world and our mines employed a large proportion of the … | |
Re: What's the error message? | |
Re: The event fires as the first consequence, so you can consider SelectedIndexChanged as the "Changing" event. How are you supposed to know what's going to change and to what value before it happens? At best you'd be able to use the click event but even at that point, presumably you've … | |
Re: How are you recording whether or not the box should be shown again? You should undo this step when you peform and uninstallation. | |
Re: Just because your parent is disposing, doesn't mean your child control is *currently* disposing. It could happen later, it could have already happened. In most cases a Dispose runs that quickly that you will never pick up the "true" flag. The other possibility is that you have a memory leak … | |
Re: Let me ask you, why do you need to convert it to the sub-type, if you don't already know what sub-type you need to deal with? The reason I ask is that, if you don't know what type you're dealing with, how can you call anything that is *specific* to … | |
Re: Rather than your for loop to check for whitespace, you can put all the code into a LINQ statement :) `textBox1.Text = String.Concat(textBox1.Text.Where(c => !char.IsWhiteSpace(c) || c.Equals(' ')));` The need for `String.Concat` arises because the *where* clause returns `IEnumerable<char>` which is unfortunate :( There is probably also an improvement to … | |
Re: `if (!(butt as Button).Enabled)` <-- This results as "TRUE" on the first button that is **disabled** so it will display your message. | |
Re: > Is it ok to use sockets to exchange data between web application and windows application Define "Web Application" > if i used MSMQ is it true that application has to be running under microsoft system. Yes > I want the web application to send message to windows application and … | |
Re: > Don't ask, lol It's already been asked... > As the kids claim, a lot of rules such as harassment, bullying, threatening, etc.... don't ask... Then you should've been punished. Bullying isn't cool. Just going around going "Oh man this maths test is going to be hard omg! Did you … | |
Re: I'm not entirely sure what the purpose of converting to GUID is trying to achieve. A GUID is a specific format. You cannot pass arbitrary data to it and "convert" it into a GUID. Why do you want to convert your encrypted string into a GUID? | |
Just thought I'd report that the keyboard shortcuts for the editor don't work in Firefox (20.0.1) It tries to apply it the main menu bar. | |
Re: BASIC -> C++ -> ASM -> Visual Basic (Required at college) -> Delphi -> GLSL/HLSL -> PHP -> PROLOG -> C# :) ![]() | |
Re: It was definitely Obama! The marathon was on TV and Obama is on TV. MUST BE HIM! <-- **This kind of logic is everywhere and random speculation doesn't help.** The problem with the post is that you've attributed it to a type of people. "Jewish" therefore you're painting the picture … | |
Re: A program can't delete itself because it's currently running. You need to create a Windows Scheduled task to delete the file on the next boot up/shut down. You need to P/Invoke [MoveFileEx](http://msdn.microsoft.com/en-us/library/aa365240%28VS.85%29.aspx) which will mark the file/folder for deletion upon the next boot up. | |
Re: Have you tried the standard browser trouble shooting stuff like clear cache and cookies? | |
Re: Can you post your code to your setup? You simply need to pass the array in as part of the delegate parameter, if you need something more complicated you need either Shared Memory or a Proxy Class (same thing just better managed :) ) | |
Re: http://www.daniweb.com/software-development/csharp/threads/452703/cant-run-exe-files-thar-write-in-c Use the search function next time. | |
Re: That's a little bit of a backwards way to do it. Follow this kind of logic instead: Foreach row in your DGV (yes you can use the foreach command) Get the value of the cell in the Name column If this value equals the value of the text box -> … | |
Re: Can you paste your implementation of your DragDrop event please and any other events you have linked up related to DragDrop operations. | |
Re: I'm not sure what you're asking but I'll guess at that you have a list of questions subdivided by chapters (presumably in a study book) and you want the user to select questions? By looking at the whole problem it seems a little complex, but you need to break it … | |
Re: Do both XML files follow the same schema? It will be close to impossible to merge two different schemas without another schema defining what the merged output should look like. You can't just take two arbitrary XML files and merge them ^^ | |
Re: **Hard Option:** Remove any and all devices from the machine except the Boot drive, GFX Card, RAM and CPU. If it still doesn't work everytime and you have more than one piece of RAM, remove all but one stick and try it in each slot. If it works, try the … | |
Re: The columns are 0 index based, not 1 index based. Use column indexes 1 and 5 and you should be fine :) | |
Re: What AD is trying to say is, if your host app is running in a different directory to your target app, you will need to tell it the correct directory. For example: My C# app is here - `C:\MyProjects\CSharp\CSharpHost.exe` My C++ app is here - `C:\MyProjects\CPP\ProcessCSV.exe` My CSV is here … | |
Re: > After months of running Windows 8, I recently went back to 7. Somehow, I like 7 better than 8. > > What I liked about 8: > -fast and light > -good search speeds and results > What I disliked about 8: > -lackluster graphical design (IMO)... to be … | |
Re: The best pickup line in the universe ever is to be good looking and fit. My general experience is that it doesn't matter how nice, genuine or confident you are, women are just as shallow, if not more so than guys. | |
Re: 1. Run a Linux Distro 2. Copy your data off the drive to another drive that doesn't have NTFS 3. Format and reinstall If you're using EFS you're pretty screwed | |
Re: First Anime I ever saw was Outlaw Star. Still have the DVD box collection :) Cowboy Be-Bop is awesome, and Full Metal Alchemist: Brotherhood is definitely the best (sticks to the manga more faithfully also) I'm currently eating my way through Fairy Tail but it's becoming the same ol' same … | |
Re: Just because you use Integrated Security doesn't mean every man, woman and child on your domain can still access the database. They still need to be given permission. Even with SQL Studio, if you don't have permission, then you can't access it :) Our servers are configured with "default deny" … | |
Re: I believe code posted here is simply public domain. Etiquette demands you not copy from one source to another, but some people are unscrupulous. I think the only way around this is to include some kind of license in the article (such as GNU or Adobe). That way the entire … |
The End.