Categories
.net

You prefer emacs?

For all those developers who prefer Emacs, there it is in Visual Studio. Emacs shortcuts put of the box supported by the Visual Studio 2005.

The following shortcut key combinations mimic commands available in Emacs and are used while editing code in the integrated development environment (IDE).

Categories
troubleshooting

w.bloggar FTP Issue

I remember now one of the issues with w.bloggar: After doing all this setup stuff for the FTP, closing w.bloggar and starting the tool again, all the entries are gone. Well, if I have to rewrite all the settings again after I closed the tool, it looks somehow wrong to me.

Categories
tools

w.bloggar vs. Qumana

During the last few weeks, I traveled a lot. Eventually, I was looking for a way to blog offline. Today, I decided to reinstall w.bloggar at least on my desktop machine. As far as I remember, there have been some issues before. Also, I tried to install Qumana, another free desktop blog interface. Unfortunately, I was not able to set up a connection with my blog. So the tool only reported error #11004, which has no meaning to me.
Categories
.net

Threading in .NET

If you have some trouble in updating GUI elements in .NET because they are not created by the thread just running, try the following:

delegate void onSensorChangeParameterDelegate(int index, int sensorValue);
void kit_OnSensorChange(int index, int sensorValue)
{
    if (InvokeRequired)
    {
        BeginInvoke(new onSensorChangeParameterDelegate(kit_OnSensorChange), new object[] { index, sensorValue });
        return;
    }
    txtInfo.Text = String.Format("Index={0}, Value={1}", index, sensorValue);
}

 

So the method is handed over to the GUI thread, where txtInfo is a TextField, and processed there. Jon has written a great article about threading in .NET and how it can be done.