Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. 1. You can suspend the current thread, look at the methods of the Thread class. 2. Look in the bin folder under where your project files are, that is where the binaries are created.
  2. As you're been told, there is no OLE in .NET.
  3. Dim X As New frmTrace() X.Show()
  4. divil

    listview

    Thanks. I find C# reads just like VB anyway.
  5. That link would go nicely in the useful reading for .net thread.
  6. divil

    listview

    I knew you could owner draw listboxes in .NET, but not listviews. Got any example urls?
  7. Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim Points(2) As Point Points(0) = New Point(100, 100) Points(1) = New Point(150, 100) Points(2) = New Point(100, 150) e.Graphics.DrawPolygon(Pens.Red, Points) End Sub
  8. There is no Screen object in VB.NET. There is no real way of getting an accurate pixels per inch measurement, I suppose one way would be to ask the user what size monitor they're using. [edit] Ok, there is a Screen object but it doesn't do what you want. [/edit]
  9. File.Delete should work, it would help if you told us what error that gives you.
  10. If you're showing fmLogin with its ShowDialog method, that means execution will return to fmIntro after it's closed, on the next line. At that point you could choose to close fmIntro with Me.Close() and open the new one.
  11. It's real .NET, but often a rather perverted version, designed to look more like VB6 code. This avoids the conversion wizard having to jump through hoops when processing old code. It's always better to get a book, and read up on how a new topic is done in VB.NET then rewrite. More fun too!
  12. 2. Try the ShowDialog() method of the secondary form, this will suspend code execution in the first form until the second form is closed or validated.
  13. That's a little vague - could we see some of the code which is causing this? And you define how it doesn't work, does it give you an error?
  14. You're creating new instances of forms then hiding them before they're even shown. I can't guess from that code exactly what you're trying to accomplish.
  15. Except that the conversion wizard doesn't convert to real .NET, it uses helper functions in the VB compatibility namespace which I don't think is redistributed.
  16. It's important to note that it is always better to rewrite, rather than convert. You learn more that way, and if you don't have time to rewrite, the project is probably left in whatever it was before.
  17. What are you trying to accomplish?
  18. You'll have to make your reference to the database connection available by passing it to classes which need it, or by making it a public shared field/property of a class in your project. Data access has changed a great deal in .NET and I haven't had much experience with it.
  19. Or, you could just set the font of the treeview to an underlined one.
  20. divil

    Windows 95 ?

    http://www.microsoft.com/windows/lifecycle.mspx
  21. divil

    listview

    Probably, I wasn't aware the listview supported owner drawing though.
  22. There is no event on the parent form specifically for when an mdi child closes, although it will have the effect of raising the MDIChildActivated event. You're better off calling a sub in the parent form from an MDI Child in their Closed event.
  23. divil

    listview

    Can you describe what you mean?
  24. The best way to do this would be to use the proper temporary files place on your hard drive to create the file. You can use System.IO.Path.GetTempPath to get this path, or System.IO.Path.GetTempFileName to automatically create a file there with a unique name, but it won't have a .htm extension.
  25. You can draw 5 labels the same size on the form, then set each of their TextAlign properties to Right, that should work fine. As far as outputting formatted text is concerned, what kind of formatting? For a GUI app your best bet is a textbox or richtextbox, otherwise make a console app.
×
×
  • Create New...