Skip to content

C#

C# discussions

This category can be followed from the open social web via the handle c-065f1d12@forum.codeproject.com

93.7k Topics 383.1k Posts
  • !!!Cookies!!!

    question help
    4
    0 Votes
    4 Posts
    0 Views
    J
    Original ASP had the problem where the session object wasn't webfarm friendly, so you had major scalability issues involved. With ASP.NET you can use a SQL Server Database to store the session data or an out-of-proc server (exe) on the network to host it; so it is webfarm friendly and thus scales pretty well. Now of course session data is going to take up RAM on the server the session is stored on; but how much data is really being taken up per session? Probably not enough to make it matter. James Simplicity Rules!
  • Checking to see if a cookie exists

    question
    5
    0 Votes
    5 Posts
    0 Views
    G
    :cool: werkin :cool: I see the logic, you have to check to see if the Cookie exists before checking to see if the cookies key exists or has any data... Seems to be 100% Thanks :)
  • Hey james it didn't work

    help
    9
    0 Votes
    9 Posts
    0 Views
    N
    It's cool, When I first stepped into C#, I kept having Java flashbacks and use non-existant classes like StringBuffer and StringTokenizer. Cheers
  • Center Child Window in SDI

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    J
    You can always position it manually; child.Location = new Point((ClientArea.Width - child.Bounds.Width) / 2, (ClientArea.Height - child.Bounds.Height) / 2); James Simplicity Rules!
  • Property vs Attribute

    csharp c++ visual-studio performance question
    4
    0 Votes
    4 Posts
    0 Views
    N
    Stick with Properties when appropriate. The Property Grid likes them, the debugger likes them, and Serialization likes them. Go with the flow, it will make your life easier... Regards
  • Connection StringII

    csharp database help question
    6
    0 Votes
    6 Posts
    0 Views
    N
    My passwords work :-D, Sorry... I did notice your connection string had quotes (in the root of this thread) around the password, get rid of those... Regards
  • New VS.net

    csharp visual-studio question
    8
    0 Votes
    8 Posts
    0 Views
    L
    In my EULA for VS.NET academic, it says I can install the software on up to three computers. You shouldn't have any problems unless you chnge your hardware more than two times. Then you'll have to call good ol' MS to get it straightened out. James
  • C# colour picker ???

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    N
    Just the good old Color Dialog is truly documented. I did notice a number of color pickers in the C#/Controls section here on Code Project. Regards
  • How to play WAVE sound from resource?

    tutorial hardware question learning
    5
    0 Votes
    5 Posts
    0 Views
    S
    Yesss, now it works!!! Thanks a lot!!!
  • ArrayList modify Items

    data-structures
    2
    0 Votes
    2 Posts
    0 Views
    N
    :wtf: What? Did you try the indexer? i.e. MyObject o = (MyObject) myArray[i]; // Party on o . . . Regards
  • Number only text box

    csharp c++ question
    4
    0 Votes
    4 Posts
    0 Views
    O
    The Answer is... http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=160478&fr=51#xx159561xx
  • Gui controls & Threads

    data-structures question
    4
    0 Votes
    4 Posts
    0 Views
    L
    you should go down to TVN_GETDISPINFO in a WndProc override
  • KeyPress

    question
    6
    0 Votes
    6 Posts
    0 Views
    R
    jap - thats the way it goes. keypressed is somewhat focussing on characters (in fact, the type of the KeyChar-property is char) special keys (like arrows/functionkeys/etc.) you can only handle using keyup/keydown (the KeyCode-property in there is of the Keys type) :wq
  • C# Wizards?

    c++ csharp tutorial question
    6
    0 Votes
    6 Posts
    0 Views
    B
    why just don't create one ?? you only have to make some panel with the things you need in and calculate the number of panel(windows) in an array and play with Next and Back using the array
  • Text Width

    tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    A
    Thanks mate! Just what I needed :). Now just what I need is some sleep :-D! Thanks again, -- Andrew.
  • list view items

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    J
    The problem you are seeing is because you are only adding the string which represents the process name to the list view, instead you need to add the Process object itself. private void Form1_Load(object sender, System.EventArgs e) { Process[] MyProcArray = Process.GetProcesses(); foreach (Process MyProc in MyProcArray) { ProcessesList.Items.Add(MyProc); } } HTH, James Simplicity Rules!
  • Multi monitors

    question tutorial
    7
    0 Votes
    7 Posts
    0 Views
    P
    Your Welcome! I am glad that you figured it out. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • ShellExecute ?

    csharp question
    9
    0 Votes
    9 Posts
    0 Views
    J
    Christian Graus wrote: be using a slashdot screensaver I think they're running SETI :) James Simplicity Rules!
  • ListView.Items.Contains() problem...

    help csharp tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    L
    D'oh! That was an embarrasing one... . Thanks for the heads up Neil. Greatly appreciated! :) Now if only I can get the Contains method to work...
  • Number only edit boxes ???

    question
    7
    0 Votes
    7 Posts
    0 Views
    M
    I do it in KeyPress. :) Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd