Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. Ah, when I saw you talking about images on menus I thought about the link i mentioned. So you want to select some spots on the image and open a new form based on which one was selected, but without buttons? In that case, you could add a collection of Rectangle object to your code. Then, with every MouseDown event occurence, go through every Rectangle and use its Contains method to see if the current mouse coordinates are in the rectangle.
  2. Im not excatly sure what are you need of, but see if this thread helps: http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69043
  3. First you would have to wait for the program to finish. That could be achieved using the process class, its Start and WaitForExit methods. Dim p as Process = Process.Start("program path") 'wait for the process to exit p.WaitForExit() As for waiting for an event indicating if the drive is ready, either Im unaware of that or it doesn't exist. FileSystemWatcher would be a great component but unfortunately it will rise an exception if the drive is not ready when you specify the path. One way you could do that is like this: Dim p as Process = Process.Start("program path") 'wait for the process to exit p.WaitForExit() Do While Not System.IO.Directory.Exists("Virtual CD drive letter:\") Application.DoEvents() Loop When the drive will be ready so will be the Exists method return True thus getting you out of the loop.
  4. Assign the SelectedPath property value to your textbox to show the selected folder. TextBox1.Text = FolderBrowserDialog.SelectedPath As to saving that info, you have many choices, for example registry or XML files. Your choice.
  5. Use the Hide() method of the form rather than closing it. If the form you are trying to close is the form on which the application loop depends, the application loop will exit after the form closed and if there is no further code after that, the whole application will exit.
  6. If you don't have a SMTP server on the client computer then what you could do is maybe set up an email hosting/website hosting and use the server name that would be provided. Like email.yourdmain.com. Works for me with the email server provided by my webhost.
  7. Create a handler that will accept the required arguments and use the AddHandler keyword to add an event handler for the object. To see which button raised the event use the sender object and cast it to a button. 'example AddHandler object.event, AddressOf handlermethod 'do this for every button you add
  8. Use the GetFolderPath method of the system.Environment class. It will return a path to a special folder that you specify using the system.Environment.SpecialFolder enumeration. Dim mydocs as String = system.Environment.GetFolderPath(Environment.SpecialFolder.Personal)
  9. You are creating a new font, so simply passing in the FontStyle value won't do it. You dont need pass in an existing font for the first argument, you can use other overloads. But in your program's case, doing it like that will help if you only wish to modify the font style.
  10. There is no built in to do that in the Framework. You would have to search for components that would do that for you.
  11. Dim fs as FontStyle fs = FontStyle.Bold Or FontStyle.Italic Use the keyword Or to combine the values. You might also want to read up MSDN on how it works. :)
  12. This has nothing to do with OOP, but rather with font creation done by the OS. Here is how you could handle the font change. Declare a FontStyle object for yourself: Dim fstyle As FontStyle Assign the current style to it: fstyle = Me.Font.Style Then take them away from the combination: fstyle -= FontStyle.Bold Or FontStyle.Italic Or add some: fstyle += FontStyle.Bold Or FontStyle.Italic Then create a font using the resulting value.
  13. VS.NET does not include a designer for Win32 API C++, only for .NET. Windows Forms technology is .NET technology, so you can use it for .NET programs.
  14. You can compile the programs with VS.NET 2003 that will not use the framework but only using Win32 C++, so you won't be able to take advantage of all th .NET Framework features.
  15. Did you apply a texture to your mesh in the program? Im not familiar with anim8tor so can't help you there. If you did apply it and it exported correctly it should be there, if you store the texture in the right path. If not, then if you have the X file generated in Text mode, scroll through the file and see if you can find some kind of a path under the list of vertices. One more thing, if you don't wish to spend much money on a 3d modeller, but can spend a decently low sum of $25 then get Milkshape3D. It contains a GREAT DirectX mesh exporter, and some good features. It is worth every dollar spent on it.
  16. Do you mean that your texture is not displayed with your mesh?
  17. You can do it like this: 'read as long as there is anything to read from the file Do While reader.Read() 'use the read line method to read a line from the file ListBox1.Items.Add(reader.ReadLine()) Loop
  18. Yes, it comes will all the help files and references you will need :). In my opinion, VB6 won't keep going long once people see all the advantages .NET gives over VB6.
  19. Also, you can use the FIleSystemWatcher component to look for file changes. It would be the best method.
  20. It should also work under Windows 2000, but not lower.
  21. You can use the Value property of the DateTimePicker to get the selected date/time. TextBox1.Text = DateTimePicker1.Value().ToString() If you want the user to be able to select time, find the format proeprty of the DateTimePicker and set it to time.
  22. It works for me in 32 bit mode.
  23. For the best efficiency use the NotifyFilter property to only receive the changes of the specified kind. If a lot of files change the buffer into which the component recevies messages might overflow, so its a good thing to limit the change notification if you dont need them all.
  24. You don't have to do anything like you said. Do what Robby showed you. In that example, TextBox1 is the TextBox which you search for the word. It uses the Replace method of it to replace each word that you specify for the first argument with the word you specify in the second argument. Then it returns the modified string. Put that code in the Click event of your button. What you also have to do is substitute the hardcoded values with the values from the textboxes which specify what to look for, and with what to replace it.
×
×
  • Create New...