Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML Serialize Hashtable.. Pin
Piyush Wattamwar9-May-07 0:59
Piyush Wattamwar9-May-07 0:59 
QuestionSelecting a combo box item by pressing tab Pin
Johan Lombaard8-May-07 23:11
Johan Lombaard8-May-07 23:11 
AnswerRe: Selecting a combo box item by pressing tab Pin
Blumen9-May-07 0:55
Blumen9-May-07 0:55 
QuestionWrite data -> Serial port Pin
-=gix=-8-May-07 22:18
-=gix=-8-May-07 22:18 
AnswerRe: Write data -> Serial port Pin
Muammar©8-May-07 22:35
Muammar©8-May-07 22:35 
AnswerRe: Write data -> Serial port Pin
stancrm8-May-07 23:06
stancrm8-May-07 23:06 
GeneralRe: Write data -> Serial port Pin
-=gix=-9-May-07 3:25
-=gix=-9-May-07 3:25 
QuestionUIEditor & Service Providers Pin
urbane.tiger8-May-07 22:02
urbane.tiger8-May-07 22:02 
In the ITypeDescriptorContext object passed to the EditValue method of UITypeEditor (i.e. the first parameter - nominally referred to as "context") there's a method member called GetService.

This is NOT to be confused with the GetService method available from the second parameter which is of Type IServiceProvider, it's parameter name being nominally "provider".

My question is twofold a) where is the ServiceCollection that presumably lies behind this method and b) how do I put things in it - Component & IComponent don't seem to provide a ServiceCollection, and if I endow my component with IServiceCollection it doesn't seem to connect with the ITypeDescriptorContext.GetService method, which never seems to be anything but null.

NB : As far as I can tell the only thing one can get from the provider.GetService is an IWindowsFormsEditorService object.

I'm working around this by putting an extra object into the attribute collection that provides yet another GetService that IS backed up by a ServiceCollection, the class also exposes the AddService and RemoveService methods.
Questionselecting a node in a treeview Pin
OlaMohammed8-May-07 22:00
OlaMohammed8-May-07 22:00 
AnswerRe: selecting a node in a treeview Pin
Muammar©8-May-07 22:56
Muammar©8-May-07 22:56 
Questionparallel port Pin
fark18-May-07 21:45
fark18-May-07 21:45 
AnswerRe: parallel port Pin
Christian Graus8-May-07 21:56
protectorChristian Graus8-May-07 21:56 
QuestionTrasparent panel Pin
sujithkumarsl8-May-07 21:21
sujithkumarsl8-May-07 21:21 
AnswerRe: Trasparent panel Pin
andre_swnpl8-May-07 21:35
andre_swnpl8-May-07 21:35 
GeneralRe: Trasparent panel Pin
sujithkumarsl8-May-07 21:37
sujithkumarsl8-May-07 21:37 
GeneralRe: Trasparent panel Pin
sujithkumarsl8-May-07 22:05
sujithkumarsl8-May-07 22:05 
AnswerRe: Trasparent panel Pin
Martin#8-May-07 22:36
Martin#8-May-07 22:36 
AnswerRe: Trasparent panel Pin
AFSEKI8-May-07 22:46
AFSEKI8-May-07 22:46 
GeneralRe: Trasparent panel Pin
sujithkumarsl9-May-07 0:12
sujithkumarsl9-May-07 0:12 
GeneralRe: Trasparent panel Pin
Blumen9-May-07 1:02
Blumen9-May-07 1:02 
GeneralRe: Trasparent panel Pin
sujithkumarsl9-May-07 2:27
sujithkumarsl9-May-07 2:27 
Questionskmmenu query Pin
Yogesh Jamkhindikar8-May-07 20:54
Yogesh Jamkhindikar8-May-07 20:54 
Questionparallel port Pin
fark18-May-07 20:29
fark18-May-07 20:29 
AnswerRe: parallel port Pin
Muammar©8-May-07 20:56
Muammar©8-May-07 20:56 
QuestionGatagridview control - WrapMode property Pin
madhusri8-May-07 20:16
madhusri8-May-07 20:16 

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.