Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. Memory will almost certainly be the bottleneck during normal use of the ide - vs.net is a big memory hog. 256mb is the minimum you should have to work with it.
  2. As far as I know there isn't a way. You could probably retrieve a DPI value from a Graphics surface but since there's no way of Windows actually knowing the physical size of your monitor (most of the time) it would only be approximate, and would probably just be 72 (iirc).
  3. The AfterCheck event _does_ tell you which node was checked :)
  4. The garbage collector only knows about .NET resources, not unmanaged resources. Forms and graphics use unmanaged resource extensively so it's good practice to always call .Dispose on _any_ object that has it, when you're done with it. Because of the great programmers at Microsoft, your system won't become unstable if you don't free up resources (if you're using a recent operating system). You'll just be a bad programmer. :)
  5. .resources files are created as an intermediate step by the VS.NET build process - the .resx files that go with your forms and any other files you have picked as "embedded resource" are made in to .resources files then linked in to the finished assembly. I don't know how you're seeing them - personally they've never been around long enough for me to notice them, I only know what they are through investigating the build process in the past. You don't need to distribute them.
  6. My personal favourite is to take advantage of operator overloading so you can use normal operators to work with dates and timespans: DateTime oldDate = DateTime.Parse("11/9/03 12:00"); TimeSpan timePassed = DateTime.Now - oldDate;
  7. It's a good idea, unfortunately it means someone has to do all the work of coming up with one!
  8. .NET programs require the whole framework installed, end of story. The framework already comes with Windows Server 2003 and will come with future versions. If the dependancy on runtime dlls is a problem, I would have thought you would have chosen a language that is capable of writing programs without those dependancies (like c) to begin with.
  9. Are you sure it's worth giving up school and relocating for a job that says it's essentially only temporary?
  10. If you want to keep track of your nodes in some other way than the hierarchical representation in the treeview you'll have to use a hashtable or your own collection to do so. Nodes themselves no longer have a Key or anything globally unique.
  11. Getting a stable browser working is a matter of hosting mshtml. Doing so is a lot more lightweight than using the WebBrowser ActiveX control. Tim Anderson has great code showing how it's done: http://www.itwriting.com/htmleditor/index.php
  12. Bear in mind this is Access however, and there really is no database server. Web services sound like the best option to me.
  13. You have to write all the mouse handling and logic for this yourself. The only help you'll get from the framework is actually drawing the little grab handle boxes and the selection rectangle - check out the methods on the ControlPaint class.
  14. The next version of the framework will include a managed web browser wrapper, complete with managed DOM.
  15. I'm afraid you'll have to keep it in Icon format and draw it using DrawIcon(). There's a bug in .NET where the alpha channel on 32bit icons is not preserved, as you have discovered. If you are adding this in to an image list, add the icon straight in to it (no intermediate bitmap), make sure the image list has the correct colour depth and make sure your application has a manifest to use common controls 6.
  16. divil

    why do you find

    You change that in the AssemblyInfo.vb file.
  17. The Collection is part of the VB runtime designed to make the process of moving from vb6 to vb.net easier. It shouldn't be used, there are a ton of collection classes in System.Collections that should be used instead.
  18. I don't use the TcpClient class myself, I use the Socket class which I believe TcpClient wraps. The Socket class has asynchronous methods to go along with the synchronous ones, and to avoid blocking you must use those instead. The method you want is BeginRead()
  19. I have no idea what you just asked.
  20. If you get an LCD (I recommend you do) get one with a response time of 16ms. This is the time it takes for a pixel to change from white to black, and getting one with this specification means you won't have a problem with fast paced games sometimes appearing blury. I have a 19" CRT and a 17" LCD, both running at 1280x1024. I would take the LCD any time.
  21. You would have to ownerdraw to get this effect. The framework allows for fairly easy ownerdrawing of listboxes and comboboxes.
  22. Reporting has been added to the list of topics covered by the Database forum.
  23. You could try messing with the auto scaling features of windows forms - it sounds like that might be messing it up. Take a look under the Layout category in the property grid. Also, don't use the upgrade wizard, it sucks :)
  24. Assuming the parameter is going to be a structure, you can just declare it as the structure, the framework will take care of the marshalling for you. You'll need to change the Longs to Integers or IntPtrs too.
  25. If you open the filesystem dialog, you should be able to add a shortcut to the users desktop from there.
×
×
  • Create New...