Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Java sux! Pin
Heath Stewart28-Dec-03 9:28
protectorHeath Stewart28-Dec-03 9:28 
GeneralRe: Java sux! Pin
Nick Parker28-Dec-03 9:35
protectorNick Parker28-Dec-03 9:35 
GeneralRe: Java sux! Pin
Heath Stewart28-Dec-03 8:52
protectorHeath Stewart28-Dec-03 8:52 
GeneralHosting ActiveX Pin
Wizard_0128-Dec-03 2:30
Wizard_0128-Dec-03 2:30 
GeneralRe: Hosting ActiveX Pin
Heath Stewart28-Dec-03 3:58
protectorHeath Stewart28-Dec-03 3:58 
Generalfiltering properties Pin
Roger Alsing28-Dec-03 1:34
Roger Alsing28-Dec-03 1:34 
GeneralRe: filtering properties Pin
Wizard_0128-Dec-03 2:53
Wizard_0128-Dec-03 2:53 
GeneralRe: filtering properties Pin
Roger Alsing28-Dec-03 3:37
Roger Alsing28-Dec-03 3:37 
the typeconverter thing did it..
works like a charm..


incase anyone ever need this , here is the code for it..

public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, System.Attribute[] attributes)<br />
{<br />
	System.ComponentModel.PropertyDescriptorCollection propps=propps=System.ComponentModel.TypeDescriptor.GetProperties (value,attributes,false);<br />
<br />
	ArrayList arr=new ArrayList (propps);<br />
<br />
	//cast the value to a typed TextBoxButton <br />
	TextBoxButton tb=value as TextBoxButton;<br />
	<br />
	//check what type the button is (spin,custom,checkbox)<br />
	if (tb.Type != TextBoxButtonType.Custom)<br />
		arr.Remove (propps.Find("image",true));<br />
<br />
	if (tb.Type != TextBoxButtonType.CheckBox)<br />
		arr.Remove (propps.Find("checked",true));<br />
<br />
	if (tb.Type != TextBoxButtonType.Spin)<br />
		arr.Remove (propps.Find("autorepeat",true));<br />
<br />
	//copy the modified propp arr into a typed propertydescriptor[] <br />
	PropertyDescriptor[] arr2=new PropertyDescriptor[arr.Count];<br />
	arr.CopyTo (arr2);<br />
<br />
	//return the new propertydescriptorcollection<br />
	return new PropertyDescriptorCollection(arr2);<br />
}

GeneralRe: filtering properties Pin
Wizard_0128-Dec-03 4:07
Wizard_0128-Dec-03 4:07 
GeneralRe: filtering properties Pin
Roger Alsing28-Dec-03 4:34
Roger Alsing28-Dec-03 4:34 
GeneralRe: filtering properties Pin
Heath Stewart28-Dec-03 3:38
protectorHeath Stewart28-Dec-03 3:38 
GeneralSalted Hash add vulnerabilities Pin
laphijia27-Dec-03 23:15
laphijia27-Dec-03 23:15 
GeneralRe: Salted Hash add vulnerabilities Pin
Heath Stewart28-Dec-03 3:34
protectorHeath Stewart28-Dec-03 3:34 
QuestionHow to use array update the xml file?&#9608;&#9608;&#9608; Pin
nichen100127-Dec-03 20:19
nichen100127-Dec-03 20:19 
AnswerRe: How to use array update the xml file? Pin
Nick Parker28-Dec-03 3:19
protectorNick Parker28-Dec-03 3:19 
GeneralAttention C++ developers Pin
Alex Korchemniy27-Dec-03 15:40
Alex Korchemniy27-Dec-03 15:40 
GeneralRe: Attention C++ developers Pin
Colin Angus Mackay27-Dec-03 17:07
Colin Angus Mackay27-Dec-03 17:07 
GeneralRe: Attention C++ developers Pin
Alex Korchemniy27-Dec-03 17:11
Alex Korchemniy27-Dec-03 17:11 
GeneralRe: Attention C++ developers Pin
Colin Angus Mackay27-Dec-03 17:52
Colin Angus Mackay27-Dec-03 17:52 
GeneralRe: Attention C++ developers Pin
leppie27-Dec-03 19:07
leppie27-Dec-03 19:07 
GeneralRe: Attention C++ developers Pin
Heath Stewart28-Dec-03 3:21
protectorHeath Stewart28-Dec-03 3:21 
QuestionHow Do I transform 2d coordinates of the mouse into 3d? Pin
SherKar27-Dec-03 14:21
SherKar27-Dec-03 14:21 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay27-Dec-03 17:55
Colin Angus Mackay27-Dec-03 17:55 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
leppie27-Dec-03 19:12
leppie27-Dec-03 19:12 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay28-Dec-03 1:55
Colin Angus Mackay28-Dec-03 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.