Hi, I made a custom control inherited from 'Button' control. I made a custom event 'Action' in this userControl I made a access specifier 'public'. like this : public delegate void ActionEventHandler(object sender,ActionEventArgs e); public event ActionEventHandler Action; protected void OnAction( object sender, ActionEventArgs e) { if ( Action != null) { Action(sender,e); } } but when I drop this control to a form it doesn't show 'Action' event in property window. plz help how to do this...
Guru Call
Posts
-
How to show event of a user control in property window -
how to hide a particular property of a control which is on windows formsHi, I think You didn't understand my Question. I want to hide the particular property of existing control without inheriting on my form ( in current suitation it is button but in another case it may be another control or may be more than one controls ). I do not want to inherit all control and then I hide that particular property by overriding. I only want that I stick a perticular control on my form and hide some properties of it. for example : At my form there are 4 controls 1. button : I want to hide the 'Text' Property of this, from property windows sothat developer can not set it's Text from property window 2. textbox : I want to hide the 'Size' Property of this control from property windows only 3. gridview : I want to hide the 'Name' Property of this control from property windows only 4. Groupbox : I want to hide the ' Location' Property of this control from property windows only And all of cases I do not want to inherit any control.
-
how to hide a particular property of a control which is on windows formsHi All, I stuck in a problem please help me :(( , My problem is that I have a windowsForm at this 4 buttons are there. I want to hide the "Text" property of one particular button from Property window so that no one can assign value to it from property window but at the same time he can be able to assing "Text" property programitically :confused:. e.g. : button1.Text = "Register"; it will be possible by programatically not from property windows :( . thanx in advance... :rose:
-
how to write a property at designer by propety window at design time of nested controlHi, I made a user control. it is also a collection ( made by ) various user controls . Eg : ButtonControl is made by various buttons. I want to write the property of one of this control ( like EditButton it has contain ) at designer at design time in my application by using property window. like this ::: this.ButtonControl .EditButton.Text = "Edit me" how can I do ??? Plz help ...
-
How I know that a property is related to a xml fileHi, I made a window application in which I put some images, some xml files and some strings. during run time with the help of Assembly ( using reflection ) I try to access the property which are only of corresponding to xml files so that I can fill my combobox with the Name of the properties which are only related to xml files. Thanks in advance... Plz help
-
how I know that which property is associated which file at run time.Hi, I have two xml files I added it in to the Property.resource as a embedded resources. how I know that which property is associated which file at run time. means I want file name of respective resource property. thanx in advance....
-
How to get all files name from Property.ResoureceHi, I added some files in my projects resources and made them as a embedded resources. I want to get all the file names. Plz help... thanx in advance...
-
How to show resource files in my usercontrol 's propertyHi, I made a custom user control and set it's public property "ShowFiles". now this property can be seen as a property of my user control in property window. I want that this property should be a combobox and it should shows all the files which are currently in my "Resources" at design time. at design time I will choose one of these and use as a property of my user control. Plz help... :(( :(( thanx in advance... :rose: