使用vb.net的多语言自动建议
我在vb.net中做一个项目,它有多语言功能。其中一个表单包含文本框,有自动建议功能,如果我在登录时选择语言marathi,那么自动建议功能将在marathi中为这个特定的txtbox工作。我正在使用以下代码。然后我为autosuggestion编写了什么代码,然后下拉的autosuggestion列表将以marathi语言显示使用vb.net的多语言自动建议,vb.net,autocomplete,Vb.net,Autocomplete,我在vb.net中做一个项目,它有多语言功能。其中一个表单包含文本框,有自动建议功能,如果我在登录时选择语言marathi,那么自动建议功能将在marathi中为这个特定的txtbox工作。我正在使用以下代码。然后我为autosuggestion编写了什么代码,然后下拉的autosuggestion列表将以marathi语言显示 Public Sub bindCastType() ' Me.txtSearchValue.AutoCompleteMode = AutoCompleteMod
Public Sub bindCastType()
' Me.txtSearchValue.AutoCompleteMode = AutoCompleteMode.Suggest
Dim objDs As New DataSet
Dim Cast As New AutoCompleteStringCollection
Dim objcast As CastManager = New CastManager
objDs = objcast.GetCastInfoByQuery("", "")
If Not objDs.Tables(0) Is Nothing Then
If objDs.Tables(0).Rows.Count > 0 Then
For Each row As DataRow In objDs.Tables(0).Rows
Cast.Add(row.Item(1))
Next
End If
End If
txtCastID.AutoCompleteMode = AutoCompleteMode.Suggest
txtCastID.AutoCompleteSource = AutoCompleteSource.CustomSource
txtCastID.AutoCompleteCustomSource = Cast
End Sub
我的问题是:我为autosuggestion编写了什么代码?然后,下拉式autosuggestion列表将以marathi语言显示
objDs = objcast.GetCastInfoByQuery("", "",LanguageID)
因此,它只选择所选语言的行。我为自动建议编写的代码,然后下拉式自动建议列表将以马拉地语言显示