Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. I expect there to be more and more C# questions asked as more and more search engines find the site. A lot of people are still finding this site through the VB forum which is why we're getting more VB.NET questions than C#. Saying that, very few questions are really syntax specific. If I see a poster is working with C#, I'll try and give a C# answer.
  2. What installer are you using to deploy your app?
  3. No. You'd have to investigate subclassing to owner draw the tabbed dialogs, which would be no simple task.
  4. divil

    IIf

    IIf in VB6 is also slow because it uses variants. There is no excuse for using it, just use a structured If.. Then.. Else statement instead.
  5. INI files are depreciated. Use XML files instead, the framework provides plenty of methods for reading and writing those. If you really must use INI files, you'll probably have to resort to use the API or writing your own routines to parse them.
  6. Do you have a copy of Enterprise Manager you can connect to MSDE with?
  7. They must be ActiveX DLLs if they need registering. In which case, in the installer you deploy your application with, you will have to inform it that they are self-registering COM DLLs and to handle them accordingly. When you add a reference to a project to a COM DLL the IDE will generate an interop assembly for you, which the deployment project wizard will pick up, but I don't think it will pick up the other dependancy, that is the DLL you generated it for. So you will have to add both your interop assembly and the original COM DLL to your setup project if either of them isn't there.
  8. No, you'll have to call one from the other. This is unfortunate, and many third-party controls for drawing "nice" toolbars and menus operate this way, but not the tools that are provided by default.
  9. You have your answer there. You should be catching the ApplicationException class. Don't rely on the hashcode.
  10. Can you explain what you mean by "install a dll file"? .NET DLLs do not need any kind of installing or registering.
  11. All in one file: Namespace Foo Class Bar End Class End Namespace Namespace Bar Class Foo End Class End Namespace
  12. Hopefully this sample I knocked up will help. It demonstrates hooking up HTML events to C# event handlers. This sample hooks up the onmouseover event, and displays the text of the element the user is hovering over in a label on the form.htmlevents.zip
  13. Why would you use foreach to traverse a 2-dimensional array? Just curious. I assume your assignment gives some kind of reason. Perhaps I'm assuming too much :)
  14. this article goes in to great depth on the garbage collector and how it cleans up resources, and when the responsibility lies with the programmer. I think you'll find it useful in this case :)
  15. I've never seen one person spout so much nonsense in one thread - nor have I had to delete as many pointless posts from one! Windows XP isn't designed especially for .NET, nor vice versa. There are optimizations within .NET for the newer NT platform (that's Windows 2000, Windows XP and Windows 2003 Server). Yes, these all share the same basic kernel. I suspect Madz is getting confused with Windows codename Longhorn, which supposedly will revolve around .NET a great deal. Windows XP came out a while before .NET, and knows nothing of it out of the box.
  16. I heard $30. Something in that region, definitely. For registered owners of VS.NET, anyway.
  17. Add a reference to Microsoft.mshtml. This will be in the list of .NET assemblies to reference in the Add Reference dialog. Then stick a webbrowser control on your form, let's call it "wb" for this example. Do a wb.Navigate("www.google.com") in the Form Load to set it up on a website. You can then use code like the following to access the HTML document with full intellisense support, and enforcing strong typing all the way: Dim doc As mshtml.IHTMLDocument2 doc = DirectCast(wb.Document, mshtml.IHTMLDocument2) doc.location.href = "http://www.microsoft.com" mshtml.IHTMLDocument2 doc; doc = (mshtml.IHTMLDocument2)wb.Document; doc.location.href = "http://www.microsoft.com";
  18. As Volte said, supposedly the Intellisense in C# in VS.NET 2003 has been brought up to par with VB's :)
  19. It depends whether you're writing managed C++ code or unmanaged. With managed you'll get the advantages of the JIT compiler which can give results either slower or faster than natively compiled code, depending on application. If you're writing unmanaged code the only slowdowns could be marshalling to/from it if you're calling it repeatedly.
  20. That's not a ping. You can create a real ICMP ECHO packet and send it with the .NET framework and the Socket class, see the URL below for an application written in C# to do this. ICMP Ping using .NET Framework
  21. I think you'll have to go the API route for this, but subclassing for the message will be made easier by the Windows Forms architecture.
  22. Do you have IIS installed properly with Frontpage 2000 extensions? If so, did you install ASP.NET afterwards? I have heard of people getting issues creating web projects when their system has not been set up like this.
  23. If you are getting an InvalidCastException, can you not break in that function and see what exactly the type is that you are getting back?
  24. I think all currently supported Windows versions ship with the VB5 runtimes, and VB6 since Windows 98 SE (I think). Future Microsoft products will ship with the .NET framework as they shift their own development towards the new platform.
  25. The Server Explorer within VS.NET is like a cut-down version of Enterprise Manager.
×
×
  • Create New...