hi all,
got an ActiveX Control, this has DBGrid Combo Box and few more controls
it has a property DbNam - used to get the path and name of the database. have created a property page to set this, but the property does not update.... the code -
- in the UseControl
===================================================
Private strDbname As String
Public Property Let DbName(ByVal dbNam As String)
strDbname = dbNam
PropertyChanged "DbName"
End Property
Public Property Get DbName() As String
DbName = strDbname
End Property
===================================================
- in the Property Page
Private Sub txtDbName_Change()
Changed = True
End Sub
Private Sub PropertyPage_ApplyChanges()
SelectedControls(0).DbName = txtDbName.Text
End Sub
Private Sub PropertyPage_SelectionChanged()
txtDbName.Text = SelectedControls(0).DbName
End Sub
====================================================
what could go wrong in this .... after the control is initialized the property does not stay in the variable
pls help
__________
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."
got an ActiveX Control, this has DBGrid Combo Box and few more controls
it has a property DbNam - used to get the path and name of the database. have created a property page to set this, but the property does not update.... the code -
- in the UseControl
===================================================
Private strDbname As String
Public Property Let DbName(ByVal dbNam As String)
strDbname = dbNam
PropertyChanged "DbName"
End Property
Public Property Get DbName() As String
DbName = strDbname
End Property
===================================================
- in the Property Page
Private Sub txtDbName_Change()
Changed = True
End Sub
Private Sub PropertyPage_ApplyChanges()
SelectedControls(0).DbName = txtDbName.Text
End Sub
Private Sub PropertyPage_SelectionChanged()
txtDbName.Text = SelectedControls(0).DbName
End Sub
====================================================
what could go wrong in this .... after the control is initialized the property does not stay in the variable
pls help
__________
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."