Print Page | Close Window

How can use DialogResult & button click events

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17928
Printed Date: 16 November 2024 at 3:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can use DialogResult & button click events
Posted By: varun
Subject: How can use DialogResult & button click events
Date Posted: 21 February 2011 at 4:59am
I am new be using COdeJock

Can any one help me how to use following functionality

if (DialogResult.OK == frmNewServer.Show())
{
}

I have created a Ribbon MDI Form which has 2 SDI forms too

1. Add server Form
2. Edit server Form

When I click on Add Server Ribbon Command bar menu item, I have done some functionality to open Add Server Form.

When I click on Edit Server Ribbon Command bar menu Item, I have to open Edit server Form with a List View item and 4 buttons. In that  I need to create Add button & this should be linked with the 1st option code functionality

Questions:

1. When I click Add Button in Edit Server Form then it should open Add Server Form with functionality applied for Add Server Ribbon Command bar menu item.

I have used DialogResult statement in windows application but i dont know how to use this here
can any one help me...?



-------------
V



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net