CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 5/13/2005 7:04:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 76 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Salameh
Asp.Net User
property changed event5/13/2005 7:04:55 PM

0/0

how can you call a function when the value of a property is changed in the designer window.  How would you define your property to do this
PLBlum
Asp.Net User
Re: property changed event5/14/2005 4:10:40 PM

0/0

Take a look at the UITypeEditor class in the .net docs. You subclass this to provide a specific editor that intercepts attempts to edit a property and provides a user interface. My site has a few of these classes in C# that show you how to do a few things: http://www.peterblum.com/UITypeEditors/UITypeEditorsHome.aspx
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
Salameh
Asp.Net User
Re: property changed event5/15/2005 3:34:23 AM

0/0

Partially understand the idea of uitypeeditor.  You capture the edit of a particular property.  I however want to change additonal properties contained in the class based on a particular property changed.  Seems you only have access to the property the uitypeeditor is connected to.   How do you access the addtional properties contained in the class.

public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)

{

value=

}

}

PLBlum
Asp.Net User
Re: property changed event5/15/2005 7:32:03 PM

0/0

I have never done this through a UITypeEditor. My only experience is as follows.

I had one property that when set to a specific value, also set another property on the same object. For example:

public bool SuperProperty
{
   get { return fSuperProperty; }
   set
   {
      fSuperProperty = value;
      if (value)
         OtherProperty = 0;  // this is the second property that is modified.
    }
}

The problem is that the Property Editor does not always write out the second property when you change it. (I have assigned [NotifyParentProperty(true)] attribute to both properties and still wasn't happy with the results.)

My experience with the Properties Editor is that there is plenty more we custom control developers need from it.

You can add an item to the context menu on your control using the ControlDesigner's Verb feature. In your menu command, you can open a Window Form (designed and developed by you) which allows you to edit anything.


--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Java in a Nutshell Authors: David Flanagan, Pages: 1254, Published: 2005
Practical Guidelines and Best Practices for Microsoft Visual Basic and Visual C# Developers Authors: Francesco Balena, Giuseppe Dimauro, Pages: 608, Published: 2005
Learning Java: Covers Java 1.4. Authors: Patrick Niemeyer, Jonathan Knudsen, Pages: 807, Published: 2002
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Visual Basic 6 Complete Authors: Steve Brown, Pages: 1040, Published: 1999
Access 2003 Bible Authors: Cary N. Prague, Michael R. Irwin, Jennifer Reardon, Pages: 1464, Published: 2003
Beginning JavaScript Authors: Paul Wilton, Jeremy McPeak, Pages: 767, Published: 2007
Dynamic HTML: The Definitive Reference Authors: Danny Goodman, Pages: 1307, Published: 2007
Programming C#: Building .NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005
Beginning Visual Basic 6 Database Programming Authors: John Connell, Pages: 861, Published: 2003

Web:
Property-Changed Events If you want your control to send notifications when a property named PropertyName changes, define an event named PropertyNameChanged and a method named ...
PropertyChangeEvent (Java 2 Platform SE v1.4.2) An event source may send a null object as the name to indicate that an arbitrary set of if its properties have changed. In this case the old and new values ...
How to Write a Property Change Listener (The Java™ Tutorials ... Property-change events occur whenever the value of a bound property changes for a bean — a component that conforms to the JavaBeansTM specification. ...
ASP.NET AJAX > Client Reference > Sys > Component Class > Events ... NET AJAX Non-Visual Client Components · Defining Custom Component Properties and Raising PropertyChanged Events · Component Class ...
INotifyPropertyChanged.PropertyChanged Event (System.ComponentModel) PropertyChanged Event. Occurs when a property value changes. ... The PropertyChanged event can indicate that all properties on the object have changed by ...
Properties with property changed event, part 2 « Kris.NET Nov 12, 2006 ... Last time I talked about properties with a changed event, I described the traditional pattern of having one event per property. ...
Properties with property changed event, part 3 - Kris Vandermotten A while ago, I talked about how to write basic events for changed properties, and about the INotifyPropertyChanged interface. There is a third way to manage ...
Working with Property Change Events Property change events notify your application of state changes within viewports . Your application can register a listener with the StormBase object to ...
Properties with property changed event « Kris.NET In this first post, I want to talk about simple properties with a changed event, as you will often find them on classes used in Windows Forms data binding ...
Typed and Targeted Property Change Events in Java Discover a method for using Java generics when listening for property change events, and for identifying when a change occurred in an object other than the ...

Videos:
WeAreChange Ohio Removed from Biden Event in Cincinnati http://wearechangeohio.com WeAreChange Ohio Removed from Biden Event in Cincinnati Members of WeAreChange Ohio were ejected from outside of ...
Virtual Patrol - Intelligent Wireless Video Surveillance Virtual Patrol, powered by SensorWave, deters crime and vandalism before it happens to protect people and property. We change lives and build ...
Virtual Patrol - intelligent wireless video surveillance Virtual Patrol, powered by SensorWave, deters crime and vandalism before it happens to protect people and property. We change lives and build ...
Special Spring Workshop: The Beijing Olympics Planning for the 2008 Olympics has literally changed the face of Beijing. Urban image, construction, event-led city marketing, the society of ...
Makino Horizontal Machining Center Tool Change This video is of a Makino horizontal machining center's tool changing operation, in real-time. Makino's HMCs feature 0.9 second tool-to-tool ...
Zaio Corporation Zaio is in the process of photographing and appraising each and every property in cities across the country. That means every house, commercial ...
We Are Change at Ed Brown Live Free or Die Concert WeAreChange.org News reporting from the Live Free or Die concert. Dave Cahill playing and Randy Weaver's speech along with childish antics by ...
Jared Diamond - How Societies Fail-And Sometimes Succeed ... Jared Diamond articulately spelled out how his best-selling book, COLLAPSE, took shape. At first it was going to be a book of 18 chapters ...
Makino Horizontal Machining Center Tool Change This video is of a Makino horizontal machining center's tool changing operation, in real-time. Makino's HMCs feature 0.9 second tool-to-tool ...
You Must have a fire Plan! www.WildfireOptions.com 1-877-972-8188 You must have a fire plan! Fire can change your life in one day. Fire fighters are revered around ...




Search This Site:










report basics

can i put a variable into the dataview.rowfilter property?

log in

file manager problem

https post via httpwebrequest

is .net secure?

alternative to frameset

compilation error

seeing folders on a different server than the one my asp.net application is on.

browsers incompatibility

databind

database project, what version of vs 2005?

load handling while using ffmpeg.exe

treeview is taking long time to render

a translation that just won't work

altering width of label at run time

nested master pages switching

querying for international character

** membership.getuser( ) and timestamp ?

positioning options

how do i synch three menu controls?

changing the window color in windows

tttgallery and "the page cannot be displayed"

feature request - internationalization

which is the better solution?

xp sp2 makes visual studio .net lockup

open source, non profit

installing dnn in win xp

best event calendar module?

using <rolegroups> for a field of a griedview or details view

 
All Times Are GMT