borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (file not found)Next Topic (News:XD++ MFC Library Standard Edition V8.20 is released (100% Source Code)!) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : simple ocx to hide some properties of mscom control
Poster Message
ajayzone
Level: Trainee

Registered: 16-06-2007
Posts: 3

icon simple ocx to hide some properties of mscom control

Hi i am trying a simple ocx where i want to hide a few properties of mscomm from the user which he dose not need to change i only want him to select port, open and give input.
this is the code that i wrote. (i don`t know much about ocx) but it is giving error permision denied(70).


Public CommPort As PropertyBag
Public PortOpen As PropertyBag
Public OutPut As PropertyBag

Private Sub UserControl_Initialize()
    MSComm1.Settings = "9600,N,8,2"
    MSComm1.SThreshold = 100
    MSComm1.InputLen = 0
    MSComm1.RThreshold = 1
    MSComm1.InBufferCount = 0
    MSComm1.OutBufferCount = 0
    MSComm1.NullDiscard = True
    MSComm1.Handshaking = comXOnXoff

End Sub

Public Sub UserControl_ReadProperties(PropBag As PropertyBag)
    CommPort = MSComm1.CommPort
    PortOpen = MSComm1.PortOpen
    OutPut = MSComm1.OutPut
End Sub


____________________________
new guy

16-06-2007 at 10:10 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ActiveX : simple ocx to hide some properties of mscom control
Previous Topic (file not found)Next Topic (News:XD++ MFC Library Standard Edition V8.20 is released (100% Source Code)!) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder