Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralBar Chart graph with VB.net Pin
ATC21-Jan-05 6:41
ATC21-Jan-05 6:41 
GeneralRe: Bar Chart graph with VB.net Pin
Tom John23-Jan-05 23:54
Tom John23-Jan-05 23:54 
QuestionHow can i make custom paper size for Dot Matrix printer Pin
mayukhC21-Jan-05 5:08
mayukhC21-Jan-05 5:08 
AnswerRe: How can i make custom paper size for Dot Matrix printer Pin
smoking john22-Jan-05 1:36
smoking john22-Jan-05 1:36 
Questionhow to write code to call for .dll files? Pin
lsch198321-Jan-05 4:44
lsch198321-Jan-05 4:44 
AnswerRe: how to write code to call for .dll files? Pin
Colin Angus Mackay21-Jan-05 10:22
Colin Angus Mackay21-Jan-05 10:22 
GeneralRe: how to write code to call for .dll files? Pin
lsch198321-Jan-05 22:17
lsch198321-Jan-05 22:17 
AnswerRe: how to write code to call for .dll files? Pin
GuruPandian21-Jan-05 19:50
GuruPandian21-Jan-05 19:50 
Hi,

Notes :
-------
- If we want to call a COM(.DLL) which was created in .NET Application to another .NET Application then It has to be done as follows...

General Notes :
---------------
- It is an ease method to create a COM Interop.
- Visual Basic .NET builds the assembly and registers the COM object with the operating system automatically(implicitly)
- Select New Project and Select Class Library on Templates area.
- Change the Name ClassLibrary1 to COMINterop1.
- Select The button OK.
- Now a Class Library Opened.

We have to Add a COM Class as following…
----------------------------------------
- Select Add New Item… in Project Menu.
- Select COM Class from Templates area.
- Change the Name COMClass1 to COM_1
- Click the button Open.
- The COM must has constructor sub New() otherwise the COM may not Registered / Instantiated.
- The Constructor must not take place any Parameter.
- Write yhe following code within the COM Class as follows…

'--- Code Begins Here
<comclass(com_1.classid, com_1.interfaceid,="" com_1.eventsid)=""> _
Public Class Com_1
Public Enum T
Capital = 1
Small = 2
End Enum
Public Const NewLine = vbCrLf

Public Function Letters(ByVal [Option] As T) As String
Dim Nos As Integer, Conc As String
Select Case [Option]
Case T.Capital
For Nos = 1 To 26
Conc &= Chr(Nos + 64) & NewLine
Next
Case T.Small
For Nos = 1 To 26
Conc &= Chr(Nos + 96) & NewLine
Next
End Select
Return Conc
End Function
End Class

- The
GeneralRe: how to write code to call for .dll files? Pin
lsch198321-Jan-05 22:23
lsch198321-Jan-05 22:23 
GeneralLinking one library class to another Pin
Steve200521-Jan-05 0:52
Steve200521-Jan-05 0:52 
GeneralReferencing to ComCtl32.dll in VB.NET Pin
Farhad Eft20-Jan-05 19:21
Farhad Eft20-Jan-05 19:21 
GeneralRe: Referencing to ComCtl32.dll in VB.NET Pin
Dave Kreskowiak21-Jan-05 3:36
mveDave Kreskowiak21-Jan-05 3:36 
GeneralRe: Referencing to ComCtl32.dll in VB.NET Pin
Farhad Eft22-Jan-05 20:28
Farhad Eft22-Jan-05 20:28 
Generalmp3 bitrate/song length info Pin
billiam90420-Jan-05 11:31
billiam90420-Jan-05 11:31 
GeneralTo Many Records Added Pin
bexarcounty20-Jan-05 9:59
bexarcounty20-Jan-05 9:59 
GeneralVB.Net Rounding Numbers Pin
Desi Bravo20-Jan-05 9:55
Desi Bravo20-Jan-05 9:55 
GeneralRe: VB.Net Rounding Numbers Pin
Christian Graus20-Jan-05 10:10
protectorChristian Graus20-Jan-05 10:10 
GeneralRe: VB.Net Rounding Numbers Pin
Desi Bravo21-Jan-05 7:03
Desi Bravo21-Jan-05 7:03 
GeneralRe: VB.Net Rounding Numbers Pin
MyThread21-Jan-05 9:48
MyThread21-Jan-05 9:48 
GeneralRe: VB.Net Rounding Numbers Pin
Christian Graus21-Jan-05 9:58
protectorChristian Graus21-Jan-05 9:58 
GeneralRe: VB.Net Rounding Numbers Pin
MyThread21-Jan-05 10:02
MyThread21-Jan-05 10:02 
GeneralRe: VB.Net Rounding Numbers Pin
Desi Bravo26-Jan-05 6:13
Desi Bravo26-Jan-05 6:13 
GeneralExcel Process Won't Quit in VB Pin
iown71420-Jan-05 6:30
iown71420-Jan-05 6:30 
GeneralRe: Excel Process Won't Quit in VB Pin
jonathan1521-Jan-05 0:42
jonathan1521-Jan-05 0:42 
GeneralRe: Excel Process Won't Quit in VB Pin
iown71424-Jan-05 10:17
iown71424-Jan-05 10:17 

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.