Xiffty_Coding Member May 21, 2023 #1 I try this code to put panel2 on the top of panel1, and it doesn't work can someone help me thanks :> Private Sub movebtn_Click Panel2.SetLayoutAnimated(100,Panel1.Left,Panel1.Top,460dip,700dip) End Sub
I try this code to put panel2 on the top of panel1, and it doesn't work can someone help me thanks :> Private Sub movebtn_Click Panel2.SetLayoutAnimated(100,Panel1.Left,Panel1.Top,460dip,700dip) End Sub
Erel B4X founder Staff member Licensed User Longtime User May 21, 2023 #2 Please use [code]code here...[/code] tags when posting code. Xiffty_Coding said: and it doesn't work Click to expand... What happens? Make sure that Panel2 parent is the same as Panel1 parent. Upvote 0
Please use [code]code here...[/code] tags when posting code. Xiffty_Coding said: and it doesn't work Click to expand... What happens? Make sure that Panel2 parent is the same as Panel1 parent.
toby Well-Known Member Licensed User Longtime User May 21, 2023 #3 In the Designer, right-click Panel1 and select Duplicate and you will get exactly what you need: 1. A new panel named Panel2, assuming the name is not in use already. 2. Panel2 sits on top of Panel1 3. Both panels have same parent Upvote 0
In the Designer, right-click Panel1 and select Duplicate and you will get exactly what you need: 1. A new panel named Panel2, assuming the name is not in use already. 2. Panel2 sits on top of Panel1 3. Both panels have same parent
Xiffty_Coding Member May 21, 2023 #4 Erel said: Please use [code]code here...[/code] tags when posting code. What happens? Make sure that Panel2 parent is the same as Panel1 parent. Click to expand... oh im really sorry, Mr.Erel the panel1 and panel 2 are already in the same parent. and my goal for panel2 is to move it at panel1 when i click the button at debug mode. its like it has a sliding animation on it while mivong on the panel 1 Code: Copy Private Sub movebtn_Click Panel2.SetLayoutAnimated(100,Panel1.Left,Panel1.Top,460dip,700dip)'trying to set panel2 at the top of panel1 End Sub Upvote 0
Erel said: Please use [code]code here...[/code] tags when posting code. What happens? Make sure that Panel2 parent is the same as Panel1 parent. Click to expand... oh im really sorry, Mr.Erel the panel1 and panel 2 are already in the same parent. and my goal for panel2 is to move it at panel1 when i click the button at debug mode. its like it has a sliding animation on it while mivong on the panel 1 Code: Copy Private Sub movebtn_Click Panel2.SetLayoutAnimated(100,Panel1.Left,Panel1.Top,460dip,700dip)'trying to set panel2 at the top of panel1 End Sub
toby Well-Known Member Licensed User Longtime User May 21, 2023 #5 B4X: Copy Panel2.visible=True 'show panel2 by placing Panel2 over panel1 'or Panel2.visible=False 'show panel1 Upvote 0
B4X: Copy Panel2.visible=True 'show panel2 by placing Panel2 over panel1 'or Panel2.visible=False 'show panel1
Xiffty_Coding Member May 21, 2023 #6 toby said: B4X: Copy Panel2.visible=True 'show panel2 by placing Panel2 over panel1 'or Panel2.visible=False 'show panel1 Click to expand... This also works! Thanks a lot ? Upvote 0
toby said: B4X: Copy Panel2.visible=True 'show panel2 by placing Panel2 over panel1 'or Panel2.visible=False 'show panel1 Click to expand... This also works! Thanks a lot ?