When ButtonSearch is clicked, even though the only previous event coding on
TextAreaDetails is to clear & refresh it, text appears in it: this is as
though ComboBoxTitle has been clicked.

To display the Text in the TextBox part of a ComboBox (i.e. ComboBoxTitle,
again in ButtonSearch_Click), it seems to be necessary also to put that
same text as the first item of the list in the ListBox part: that item is
not then shown at runtime in the popup list.

Fragments of code from the attached Test project:
Public Sub ButtonSearch_Click()
ClearTitleAndDetails 'clears TextAreaDetails
.
.
.
With ComboBoxTitle
  .Text = "Select Title"
  .Add("Select Title")
  .Add("T1")
  .Add("T2")
  .Add("T3")
  .Enabled = True
  .Refresh
End With
End

Public Sub ComboBoxTitle_Click()
EnableMainControls '
TextAreaDetails.Text = "Lines of text."
End

Attachment: Test.tar.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to