ComboBox to Textbox Output

  • Thread starter Thread starter Jriggs712
  • Start date Start date
J

Jriggs712

Guest
Hello,

I am in the process of reteaching myself visual basic. To help assist myself in relearning it I am creating a template generator. So far I have a ComboBox with a drop down that when the object is selected it displays that same object in the TextBox. What I am trying to do is when I select an Item in the ComboBox I want it to output with a fillable template instead. Something that relevant info can then be added to before copy and paste to where I need it to go. The issue I run into is I can not remember how to do that. I assume it is an If Then statement but I cant seem to figure that part out.


I am using Template as the name for my ComboBox


The code I have been trying is


If Template.SelectedItem = 0 Then

TextBox.Text = ("Case Subject:" & vbNewLine & "Case type to be chosen:" & vbNewLine & "Case bod:")


The first item in my drop down is Recall. When I select it that is all it says in the TextBox. What I am trying to have it show would be

Case Subject:

Case type to be chosen:

Case Body:


Thank you in advance for any assistance you could give in this.

Continue reading...
 
Back
Top