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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how-to- pop up form after context choice selection before insert

Thread ID:





54357 Jan 6,2007 04:47 AM UTC Jan 8,2007 05:44 PM UTC WinForms 1
Tags: EditControl
Administrator [Syncfusion]
Asked On January 6, 2007 04:47 AM UTC

I have a context choice popping up a list, and I create the list in the contextchoiceopen()
I pick the element I want and in the
contextchoiceselectedtextinsert, depending on where I am, in some cases I need to close off that context choice list, pop up another dialog whose values are based on the choice made, and select some 'stuff', and put the results back
in the edit control.

When I try to pop up the window, the context llist is 'stuck' with focus, the new
window (on-top but with focus locked away) never has foucs and then I have to kill the app as noone can ever get back focus.

I tried the editcontrol1.closecontextchoice(), didn't work - the new form seems not
to have focus 'ever' so it can't do it's work.

FYI this form lives in a C++ .dll and I'm using it via p-invoke, but that I don't
think is the problem.

Let me know if theres a simple fix to kill the box or leave focus

This is what i want to do:
private void editControl1_ContextChoiceSelectedTextInsert(
Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController sender,
Syncfusion.Windows.Forms.Edit.ContextChoiceTextInsertEventArgs e) {

string curWord = this.editControl1.GetCurrentWord();
if (e.SelectedItem != null) {
string selWord = e.SelectedItem.Text ;

switch (specialMode) {
case "bracket":

if(this.editControl1.ContextChoiceController.IsVisible) {

string stElemList = Tm1ApiDef.OpenSubsetEditor(this.ServerName, selWord , false) ;
if (stElemList != "") {


Administrator [Syncfusion]
Replied On January 8, 2007 05:44 PM UTC

Hi David,

Our apologies for the delayed response. Your Direct-Trac incident 30454 has been updated with the patch for this issue. Please test your application with this build and let me know if this resolves your problem.

Thanks for your patience.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon