-
Replied To a Post in User groups/roles for application
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 … -
Replied To a Post in Passing an interface type by reference?
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 … -
Gave Reputation to Reverend Jim in New Life after Death Theories
Death doesn't have a point. Things just wear out. Evolution doesn't have a point. Evolution is just a process that occurs (mostly) as a result of random mutations. Life doesn't … -
Replied To a Post in New Life after Death Theories
> Death doesn't have a point. Things just wear out. > Evolution doesn't have a point. Evolution is just a process that occurs (mostly) as a result of random mutations. … -
Replied To a Post in New Life after Death Theories
Here's something for you deceptikon. Relating to evolution, life and consciousness. What is the purpose of death? Is it an evolutionary trait? If so, why? What is the point of … -
Replied To a Post in WPF Relay Command and Delegate Command
I would question the fact your design requires you to call two different methods with, or without, a parameter. Essentially in this case, you could keep your second definition and … -
Replied To a Post in Binding DropDownList's SelectedIndex to 0 if value does not exist
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 … -
Replied To a Post in New Life after Death Theories
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 … -
Replied To a Post in WPF Relay Command and Delegate Command
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 … -
Replied To a Post in Why we should use Sql or Access?
> 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 … -
Replied To a Post in How to Write a Byte [ ] Verbatim to a File
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 … -
Replied To a Post in [win32] - tranparent and opacy
If the window (this includes controls) is not a top level window, you cannot make it `WS_EX_LAYERED`, unless you're running Windows 8. So if you're trying to run it against … -
Replied To a Post in [win32] - tranparent and opacy
What type is `clrBackColor`? Is the window that you're trying to make transparent a top level window? -
Replied To a Post in Where can I learn C++ game development online for free?
http://www.gamedev.net is going to be your best free resource. -
Replied To a Post in Fall 2013 Anime Preview
> (99% harem/ecchi and 1% story is a terrible idea; IS2 I'm looking at you) There was story in IS2?? o.O -
Replied To a Post in Server Response Error:'Invalid ViewState'
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 … -
Gave Reputation to deceptikon in Windows Services Simplified
In my job I tend to write a lot of Windows services. Due to this I've pared it down to bare essentials so that the code is as simple as … -
Replied To a Post in Windows Services Simplified
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 … -
Replied To a Post in C# code error someone can help???
it looks lik eyou aren't setting `CurrentControl` to any value and therefore contains `null`. When your event handler for Click gets called, `CurrentControl.Add()` doesn't actually have a value. -
Replied To a Post in C# code error someone can help???
Please copy and paste the error you're getting. -
Replied To a Post in Member counters recalculated
I lost about 30 rep points but gained 12 places on the ePeen chart. o.O -
Replied To a Post in Job PHP Developer
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 … -
Replied To a Post in wpf
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 … -
Replied To a Post in Splitting a string, delimiters included
Damn, I missed that part about keeping the delimiters in. That's actually an easy change to make, but not worth it. Regex is far superior at this task, but I … -
Replied To a Post in how to buy my first guitar
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 … -
Replied To a Post in Splitting a string, delimiters included
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"; … -
Replied To a Post in Setting data source of oledbconnection
I would agree with deceptikon. Once you get into enterprise level systems, you wouldn't *want* to use the UI ;) A better idea is to have two SQL Connection Strings … -
Replied To a Post in Setting data source of oledbconnection
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.... -
Replied To a Post in C# Beginner Needs Help
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 … -
Gave Reputation to deceptikon in When does it become more efficient to pass by reference?
> So pass by reference basically boxes, or stores a pointer to the data type provided in the heap. No. Passing by reference doesn't box a value type. Let's also … -
Replied To a Post in When does it become more efficient to pass by reference?
Hmm, no. Your teacher is incorrect. C# can be compiled as either 32bit or 64bit. Meaning your memory pointers are either 4 bytes or 8 bytes. This was the same … -
Replied To a Post in Christmas is coming
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* … -
Replied To a Post in Pure C# to VB.Net Converter
What do you mean by a *pure* converter? -
Replied To a Post in SQL Database for a Technical support centre
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. … -
Replied To a Post in C# Help Credit.cs
What are you lost with? Sorry but we need you to be a bit more specific. -
Replied To a Post in When does it become more efficient to pass by reference?
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 … -
Replied To a Post in Open specific tab from another form
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 … -
Replied To a Post in Help
Okay, so the `Enumerable.Range(start, count)` generates a sequence of numbers. When you do the select on this it will perform the lambda of the select for each number in the … -
Replied To a Post in System won't stay powered on.
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 … -
Replied To a Post in Help
I cheated slightly...But here's a one liner :) using System; using System.Linq; namespace OneLineTest { class Program { static void Main(string[] args) { Enumerable.Range(1,5).Select(x => new string('1', x)).Concat(Enumerable.Range(1,4).Reverse().Select(x => new … -
Replied To a Post in Help
I've had some success, 3 statements is my smallest but still not a single one. I will continue this afternoon, I can feel it wanting to escape my brain ;) … -
Replied To a Post in Add Reference in Class Library (for external use)
Okay, I wrote a project for you to see. You will notice that the "TastyMeats" library includes a reference to System.Drawing. The "InteropLibrary" includes a reference to "TastyMeats" but *not* … -
Replied To a Post in Add Reference in Class Library (for external use)
Not if you abstract away from it you don't. Only the library that uses it directly. Hang about for 15 minutes I'll write you up an example. -
Replied To a Post in Help
No no, I haven't done it on one line, but I think it should be possible. It was a thought challenge :) -
Replied To a Post in need help ASAP
So first thing I see is that you don't add anything to your `toPay` variable when you select "Tea" and when you select "Coffee" you break out of your switch … -
Replied To a Post in need help ASAP
Can you post your new code block please? I know it printed it out last time so I'm not sure what you're doing wrong this time. -
Replied To a Post in Help
`Console.WriteLine("This is hard");` <-- One statement :) -
Replied To a Post in codes for this OOp
Now, honestly, it is in your best interests to see your lecturer. As soon as possible. There are three basic skills required for this assignment of yours; 1. Counting in … -
Replied To a Post in need help ASAP
If it's just that the console disappears before you see it, try adding `_getch()` just before you return from main. This will wait for you to press enter. You will … -
Replied To a Post in Help
Thinking about it, I believe this might be possible in a single statement. Bonus points if you can do it...
The End.