I guess they made that property and similar ones readonly because behind the scenes it requires a new font handle to be created, so that might as well map to a new font object being created. Seemed odd to me at first, but it's not much of an inconvenience.
Me.Font = New Font(Me.Font, FontStyles.Bold)
Or whatever it is.
Just make your own Add, Remove and whatever else methods, and do it however you like. You could use a Collection, Array, SortedList, it's your listbox so you decide how you want to manage the items.
Just think about it. You'll have to have your own collection of ListItems instead of the default and override the Add method just like TheIrishCoder suggested. It's up to you to write the code to support it.
Properties for Font objects are generally specified in the class constructor. If you want to modify an existing font object, you can pass it to the constructor of a new one and modify parameters there.
Look in the .NET forum at the URL I posted yesterday. If you search that page for "listbox", I'm fairly sure I saw a link to a tutorial on ownerdrawing in the .NET framework.
Investigate Designers.
Designers are what the framework uses for design-time interaction with Windows Forms Control, and it is a massive topic. A search on Google should yield an article by Shawn Burke all about how to use them and control your controls interaction with the user at design time.
You can't realisticly create ActiveX controls in VB.NET. You have two choices, either an ActiveX control or a Windows Forms Control. If your control is only going to be used on .NET platforms, go with the latter. Otherwise, drop back to developing with Visual Basic 6 and make an ActiveX control.
I actually find it easier. I use the Search option in the IDE and set the filter to Visual Basic and Related, then I can avoid getting results that aren't relevant (to a certain extent).
No I don't, sorry. That error would indicate what I said before, that you haven't referenced the correct DLL. That doesn't just mean with an imports statement, you have to add the DLL to your project referenced too.
There *is* something in the framework that allows this, but it's hidden away. Search on Google for "FolderNameEditor". I haven't used it beyond a quick example, but it works. It shows the folder selection dialog.
You'll have to keep a reference to the thread object you create, then use that to stop it. If the class creates the thread, perhaps you could return the thread object in the function that creates it or something?
I'm at work and don't have the code in front of me, but I've done this a lot at home and I will try to remember. I don't think you need any of the things Thinker mentioned, the IDE will perform the task that the two command-line tools he cited do.
Dim imgBlah As Image
imgBlah = Image.FromStream(Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("mynamespace.myimage.bmp"))
Try that.
Take a look at the Font class constructor. One of the methods is to specify a base font and a new size, so doing something like this:
Label.Font = New Font(Label.Font, 18)
Ought to do it for you. Something like that anyway.
The only thing I can suggest is a complete reinstall of VS.NET, what you're describing sounds very weird - you might have more luck posting in the Microsoft newsgroups. Such an application as you described compiles in less than a second for me.
You're not supposed to use the Winsock control in VB.NET.
The System.Net namespace contains classes for communications, including TcpClient and TcpListener which are replacements.
Everything in .NET graphics is in pixels. If you want some other coordinate system you will have to implement it yourself, or check out the Graphics.ScaleTransform method. I hope you know matrices.
You could translate (0,0) on your form to screen coordinates using the PointToScreen function, and then compare those with the .Left and .Top properties to get what you're after.