Topics - Ruffnekk [ switch to compact view ]

Pages: prev1 2 [3] 4 5 6next
11
Living Room / Knology Connection Speed Test
« on: February 15, 2007, 03:38 PM »
I stumbled upon a nice graphical connection speed test at http://speedtest.knology.net/. Take a look at the screenshot for an example (my own result).

Knology.png

12
Developer's Corner / C# TreeView problem
« on: February 15, 2007, 03:18 AM »
Hi,

I'm having a bit of a problem in C#. I have an MDI Form that contains a Treeview (directly on the form, docked left). The remaining space contains some MDI child windows.

When I programmatically add a treenode to the treeview at runtime, I want the user to be able to edit the default label text of the new node immediately. This saves the trouble of either a dialog to prompt for the name of the new element, or having the user click the node to change the name manually. The code I have so far:

        private void SelectAndEditNode(string id)
        {
            TreeNode[] temp = tvwProjects.Nodes.Find(id, true);
            if (temp != null && temp.Length > 0)
            {
                tvwProjects.SelectedNode = temp[0];
                tvwProjects.SelectedNode.EnsureVisible();
                tvwProjects.SelectedNode.BeginEdit();
            }
        }

The string id is the unique key and the Find function theoretically always returns one node. The code works fine, the node gets selected, is visible and the label of the node is in edit mode so the user can start typing a name.

The problem is, when I start typing a name, the label accepts one character and then the last active MDI child window is activated and the rest of what I type is put in the MDI child window:

Screenshot - 15-2-2007 , 10_16_48.png

If there are no MDI child windows then it works fine. I tried tvwProjects.Focus() before calling BeginEdit() but that makes no difference.

Any one got an idea?

13
LaunchBar Commander / Not appearing from autohide
« on: February 14, 2007, 12:01 AM »
Hi mouser,

I love your LaunchBar Commander but I have one problem using it: after the bar autohides I can only get it to appear by clicking the thin border and then resize the bar each time. This only happens after another application had the focus. Is this a know issue?

14
Living Room / DonationCoder Pocket PC Theme
« on: February 11, 2007, 03:03 PM »
I created a Pocket PC theme based on DonationCoder. It's suitable for all versions of Window Mobile and it's (of course) free to use for all :) The attached zip file contains the .tsk file to copy to your PDA or other Windows Mobile device.

CapScr0002.PNG

Credits and a kind thank you to nudone for creating the background image!

15
In Charlie Calvert's Community Blog there's an interesting interview with Anders Hejlsberg, the lead architect of C#.

In this video interview, Anders Hejlsberg, the chief architect of C#, describes features in the next release of C#, code named Orcas. Anders first describes how LINQ solves the impedance mismatch between the code that lives on a database server and the code we write with standard programming languages such as C# or VB. He then outlines the new capabilities that functional programming will bring to developers.

Pages: prev1 2 [3] 4 5 6next
Go to full version