Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. If you post the code you are trying to convert here, we will try and help you.
  2. There's a couple of templates in the VB.NET\Vb7\VBProjects directory that you could try editing, if that doesn't work try searching google, I'm sure people have done this before. I'm sorry I don't have more time to go looking.
  3. Hehe, "menace" is the best word yet I've heard to describe it :)
  4. You will have to insert delimiters appropriately, and parse them back out at the receiving end.
  5. Num1 = int.Parse(Console.ReadLine());
  6. Have you tried the Server Explorer that is integrated with VS.NET?
  7. I don't remove it personally, although it can be a good way of forcing you to use .NET methods rather than the ones the Visual Basic runtime provides. It's really up to you. If you wanted to remove it by default from new projects, you have to edit the templates.
  8. MSDE is a limited version of SQL Server more than adequate for a great deal of projects, and it is free. It ships with VS.NET.
  9. Yes, you'll need the VB6 version of the declare for the API, and then convert Longs to Integers or IntPtrs. LockWorkStation should present no difficulty in converting. There are items in the help that cover this, and several examples of calling APIs in the framework SDK.
  10. Yes, it is a fact. Also, anyone you ask who knows what they are talking about will advise you NOT to ever attempt to upgrade a project to .NET. It isn't worth it. For small-scale applications, you should rewrite. For large-scale applications, you should keep them as they are. It just isn't worth the hassle of having the upgrade wizard generate non-standard .net code (which it does) and having to track down potential bugs caused by this. I have heard the upgrade wizard is significantly improved in the next version of Visual Studio .NET, however. Not that I believe it will be worth converting even then, but it might cope with your usercontrols better anyway :)
  11. Session variables are a serverside thing, and any java/vbscript you run on the client side has nothing to do with that until you submit a form or request a page from the server.
  12. Can you post the relevant code? I assume you're using the "sender" argument as the control to set the properties on?
  13. Added to which, you should not be using the Winsock control in .NET. Look at the Socket class instead.
  14. Static variables in vb.net remain in existence and retain their latest values after termination of the procedure in which they are declared. They are not the same as shared members of classes.
  15. You can declare static members of a class using the Shared keyword in VB.NET: Public Class Class1 Public Shared Sub Boo() End Sub End Class You would then be able to call Class1.Boo() without an instance of the class.
  16. Excellent, another one has come to the dark side... noRulez, I am your father... :)
  17. You are probably right. If the function is executing lots of things in a loop, you might be able to get away with sticking an Application.DoEvents() in the loop. Otherwise, you'll probably have to execute that function in a new thread.
  18. Nope. GDI+ doesn't support raster operations. However, the most common uses for these are drawing rubber bands and selection rectangles, and .NET does provide a class called ControlPaint which can do this for you.
  19. You're right. Changing it to this: DefaultValue(GetType(System.Drawing.Color), "0, 0, 255") Worked for me.
  20. If you're referencing a .NET dll you don't have to declare anything, as soon as the library is referenced you can create instances of the classes within in.
  21. <DefaultValue(GetType(Color), "Color.Blue")>
  22. Did you miss my post?
  23. That is a C# feature, it gets those tooltips from the inline XML documentation that is part of the language spec. There is probably a tool that lets you do the same from VB.NET, but I don't know of one.
  24. The only experience I have so far is with using GDI+, which worked quite well. I hear that DX9 DirectDraw can interact with .NET Bitmap objects so there's a chance you'll be able to use both.
  25. http://www.syncfusion.com/FAQ/WinForms/FAQ_c41c.asp#q701q
×
×
  • Create New...