Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Property Pages not Updating

Status
Not open for further replies.

ufobaby

MIS
Sep 25, 2001
238
US
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


__________
[cheers]
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top