We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to open a form by clicking on a groupbar item

Thread ID:

Created:

Updated:

Platform:

Replies:

44426 May 23,2006 12:16 PM May 25,2006 12:40 AM Windows Forms 3
loading
Tags: Tools
Jeff Baygents
Asked On May 23, 2006 12:16 PM

Am new to these tools. This should be very basic to everyone else. Couldn''t find in documentation. Need a simple example of how to open a VB2005 form after clicking on an individual Groupbar Item (not the main group). The examples are very good and filled with lots of things; I can''t seem to locate this. Thanks very much.

Mano J [Syncfusion]
Replied On May 24, 2006 12:09 AM

Hi Jeff, As I have understood from your requirement, you want to open a new form when clicking on a GroupViewItem not the groupBarItem as you have mentioned. The control present in the client area of a groupBarItem (group) is GroupView which contains groupViewItems. You have to handle the GroupViewItemSelected event and check for the selected item and write the code for creating a form as shown below Private Sub GroupView1_GroupViewItemSelected(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupView1.GroupViewItemSelected If (Me.GroupView1.SelectedItem = 0) Then frm = New Form2() frm.MdiParent = Me frm.Show() End If End Sub I have attached a VB 2005 sample. In the sample, if you click on the first groupViewItem (GroupViewItem0), it will open a new mdi form. Please let me know if I have missed anything. Thanks for using Essential Tools. Regards, Mano f44426_GroupBar.zip

Jeff Baygents
Replied On May 24, 2006 10:22 PM

Thanks for the code Mano. Your attached example doesn''t work for me. Apparently you''re on a different version of Syncfusion. I''m using the current "production" released version. You might be using a newer beta/RC version. I get about 15 errors when I attempt to run the project or view the opening form.

Administrator [Syncfusion]
Replied On May 25, 2006 12:40 AM

Hi Jeff, Sorry for the Inconvenience caused. I have again attached a sample: GroupBar.zip please take a look and let me know if it works for you. Thanks for your patience. Best Regards, Seetha

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;