948 Posted Topics
Re: UserControls don't contain a definition for `CloseModalPanel`, this method is contained within the `MetroAppForm` class. Also, for anyone wondering, this is DotNetPanel for WindowsForms by DevComponents. This isn't built into Visual Studio. | |
Re: `select * from YOURTABLE where YOURDATECOLUMN like '%/07/____'` I'd suggest including the year too though... | |
Re: Use the [MessageDialog](http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx) object. | |
Re: What exactly is not happening? I understand the part about not be able to pass events, but I'm not sure where *from* and where *to*. I can't particularly see anything wrong with what you've done. The only thing that stands out is that you've not provided any callback information, essentially … | |
Re: Dani's JSON makes more sense in my opinion. Not everyone who is qualified has a degree. However, based on that, it's the UI that's incorrect ;) ![]() | |
Re: It depends how you use the data. If you want to do index and searching, the database is going to be far better at it. This comes at the expense that your data is (marginally) harder to read and edit. If your objects are going to be loaded and cached, … | |
Re: What do you mean by a *pure* converter? | |
Re: Essentially yes, break down your code into tasks that you can run in a method. You can give the background worker a method to execute (that's all a delegate is) and run it that way. Be careful about altering UI components. That has to be done on the Main thread … | |
Re: Put some effort in of your own first. The problem itself is very simple. You can work this out with some basic logic. | |
Re: If EnumerateDirectories ends after trying to access a directory it cannot then you're going to need to create your own search function. EnumerateDirectories will give you all the directory names for the folder it is currently searching. With the AllDirectories flag it will search all sub directories as well. Your … | |
Re: Well it's exactly what it says. You're trying to open a connection that's already open. Remove line 48 and you'll be fine. | |
Re: A general, generic system would have you define a table to store your groups, a table to store what permissions that group has and a table to assign users to groups. I would then translate that into C# and assign roles to your screens. The other option is to be … | |
Re: Firstly, although `MyClass` inherits `IComparable` the compiler doesn't know that it can be converted (sometimes the compiler is dumb). If you change your original definition from `MyClass[] mine = new MyClass[5]` to `IComparible[] mine = new MyClass[5]` that will be fine. Finally, you can only pass an assignable value with … | |
Re: Yes, for the simple reason that I'm always curious about "tomorrow" or "the future" I want to know how the species is doing 1000 years from now, I want to see the new technologies and sciences. What discoveries have we made, have we finally conquered the oceans, the stars etc. … | |
Re: You can use `img` tags fine in Outlook but remember a couple of things: 1. You can't direct it to something on your local drive/network. Outlook doesn't make a copy of your picture, the `img` tag is simply a reference to where it is. If the target machine can't find … | |
![]() | Re: Because it's the unofficial global calendar and not using it would just make things unnecessarily complicated. Just because someone of faith does something, does not mean an Atheist *must not* do that something. Additionally, the Chinese use a lunisolar calendar in a civil capacity (for special social events) as I … |
Re: What do you mean by a generic syntax for it? ICommand and Delegate Command are pretty generic already. The intention is that you pass delegates or lambda functions in. As you already define what goes in/out of the method (by factor of delegates) I'm not sure what you stand to … | |
Re: > because the 2012 express edition has 1gb limitation I do hope you meant 10Gb, as per the [Microsoft Comparison Chart](http://msdn.microsoft.com/en-us/library/cc645993(v=SQL.110).aspx) I personally can't see what you would need more than 10Gb for on a personal/small commercial level. MSSQL is no longer the behemoth it used to be and is … | |
Re: I'm not sure I understand what you mean. As a web client, you would need to call a web service (which is code) that then interacts with your database. So if you had a User table, at the very least you'd need `CreateUser`, `UpdateUser`, `DeleteUser` and have those service methods … | |
Re: The quickest solution is to add the `<machineKey>` setting into your App.Config. The actual (best) solution will entirely depend on how the error is ocurring, which I'm afraid is going to be a debugging task for yourself. This error can be caused by the machine key being different on the … | |
Re: How are you writing the file? If you're using `File.OpenOrCreate` this *won't* truncate the file. If your new file size is smaller (I don't know what you're doing to the bitmap even though your header is larger) then you'll get junk at the end of the file that was there … | |
Re: Based on reviews by friends and what you've said here, I think the only one that I'll be picking up is Log Horizon. IS2 is...abysmal. I might pick up SxS and/or Magi (Starting with S1), not sure yet... | |
Re: What type is `clrBackColor`? Is the window that you're trying to make transparent a top level window? | |
Re: A basic version would be to have a list of classes that represent each control. In your toolbox, set a property such as a `Type` to say what the class it represents is. When you perform your drag drop operation, look at the class it represents, instantiate a new version … | |
Re: Please copy and paste the error you're getting. | |
Re: Nice template :) The only thing I noticed (mine is almost identicial to yours barring interfaces) wihch I would do differently, is that the Service is responsible for the logging configuration. Personally, I would have made a configuration object, or, had the log manager attempt to read the logging configuration … | |
Re: I lost about 30 rep points but gained 12 places on the ePeen chart. o.O | |
![]() | Re: You can have a fillet steak for dessert, right? ... Right?? :S On a serious note, warm chocolate cake, with chocolate sauce inside with cornish ice cream on the side *drools* |
Re: jwenting, I've heard from a few people I know that play guitar that the amp makes more of a difference to the sound than the guitar itself. Obviously if you're talking about the difference between a $150 guitar and a $2000 guitar, there's going to be some difference in quality, … | |
Re: As a junior, I had 6 interviews before I got my first offer and it was *low*. **Ridiculously low**, but I took it. Why? Because all those boxes you need to tick to get the big money? Well you can get that when you're in work. Believe me, once you … | |
Re: Working in healthcare IT myself, I find it absolutely unbelievable that a single system, even with the "state exchange" system everyone is ranting on about, cost $634M. That is a *staggering* amount of cash! (Even if they built their own datacenters) | |
Re: It depends how much data you're copying really. It's nearly always cheaper to pass a class by reference. Reference types are created on the heap, so there is no penalty of passing a reference type by reference (classes are reference types). However, to pass a value type (such as a … | |
Re: To include the MSADB in your setup file is just a case of including it as a seperate file. The other questions are solely up to you.... | |
Re: There's so much that I learned and have forgotten from when I used to do Games Programming, simply because I haven't done it for a long time. It's a bit like any other skill, unless you practice and keep practicing you soon forget. But, by the same fact, it's easier … | |
Re: I doubt the fan is causing the issue. The four pin fan leads allow you to use PWM to regulate the fan speed. You could always unplug it completely, if it's the CPU fan the CMOS will beep to tell you the CPU fan is unplugged, it shouldn't shut down. … | |
Re: What are you lost with? Sorry but we need you to be a bit more specific. | |
Re: You'll need three at the minimum, five seems like a decent basic design. **CustomerDetails** - Store the basic customer details. **Jobs** - A record of each and every job undertaken. **CustomerJobs** - A link between a customer and any job undertaken for that customer. *Optional*: **JobStatus** - Small definition table … | |
Re: Probably better to use an enum and to mark the tag with the enum, that way you can use a single method to find and activate the correct tab. Less messy than using a switch statement. | |
Re: I don't use Neo4j but it looks like a relational Entity style database. So, I would go with the idea that each table in the database should be modelled on your class. This would be a fairly standard way of modelling your database for this kind of work, in my … | |
Re: Because a library only needs to link what it uses. So if you have a library which uses another library.... Library 1: namespace MyNamespace.People { public class Person { String Name {get;set;} Int32 Age {get;set;} } } Library 2: using MyNamespace.People; namespace MyNamespace.DataModification { public interface IPersonModifier { Boolean SetAge(String … | |
Re: The hint here is that you need to draw a flow chart. Rather than thinking of a straight line, you will need to break off and create two parallel flows. Imagine you're standing in line at the coffee shop, the first thing the cashier asks is "What would you like?" … | |
Re: The most striking problem I find with your question is that it *tells you how to answer it*. It even gives you instructions... There's is *nothing* here that is difficult. Even for a beginner, it's simple maths (addition) and method calls (three of them). I'm guessing you haven't bothered to … | |
Re: If you apply standard graphics programming concepts in things like OpenGL and DirectX you have a concept of matrices which control the location and rotation of your objects. (Sure you've heard of things like WorldSpace, CameraSpace and ModelSpace) This involves pushing and popping matrixes to apply the transforms correctly. This … | |
Re: I'm with ddanbe on this one, sounds like whatever runs your network is picking up "suspcious activity" and disconnecting you. Unless you can get us a clear error code or stack trace that's about as much as I'd be willing to guess. | |
Re: Agree with most here. First, you need to start small. *Very* small. Space invaders is a good example. Build it, learn from it, go back and continually improve it. Gradually increase the difficulty of what you're developing. Be aware though, that "increasing the difficulty" doesn't mean "improving the graphics". So … | |
Re: > I use no queries here list.GroupBy(x => x).Where(x => x.Count() > multipleNr).SelectMany(x => x).Distinct(); That's a LINQ statement ;) | |
Re: I took your code and translated it into C#. The only problem I had was with your white spacing... Once I deleted your string literals and re-wrote them, the program produced the same output as your capitalised version except in lowercase. Here is the code I used in C#: class … | |
Re: I imagine this goes off and hits DirectX/OpenGL underneath. If the control itself doesn't have a property to set the background control it might be more of a "hack" than a correct way to do it. | |
Re: You need to bypass the event listener and construct your own loop code that reads from the port. The problem is that the event you have won't fire fast enough. Essentially you just need a tight `while` loop and check for data coming in. |
The End.