Click here to Skip to main content
15,889,862 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Run .Net1.1 and 2.0 at same time Pin
Brij25-Dec-08 17:58
mentorBrij25-Dec-08 17:58 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro25-Dec-08 18:50
Vince.Ro25-Dec-08 18:50 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Abhijit Jana25-Dec-08 20:24
professionalAbhijit Jana25-Dec-08 20:24 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro25-Dec-08 22:42
Vince.Ro25-Dec-08 22:42 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Brij25-Dec-08 22:59
mentorBrij25-Dec-08 22:59 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro28-Dec-08 13:44
Vince.Ro28-Dec-08 13:44 
QuestionInterface and GetType() - works in C# but not in VB? Pin
David Hovey25-Dec-08 12:37
David Hovey25-Dec-08 12:37 
AnswerRe: Interface and GetType() - works in C# but not in VB? Pin
cterrinw27-Sep-09 19:32
cterrinw27-Sep-09 19:32 
Hi David,

I am having the same problem, I can get the oleUnderlyingDataObject ok but I am unable to get the method getDataFromHGLOBLAL.

The last line of code returns nothing...

Did you find a resolution to this?

Regards

Bill Terrington

Public Sub New(ByVal underlyingDataObject As System.Windows.Forms.IDataObject)
         'get the underlying dataobject and its ComType IDataObject interface to it 
         Me.underlyingDataObject = underlyingDataObject
         Me.comUnderlyingDataObject = DirectCast(Me.underlyingDataObject, System.Runtime.InteropServices.ComTypes.IDataObject)

         'get the internal ole dataobject and its GetDataFromHGLOBLAL so it can be called later 
         Dim innerDataField As FieldInfo = CType(Me.underlyingDataObject, Object).[GetType].GetField("innerData", BindingFlags.NonPublic Or BindingFlags.Instance)

         Me.oleUnderlyingDataObject = DirectCast(innerDataField.GetValue(Me.underlyingDataObject), System.Windows.Forms.IDataObject)
         Me.getDataFromHGLOBLALMethod = CType(Me.oleUnderlyingDataObject, Object).[GetType].GetMethod("getDataFromHGLOBLAL", BindingFlags.NonPublic Or BindingFlags.Instance)

End Sub

GeneralRe: Interface and GetType() - works in C# but not in VB? Pin
David Hovey27-Sep-09 19:37
David Hovey27-Sep-09 19:37 
GeneralRe: Interface and GetType() - works in C# but not in VB? Pin
cterrinw27-Sep-09 20:48
cterrinw27-Sep-09 20:48 
AnswerRe: Interface and GetType() - works in C# but not in VB? Pin
BrianHoover2-Jan-10 1:04
BrianHoover2-Jan-10 1:04 
GeneralRe: Interface and GetType() - works in C# but not in VB? Pin
David Hovey2-Jan-10 3:10
David Hovey2-Jan-10 3:10 
QuestionInterface code from C# to VB.NET Pin
David Hovey25-Dec-08 9:12
David Hovey25-Dec-08 9:12 
QuestionProblem with dot net (Window forms) user control in Vb6 application Pin
Nitin198125-Dec-08 6:42
Nitin198125-Dec-08 6:42 
AnswerRe: Problem with dot net (Window forms) user control in Vb6 application Pin
Not Active25-Dec-08 12:21
mentorNot Active25-Dec-08 12:21 
GeneralRe: Problem with dot net (Window forms) user control in Vb6 application Pin
Nitin198125-Dec-08 18:21
Nitin198125-Dec-08 18:21 
Questionhow many types i use web.config Pin
Pramod Joshi24-Dec-08 0:30
Pramod Joshi24-Dec-08 0:30 
AnswerRe: how many types i use web.config Pin
Brij24-Dec-08 1:04
mentorBrij24-Dec-08 1:04 
Questionhow to bind gridview using Pin
nileshbahirshet23-Dec-08 22:06
nileshbahirshet23-Dec-08 22:06 
AnswerRe: how to bind gridview using Pin
Brij24-Dec-08 0:52
mentorBrij24-Dec-08 0:52 
Questionproblem in reading the xml in vb.net Pin
nileshbahirshet23-Dec-08 20:58
nileshbahirshet23-Dec-08 20:58 
AnswerRe: problem in reading the xml in vb.net Pin
Not Active24-Dec-08 3:35
mentorNot Active24-Dec-08 3:35 
Questiontransparent pictureboxes in C# Pin
Umangj23-Dec-08 6:14
Umangj23-Dec-08 6:14 
AnswerRe: transparent pictureboxes in C# Pin
Rob Smiley23-Dec-08 6:42
Rob Smiley23-Dec-08 6:42 
AnswerRe: transparent pictureboxes in C# Pin
Tristan Rhodes23-Dec-08 22:52
Tristan Rhodes23-Dec-08 22:52 

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.