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
M

Marc 0

@Marc 0
About
Posts
305
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 9550 or Ti4200?
    M Marc 0

    An old PC is lying around here with a Nvidea GeForce 4 Ti4200 graphics card in it. Now i've got a newer PC with a Ati Radeon 9550. The question is: which one is better for gaming purposes (should i swap them)? The 9550 is a lot newer, but a lot cheaper too. The new system has a Athlon64 3200+ and 1024 Ram. And would it be good if i bought a new videocard for 50 to 100 euro's, or won't that be much improvement? Thank you :)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    Hardware & Devices question csharp com graphics

  • gold, or just true gold.... [modified]
    M Marc 0

    Thank God it has SLI :-D


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge com announcement

  • Why Vista?
    M Marc 0

    Christopher Duncan wrote:

    what will I actually be able to do with Vista that I can't already do with XP?

    Set volume for each program separately (something i wanted for the past 5 years) :cool:


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge com security question career

  • .Net Drawing2D Layers like Photoshop and Gimp
    M Marc 0

    Maybe you should look at VG.Net (see sig). I use it for something a bit similar, and i like it a lot! (it ain't free though..) (Hope it's ok to 'advertise' for a product i like and use, i'm not affiliated with VG or something)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    .NET (Core and Framework) graphics csharp adobe tutorial question

  • [Message Deleted]
    M Marc 0

    Manaxter wrote:

    PS. Do I need to add it (l_IndexLabel) to a collection? Even if its part of the Slide class?

    You're on the right track: this.Controls.Add(l_IndexLabel); You only have to add it once, so the Slide constructor is probably the best place to add it.


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    .NET (Core and Framework)

  • Missing Language Feature
    M Marc 0

    Yeah it sucks, all those namespaces. Importing them all at the top of the file makes a very long intellisense list, and not importing them makes very long code lines. What about namespace/class importing in brackets?

    namespace SomethingCompletelyDifferent
    {
    ...
    using Foo.Bar.Fuzz {
    string s = GetIt(OptionsForGetIt.Current);
    }
    ...
    }

    BTW, in VB.Net (don't laugh people :rolleyes:) you can do Imports Fuzz = Foo.Bar.Fuzz or Imports FB = Foo.Bar You can't do that in C#?


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge html com tools question

  • Article Rating
    M Marc 0

    UltraCoder wrote:

    a classic 80's game.

    Ah, the joy of being the first with a Nokia 3310 at primary school, and everyone wanted to play Snake 2 on it... I still use a 3310 now (my third one), haven't moved much forward in 6 years. ;)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge question com

  • Friday Programming Quiz [modified]
    M Marc 0

    Yeah piece of cake: return (new [UniqueStringList](http://www.codeproject.com/csharp/uniquestringlist.asp)[[^](http://www.codeproject.com/csharp/uniquestringlist.asp)](csvString.Split(new char[] {','})).ToString("", ",", ""); It is kind of cheating though ;P


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge debugging

  • How can I wait for a given seconds without blocking.
    M Marc 0

    Sorry, can't give an example, i never had to use it as fart as i remember. :) A workaround[^] is, as the name states it, that you work around a bug or other weird thing instead of solving the bug/weird thing. Sometimes you can't solve that problem because it's not your fault, and you dont have access to the problems code and so on. Then you have to work around it. :)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    C# csharp visual-studio question career

  • How can I wait for a given seconds without blocking.
    M Marc 0

    Hehe you're welcome :) DoEvents sort of flushes all the windows messages (from the controls and stuff). A method usually isn't supposed to 'hang' for 2 seconds. Like the poster above me said, DoEvents is mostly a workaround, don't use it too often. ;P


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    C# csharp visual-studio question career

  • How can I wait for a given seconds without blocking.
    M Marc 0

    Maybe somthing like this?

    int b;
    int c;

    private void doNothing_Important(){
    int a = 5;
    b = 6;
    c = a + b;

    // make timer, set to 2 seconds, add handler, start it
    System.Windows.Forms.Timer tim = new System.Windows.Forms.Timer();
    tim.Tick += new EventHandler(tim_Tick);
    tim.Interval = 2000;
    tim.Start();
    }
    private void tim_Tick(object sender, EventArgs e){
    // stop timer, remove handler, dispose it
    System.Windows.Forms.Timer tim = (System.Windows.Forms.Timer)sender;
    tim.Stop()
    tim.Tick -= new EventHandler(tim_Tick);
    tim.Dispose();

    // do your thingy
    b = c - 1;
    }


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    C# csharp visual-studio question career

  • set control location on runtime
    M Marc 0

    Maybe this?

    theTopLevelForm.SuspendLayout();
    // set the locations
    theTopLevelForm.ResumeLayout();


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    C# database

  • Converting form C# alias type to .NET framework type
    M Marc 0

    I think it's easier to make a switch yourself than to try to find that table, which doesn't even have to exist (MSIL optimization and stuff).


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    C# csharp dotnet com tutorial question

  • [.net] Rich Text Box Font Size
    M Marc 0

    Crap. You could do it one char at a time, but i think it's going to be slooooooow. I'm going to bed now, good luck with it :rose:


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    Visual Basic csharp question discussion

  • [.net] Rich Text Box Font Size
    M Marc 0

    Maybe you can first select all the text, and then change the selectionfont.

    'Dunno if this works:

    'select all text
    rtb.SelectionText = rtb.Text
    'change font (only size so use old font)
    'i don't know what happens if there are different fonts involved in the selection..
    rtb.SelectionFont = New Font(rtb.SelectionFont, 12.0!)
    'deselect the text
    rtb.SelectionLength = 0

    You could also look at the RichTextBoxExtended article.


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    Visual Basic csharp question discussion

  • It's Good To Be Left
    M Marc 0

    Some time ago, i read somewhere that on average, left-handed people also die a couple of years earlier than right-handers.. We'll see, lets look if i can outlive my left-handed little brother :)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Back Room com xml question announcement learning

  • Where do i start? [modified]
    M Marc 0

    Hey everybody :-D Ok so here i am, programming a bit for 2 years now (VB.Net 2003). And now i got a lot of data, like 30000 items with many properties and stuff. From all those i want to select only a couple based on those properties and then do stuff with it. So i was thinking about a database. But were do start? I was reading some tutorial and they started with a connection string, but how do i know which connection i have? Do i have to install something? Database stuff is a huge black hole in my head, so any help would be welcome :)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net || -- modified at 0:53 Tuesday 11th July, 2006

    Database question csharp database com

  • Test Your Brain Speed
    M Marc 0

    127 ms, and i'm only 17... :wtf: Edit: Second time i got 55 ms, so that puts me in average. I guess my brain was to slow to understand the test the first time. ;P


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net || -- modified at 18:28 Sunday 26th March, 2006

    The Lounge php com performance

  • Coding Competition!
    M Marc 0

    Those awful JPEG artifacts... :sigh:


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge c++ com

  • Recommend a game
    M Marc 0

    AJ123 wrote:

    1.5ghz 512mb

    You call that low-end??? My laptop is 233 MHz... Anyway, try Red Alert 2 (maybe with the Yuri's revenge addon). It is 2D, and very addictive. :)


    "..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick


    || Fold With Us! || Pensieve || VG.Net ||

    The Lounge game-dev
  • Login

  • Don't have an account? Register

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