M
Mika M
Hello!
I'm using VB.NET 2003 and application type is Windows Forms.
I have created into DataSet a table named as 'Teams' containing columns
(fields) ID, Team, and Description.
After that ComboBox (cboTeam) is populated using this 'Teams'-table like ...
cboTeam.DataSource = ds.Tables("Teams")
cboTeam.DisplayMember = "Team"
cboTeam.ValueMember = "ID"
cboTeam.DataBindings.Add("SelectedValue", myTable, "TeamID")
.... and it's working fine.
Anyway I would like to show 'Teams'-table 'Description'-field as ToolTip for
the user when mousepointer is on the cboTeam or user just selected new team,
because Team is just an abbreviation. How to do this?
Second question: why ComboBoxes are not changing arrearance to XP-Styles
althought other UI Components does when I use the following code in my Sub
Main ...
System.Windows.Forms.Application.EnableVisualStyles()
Application.DoEvents()
System.Windows.Forms.Application.Run(New frmMain)
I'm using VB.NET 2003 and application type is Windows Forms.
I have created into DataSet a table named as 'Teams' containing columns
(fields) ID, Team, and Description.
After that ComboBox (cboTeam) is populated using this 'Teams'-table like ...
cboTeam.DataSource = ds.Tables("Teams")
cboTeam.DisplayMember = "Team"
cboTeam.ValueMember = "ID"
cboTeam.DataBindings.Add("SelectedValue", myTable, "TeamID")
.... and it's working fine.
Anyway I would like to show 'Teams'-table 'Description'-field as ToolTip for
the user when mousepointer is on the cboTeam or user just selected new team,
because Team is just an abbreviation. How to do this?
Second question: why ComboBoxes are not changing arrearance to XP-Styles
althought other UI Components does when I use the following code in my Sub
Main ...
System.Windows.Forms.Application.EnableVisualStyles()
Application.DoEvents()
System.Windows.Forms.Application.Run(New frmMain)