Click here to Skip to main content
15,949,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: check box... Pin
Heath Stewart14-Nov-03 3:08
protectorHeath Stewart14-Nov-03 3:08 
QuestionHow to use C# Pin
Xuan Thuy13-Nov-03 22:12
Xuan Thuy13-Nov-03 22:12 
AnswerRe: How to use C# Pin
Heath Stewart14-Nov-03 2:56
protectorHeath Stewart14-Nov-03 2:56 
Questionhow to get the indexes of selected items in DataGrid? Pin
wangier13-Nov-03 21:13
wangier13-Nov-03 21:13 
AnswerRe: how to get the indexes of selected items in DataGrid? Pin
Heath Stewart14-Nov-03 2:49
protectorHeath Stewart14-Nov-03 2:49 
GeneralTab control issue Pin
Gambit00713-Nov-03 20:05
Gambit00713-Nov-03 20:05 
GeneralSimple Question: COM interop Pin
CillyMe13-Nov-03 17:15
CillyMe13-Nov-03 17:15 
GeneralRe: Simple Question: COM interop Pin
Heath Stewart14-Nov-03 2:29
protectorHeath Stewart14-Nov-03 2:29 
The only difference is that using "Add Reference..." and the COM tab is that the typelib must be registered. When you add a COM reference this way, it uses either tlbimp.exe or the same code as tlbimp.exe would use. You may get a little more control using tlbimp.exe, however, but don't forget that if you want strongly-named assembly (i.e., they have to be signed) you can still do that in VS.NET. Just open the project properties of the project to which you'll add an RCW (before it's added) and specify the key file or key container at the bottom of the "General" page.

One other tip: to import ActiveX controls, you can also use aximp.exe or customize your toolbox which also creates an RCW (actually 2, one for the ActiveX control which will be derived from System.Windows.Forms.AxHost and the interop assembly for the typelib). The rules of signing still apply since the two interop assemblies are created when you add the ActiveX control to your project. One major difference about aximp.exe over VS.NET is, however, that aximp.exe can generate the source code for the AxHost derivitive class. This is sometimes handy when you want to change some things first.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
Generalresizing controls Pin
udaan200313-Nov-03 13:16
udaan200313-Nov-03 13:16 
GeneralRe: resizing controls Pin
Heath Stewart14-Nov-03 2:41
protectorHeath Stewart14-Nov-03 2:41 
GeneralRe: resizing controls Pin
udaan200314-Nov-03 4:24
udaan200314-Nov-03 4:24 
GeneralRe: resizing controls Pin
Heath Stewart14-Nov-03 4:31
protectorHeath Stewart14-Nov-03 4:31 
Generalreleasing System.IO.FileInfo Pin
assinine13-Nov-03 11:35
assinine13-Nov-03 11:35 
GeneralRe: releasing System.IO.FileInfo Pin
Heath Stewart14-Nov-03 2:35
protectorHeath Stewart14-Nov-03 2:35 
GeneralToolbar Component Setting Pin
zuhx13-Nov-03 11:08
zuhx13-Nov-03 11:08 
GeneralRe: Toolbar Component Setting Pin
Heath Stewart14-Nov-03 2:37
protectorHeath Stewart14-Nov-03 2:37 
Generalhandling a voice event Pin
eafares26513-Nov-03 10:15
eafares26513-Nov-03 10:15 
GeneralRe: handling a voice event Pin
Kentamanos13-Nov-03 10:47
Kentamanos13-Nov-03 10:47 
GeneralRe: handling a voice event Pin
eafares26514-Nov-03 5:03
eafares26514-Nov-03 5:03 
GeneralBlock scope when using 'using' statement. Pin
Bill Priess13-Nov-03 6:29
Bill Priess13-Nov-03 6:29 
GeneralRe: Block scope when using 'using' statement. Pin
Heath Stewart13-Nov-03 7:06
protectorHeath Stewart13-Nov-03 7:06 
GeneralRe: Block scope when using 'using' statement. Pin
Bill Priess13-Nov-03 7:34
Bill Priess13-Nov-03 7:34 
GeneralRe: Block scope when using 'using' statement. Pin
Heath Stewart13-Nov-03 8:42
protectorHeath Stewart13-Nov-03 8:42 
GeneralRe: Block scope when using 'using' statement. Pin
Bill Priess13-Nov-03 9:54
Bill Priess13-Nov-03 9:54 
Generaldotnetmagic concepts Pin
mikemilano13-Nov-03 6:13
mikemilano13-Nov-03 6:13 

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.