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
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
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?
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()
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.