Bring up a new text window...

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have created a windows form with vb.net and have done all the calculations
to work out all the value that I have. I have a button at the bottom that I
want to bring up a summary screen in a new windows. It will be a text only
results screen and will display text from the variables... Please lend a
hand...

Scott
 
Hi Scott,

you could work with a property, for example on the second form something
like this

Public WriteOnly Property MyText() As String
Set(ByVal Value As String)
TextBox1.Text = Value
End Set
End Property

and then call the second form from the first form like this:

Dim obj As New Form2
obj.MyText = TextBox1.Text & vbCrLf & TextBox2.Text & _ vbCrLf &
TextBox3.Text
obj.Show()

hth Peter
 

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

Back
Top