Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. Oh I see... the border is flat because the XP style flattens them. If you go into classic windows mode, the menus will have a thick border. Still looks good though. :) You could look at my custom menu component here: http://www.xtremedotnettalk.com/t69043.html and expand on the code to make the menus XP style rather than Office 2000 style if you like. That way the ownerdrawing process is totally automated. Divil also made an XP style menu based on my component, available at his site, but his source is not available.
  2. dynamic_sysop: Are those ownerdrawn and hooked menus (hooked to get the flat border), or are they totally custom from-scratch menus? They look good. :)
  3. Volte

    KeyDown

    I don't think the KeyDown event does anything by default anyway... there is no reason to set e.handled = true. What is it you want to do?
  4. Look at System.IO.StreamReader.
  5. I think that as soon as the sub finishes that the object is declared finished, the object will go out of scope, and .NET's COM interop will handle the freeing of the COM object. I don't think there is any function to need to worry about to free the memory.
  6. Are you making sure that the file you are trying to write to is not open already, and that it is not read-only? I believe that particular error means "Could not open the file for writing" or something like that. I didn't get many results on Google, but that's what I could gather.
  7. MSAgent itself doesn't allow you to talk to them. You need both a TTS (text to speech) engine to allow them to speak to you, and the speech recognition engine to be able to talk to them.
  8. What code are you using? Are you using the HH_DISPLAY_TOPIC constant for the uCommand parameter? Const HH_DISPLAY_TOPIC As Integer = &H0Also, you'll most likely need to convert the Long declares in the API to Integer for .NET, since ints in .NET are 32bit, whereas they are 16bit in VB6.
  9. I just use EditPlus. :p http://www.editplus.com
  10. Why would you want to use word-wrap for HTML?! That would be so unbelievably messy. I'd probably go insane. Get a real text editor for HTML. :p There are hundreds of them out there. Notepad just doen't cut it for me. Especially since it can't properly interpret many encodings (particularly unicode, as well as files saved under other OS's). If you have ever tried opening an HTML file or PHP file saved under Linux, it will all be one line due to the incorrect parsing of the Linux newline characters.
  11. He means I snuck in my reply just seconds before he could get his in. :p
  12. Free verse? :p
  13. It costs about $29 to upgrade from 2002 to 2003...
  14. Did you register the COM DLL with Windows? Start -> Run -> regsvr32 <full path to dll>
  15. Wouldn't it make even less sense if it was under the icon and you couldn't see what you're typing? Maybe you should consider placing it in a differrent position.
  16. Try this:StreamReader srReader = new StreamReader(FilePath); // Open the file String sFileContents = srReader.ReadToEnd(); // Read the entire contents // Remove all carriage returns, since the Split function can't have delimiters that are more than one // character, so we'll remove Cr and use Lf. sFileContents = sFileContents.Replace(ControlChars.Cr, ""); // Split the string into an array, using a Line-feed as the breaking point for each line sLines = sFileContents.Split(ControlChars.Lf);Now the sLines array contains all the lines in the file.
  17. I don't think there is anything wrong with hiding properties from the designer, as long as you can still access them through code. *Removing* inherited properties completely removes compatability with other objects which inherit the same base type. If it's just hidden from the prop browser, nothing has really been affected.
  18. Activate Desktop is part of Windows. Microsoft can do anything they like with things that are built into Windows. MS just made windows draw the icons over top of the IE desktop. However, since you don't have Windows' source code, I can't imagine that it's possible to do the same. Why would you need a control under the icon anyway.
  19. Try using IO.File.OpenTextinstead.
  20. No, because the icons are not windows, they are simply drawn onto the desktop. As far as I know, the desktop area with the icons is actually a large ListView control.
  21. TextBox1.SelectionStart
  22. What is the purpose of this? There is probably a better way.
  23. I hate word-wrap when I'm using anything. I have a 1600x1200 resolution, so there aren't many times when I need it... It just makes things look messy when things do wrap.
  24. You need to create a custom forms designer for your component or control (make a class which inherits ComponentDesigner for non-visual components, ControlDesigner for standard components, ContainerControlDesigner for container controls, or ScrollableControlDesigner for container controls which support autoscrolling). In the class, override the PreFilterProperties method, and do this: Protected Overrides Sub PreFilterProperties(ByVal properties As System.Collections.IDictionary) properties.Remove("MyProperty") End SubThen, to set the designer to the appropriate control, give the <Designer(GetType(MyDesignerClass))> _ to your control (replace MyDesignerClass with the name of the designer you created) and all should be well. At that point you can redefine the property yourself and set its Browsable attribute to false.
  25. I'm with you. You can't even turn it off... even in classic style it's just a gray version of that awful tube design. Wayyyy too many gradients...
×
×
  • Create New...