I want,when i show Form2,the form1 should be displayed in background.
and when i close Form2 , the form1 should be updated or strting complete new Form1.
I do this but there are two tabs of Form1 in TaskBar.one is background display Form1 and another is updated.I want only one Form to be displayed.

Someone can help me plz.............??

On Form1's button click()
Dim mkform As New frmMake
mkform.LinkLabel1.Visible = True
mkform.Text = "Hello"
mkform.Show()
Me.Hide()


On Form2 button's click
Dim brfrm As New frmBrand
brfrm.Refresh()
brfrm.Show()
Me.Hide()

On Form1's button click()
Dim mkform As New frmMake
mkform.LinkLabel1.Visible = True
mkform.Text = "Hello"
mkform.Show()
Me.Hide()


On Form2 button's click
Dim brfrm As New frmBrand
brfrm.Refresh()
brfrm.Show()
Me.Hide()

'On Form1's button click()
Dim mkform As New frmMake

mkform.LinkLabel1.Visible = True
mkform.Text = "Hello"
if (mkform.ShowDialog() == DalogResult.OK)
{
  'Get your values here or whatever.
}
'Me.Hide() 'I thought you want to show the form
'On Form2 button's click
this.DialogResult = DialogResult.OK

Mind the syntax errors

Edited 6 Years Ago by finito: n/a

On Form1's button click()
Dim mkform As New frmMake
mkform.LinkLabel1.Visible = True
mkform.Text = "Hello"
mkform.Show()


On Form2 button's click
Dim brfrm As New frmBrand
brfrm.Refresh()
brfrm.Show()
Me.Hide()

when i click button of Form2 it shows new updated Form1 and also not updated Form1.
I want,when i click button of Form1,Form2 should be displayed and also Form1 is in background; when i clicked button of Form2, Form1 should be displayed & updated.
My problem is,
form1 is displaying but two tabs of Form1.

I want to reload Form1 with new instance and only one tab in Taskbar.
That is my problem....
I also used visible property of form.
I also used SendMeFront method ,it working but Form1 is not updated.
What should i do?????????????
Plz give me solution finito.

Here is a screenshot, and please use code tagging in future.

Please mark as solved if solved.

Edited 6 Years Ago by finito: n/a

Attachments Screenshot-1.png 65.94 KB

Oh dear, But When i used this property at the same time both form means old Form1 & updated Form1 will be not displayed.
So plz tell me what should i do ASAP????
Thanks in advance.

you only set this property for one form, you leave the one you want to be shown to true.

This article has been dead for over six months. Start a new discussion instead.