To try & clarify this problem, my code for the button (in my FMain form)
click that opens the form which contains the DataSourceCountry &
DataBrowserCountry controls is shown below. When the project runs, the
FCountryMaintence form is displayed OK except that the DataSourceCountry
control is empty with the controls on its base all grayed out. I know
that MDatabase.DatabaseConnection is valid since it is used successfully
to do other database retrievals & updates.


Public Sub ButtonCountryMaintenance_Click()
  Dim hForm As Form
  hform = New FCountryMaintenance
  FCountryMaintenance.DataSourceCountry.Connection =
MDatabase.DatabaseConnection
  FCountryMaintenance.DataSourceCountry.Table = "country"
  FCountryMaintenance.DataBrowserCountry.Columns = ["country"]
  hForm.Show()
End


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to