Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. It's best to assume it is nothing at all like any previous version of VB, and then to be pleasantly surprised on those rare occasions when it actually is :)
  2. There are whole books devoted to mathematics in 3D space, some specifically target towards game programming. It would probably be well worth to money to purchase one.
  3. Why not try Google? There are loads of articles on Regular Expressions online - what they are, how to use them, and using them with the .NET framework.
  4. A Session is an ASP thing. If you want to persist data across forms, you can do so with variables, as I said. If you don't understand this, can you give us a broader understanding of what you're trying to do?
  5. The best way is to use FillRectangle with a rectangle with a width and height of 1.
  6. You'd probably start a timer in this case, and make the form larger and decrease its vertical position by the corresponding amount each time the timer fired. Obviously it would fire very quickly. Once the form is fully displayed, you stop the timer, and do a similar thing when it disappears too.
  7. Use the FileInfo class; Dim info As New FileInfo(path) Dim fileSize As Long = info.Length FileInfo info = new FileInfo(path); long fileSize = info.Length;
  8. Then you'll have to write the code yourself. Declare a boolean variable and change it where you need to, be it in the click event, mousedown or whatever.
  9. Here's a quick example I knocked up for you. The program will bring up a form in the lower-right corner of the screen, above the taskbar, without taking the focus away from the current application. It uses the API that VolteFace suggested to do this. Note that the alert form must have its StartPosition set to Manual to be able to do this, and we use the Screen.WorkingArea property to get the bounds of the desktop excluding the taskbar. There is no animation in this sample. msnpopup.zip
  10. You can't modify your executable at runtime like this. Embedded resources are read-only. You should consider using an external file instead.
  11. Yes, use a checkbox if you need something to toggle between two values.
  12. Why not use a control list a listbox or listview, which is meant for adding and removing items programmatically?
  13. Yes, and writing the logic to handle that is equally difficult :)
  14. Unfortunately I don't have Windows 98 system to test it on. Do you have anything more specific than "it bombs"? You could install a debugger on the machine in question to see how far it gets, what line the exception is thrown on, etc.
  15. The form has a built-in method for doing this. When you call ShowDialog() on a form, it returns one of many dialog result constants, the most common of which are Ok and Cancel. In your form, as soon as you set the dialogresult, the form will hide and code will return to the calling procedure. DialogResult = DialogResult.Cancel 'or DialogResult = DialogResult.Ok
  16. I don't know. You need to give a broader description of your project and what it needs to do. It is unusual for a program to create textboxes on the fly and maintain them from one execution to the next.
  17. m_strFirstName = m_strFirstName.Substring(0, 1).ToUpper() & m_strFirstName.Substring(1)
  18. Yes, declare it at the form level rather than at the procedure level. Look up variable scope in the help files.
  19. You'll have to do all those things yourself, by writing code to persist the number of boxes and their position (either to the registry or to an xml file, etc). Are you sure you really need to do things this way?
  20. There is no way of changing the background colour of buttons in the toolbar control that ships with .NET.
  21. Why do you think you need to create ActiveX DLLs? That sounds very odd to me. Could you describe in more detail what your application is and what it does? Are you using any ActiveX controls in your program?
  22. You're almost there. Your code will work, but you need to add the following line to the end: Controls.Add(r); As for moving and resizing, you will have to write all this logic yourself, including drawing the selection rectangles and adjusting sizes when the user drags the mouse. It's not a trivial task, but the ControlPaint class may help with some of the drawing.
  23. Yes, 21 megabytes of them. See the deployment forum for more information and issues with the runtimes.
  24. You'll have to consult the documentation for each of the main classes you use. Common classes like Windows Forms work on all supported operating systems, but some not so common ones, like the FileSystemWatcher for instance, just won't work on Windows 98. In the overview for every class in the framework the documentation tells you which operating systems the class will run on.
  25. You need to create a ColorKey object, set both its color value properties to white, and apply it to your sprite surface using its SetColorKey method. Then you specify the KeySource flag when you blit the surface.
×
×
  • Create New...