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.............??

Show me your code.

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

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.

There is a form property called show in Taskbar set it to false.

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

Please mark as solved if solved.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.