Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. divil

    Handles

    Make yourself a sub with the right method signature, then use AddHandler: AddHandler button.Click, AddressOf MyFunction
  2. I did this once before, I used the methods of the System.IO.Directory class instead of the FileSystemObject. A useful hint is not to recurse all files and folders until the user expands each directory in the treeview, just recurse enough to figure out if the directories need a + before them.
  3. Yes, tell me about it. They provide a helpful statement saying everything to do with graphics has changed, but no further detail. Actually, taking a good look at the methods and properties of the Graphics class pretty much explains it all.
  4. Nope, works fine for me.
  5. You forgot to set a to an instance of the class: a = New Form1()
  6. Use the Graphics.MeasureString method
  7. divil

    mIRC & .Net

    System.Net.Sockets is a Namespace not a class :) I think System.Net.Sockets.TcpClient is probably the class he's after.
  8. I typed the word "encoding" in to the IDE help search facility and got 500 topics, so it's clearly not short of information :P
  9. Yes it does.
  10. Don't use it. There are new methods to do what you achieve in .NET, and you do not get a license to use that control with the .NET framework. Try checking out the HttpRequest and HttpResponse classes, or possibly the System.Net.Sockets namespace if you'd rather do it manually.
  11. Just let the code designer generate the subs for you.. what you want it the MdiChildActivate event of the parent form.
  12. You only say that because you're not cool
  13. I think that although VB imposes these restrictions on you, you can go the API route to set the style of your windows to how you want.
  14. That's right. I don't know how you'd use Windows resizing since you turned off the borders. You might have to do it manually.
  15. You'd be better advised to use TheIrishCoders method, rather than MouseMove etc events. Let Windows do its own moving.
  16. I like using XML, check out the XMLTextReader and XMLTextWriter classes.
  17. divil

    conversion issue

    I wouldn't have the overhead of creating a new point structure in there: Dim sz As New Size(20, 20) Dim szf As New SizeF(sz.Width, sz.Height)
  18. On the few occasions I've required to do this, I just copy it out of the old API viewer and paste it in to VB.NET, change Longs to Integers, (or sometimes IntPtrs), and it works.
  19. I'd say about 5 minutes work. Find/Replace.
  20. Not that I'm aware of. Just use the dropdown boxes
  21. Why not do what I suggested instead? It would be much easier.
  22. Make yourself a class that derives from TextBox, and eat the keypress notifications: Friend Class clsLockedTextBox Inherits System.Windows.Forms.TextBox Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs) e.Handled = True End Sub End Class I just tried it, and it works fine. You can't copy text from it with Ctrl-C, but you can code an exception for that.
  23. I think my last reply to the thread on the link below might help. I got so fed up of answering this question, I wrote a lengthy article on it :) http://www.visualbasicforum.com/showthread.php?s=&threadid=28005
  24. Shawn Burke wrote an article on customizing the code that is generated by the designers, search for it on Microsoft I guess.
  25. Read your help. The constructor for the Font class is overloaded many times, at least one of which accepts a String with a Font Family name in it.
×
×
  • Create New...