Dear Microsoft…
I take it all back. I was mistaken. I was wrong. Please forgive me. Ok, well, I take much of it back… Most in fact. I will never forsake you again…
So what has caused this change of heart? Well, I did some more playing with VB.NET, deciding to actually see what would happen if I used the TAB control with the TABs on the left, even though the text was not visible in design mode. And, shock horror, the tabs displayed correctly, with the text 90 degrees on its side. So I was wrong.
I have also been working on the TreeView control, wanting to change a font to Italic for some of the items on the tree. The code for this is not as straight forward as I would have assumed. The problem is that there is a font paramater, but I found out during the debugging session that this is only an over-ride setting. It is no use until you put something in there. So I needed to grab the base font from the control, and use it in the following way…
Dim f As New Font(TreeView1.Font, FontStyle.Italic)
n.NodeFont = f
And this worked. I also needed to change the font colour – this was done with the .ForeColor property on the node, and did what I needed it to…