Click here to Skip to main content
15,901,853 members
Home / Discussions / C#
   

C#

 
QuestionListView.Items.ContainsKey ?? Pin
student_rhr7-May-06 7:09
student_rhr7-May-06 7:09 
AnswerRe: ListView.Items.ContainsKey ?? Pin
Larantz7-May-06 8:32
Larantz7-May-06 8:32 
GeneralRe: ListView.Items.ContainsKey ?? Pin
student_rhr7-May-06 10:08
student_rhr7-May-06 10:08 
QuestionReflection Problem ! Pin
User 20930737-May-06 6:35
User 20930737-May-06 6:35 
AnswerRe: Reflection Problem ! Pin
rudy.net7-May-06 7:23
rudy.net7-May-06 7:23 
GeneralRe: Reflection Problem ! Pin
User 20930737-May-06 18:26
User 20930737-May-06 18:26 
AnswerRe: Reflection Problem ! Pin
Stefan Troschuetz7-May-06 7:32
Stefan Troschuetz7-May-06 7:32 
GeneralRe: Reflection Problem ! Pin
S. Senthil Kumar7-May-06 7:39
S. Senthil Kumar7-May-06 7:39 
Stefan Troschütz wrote:
pInfo2.SetValue(1, pInfo.GetValue(obj, null), null);


That won't work, pInfo.GetValue(...) will return a boxed instance of the struct, so setting it's IntVar property won't affect the original struct. As I suggested in my post below, you can call pInfo.SetValue to set the new struct, but I wonder if there's a better way? Maybe an API function to get the struct by reference? Or is this what the compiler does when you call myClass.StructVar.IntVar = 2?

Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
GeneralRe: Reflection Problem ! Pin
Stefan Troschuetz7-May-06 8:12
Stefan Troschuetz7-May-06 8:12 
AnswerRe: Reflection Problem ! Pin
S. Senthil Kumar7-May-06 7:36
S. Senthil Kumar7-May-06 7:36 
GeneralRe: Reflection Problem ! Pin
User 20930737-May-06 20:55
User 20930737-May-06 20:55 
Questioninsert into error Pin
Susuko7-May-06 5:52
Susuko7-May-06 5:52 
AnswerRe: insert into error Pin
Shajeel7-May-06 22:06
Shajeel7-May-06 22:06 
GeneralRe: insert into error Pin
Susuko8-May-06 10:18
Susuko8-May-06 10:18 
QuestionFiltering records in a DataGrid Pin
ventomito7-May-06 4:08
ventomito7-May-06 4:08 
AnswerRe: Filtering records in a DataGrid Pin
rudy.net7-May-06 4:30
rudy.net7-May-06 4:30 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 5:07
ventomito7-May-06 5:07 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 5:32
Sean897-May-06 5:32 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 5:53
ventomito7-May-06 5:53 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 6:01
Sean897-May-06 6:01 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 6:50
ventomito7-May-06 6:50 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 7:24
Sean897-May-06 7:24 
Questionwhy does my application flicker??!!! Pin
Susuko7-May-06 1:26
Susuko7-May-06 1:26 
AnswerRe: why does my application flicker??!!! Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 
QuestionDataGrid problem Pin
narendrakumarp7-May-06 0:19
narendrakumarp7-May-06 0:19 

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.