Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. I was just thinking about this yesterday, and I have to say I agree. It also makes it harder to tell if there's a new post in the Graphics forum, as new DX posts make the "new posts" indicator light up. I'll discuss it with the other moderators. However, I dislike subforums, and I don't think a whole DirectPlay, DirectSound, etc breakdown is necessary.
  2. Maybe you should download the trial versions of those components and see which one you like best.
  3. Huh, it looks like you're right. The newer version appears to cost $200. The older version is still good though, if you can find it.
  4. I recommend divil's controls firstly, but if you don't like those: http://www.dotnetmagic.com/
  5. In the Form_Load event, try ComboBox1.SelectedIndex = 0
  6. I don't understand your (two?) problems at all.....you seem to have mixed two totally unrelated problems into one sentence. If you want to validate a date: Try Date.Parse(theDate) Catch 'not a valid date End Try
  7. I don't know what you need.... as long as you store the parent node in a variable (or find it by iterating through recursively through the TreeView's Nodes collection), you can add children to it.
  8. Try my example here: http://www.xtremedotnettalk.com/showthread.php?s=&threadid=77706
  9. Yes. Press F1.
  10. Are the images in the top one icons? If so, are there any other sizes of icon inside the same file? Same with the bottom one.
  11. Try Environment.CurrentDirectory. I dunno if this will always be accurate, but you could see if the file exists in that location. If it doesn't, then you could always pop up an OpenFileDialog as you are doing.
  12. Well, you would store the node when you add it. Like this:Dim n As New Node n.Text = "This is the top node!" n.Nodes.Add("This is a child of that node!") Dim nc As Node = n.Nodes.Add("This is a second child!") nc.Nodes.Add("This is a child of a child!") tree.Nodes.Add(n)Try that.
  13. Each Node has its own Node collection. To add a node, just add to the Node's Nodes collection. And yes, there is indeed a Parent property of the TreeNode object to tell you which node it is a child of.
  14. A NotePad file? You mean a TextFile? TextFiles are just files containing text with no special formatting. They can be any size. StreamReaders' buffer only really matter when reading a whole file, since it needs to buffer the whole file first. When reading in chunks, it doesn't matter.
  15. If you want to read line by line, you use ReadLine. Read reads in chunks, not lines, meaning it will read a certain number of characters over and over until it reaches the end. There is an example or two in the MSDN.
  16. You should be using ExecuteQuery, not ExecuteNonQuery, as well. ExecuteNonQuery is for INSERT, UPDATE and DELETE statements, which do not return results.
  17. Instead of using ReadToEnd, you can just use the Read method in a loop to read the file chunk by chunk. There should be no limit imposed on you there.
  18. Just look up "arrays" in your MSDN and you will find a plethora of information. Pretty much everything you need to know you can learn from the MSDN.
  19. If you mean plug-ins, look here.
  20. The current framework cannot be installed on Mac, although there is a version in development for *nix systems (http://www.go-mono.net). In the future, an implementation may be made for MacOS too, since MacOSX is based on the Linux kernel.
  21. Ah yes, that will do it. For some reason I was under the impression it was just closing without an error message (I guess because he said the application "terminates" -- I've been subclassing VB6 too much I guess :p). :o
  22. Doesn't seem like it should -- is there anything after that sub? In what context is that code used?
  23. WM_NCHITTEST is sent to a window when it wants to know specifically what part of the window you are moving over, clicking on, etc. When you return HTCAPTION like that, it's saying "I am clicking on the caption bar", which Windows associates with dragging, so it drags the window for you.
  24. You can check e.MouseButtons to see if it's MouseButtons.Right in the ListBox's MouseDown event.
  25. You can use the DLLImport attribute, but there's no need unless you're using C#.
×
×
  • Create New...