Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. Come to think of it, the RootDesignerSerializerAttribute class may be what you're looking for - although I don't know what the IDE will do with your serialized document if it isn't a collection of CodeDom classes.
  2. MSHTML is designed to encapsulate the HTML DOM. The documentation for that is the closest you'll get, and I've found it quite adequate.
  3. It's only easy because I had to do this before. Believe me, I had a similar headache then!
  4. I'm not entirely sure I understand everything you're trying to do, but I have a good idea. You've implemented IRootDesigner, which is good. Does this work? You are able to open the designer in Visual Studio? I don't know how to add custom templates to the new files dialog in Visual Studio, and I would guess that to completely override the way it generates code, you would have to get some kind of extensibility SDK. You need to go completely above the whole CodeDom serializer thing, since CodeDom can't represent XML.
  5. I didn't get an error. The only time I've had this exception happen is when I have embedded resources in a program and I'm lacking a manifest file (on Windows XP).
  6. Can you post the code you're trying to use?
  7. As far as I understand, MS gave up on the idea of supporting this because of problems interacting with .NET types from VB6 code. You just wouldn't be able to interact with the control properly.
  8. Here's a quick example I whipped up which does the trick: Imports System.ComponentModel Public Class ClassWithProperty Private _Expandy As ExpandyClass Public Sub New() _Expandy = New ExpandyClass() End Sub Public Property Expandy() As ExpandyClass Get Return _Expandy End Get Set(ByVal Value As ExpandyClass) _Expandy = Value End Set End Property End Class <TypeConverter(GetType(ExpandableObjectConverter))> _ Public Class ExpandyClass Private _Variable1, _Variable2 As Integer Public Property Variable1() As Integer Get Return _Variable1 End Get Set(ByVal Value As Integer) _Variable1 = Value End Set End Property Public Property Variable2() As Integer Get Return _Variable2 End Get Set(ByVal Value As Integer) _Variable2 = Value End Set End Property End Class
  9. You beat me to it! I was going to write another tutorial covering adding a GUI and inherited plugins :)
  10. I think you have to specify a TypeConverter attribute pointing to ExpandableObjectConverter on the class which your property has as its value.
  11. The HTML DOM is pretty well covered in the MSDN that comes with Visual Studio.
  12. <Browsable(True)> _ Public Overrides Property Text() As String Get Return MyBase.Text End Get Set(ByVal Value As String) MyBase.Text = Value End Set End Property Abolish your strHeaderText variable, and just use Me.Text instead. The Browsable attribute I used there is in System.ComponentModel.
  13. Is the problem that you need to establish in the click procedure which button raised the event?
  14. The reason is that all controls already have a Text property, you really don't have to make your own. What you have to do is override it and call back to the base class to set and get it, and use a Browsable(True) attribute on it to make it show in the property grid.
  15. Not true! You could use the Dir$ function :)
  16. No, people switch to Linux (in the most part) because they're kids who think it's cool to be different. There's nothing wrong with that, I've been through it myself, but eventually you have to come out of the other side :)
  17. Yeah but it's more fun that way ;)
  18. .NET _can't_ do ActiveX controls. With a lot of work and nasty hacks you might just get a windows forms control you wrote to be exposed as a limited ActiveX control.
  19. For the listview? You use the SubItems collection of each ListViewItem object to add things to the other columns.
  20. You can use the WebClient class to download the HTML page from the url to your hard disk.
  21. Ok, I actually had no idea AndAlso and OrElse existed. /me sits in the corner
  22. No, you should not use the Forms 2.0 combobox. You are not allowed to distribute those controls with any application.
  23. The ActiveX test container is a tool that comes with VS6. I don't know if windows forms controls exposed as ActiveX controls can be hosted in a webpage or not.
  24. Perhaps this url will help: http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp
  25. No, you won't be able to do this with normal tooltips. Those helpers that the IDE shows aren't real tooltips.
×
×
  • Create New...