Everyday’s troubles with Microsoft .NET

Heh, I wanted to reset my .NET Password yesterday as soon as I registered, when it turned out I can’t log in to Windows Messenger with one that contains question marks and the confirmation mail was sent like 12 hours afterwards…

I thought their response time would be better than any other little site’s.

Anyways, I was planning to write something about problems with .NET API I had until now, but I don’t have the time, so I’ll just name them.

1. I found no way to access the dropdown list that pops below a combobox. I wanted a tooltip to show as I hover my mouse over the list showing the full text of an item below the cursor.

2. Poor options of controlling the ToolBar and MainMenu controls(?). What I miss the most is the ability to handle right-clicks on them and generally ToolBar buttons not being controls. A different issue is that ToolBar buttons seems kinda high when they got only text and no icons.

3. Most controls lacking some default drag and drop start event like TreeView has (TreeView.ItemDrag Event).

4. Poor options of arranging the Z-Order of controls. Control.SendToBack and Control.BringToFront aren’t really enough. When I wanted to add BringForward and SendBackward methods I had to use WinAPI’s GetWindow and SetWindowPos functions. Luckily the order of controls in Control(Form).Controls collection changes according to their Z-Order.

5. I tried to use the DataSource property of a ComboBox with a DataTable once. Unfortunately it turned out that it doesn’t work properly with the DropDownStyle set to DropDown. It wouldn’t update the Text property correctly as I write the text instead of chosing an item from the list. That’s when I decided to use AddRange instead and add a collection of data rows encapsulated in my own class that allows deciding which column is to be shown in the dropdown list and which to choose as a Text.

Windows Forms are good, but every time I want to handle something more complicated than entering text or changing selected items I find it missing in the API. Writing your own Controls might be the best choice in such occasions, but then you’re losing the advantage of XP visual styles… Well, maybe one day I will rewrite all of the controls so they act as I want them to and look like whatever I please.

Advertisements

2 thoughts on “Everyday’s troubles with Microsoft .NET

  1. Andrzej says:

    Yo man! Dear lord… .NET (bleh)hey filip, how is it hanging man? Merry Christmas and a Happy New Year!damn straight!dre dog east side pranksta a.k.a. "cierech"

  2. Filip says:

    Yo. :]Merry Christmas to you too!.NET is not bad. I actually find it to be the most friendly API I ever saw. :]You could chat to me on gadu-gadu sometimes too, you know?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s