ajayzone Level: Trainee
 Registered: 16-06-2007 Posts: 3
|
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
|