Click here to Skip to main content
15,503,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Java sux! Pin
Heath Stewart28-Dec-03 10:28
protectorHeath Stewart28-Dec-03 10:28 
GeneralRe: Java sux! Pin
Nick Parker28-Dec-03 10:35
protectorNick Parker28-Dec-03 10:35 
GeneralRe: Java sux! Pin
Heath Stewart28-Dec-03 9:52
protectorHeath Stewart28-Dec-03 9:52 
GeneralHosting ActiveX Pin
Wizard_0128-Dec-03 3:30
Wizard_0128-Dec-03 3:30 
GeneralRe: Hosting ActiveX Pin
Heath Stewart28-Dec-03 4:58
protectorHeath Stewart28-Dec-03 4:58 
Generalfiltering properties Pin
Roger Alsing28-Dec-03 2:34
Roger Alsing28-Dec-03 2:34 
GeneralRe: filtering properties Pin
Wizard_0128-Dec-03 3:53
Wizard_0128-Dec-03 3:53 
GeneralRe: filtering properties Pin
Roger Alsing28-Dec-03 4:37
Roger Alsing28-Dec-03 4: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 5:07
Wizard_0128-Dec-03 5:07 
GeneralRe: filtering properties Pin
Roger Alsing28-Dec-03 5:34
Roger Alsing28-Dec-03 5:34 
GeneralRe: filtering properties Pin
Heath Stewart28-Dec-03 4:38
protectorHeath Stewart28-Dec-03 4:38 
GeneralSalted Hash add vulnerabilities Pin
laphijia28-Dec-03 0:15
laphijia28-Dec-03 0:15 
GeneralRe: Salted Hash add vulnerabilities Pin
Heath Stewart28-Dec-03 4:34
protectorHeath Stewart28-Dec-03 4:34 
QuestionHow to use array update the xml file?&#9608;&#9608;&#9608; Pin
nichen100127-Dec-03 21:19
nichen100127-Dec-03 21:19 
AnswerRe: How to use array update the xml file? Pin
Nick Parker28-Dec-03 4:19
protectorNick Parker28-Dec-03 4:19 
GeneralAttention C++ developers Pin
Alex Korchemniy27-Dec-03 16:40
Alex Korchemniy27-Dec-03 16:40 
GeneralRe: Attention C++ developers Pin
Colin Angus Mackay27-Dec-03 18:07
Colin Angus Mackay27-Dec-03 18:07 
GeneralRe: Attention C++ developers Pin
Alex Korchemniy27-Dec-03 18:11
Alex Korchemniy27-Dec-03 18:11 
GeneralRe: Attention C++ developers Pin
Colin Angus Mackay27-Dec-03 18:52
Colin Angus Mackay27-Dec-03 18:52 
GeneralRe: Attention C++ developers Pin
leppie27-Dec-03 20:07
leppie27-Dec-03 20:07 
GeneralRe: Attention C++ developers Pin
Heath Stewart28-Dec-03 4:21
protectorHeath Stewart28-Dec-03 4:21 
QuestionHow Do I transform 2d coordinates of the mouse into 3d? Pin
SherKar27-Dec-03 15:21
SherKar27-Dec-03 15:21 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay27-Dec-03 18:55
Colin Angus Mackay27-Dec-03 18:55 
AnswerRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
leppie27-Dec-03 20:12
leppie27-Dec-03 20:12 
GeneralRe: How Do I transform 2d coordinates of the mouse into 3d? Pin
Colin Angus Mackay28-Dec-03 2:55
Colin Angus Mackay28-Dec-03 2: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.