0

hi all,
for a button click event,
1. how to navigate for another form, while existing form is invisible?
2. how to navigate for another form, with the values of previous form?

Please help me. I'm a new programmer

3
Contributors
2
Replies
5
Views
8 Years
Discussion Span
Last Post by selvaganapathy
0

I dont understand the way you've said "navigate for another form" do you mean show a new form? or do you mean make changes to a form?

0

Hi,

for a button click event,
1. how to navigate for another form, while existing form is invisible?

> Create new instance of the Form using new Keyword
> Show the form using Form.Show() method

2. how to navigate for another form, with the values of previous form?

To set the value of the control in another form, you have to provide public method to access the control and it should be call before showing the form. otherwise
> Set Modifier of the Form's control (txtBox1)to public
> Then use Form.Control.Property = Value
(form2.txtBox1.Text = "Some Value")

> Then Show the Form using Form.Show()
or Form.ShowDialog()

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.