Click here to Skip to main content
15,927,055 members
Home / Discussions / C#
   

C#

 
QuestionInsert a row in Gridview Pin
ss.mmm1-Oct-07 9:24
ss.mmm1-Oct-07 9:24 
AnswerRe: Insert a row in Gridview Pin
Not Active1-Oct-07 9:46
mentorNot Active1-Oct-07 9:46 
GeneralRe: Insert a row in Gridview Pin
ss.mmm1-Oct-07 9:55
ss.mmm1-Oct-07 9:55 
GeneralRe: Insert a row in Gridview Pin
Not Active1-Oct-07 10:05
mentorNot Active1-Oct-07 10:05 
GeneralRe: Insert a row in Gridview Pin
DotNetXenon1-Oct-07 10:12
DotNetXenon1-Oct-07 10:12 
GeneralRe: Insert a row in Gridview Pin
ss.mmm15-Oct-07 8:28
ss.mmm15-Oct-07 8:28 
QuestionUniversal Toolbox Item installation help Pin
Jason Farrar1-Oct-07 9:06
Jason Farrar1-Oct-07 9:06 
AnswerRe: Universal Toolbox Item installation help Pin
TJoe1-Oct-07 13:10
TJoe1-Oct-07 13:10 
I haven't worked with integrating into VS before, but I think I help explain some of the code. The first line:

EnvDTE.Window window = DesignTimeEnvironment.Windows.Item(EnvDTE.Constants.vsWindowKindToolbox);


The class/interface DesignTimeEnvironment has a property called Windows (which I'm assuiming are the windows in the IDE). The type of the Windows property has a method called Item. This method takes a constant enumeration to determine which type of window to return.

Now the Item method is returning an interface (of EnvDTE.Window as you say). This doesn't mean the interface was instantiated. The IDE most likely has a class for the Toolbox window, but only exposes to external applications through the interface.

So to use reflection, you would need to get the Windows property (through GetProperty) then execute the Item method.

The same concept applies for the interface on the second line. Internally it's using a class, but only exposes it using the EnvDTE.ToolBox interface.








Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

QuestionMSMQ Triggers Pin
Not Active1-Oct-07 9:06
mentorNot Active1-Oct-07 9:06 
AnswerRe: MSMQ Triggers Pin
led mike1-Oct-07 9:25
led mike1-Oct-07 9:25 
GeneralRe: MSMQ Triggers Pin
Not Active1-Oct-07 9:42
mentorNot Active1-Oct-07 9:42 
AnswerRe: MSMQ Triggers Pin
Pete O'Hanlon1-Oct-07 9:43
mvePete O'Hanlon1-Oct-07 9:43 
GeneralRe: MSMQ Triggers Pin
Not Active1-Oct-07 9:50
mentorNot Active1-Oct-07 9:50 
GeneralRe: MSMQ Triggers Pin
Pete O'Hanlon1-Oct-07 9:58
mvePete O'Hanlon1-Oct-07 9:58 
QuestionOverloading comparisson operator Pin
Fernando A. Gomez F.1-Oct-07 8:31
Fernando A. Gomez F.1-Oct-07 8:31 
AnswerRe: Overloading comparisson operator Pin
Not Active1-Oct-07 8:44
mentorNot Active1-Oct-07 8:44 
GeneralRe: Overloading comparisson operator Pin
Fernando A. Gomez F.1-Oct-07 8:50
Fernando A. Gomez F.1-Oct-07 8:50 
QuestiondataGridview Question Pin
sajid.salim.khan1-Oct-07 7:21
sajid.salim.khan1-Oct-07 7:21 
AnswerRe: dataGridview Question Pin
Not Active1-Oct-07 7:29
mentorNot Active1-Oct-07 7:29 
GeneralRe: dataGridview Question Pin
sajid.salim.khan1-Oct-07 7:36
sajid.salim.khan1-Oct-07 7:36 
GeneralRe: dataGridview Question Pin
Not Active1-Oct-07 7:55
mentorNot Active1-Oct-07 7:55 
GeneralRe: dataGridview Question Pin
sajid.salim.khan1-Oct-07 8:07
sajid.salim.khan1-Oct-07 8:07 
GeneralRe: dataGridview Question Pin
Not Active1-Oct-07 8:14
mentorNot Active1-Oct-07 8:14 
GeneralRe: dataGridview Question Pin
sajid.salim.khan1-Oct-07 8:23
sajid.salim.khan1-Oct-07 8:23 
GeneralRe: dataGridview Question Pin
Not Active1-Oct-07 8:42
mentorNot Active1-Oct-07 8:42 

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.