Ask a Question related to ASP.NET General, Design and Development.
-
David W. Simmonds #1
PropertyValueChanged event
I have a custom object that I use in a PropertyGrid as seen below. It
presents an elipsis button that when clicked brings up a custom modal
dialog. When I make a change in the property, the PropertyValueChanged event
never gets fired. I have other properties in the PropertyGrid that do fire
the event. Is there anything special that I need to do to have the event
fired?
[System::ComponentModel::EditorAttribute(__typeof(C PictureEditor),
__typeof(System::Drawing::Design::UITypeEditor))]
[System::ComponentModel::TypeConverterAttribute(__t ypeof(CPictureConverter))
]
[Serializable]
public __gc class PictureObj : public
System::Runtime::Serialization::ISerializable
{
private:
CPicture* m_pPicture;
public:
PictureObj()
{
m_pPicture = new CPicture;
}
~PictureObj()
{
delete m_pPicture;
}
PictureObj(System::Runtime::Serialization::Seriali zationInfo *si,
System::Runtime::Serialization::StreamingContext sc)
{
m_pPicture = new CPicture;
SetObjectData(si, sc);
}
void SetPicture(CPicture* pic) { *m_pPicture = *pic; }
CPicture* GetPicture() { return m_pPicture; }
void GetObjectData(System::Runtime::Serialization::Seri alizationInfo
*si,
System::Runtime::Serialization::StreamingContext sc);
void SetObjectData(System::Runtime::Serialization::Seri alizationInfo
*si,
System::Runtime::Serialization::StreamingContext sc);
__property IPicture* get_Picture() { return m_pPicture->m_pImage; }
__property void set_Picture(IPicture* value) { m_pPicture->m_pImage =
value; }
__property System::String* get_ImageExt() { return new
System::String(m_pPicture->m_strImageExt); }
__property void set_ImageExt(System::String* value) {
m_pPicture->m_strImageExt = value; }
};
David W. Simmonds Guest
-
Getting Error: Event Type 'flash.event:event' is unavailable ?????
Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however... -
stumped...table - row - click event, cancel checkbox event
I have a html table and mutliple rows. On each row i put an onclick event that opesn a modal window and prompts the user for some information. I... -
ItemDataBound Event - How to access the previous record when this event is raised in DataGrid?
ItemDataBound Event - How to access the previous record when this event is raised in DataGrid? During "ItemDataBound Event", I would like... -
Urgent: Event executed on server and data which is received by that event sent to the client.
Hi I am creating a web-based instant messaging application using asp.net. I have a DLL of which I create an object. This object has some... -
Assign Javascript event handler function dynamically to a Flash object event?
I have a Flash player object embedded in one of my web pages. I want to assign code to the OnReadyStateChange event for the object. Every... -
Earl Beaman[MS] #2
RE: PropertyValueChanged event
Hi David,
Is this the complete code? I don't see the event handler nor the event
hookup. If you have those, please post them as well.
If you don't have them, you need to get the event hooked up.
Thanks,
Earl Beaman
Microsoft, ASP.NET
This posting is provided "AS IS", with no warranties, and confers no
rights.
Earl Beaman[MS] Guest
-
Natty Gur #3
Re: PropertyValueChanged event
Hi,
You need to create your own class that derived from UITypeEditor and
override the EditValue method. In that method open the form and when you
finish return the value to the Value parameter. You should also override
the GetEditStyle to set the modal mode.
This, at least, works for me.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

