Refresh

M

madhavi

Hi

I just wanted to Know is there any function like refresh to refresh the
Combo,

my Requirement says that i change the value in the combo1
then combo2 must reflect the values according the combo1's selection.

but Combo2 is showing the previous values available for Combo1.

Can u please help
 
S

Supra

i used to do similar pirch chat. u don't needed refresh. all u do is
combo1_textchanged events

do something


combo2.SelectedIndex = 1.

take a look in my code it is similar mirc chat but i preferred pirch chat.
this is how i do.
Private Sub cboNetwork_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cboNetwork.TextChanged
cboServer.Items.Clear()
Dim iCount As Integer
For iCount = 0 To 100
Dim c As Collection = rw.GetConfigInfo(cboNetwork.Text,
"irc" & iCount, " ", "server.xml")
Dim s As String
For Each s In c
cboServer.Items.Add(s)
Next s
Next iCount
cboServer.SelectedIndex = 1
End Sub

just one events will do that.
regards
 
M

madhavi

Hi

This Soultion really did not work as my Combo has only 3 events
GOT Focus
LOST Focus
Validate

Combo1.clear does not work
Combo1.index=-1 also does not work

there is not TextChange event associated

Could U Please Help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top