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

bart7simpson7 bart7simpso​n7 0xCAFEBABE
  • IE download mechanism question

    I am generating an excel file on demand, then zip that with other files and then write that in the response stream so the user is prompted with the download dialog. The problem is that the response stream is opened right at the beginning but nothing is written until the files are completed so if that takes a long time, there is a timeout and the downloaded zip has 0 kb. A workaround was to make a readme file and write that in the stream right away so the download begins and and something is actually is written in the response to prevent the said timeout. This works on Firefox but in IE, if the readme is too small, the download doesn't start. Is there a browser internal buffer that causes that ? Can I set something in the header of the response to prevent that ? Thank you.

  • How to disable a ​Windows.​Forms button behavior

    It doesn't matter anymore. It was a stupid homework which I finished from 4 to 5 am in the morning before the deadline Tongue Out
    I had something like:


    Image buttonPlayDisabled;
    bool loaded=true;
    ...
    Assembly assembly = Assembly.GetExecutingAssembly();
    Stream stream = assembly.GetManifestResourceStream("MyProject.bitmaps.buttonPlayDisabled.jpg");

    if (stream != null)
    {
       buttonPlayDisabled = Image.FromStream(stream);
    }
    stream.Close();
    if(buttonPlayDisabled == null)
        loaded=false;
    ...
    private void playButton_EnabledChanged(object sender, EventArgs e)
    {
        if (!loaded)
            return;

        if (playButton.Enabled)
        {
              playButton.Image = buttonPlayOriginal;
        }
        else
        {
              playButton.Image = buttonPlayDisabled;
        }
    }


    If I don't change the image on EnabledChanged event, by default, a desaturated version of the image already on my button is put in place. And it looks kind of ugly. Is there a way to disable this behavior ? I don't really care so much now, but just out of curiosity Smiley

  • How to disable a ​Windows.​Forms button behavior

    I have a few buttons and I use custom images for hover, pushed, etc.
    I also have images for the disabled state. The problem is that when I change enabled to false, my EnabledChanged event fires and tries to change the image and also an internal event is fired that tries to desaturate the curent foreground and something very wrong happens and I get an out of memory exception.
    How can I stop it from desaturating the image and leave me do the job ?

  • Silverlight.​..meh

    I installed silverlight. In firefox I can see demos and stuff but the video player from channel9 is replaced by the "Get Silverlight" image. In IE works.

  • We need another trolling strategy

    Ray Allen is not a Seattle player anymore. One Allen less in the emerald city...

  • This is what Vaporware looks like...

    A new cool design would be great. Simple is ok. You just got it a little wrong. Nothing that can't be fixed Wink
    I hate Vista fonts and I have a crt so won't activate cleartype (it looks bad). Tongue Out

  • Niners where they live

    here

  • Suggestion for C9 developers ....

    My IP is used by a few hundreds of people. There are also people that are required to use proxy servers.

  • Which mice do you use?

    Both my wrists are red and hardend from the friction with the mousepad&keyboard Sad It's bad...

  • Milan vs Liverpool

    I am an Inter fan and I don't like the pure, old fashion, mostly physical English football that Liverpool is playing so I am completely neutral. Both teams have the same chances. Milan won so easily because MU had no defense due to injuries, suspensions, etc. With Liverpool, which doesn't have the same attacking mentality as MU had, a strong defense, all players participating in both phases of the game, the Italians will face a much tougher opponent. Two years ago Milan was clearly the favorite. Today I see a plus for Liverpool. It's all down to luck and maybe the genius of some players like Kaka to turn the tides...

    PS: I like rugby best but I only follow the world cup.  I also watch NBA. I would like a Utah - Cleveland final and Utah to win but we will have a Spurs-Pistons final and the Spurs will win it again.Big Smile