Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nick Parker

@Nick Parker
About
Posts
4.4k
Topics
370
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • webservice return
    N Nick Parker

    brsecu wrote:

    when i run that (see the code below) I get this error. Class1 cannot be serialized because it does not have a parameterless constructor.

    Just add a default constructor as well that has no parameters:

    public class Class1 : WebService
    {
    // default constructor
    public Class1(){}

    // overloaded constructor
    public Class1(string s1, string s2, string s3)
    {  
    // ...your code here
    }
    

    }

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# question

  • webservice return
    N Nick Parker

    You are close, now you need to provide an overloaded constructor for Class1 to take your 3 string arguements. It would look something like this:

    public class Class1 : WebService
    {
    public Class1(string one, string two, string three)
    {
    this.one = one;
    this.two = two;
    this.three = three;
    }
    public Class1 Hello()
    {
    return new Class("1", "2", "3");
    }
    }

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# question

  • No more stored procedures
    N Nick Parker

    Miszou wrote:

    asking me not to use any server-side functions, stored procedures, views or queries and to keep all database coding within the code itself - just in case we need to change databases or sell to a client that doesn't use the same database that we do.

    If that is his concern, you could look at using NHibernate[^] or ActiveRecord[^] from Castle[^], this will allow you to be database agnostic.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge database csharp sql-server com sysadmin

  • That's it, I'm ditching CVS!
    N Nick Parker

    Trollslayer wrote:

    About time, CVS is the worst system I've used.

    Apparently you've never used VSS.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge linux

  • That's it, I'm ditching CVS!
    N Nick Parker

    Joergen Sigvardsson wrote:

    I'm switching

    Welcome to the group. :-) I am curious how your conversion goes from CVS.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge linux

  • Issue tracking system
    N Nick Parker

    Joergen Sigvardsson wrote:

    You switched from VSS, right?

    Yep, we had a script remove the extra junk that VSS included within project files. Our process didn't take very long, however I would recommend making a backup (for safety reasons). I seem to recall a script a while back called cvstosvn, however if memory serves me it was written in Perl, so that may be your voodoo. IMO, if you can test out your transfer against a backup, the "voodoo" could be acceptable considering it should be a one time occurance.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge com design help question

  • Issue tracking system
    N Nick Parker

    Joergen Sigvardsson wrote:

    It's been a while since I saw you around here. Been busy?

    I've been swamped, we recently had a tragedy at work[^] , but I've been trying to get back to normal, including my CP lounging. :) If you are coming from CVS I think you will feel very much at home with svn, we switched to svn this summer and have been much happier since. It also made things run much smoother with the projects CruiseControl.NET monitors for us.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge com design help question

  • Issue tracking system
    N Nick Parker

    Joergen Sigvardsson wrote:

    Well, I'm always hesitant to fix something which isn't broken.

    Totally understandable BTW.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge com design help question

  • Coding Equals Operator
    N Nick Parker

    Tom, The following pages from the .NET Framework General Reference should be of help: Guidelines for Implementing Equals and the Equality Operator (==)[^] and Implementing the Equals Method[^]

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# csharp c++ graphics tutorial question

  • Issue tracking system
    N Nick Parker

    Joergen Sigvardsson wrote:

    I guess I'll just have to cave in and convert my repositories to Subversion

    You make that sound bad, at least your not being asked to use VSS. ;)

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge com design help question

  • Back link
    N Nick Parker

    This question belongs in the ASP.NET forum.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# database help question

  • .NET 1.1 application performance in Windows 2003 Server
    N Nick Parker

    That's a fairly broad question, have you tried profiling the application? If you don't have a commerical profiler, try the CLR Profiler[^] from Microsoft.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# csharp sysadmin performance help question

  • How can i asign dataset to crystal report
    N Nick Parker

    You might find this[^] documentation on MSDN helpful.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# design help question

  • data stucture
    N Nick Parker

    So you just want a class represenative of your root that contains an array of each unique class?

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# help

  • detecting keystrokes...How?
    N Nick Parker

    You need to override the ProcessDialogKey method of the form. The follow code will allow you to block ALT-F4 from closing your application.

        protected override bool ProcessDialogKey(Keys keyData)
        {
            Keys altf4 = Keys.Alt | Keys.F4;
            if (keyData == altf4)
            {
                return true;
            }
            return base.ProcessDialogKey(keyData);
        }
    

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# question help

  • "How can I call a function from another form"
    N Nick Parker

    Christian Graus wrote:

    We need a FAQ, and this needs to be the first item on it. In fact, I thought we had one ?

    This has been a long....long...did I say long running feeling. Heath Stewart and I started one about 3 years ago. I don't think it ever came to fruition.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# question csharp winforms help tutorial

  • getting an HTMLInputElement using mshtml.dll
    N Nick Parker

    Post the sample code you are working with.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# help question

  • SSL Connection?
    N Nick Parker

    Jason, What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    ASP.NET security help csharp asp-net com

  • Test Driven Dev
    N Nick Parker

    Marc Clifton wrote:

    I will say one thing though--I still can't write the test first. I have to write at least stubs for the actual code and then write the tests. It's because I do a lot of architecting when writing the code itself, as, ironically, I haven't found any decent code architecture/design tools--tools that don't hinder the creative process.

    We recently had a break out discussion at our local user group over the topic of TDD, and this was one of things covered. The one thing I try to keep in mind is: "Describe what it needs to do, not how it needs to do it". You really have to change the way you think about writing code, if you can't do that, there will be major hurdles you will have to deal with later on. My 2 cents. :-)

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    The Lounge csharp wpf com testing debugging

  • adding custom menu items to axwebbrouser Context menu [modified]
    N Nick Parker

    If you are using Visual Studio 2005, you can use the System.Windows.Forms.WebBrowser[^] and attach a ContextMenuStrip.

    - Nick Parker Microsoft MVP - Visual C#
    My Blog | My Articles

    C# csharp database com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups