|
-
May 30th, 2024, 10:00 AM
#1
Thread Starter
New Member
How to if click the button in the ribbon it will show up in tabcontrol

I have a form,
In the form there is panel 1 and panel 2,
In panel1, i put the devcompone ribbon, and i made menu1 and menu2 buttons
How to click on menu1 the form will appear in panel2
I use devcomponen.dotnetbar2.dll for ribbon
And mditabstip.dll for tabcontrol
Code:
Public Class Form1
Sub OPEN_FORM(ByVal FR As Form)
For Each F As Form In Me.MdiChildren
If F.Name = FR.Name Then
MsgBox("FORM IS OPEN...")
Exit Sub
End If
Next
FR.MdiParent = Me
FR.Show()
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub ButtonItem2_Click(sender As Object, e As EventArgs) Handles ButtonItem2.Click
OPEN_FORM(MENU1)
End Sub
Private Sub ButtonItem3_Click(sender As Object, e As EventArgs) Handles ButtonItem3.Click
OPEN_FORM(MENU2)
End Sub
End Class

How To Make The Form When Enlarged Remains Within Panel2
Please help
Thanks
Last edited by icax; May 30th, 2024 at 10:31 AM.
-
May 30th, 2024, 10:26 AM
#2
Re: How to if click the button in the ribbon it will show up in tabcontrol
Please don't type in all caps. That is used for shouting or otherwise emphasising specific text. It's making your comment harder to read for no good reason.
-
May 30th, 2024, 10:28 AM
#3
Thread Starter
New Member
Re: How to if click the button in the ribbon it will show up in tabcontrol
im so sorry i will edit thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|