Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. See the Windows Forms FAQ, there's an entry for this.
  2. Casting won't degrade performance.
  3. Don't try to learn VB.NET using a VB6 book. They're very different.
  4. Menu items don't _have_ names of any kind. They're just objects like everything else.
  5. When you are writing custom controls the recommended method is to override (calling the base of course); however, I don't think there is a recommended method for just writing code for a form. Personally I use the events.
  6. I published an article on making .net applications scriptable, it includes everything you need to make exe files on the fly. You can find it here or on my website.
  7. "Hold on... we make a million posts per month! A nickel!"
  8. Once you've written your 2D games (from tetris to platformers) send them in to those game companies along with your emails. A solid demonstration of your talents will make more of an impression than anything else you could send them.
  9. Very nice!
  10. Every control can be a container, so you'd want to check every control's Controls collection.
  11. Yes, those classes are for code generation and compiling. You could do the same in .NET 1.0.
  12. If you want things like that in there you'll have to draw them yourself.
  13. My nick isn't devil. You can use the text property, or you can compare with the buttons on your form: If e.Button Is olbMyButton Then ElseIf e.Button Is olbMyOtherButton Then End If This is the same way it works for the .net toolbar, etc.
  14. Is there a reason why you'd use a Select Case block there instead of a regular if...else construct?
  15. Don't use the Winsock control, that's outdated and not supposed to be used in a .net application. Use the Socket class and/or TcpClient and TcpListener classes instead.
  16. Check out the WebClient class, it can send requests to webservers and allows you access to the data returned.
  17. The "tearing" happens when your program doesn't wait for the VSync of the monitor before drawing. That is actually a different flag (WaitFlags.NoVSync or something) and nothing to do with DoNotWait, if memory serves.
  18. You might well find you have to use another language for this. DDE has been dead for some time, although some apps still use it for some reason. Maybe a legacy language like VB6 would be more suited.
  19. The following works for me: Dim ps As New ProcessStartInfo("cmd.exe") ps.RedirectStandardInput = True ps.UseShellExecute = False Dim process As Process = process.Start(ps) process.StandardInput.WriteLine("dir")
  20. This is a known bug in visual studio, which only happens with the propertygrid and only when it's hidden. Are you using vs.net 2002? Maybe they fixed it for 2003.
  21. Set the form's FormBorderStyle to a non-sizeable one.
  22. You haven't said what this other program is, and why you have to access it yet.
  23. You can't just create a .net windows forms from an hWnd belonging to another program.
  24. If you're talking about 2D drawing, DirectX really comes in to its own with the hardware acceleration and that fact that flicker-free double buffering can be done with page flipping at virtually no performance cost when in fullscreen mode.
  25. I wouldn't want to use optional parameters in a component that's going to be sold commercially - method overloading is the OO way to go.
×
×
  • Create New...