Jump to content
fenesan

Visual Basic

Recommended Posts

Posted

Am incercat sa fac un combobox in vb6 si nu prea reusesc sa fac cum vreau eu poate ma ajuta cineva de pe forum

Combobox vreau sa contina:


Name: Google
Link: www.google.ro

Name: Yahoo
Link: www.yahoo.com

Microsoft Internet Controls si un buton, cand vreau sa selectez "google" sau "yahoo" si dau click pe buton sa ma redirectioneze catre site respectiv

Posted (edited)

Private Sub Combo1_click()

If Combo1 = "Google" Then

WebBrowser1.Navigate ("wvw.google.ro")

End If

End Sub

schimbi google.ro cu ce site vrei

Edited by Zolder
Posted (edited)
Private Sub Combo1_click()

If Combo1 = "Google" Then

WebBrowser1.Navigate ("wvw.google.ro")

End If

End Sub

schimbi google.ro cu ce site vrei

Nu merge asa cum zici tu

@fenesan dami pm si iti explic eu

Edited by cobra89
Posted

If Combobox1.selecteditem.text = "Google" or Combobox1.selecteditem.text.contains("Google") Then

WebBrowser1.Navigate ("wvw.google.ro")

End If

in vb.net cam asta ar fi ,sunt sigur ca nu este cu mult prea diferit in vb6

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...