Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.programmare > #78
| From | "Ettore" <ettor50@nomail.com> |
|---|---|
| Newsgroups | it.comp.programmare |
| Subject | Re: Problema VB.NET - Da Combox a piu Textbox |
| Date | 2018-05-19 20:09 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <pdpp98$1fk$1@dont-email.me> (permalink) |
| References | <pdpnpk$npg$1@dont-email.me> |
> Mi rispondo forse ho trovato ma non so' se la soluzione con 300 citta mondiali e
> italiani, puo' funzionare.
=====================================================================
Public Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedItem = "Piramide_Kheope" Then
TextBox1.Text = "29"
TextBox2.Text = "58"
TextBox3.Text = "48"
TextBox4.Text = "N"
TextBox6.Text = "31"
TextBox7.Text = "8"
TextBox8.Text = "3"
Dim txt5dec As Decimal = Val(TextBox5.Text)
Dim LatGrad As Integer = Val(TextBox1.Text)
Dim LatMin As Integer = Val(TextBox2.Text)
Dim LatSec As Decimal = Val(TextBox3.Text)
txt5dec = CDec(LatGrad + (LatMin / 60) + (LatSec / 3600))
TextBox5.Text = FormatNumber(txt5dec, 6)
ElseIf ComboBox1.SelectedItem = "Piramide_Khufu" Then
TextBox1.Text = "29"
TextBox2.Text = "58"
TextBox3.Text = "38"
TextBox4.Text = "N"
TextBox6.Text = "31"
TextBox7.Text = "7"
TextBox8.Text = "50.8"
End If
End Sub
================================================
DOMANDONE, SE CAMBIO LA CITTA' DALLA SELEZIONE DELLA COMBOBOX .. E voglio ottenere nuovi
dati ....... OK
Indi passo alla Combobox scelta 2 Piramide_Khufu,, ,... Le variabili "DIM" sono gia' come
si dice....... dichiarate...quindi diviene ripetitivo.. come mi comporto con la selezione
seconda e successive ?
Poi e' funzionale per 300 citta' ripetendo ? Allungando linee di codice ?? sono cose che
non conosco e chiedo lumi a chi riesce a rispondere.
Grazie ancora. !
Back to it.comp.programmare | Previous | Next — Previous in thread | Find similar
Problema VB.NET - Da Combox a piu Textbox "Ettore" <ettor50@nomail.com> - 2018-05-19 19:44 +0200 Re: Problema VB.NET - Da Combox a piu Textbox "Ettore" <ettor50@nomail.com> - 2018-05-19 20:09 +0200
csiph-web