Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

PerfectPhase PerfectPhase "This is not war, this is pest control!" - Dalek to Cyberman
  • Anonymous methods

    That's a shame, using anonymous methods in control.invoke seem, well, natural.

    One other thing is there a general perpose parameterless delegate in the framework?  I tend to use ThreadStart but it's a bit missleading when you read the code back

    Thanks anyway,

    Stephen.

  • Anonymous methods

    Oh, I have the Feb CTP and get

    Error 1 The best overloaded method match for 'System.Windows.Forms.Control.Invoke(System.Delegate)' has some invalid arguments D:\devwork\VirtualBox\VirtualBox.Lines.Standard\Visualiser.cs 54 10 VirtualBox.Lines.Standard


    Error 2 Argument '1': cannot convert from 'anonymous method' to 'System.Delegate' D:\devwork\VirtualBox\VirtualBox.Lines.Standard\Visualiser.cs 54 24 VirtualBox.Lines.Standard

    Stephen.

  • Anonymous methods

    I have a chunk of code that looks like this


    public delegate void MyDelegate();
    private void DataReceived (object sender, GenericEventArgs<byte[]> data)
    {
    MyDelegate d = delegate
    {
    rtbLog.AppendText(data.Value.ToString());
    };

    rtbLog.Invoke(d);
    }


    Surely there must be a way to write it like this


    private void DataReceived (object sender, GenericEventArgs<byte[]> data)
    {
    rtbLog.Invoke(delegate ()
    {
    rtbLog.AppendText(data.Value.ToString());
    });
    }


    Just can't see how!

    Stephen.

  • how original!

    harumscarum wrote:
    Was flipping through the channels and I saw this: http://www.nbc.com/nbc/The_Office/ . *sigh*


    Looks like thats another great show trashed

    http://www.bbc.co.uk/comedy/theoffice/

    Stephen.

  • I Fully Support Mr. Grimes, .NET is NOT the right technology for US as a C++ programmer

    leighsword wrote:

    everything is OK before Longhorn is released.



    Not 100% sure on this but you should still be able to call into WinFx via COM Callable Wrappers from unmanaged code. 

    Any way all the existing API's should still work with longhorn, you just will not get seamless access to all the cool new toys Smiley

    And there will always be a need for unmanaged C++ for kernel/driver type work, right tool for the right job and all that.

    Stephen.

  • Response.​Redirect?

    Rake wrote:
    it just says line error

    Server.URLEncode()-ing the Session("username")



    Please tell me you didn't actuall type the '()-ing the..' bit but instead typed

    Server.URLEncode (Session("username"))

    having first checked that Session("username") is not null?

    Smiley

    As for redirect

    http://www.devguru.com/Technologies/asp/quickref/response_redirect.html

    Stephen.

  • No IP Adress Assigned

    weecohiba wrote:
    I have had a wireless network opertaing for over a yera now. I have a server, through which  three laptops hang off and connect to the internet. Now all of a sudden the server is not assigning an IP adrees to the laptop. This seems to be intermittant, some times it works ok other times I cannot conect. This can happen to one or more laptops and at the same time the other laptops work perfectly. I can see the wireless network and can connect to that ok, however when you ping the host it says 'destination unreachable.


    I've had this happen on several wireless systems,never found a good answer, I normally end up puting a staic address into the 'alternative config' tab under TCP/IP

    Stephen.

  • Command windows control

    Does anyone know where I can get a simple winforms control that functions as a command prompt?  Something like the command window in VS.  I don't want it do actually do anything just fire an event to me when the user presses return, and provide me with a way to write some simple text back to it CLI style.

    I know it wouldn't be that hard to write from scratch but it's late and I can't be bothered Smiley  I'm sure something like this must be common requirement and be in a library somewhere!

    Thanks

    Stephen


  • C9 Video sync to PDA

    I have finally got round to getting a Windows Moblie pocket PC and was wondering if there are any nice apps for it that can be used to grab a copy of all the new videos off of C9 so I can sync the thing in the moring and take the videos to watch on my way to work?

    Thanks

    Stephen.

  • I Fully Support Mr. Grimes, .NET is NOT the right technology for US as a C++ programmer

    leighsword wrote:
    Buzza wrote:
    leighsword wrote: another problem about .net Deployment.
    why i need to release System.Data.dll when i am only use System.dll in my application?


    What do you mean by release??


    our application is only use system.dll(or mscoree.dll,etc),even so,we need to install full 25M size runtime(include system.designer.dll,etc).



    The point is the run time is system wide, it is not meant to be installed to target any one app, so going with that idea, the install has to install all the assemblies.  The plus side to this is that you only have to install the framework once and any framework app will run.

    If your going to write an installer, rather than worry about part shipping the framework, either pubish two installers, one with the framework install and one without or have the installer check for the presence of the the frame work and download it only if required (much like the Express installers)

    Stephen.