Note that there are some explanatory texts on larger screens.

plurals
  1. POI want a selected value in a combobox on form1, to be automatically populated into a textbox/label on form 3
    primarykey
    data
    text
    <p>I have 3 forms at the moment, form 1 you select 4 peices of data, Form 2 you select up to 10.</p> <p>I want it so when you go to form 3, all selected fields on form 2 are shown on the 3rd form.... as uneditable text fields (labels i guess)</p> <p>I would attach some diagrams to make this 5000x easier to explain, but i cant yet.</p> <p>I just need to know how i can make the code grab the values input into combobox's and textbox's and output them on form 3.</p> <p>Edit; i have no code in place as i have been trying differnt techniques and have gotten nowhere</p> <pre><code> Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList Me.ComboBox1.FormattingEnabled = True Me.ComboBox1.Items.AddRange(New Object() {"ClaimCode", "PostCode", "AlgPremium", "Etc", "Etc", "Etc"}) Me.ComboBox1.Location = New System.Drawing.Point(27, 33) Me.ComboBox1.Name = "ComboBox1" Me.ComboBox1.Size = New System.Drawing.Size(225, 21) Me.ComboBox1.TabIndex = 2 ' 'ComboBox2 ' Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList Me.ComboBox2.FormattingEnabled = True Me.ComboBox2.Items.AddRange(New Object() {"Single", "Multi"}) Me.ComboBox2.Location = New System.Drawing.Point(275, 33) Me.ComboBox2.Name = "ComboBox2" Me.ComboBox2.Size = New System.Drawing.Size(147, 21) Me.ComboBox2.TabIndex = 3 ' 'Values ' Me.Values.Location = New System.Drawing.Point(450, 34) Me.Values.Name = "Values" Me.Values.Size = New System.Drawing.Size(297, 20) Me.Values.TabIndex = 4 </code></pre> <p>I want the above values (from FORM2) when selected, taking out and putting into the following fields on FORM3...</p> <pre><code> 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(11, 13) Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(259, 20) Me.TextBox1.TabIndex = 0 ' 'TextBox2 ' Me.TextBox2.Location = New System.Drawing.Point(9, 13) Me.TextBox2.Name = "TextBox2" Me.TextBox2.Size = New System.Drawing.Size(85, 20) Me.TextBox2.TabIndex = 1 </code></pre> <p>Nothing is named yet as i just need to understand how to do this, there will be alot more done with the data than just passed into the form, but for now. this will grant me basic understanding i work from.</p> <p>For a full description, i will have Various Templates of XML, when you select the 4 values on FORM1, a specific template will be picked in the background. Then in FORM2 you will select values you wish to modify on this template, these will be modified on the XML and the XML posted to a Test harness where various filters/rules will be ran against it (drools), Then on form3 a list of all Fields you changed on form2, the values you input on FORM2 and how they came back out after the morphs/filters in the Test harness will be displayed and the XML produced will be saved and linked to via FORM3.</p> <p>I am a Lonnngggg way from having the program at this stage, but i am just trying to understand how to use the GUI and how to pass data from one form to another. or export it to an XML file</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload