![]() ![]() Mscomm 64 BitI don't know that I would recommend this for a production solution, but since this is for a fun then you can still use the MSCOMM control from VB6 inside of a VB.Net application by adding a reference to it: 1.) Click on your vb project in the solution explorer, choose 'Add Reference' 2.) Click on the COM tab 3.) Select 'Microsoft Comm Control 6.0'. Install 4.5 on windows 10. If you don't have it in the list then you can download the Microsoft Visual Basic 6 Common Controls () (you'll have to check the license out on those). 4.) Once you've added that reference you can use the MSCOMM object from Vb.Net by declaring it as a variable in your code: Dim comm As New MSCommLib.MSComm I tend to want to get everything working with.Net code as you end up having more power in the end, but there were some very easy to use VB6 controls and if you're just doing this for fun you can go this route if it accomplishes what you want and saves you time.:). I don't know that I would recommend this for a production solution, but since this is for a fun then you can still use the MSCOMM control from VB6 inside of a VB.Net application by adding a reference to it: 1.) Click on your vb project in the solution explorer, choose 'Add Reference' 2.) Click on the COM tab 3.) Select 'Microsoft Comm Control 6.0'. If you don't have it in the list then you can download the Microsoft Visual Basic 6 Common Controls () (you'll have to check the license out on those). Mscomm14.) Once you've added that reference you can use the MSCOMM object from Vb.Net by declaring it as a variable in your code: Dim comm As New MSCommLib.MSComm I tend to want to get everything working with.Net code as you end up having more power in the end, but there were some very easy to use VB6 controls and if you're just doing this for fun you can go this route if it accomplishes what you want and saves you time.:). Hello bpell, I have tried using the MSComm in VB.Net express 2008, and it seems that the event MSComm_OnComm doesnt fire:( I really dont want to use the SerialPort in the VB.net because i dont want to go into using delegates to update the interface. Do you have any idea why the event is not firing? I am sure that the device will respond once it receives any data (i checked it with another program) but i am not sure that the MSComm is actually sending. Patch for dungeon keeper 2 for windows 7. This is a portion of the code i execute on a button click. MSComm.CommPort = 3 MSComm.Settings = '9600,n,8,1' MSComm.PortOpen = True If MSComm.PortOpen Then MSComm.Output = 'hello?'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |