Property Serialization

Visual Studio .Net


  • 1. DTE Object Reference to Text in Code WIndow ?
    I am trying to write a VB.Net 2003 addin which will find the start and end of the procedure in which the cursor is located and insert a block of code right after the procedure header and another right before the end of the procedure. I have tried to navigate the DTE object model with no success visited websites and newsgroups and examined samples. but I still don't seem to be able to figure this out.. Can anyone help me here?
  • 2. Hiding Content in brackets
    This is related to the ability to hide content of a section of codewith the +/- on the left. Sorry, I cant recall the term in use. (What is it by the way?) When you place the cursor near a section that is hidden, the code will be displayed after a short period of time. This becomes rather annoying, and causes me to ignore this option in C++. Also since the state is restored after a document is closed, it seems redundant to hide code for a quick edit. -- ~Donath
  • 3. Mouse over Combo Box results in IDE crash
    I am experiencing this only with the Combo Box, and no other components. I can put the combo box on my form, no trouble. I can switch to it in the properties pane, no trouble, I can edit its propertiesand access them in code with intellisense. If my cursor touches the combo box at all in the designer view, Visual Studio locks up, and taskmanager reports near 100 CPU usage (although it never says "Not Responding"). A workaround I'm using to combat this is to place the combo box, then draw another component over it with visible set to false, effectively preventing my mouse from coming in contact with it while in the form designer. This, of course, is unacceptable. I experience this in Visual Studio. NET 2003, and the Visual basic 2005 Express Beta.
  • 4. Disappearing Controls
    Hello Every For about 3 months now that I have noticed, when I open the forms designer occasionally it will delete, what I can only assume are, random controls from my form. Does anyone what might be causing this??? and how to fix it??? Thanks MacKenzie
  • 5. n-tier application debugging not working
    I am developing an n-tier application that has a datalayer -> business objects -> web services -> windows forms. This application also uses the Offline Client Application Block, but the code in question is not using that functionality, it is calling the code as a normal windows application. All of these are in the same solution, and the references are set up as projects. I am trying to fix a bug in my code that I can't seem to find. It basically passes an object through a web service and saves some data. This code is the second set of code like this in the application, and the other set works fine. Basically only some of my data gets saved. I know it is something I missed, and I need to step through my code to see where I messed up. When I put a stop in on the 'save' button, the code steps through just fine (using F11), or the 'next' in the IDE. When it goes to call the web service on my local machine, it just comes back without any errors, since there really wasn't one. The data just gets dropped. I was able to do this same type of step through a few weeks ago, and I am not sure what happened to make it stop working. Any ideas? -- Thanks, Brad Simon

Property Serialization

Postby oliverw » Fri, 07 May 2004 00:27:32 GMT

Is it possible for a component hosted on an aspx form to control
(redirect) the property serialization of other components hosted in
the same form and if so where should I start looking?

What I want to do is to store certain properties of the other controls
in the form not in the aspx but in a resx file.

Similar Threads:

1.Designer Property Serialization -- Sycning inner properties to designer property window


I am just getting started developing custom user controls, and I am
having issues keep the inner properties of nested controls in sync
with the properties in the designer window.  When I change a property
of a nested control in the properties window, the designer does not
automatically redraw itself.  If I switch to HTML Mode and then return
to design mode, the control is redrawn. But If I switch back to HTML
Mode the inner properties are not updated.

However, If I change a property of my custom control or the font-bold
property of the nested control in the design window, the nested
control is refreshed and the inner properties are correctly updated.
How do I keep the two in sync?  Am I missing something here?  Do I
need to implement a TypeConverter and set NotifyParentProperty(True)
to keep the designer in sync with the properties window.  If I do, how
can I implement one for web controls as I will have several controls
and do not feel like coding a wrapper for every property of every
control on the page. Or, is there some why to manually fire the event
that is raised when the nested control's font-bold is changed in the
properties window.

Also, what is the difference between refresh.repaint and refresh.all.
Does one only redraw the control on the designer while the other
recreates the controls properties and then redraws the control on the

Here is my code in the simplest form.  Thanks for the help in

Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
<Assembly: TagPrefix("Editor", "cms")>
<ParseChildren(True), Designer("System.Web.UI.Design.ControlDesigner,
System.Design"), DefaultProperty("Text"), ToolboxData("<cms:Editor
RefreshProperties(RefreshProperties.Repaint)> Public Class Editor
    Inherits System.Web.UI.WebControls.WebControl
    Implements INamingContainer

    Dim _text As String

    <Bindable(True), Category("Appearance"), DefaultValue("")>
Property [Text]() As String
            Return _text
        End Get

        Set(ByVal Value As String)
            _text = Value
        End Set

    End Property
    Private _TitleLabel As Label
    <Category("CMS"), Bindable(True),
PersistenceMode(PersistenceMode.InnerProperty)> _
    Public Property [TitleLabel]() As Label

            Return _TitleLabel
        End Get
        Set(ByVal Value As Label)

            _TitleLabel = Value
            Me.ChildControlsCreated = False

        End Set
    End Property

Return to Visual Studio .Net


Who is online

Users browsing this forum: No registered users and 56 guest