Click here to Skip to main content
15,893,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Where to download Sheridan Ultragrid 1.0 installer? Pin
hifiger20045-Mar-08 22:54
hifiger20045-Mar-08 22:54 
GeneralRe: Where to download Sheridan Ultragrid 1.0 installer? Pin
Christian Graus5-Mar-08 23:02
protectorChristian Graus5-Mar-08 23:02 
Questionobject to interface casting [modified] Pin
shadow_25-Mar-08 22:04
professionalshadow_25-Mar-08 22:04 
GeneralRe: object to interface casting Pin
Christian Graus5-Mar-08 22:08
protectorChristian Graus5-Mar-08 22:08 
JokeRe: object to interface casting Pin
shadow_27-Mar-08 2:55
professionalshadow_27-Mar-08 2:55 
GeneralRe: object to interface casting Pin
Dave Kreskowiak6-Mar-08 7:52
mveDave Kreskowiak6-Mar-08 7:52 
GeneralRe: object to interface casting Pin
shadow_26-Mar-08 22:42
professionalshadow_26-Mar-08 22:42 
GeneralRe: object to interface casting Pin
Dave Kreskowiak7-Mar-08 3:12
mveDave Kreskowiak7-Mar-08 3:12 
OK. I just tried this and it failed. I, too, would have thought this should have worked.

Hmmm.... still playing around with this one.

OK. It looks like you're going to have to create the list Dictionary using IGridMarkable, not Product:
Dim list As New Dictionary(Of Short, IGridMarkable)
list.Add(some short, New Product())
someClass.setRef(list)

The type cast won't work because the Dictionary is, internally, a collection of KeyValuePair(Of type, type) objects, which the type cast won't transfer to.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: object to interface casting Pin
shadow_27-Mar-08 4:10
professionalshadow_27-Mar-08 4:10 
NewsRe: object to interface casting Pin
shadow_27-Mar-08 2:58
professionalshadow_27-Mar-08 2:58 
GeneralWindowless ActiveX controls are not supported Pin
tjskcp5-Mar-08 15:51
tjskcp5-Mar-08 15:51 
GeneralRe: Windowless ActiveX controls are not supported Pin
Christian Graus5-Mar-08 16:29
protectorChristian Graus5-Mar-08 16:29 
GeneralRe: Windowless ActiveX controls are not supported Pin
tjskcp5-Mar-08 17:08
tjskcp5-Mar-08 17:08 
GeneralRe: Windowless ActiveX controls are not supported Pin
Christian Graus5-Mar-08 21:40
protectorChristian Graus5-Mar-08 21:40 
QuestionHow do I exit a loop early Pin
AAGTHosting5-Mar-08 14:09
AAGTHosting5-Mar-08 14:09 
AnswerRe: How do I exit a loop early Pin
Christian Graus5-Mar-08 14:12
protectorChristian Graus5-Mar-08 14:12 
GeneralRe: How do I exit a loop early Pin
AAGTHosting5-Mar-08 14:26
AAGTHosting5-Mar-08 14:26 
GeneralRe: How do I exit a loop early Pin
Christian Graus5-Mar-08 16:47
protectorChristian Graus5-Mar-08 16:47 
AnswerRe: How do I exit a loop early Pin
Nilesh Hapse5-Mar-08 18:29
Nilesh Hapse5-Mar-08 18:29 
GeneralDisplay table relations in datagridview Pin
regedit5-Mar-08 7:27
regedit5-Mar-08 7:27 
QuestionChallenging Crystal Reports / .NET Windows application question Pin
KreativeKai5-Mar-08 6:19
professionalKreativeKai5-Mar-08 6:19 
AnswerRe: Challenging Crystal Reports / .NET Windows application question [modified] Pin
KreativeKai5-Mar-08 8:17
professionalKreativeKai5-Mar-08 8:17 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
codemunch5-Mar-08 9:28
codemunch5-Mar-08 9:28 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
KreativeKai6-Mar-08 2:45
professionalKreativeKai6-Mar-08 2:45 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
codemunch6-Mar-08 8:44
codemunch6-Mar-08 8:44 

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.