Jump to content

fwm

Member
  • Posts

    36
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Denmark

Posts posted by fwm

  1. Folks, don't use Shell in .NET.  Use what has already been suggested, Process.Start.  I couldn't even get Shell to work in my build of Visual Studio for whatever reason but Process.Start worked great.  Obviously, Microsoft wants us to get away from the Shell command.  I'm more than happy to oblige.

    That's probably because you tried in C#, the Shell command is VB(.NET) only!

  2. How about assigning a variable ???

    like

    DIM X as string = "defrag C:"
    X = """ & X & """

    shell(X)

    it does not seem to work if i set a variable to assign a value to the shell

    i would have to type hard code it for it to work...any alternative?

    ps: if assign X to a label would get

    "defrag C:"

    antcheah

    As I said, you should use the System.Diagnostics namespace, and the class Process will take care of that for you.

    Like an example:

    using System.Diagnostics;

    private void startProcess(string Path, string fileName)

    {

    Process install = new Process();

    install.StartInfo.WorkingDirectory = path;

    install.StartInfo.FileName = fileName;

    install.Start();

    }

    And then in your code you execute like this:

    startProcess("C:\", "file.exe");

    Above was just to show the options, you could do it like this:

    Process.Start("C:\file.exe");

    You see the potential?

  3. where are you stuck at FWM? or dont you want help yet heh. i got stuck in the game once, slapped myself in the forehead when i figured out where i was supposed to go :)

    Yeah I could use some help!

    I'm stuck in Part 1, Chapter 4, I just came to the apartment, where the recorder is monitor my apartment, and then MY apartment blows up(funny scene), I go out the hallway, proceed to the end of it, shoot ther bad guys! I go up the stairs, and then their is that door requiring a password! And there I'm stuck! A friend told me I should find some man cleaning grafitti from walls, but I can't get anywhere, only way I can go I back where I came from! I don't get it :rolleyes:

  4. ... and the third one was the best! ...

    Dear god, i hope you're joking. :)

    No I'm not! I know it's better than the second one... but it's waaay to long since I saw the first one, it might be better than I remember!

    But I really enjoyed the third one, lots of crazy s*** :rolleyes:

  5. Yeah, me too! I think they can go one with that show for, like, ever! The first one was great, the second one was good(except the lesbian scene, that was great), and the third one was the best! That's very rare... so maybe a fourth one, wont be such a bad idea? :-)

  6. I have been a Smith fan for years...ans this jlo and ben crap is getting on my nerves! To see Kevin fall into this stupidity makes me question his reasons for being in the film biz. I for one am truly disapointed in Kevin's casting in Jersey girl.

    :/

    |Drew|

    First off, Jennifer Lopez and Ben Affleck is not bad actors! Ever seen J.LO in Out of Sight? She can play other characters than sweet and romantic ones, and I enjoy her on movies! Ben Affleck is AWESOME, I love that guy. I haven't seen Gigly, only heard bad things about it! If they play bad, it's probably the director we have to blame... he tells the actors how to act! And who knows, maybe it's not that easy and relaxing to act with your girl/boyfriend?

    From the first time I heard about Jersey Girl, I was abosulely thrilled... I just couldn't wait! Offcourse I got a little disappointed that Kevin Smith wouldn't make more movies with Jay and Silent Bob(Strikes Back were the best comedies ever). But with Kevins intelligens, the way he uses the words, his humor... I haven't had one doubt, for one single second, that this movie wont be one of his best! Offcourse he's going for the more serious humor(like Chasing Amy, but also a great movie), instead of the Clerks/Mallrats style of humor! But come on, he's gotta grow up sometime...

    But, I do understand your consern about him changing his concept on movies, when you're used to the weed, dick and fart jokes, and knows he'll go for something like this(I was too for a second, but hey, it's Kevin Smith we're talking about. But again, don't worry... the movie will be great!

    He's also is associated with Scary Movie 3, if anyone should be interested! He have assisted with the script, so we aren't completly done with Kevins usual dick jokes!

  7. Jedi Academy is a cool game, though not as cool as Jedi Outcast! Jedi Outcast were one of the best games last year! You can't say the same about Jedi Academy! But hell, everything that contains a lightsaber, has my instant attention!

    Can't wait for Star Wars: Knights of the Old Republic!

  8. I'm using StyleBuiler, to modify some themes for own use! I usually modifying the progress bars to show one solid, instead of individual chunks!

    But when I import a theme, change two values and modify the images, compile and run it, the 'common tasks' in explorer(the left frame with panes like File and Folder Tasks, Other Places and Detail), does not apply the xp style, but only shows in borring Windows Classic style!

    The same thing happens when I import a theme, and just compile it right away without modifying anything.

    What can I do to prevent that?

    Thanks in advance yo :)

  9. wI-OSMAN: Really? The one in Longhorn can't do anything. It does the things Microsoft wants it to, and it's not like they are that creative with it.

    For Dashboard, anyone who knows .NET can make his own component.

    If just MS would allow thirdparty panes for their Sidebar, it would be ok, but as asual, they wont!

  10. Robert De Niro as the G-man... maybe Brad Pitt as Gorden(when he has that beard). Shannon Elisabeth as the girl in Half-Life2. And finally Morgon Freeman and George Carlin as two scientest!

    That would be my choice... couldn't really think creative :)

  11. Well, C# is very much simelar to c++. Some even compare the syntax closely to Java/J#.

    The two biggest differences between C# and C++, are that C# doesn't use pointers, and it natively supports properties.

    There a lot of books about C#, so it's just a matter of spending some bucks on one of them, I recommend Sams Teach Yourself C# in 21 Days. Sams books has always been great.

    That's all you get from me :)

    I recently made a switch from VB6 to VB.NET, and I must admit, I hate the VS.NET interface, can't get used to it. But the code-writing is great though!

×
×
  • Create New...