Create form in new window

there are two pages.
There is a table on the first one. The second one can be caused (called) as switch to dialog.and it contains a form of new record creating formed by the same view-object. After creating a new record dialog window closes and an error "JBO-35007: Row currency has changed since the user interface was rendered " appeal on the first page

Sorry I didn't understand the answer.Did You meant that i have to refresh iterarator from in returnlistener method?Can you give me example how to do it?

Similar Messages

  • To open Adobe Interactive Form in New Window

    Hi Folks
    I want to open Adobe interactive form in new window not in popup. This form should contain data passed from parent view.
    Please help
    - Mandeep Virk

    Hi,
    Can you explain your requriement clearly.
    You have two views ParentView and PDFView. Two views embedded in Window1.
    By default ParentView will be displayed.
    Now you are navigating from ParentView to PDFView. Then ParentView will be replaced by PDFView in Window1.
    So here what is ur requriement. Why do you want an seperate Window here.
    If you want to open the PDFView in a popup. Just create another Window2. Ember PDFView in Window2. Now from ParentView opent Window2 as a model/external popup.
    Open View or Window in a external window (popup)
    Regards,
    Charan

  • Is it possible to open the Task Form in new window?

    Hi,
    For the Oracle Business Process Workspace (BPM 11g), when opening a work item, is it possible to configure out the Workspace to open the Task Form in new window instead of opening in the bottom section under the work item list?
    Thanks

    "your project folder in workspace"\webRoot\webResources
    under the above path, you will have img folder and place the image containing your custom logo.
    under the same path you will have src folder
    in that folder you can place your custom css file (eg. mycustomstyles.css) and you need to define your styles in this file
    you can call the style items for the presentation objects at design time for labels and all other objects. But do not forget to refer your custom css file in the properties section.
    Once you open the bpm presentation object in which you want to apply your css, in properties pane you observe four options in CSS sub section of properties. Here select the CSS file with webroot path and give appropriate styles to each presentation data objects.
    hope this is clear to you.

  • Open form in new windows from another form

    hi,
    I have module for departments, and one for employees
    and I have push botton, I need when_button_pressed to open form employees in new window ( to view the employees in that department)
    I used this code
    open_form('Employees')
    but it gives me an error: FRM-30203: No items on block EMPLOYEES.
    FRM-30407: Block must have at least one database item.
    Block: EMPLOYEES
    FRM-30113: Block must have non-query-only database item.
    Block: EMPLOYEES
    Created form file C:\Users\m\Desktop\New Folder\MODULE1.fmx
    and when I click the button I get error FRM-40010 cannot read from employees
    any help would be appreciated

    but I created new module for employeesOk, so make sure that this new module contains a block EMPLOYEES, save the module as EMPLOYEE.fmb and create the fmx. Make sure the fmx is created and is located in a directory listed in the FORMS_PATH in your default.env (assuming you use 10G)

  • Open form in new window on dbclick of field

    I have a field on a form. When the user double clicks in the field I wantto open up a new form in a new window. I tried putting: ondblclick="owa_util.redirect_url('f?p=&APP_ID.:ZIP:&APP_SESSION.');"; in the Element attributes of the item
    but it didn't work. How do you do this?

    Hi,
    Check following will match for your use case
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/33-open-page-in-new-tab-169175.pdf

  • Submit form opens new window

    Is it possible to submit a form, which displays the result in a new window? How?
    Thanks

    Easy:
    <form target="_blank" ...>
    </form>

  • Creating Link to New Window with Defined Size and Cursor Change

    Hello,
    I seem to be having a problem having a hot-spot link open a new window and perform the way I want it to. I have tried a few different ways of going about this, as described below:
    The first method when defining the hot spot was to use the properties menu provided at the bottom of Dreamweaver when I click on the hot spot. When I test the page, the cursor changes to a hand and I can open the link in a new window BUT I cannot define the width and height of the new window.
    The second method was after defining the hot spot, using the behaviors menu from the tag inspector. From here, I would add an Open Browser Window behavior using the onClick event. Here, I can open the new window in a pre-defined width and height BUT when I test the page, the cursor does not change to a hand. It just remains the standard arrow.
    The question is, how I can define the hot spot to where the mouse will change to a hand when I scroll over it AND when the window opens, it is set to the width and height I want to define?
    Thanks,
    Smartin1007

    Good Morning Gentlemen,
    I tried placing the cursor script into the code without success. Either I'm not applying it correctly or it could be that the code in use is a combination of html and Java scripting.
    Right now, I converted all of the image maps to the behaviors technique because I need the specific window sizes for the application that is being created. Steve, I am using DW CS4, and a sample of the code is provided below:
    map name="Map"
    area shape="rect" coords="19,466,56,503" alt="Stage Hydrograph - North Fork Licking River at Mt. Olivet, KY" onClick="MM_openBrWindow('StageHydrograph/MtOlivet.html','','width=915,height=665')"
    /map
    Note that there is no href reference, because I haven't found a suitable way of having an href reference with target=_blank to where I can define the new window size.
    I really appreciate the advice and time that is being taken to help solve this problem.

  • Tab just opens itself into a new window of it's own.

    I usually surf a website that is a browser based mmo. I usually have 3 tabs open as I have 3 accounts. It is only recently that I have noticed 2 bugs/problems with FF, my main one being that FF will all of a sudden decide that one of my tabs must now suddenly be a seperate window of it's own. I know that I am not dragging the tab to form that new window, as it often happens when I have something else on top. The other problem, though more minor is that often when I start FF up it suddenly crashes without having loaded up, though when restarting it after that it opens just fine. Could someone please give me some ideas of how to solve this one.

    Quit Safari.
    Open a Finder window select your Home folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder.
    Move the cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari.
    If that didn't help, try troubleshooting the Safari .plist file.
    Go to ~/Library/Preferences. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Quit then relaunch Safari to test. If that helped, move the .plist file to the Trash.
    ~ (Tilde) character represents your Home folder.

  • Firefox becomes semi-unresponsive and freezes when a tab is dragged out to make it a new window.

    Basically I may have 10 or so tabs open and wish to drag one of them out of the tab bar to make it form a new window. However when I do this it takes a second or two before the new window appears, and when it does it is semi-unresponsive.
    I cannot exit it as when I hover over the red "x" nothing happens and I can't click it. I can't switch between firefox windows properly (it just keeps freezing). I usually end up killing firefox.exe in task manager.
    My list of addons are:
    2007 Microsoft Office System 12.0.4518.1014
    Adobe Acrobat 10.1.0.534
    Google Update 1.3.21.57
    iTunes Application Detector 1.0.1.1
    Microsoft Windows Media Player Firefox Plugin 1.0.0.8
    Pando Web Plugin 1.0.0.1
    QuickTime Plug-in 7.6.9 7.6.9.0
    Shockwave Flash 10.3.181.26
    I have also done the common and fast computer, fast connection tweaks on this website:
    http://codebetter.com/darrellnorton/2005/01/28/speeding-up-firefox-the-right-way/
    Thanks in advance for your help!

    That is the default action when you open a new tab. There are extensions that you can install to change it from a blank page to whatever you want.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777 <br />
    and <br />
    NewTabURL extension: <br />
    https://addons.mozilla.org/firefox/2221/

  • New window everytime when submit button clicked in JSF

    Hi all,
    I am facing an issue where I need to popup a new window everytime the submit button on my JSF form is clicked.
    I have tried several methods but none is working to my purpose.
    1. Add a target="_blank" attribute in the JSF form. The problem is that even if any of my ValuechangeListeners get invoked, the page is rendered in a new window. My ValuechangeListeners work on onchange="submit()".
    2. Invoke a new window from javascript and name the window as say" new" . Also name the form's target as "new" but this does not generate a new window everytime and also problem 1 persists.
    3. If i use actionlistener and onclick event on button in the form, then the new page is rendered in both current page and new window.( javascript for new window is written).
    What I need is when a person clicks on submit button in the form, a new window should always popup up and the page should be rendered in the new window. The original form should remain as it is so that a user can again do a submit and get a new window.
    Please suggest.

    devayani wrote:
    Thanks all for the replies.
    Try onchange="this.form.target='_self';submit();"This works fine if all the valuechangelisteners are invoked. Suppose,if I dont select the radio
    button and dont select any values in list box. Now if i click submit, since the target=_blank,
    the page giving validation errors (for not selecting the list box)
    renders in a new page. As expected behavior, not my solution.
    If you need validation to remain in the same window (and that seems like the best for the user experience you have described), then delay the creation of the new window until after the request finishes. I.e., your page should always go back on itself. Under the right conditions (which you can set in your action method) it conditionally writes JavaScript which targets the new window.
    >
    Try returning false from the onclick event.I had tried it long back, so I just messed it up while writing, there were no actionlisteners.
    sorry about my third solution, lets consider solution 2 as below:
    Javascript
    <script type="text/javascript" >
         function newWindow(){
              window.open('','mywindow','width=400,height=200');
              return false;
         </script>
    JSF
    <h:form id="Frm_New" target="mywindow">     
    <h:commandButton id="btn_submit" disabled="false"             
                  action = "#{TestBean.submitValues}"
                  value="#{bundle.SC_SUBMIT}"
                  onclick ="newWindow()">But again this approach has above problems and also no new window everytime. For new window you said:
    Append a time stamp or random number to
    the end of the window name.This solution will not work as I have to reset the target for my form everytime to this new window name.You can remember the name of the window if necessary. Although you seem to be changing things on the fly; earlier the problem was you didn't get a new window every time. Or are you just confused on how to set the target?
    onclick="var wname = getWindowName(); createNewWindow(wname); this.form.target = wname; return true;">
    I was trying to actually set the target of the form as _blank at runtime during one of the phases of JSF lifecycle ( by using phaselistener). Although its not working as of now. Does this sound a good approach
    This is because I dont think that setting it on jsf would work as the page rendering on a new window( in my case) not only depends on clicking the submit button only but it depends on whether the user is done with all vaildations and now has to see the final result into new window.This would be addressed by the conditional JavaScript solution above.

  • Creating a link in a PDF form to open into a new window

    I have created the PDF form and every thing seems to be working fine. But I would like to set a link in the form that would open into a separate page. I have tried target="_blank" and onclick="window.open(this.href, 'child', 'scrollbars,width=650,height=600'); return false" with no success. Can someone give me some direction on how to create a link within a PDF form that will open into a new window?

    Try this, using JavaScript:
    app.launchURL("http://www.adobe.com",true);

  • Issue creating Item Activated Events for a third party form Control in Windows Powershell

    I was asked at work to look into converting some of our VB.Net Applications to PowerShell. We use the
    QIOS dev Suite for some of the controls to make it more visually appealing. I have been testing to controls out and I can load and create forms with no issue in powershell but I'm stumped on the error I'm
    receiving when I add and ItemActivated event. I need to make it so when a user clicks on a given menu Item the form gets which menu item is clicked. 
    Below is the code to my test form.
    [VOID][reflection.assembly]::Load('System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [VOID][reflection.assembly]::LoadFile("C:\Code\Qios.DevSuite.Components.dll")
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form1 = New-Object 'System.Windows.Forms.Form'
    $Menu = New-Object 'Qios.DevSuite.Components.QCompositeControl'
    $item = New-Object 'Qios.DevSuite.Components.QCompositeMenuItem'
    $DOSOMETHING={Write-Host "DO SOMETHING"}
    # form1
    $form1.Controls.Add($Menu)
    $form1.ClientSize = '202, 262'
    $form1.Name = "form1"
    $form1.Text = "Form"
    $form1.add_Load($form1_Load)
    #MenuItem
    $Item.ItemName = "Test Item"
    $Item.Title = "Test Item"
    # Menu
    $Menu.Location = '13, 12'
    $Menu.Name = "panel1"
    $Menu.Size = '177, 238'
    $Menu.Items.Add($Item)
    $Menu.Add_ItemActivated($DOSOMETHING)
    $form1.ShowDialog()
    If someone could take a look and tell me what I'm doing wrong that would be great. If you need the dll file below is a link to my copy.

    I was able to get the attached code to work in windows 7 with powershell version 2. I have to see why it dosent like windows 8 and powershell version 4.
    Update: I just did powershell -version 2 in windows 8 and I was able to run the code. 
    [void][reflection.assembly]::Load('System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::LoadFile("C:\Users\xAdmin\Desktop\Qios.DevSuite.Components.dll")
    $frmMain = New-Object 'System.Windows.Forms.Form'
    $ccMenu = New-Object 'Qios.DevSuite.Components.QCompositeControl'
    $ccitem = New-Object 'Qios.DevSuite.Components.QCompositeMenuItem'
    $Function = {
    param ($sender, $e)
    [System.Windows.Forms.MessageBox]::Show($e.Item.ItemName)
    $frmMain.Controls.Add($ccMenu)
    $frmMain.ClientSize = '202, 262'
    $frmMain.Name = "form1"
    $frmMain.Text = "Form"
    $frmMain.add_Load($form1_Load)
    $ccMenu.Location = '13, 12'
    $ccMenu.Name = "panel1"
    $ccMenu.Size = '177, 238'
    $ccMenu.Items.Add($ccitem) | Out-Null
    $ccMenu.Add_ItemActivated($Function)
    $ccitem.ItemName = "Test Item"
    $ccitem.Title = "Test Item"
    $ccitem.Configuration.StretchHorizontal = $true
    $frmMain.ShowDialog()

  • Open new window in the same form

    Hi
    I created a form with 6 records displayed. I have a check box for each record. I would like to select a record and make the check box checked. Once I check a checkbox I would like to automatically open a new window in the same form with further details of the checked record. Could you please help me how I could work on this.

    Dear you have to create relation between the blocks then you can achieve this like:
    1) Create two canvases in your form (canvas1 and canvas2).
    2) Create a window in your form with name Window2 now you have two windows (Window1 and Window2).
    3) now set the property 'Primary Canvas' of each window (Window1 = Canvas1, window2 = Canvas2)
    4) Now create database block of you main table with (CAT, NAME, DEPT) fields and select the Canvas1 in the layout wizard.
    5) Create another database block with same table but this time select only 3 fields (CAT,SAL, DATE) and at the time of creation mention relation between blocks in the Data block wizard (block1.cat = block2.cat) and select the Canvas2 in the layout wizard.
    6) Now create check box field name MASTER_CHBOX in first block and set Database Item property no of this check box item and set the Value When Checked property to Y and N for Value When unChecked.
    7) Create a trigger on CheckBox Item and paste below code in it.
    if :MASTER_CHBOX = 'Y' then
    show_window('WINDOW2');
    go_item('SAL');
    end if;
    Regards.
    Omer

  • Creating a new window from and action event

    Hey I have a problem i would like most of my menu items to create a new window containing a set text and i was thinking of creating a new container with a JTextArea but for some reason its not working. if someone could help me that be great... so my question is how do create another window (TextArea) with my tokenized array info in it open up when Print File or Print Total is the event??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.util.StringTokenizer;
    import javax.swing.plaf.*;
    class PhoneProject extends JFrame implements ActionListener
         private static final int WIDTH = 260;
         private static final int HEIGHT = 160;
         private static final int X_ORIGIN = 402;
         private static final int Y_ORIGIN = 299;
         ArrayList internalCalls = new ArrayList();
         ArrayList externalCalls = new ArrayList();
         PhoneCall internal;
         PhoneCall external;
         JMenu query = new JMenu("Query");
         JMenu proccess = new JMenu("Proccess");
         String inRecord;
         int numExtension;
         int numCallType;
         int numSeconds;
         int totalIntTime;
         int totalExtTime;
    public static void main(String args[])
              PhoneProject frame = new PhoneProject();
              frame.setVisible(true);
    public  void LoadArray(File myFile) throws IOException
              FileReader fr = new FileReader(myFile);
              BufferedReader br = new BufferedReader(fr);
              while ((inRecord = br.readLine()) != null)
                   StringTokenizer tokenizer = new StringTokenizer(inRecord);
                   String extension = tokenizer.nextToken();
                   String callType = tokenizer.nextToken();
                   String seconds = tokenizer.nextToken();
                   numExtension = Integer.parseInt(extension);
                   numCallType = Integer.parseInt(callType);
                   numSeconds = Integer.parseInt(seconds);
                   if (numCallType == 0)
                        internal= new PhoneCall(numExtension, numCallType, numSeconds);
                        totalIntTime = (totalIntTime + numSeconds);
                        //System.out.println(totalIntTime + "int");
                        internalCalls.add(internal);
                   if (numCallType == 1)
                        external = new PhoneCall(numExtension, numCallType, numSeconds);
                        totalExtTime = (totalExtTime + numSeconds);
                        //System.out.println(totalExtTime + "EXT");
                        externalCalls.add(external);
                   System.out.println(internal.getSeconds());     
         public PhoneProject()
              Container contentPane;
              setBounds(X_ORIGIN, Y_ORIGIN, WIDTH, HEIGHT);
              setTitle("Phone Analyzer");
              setResizable(true);
              contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
              JMenu file = new JMenu("File");
              JMenuItem  item;
              item = new JMenuItem("Open");
              item.addActionListener(this);
              file.add(item);
              item = new JMenuItem("Exit");
              item.addActionListener(this);
              file.add(item);
              proccess.setEnabled(false);
              item = new JMenuItem("Print File");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenuItem("Print Totals");
              item.addActionListener(this);
              proccess.add(item);
              item = new JMenu("Low and High");
              item.addActionListener(this);
              proccess.add(item);
              JMenuItem subItem = new JMenuItem("Compare");
              subItem.addActionListener(this);
              item.add(subItem);
              query.setEnabled(false);
              item = new JMenu("Average Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuItem itemInt = new JMenuItem("Internal");
              itemInt.addActionListener(this);
              item.add(itemInt);
              JMenuItem itemExt = new JMenuItem("External");
              itemExt.addActionListener(this);
              item.add(itemExt);
              item = new JMenuItem("Highest Internal Utilization");
              item.addActionListener(this);
              query.add(item);
              item = new JMenuItem("Highest Total Utilization");
              item.addActionListener(this);
              query.add(item);
              JMenuBar menuBar = new JMenuBar();
            setJMenuBar(menuBar);
            menuBar.add(file);
            menuBar.add(proccess);
            menuBar.add(query);
              contentPane.add(new JTextArea("Phone Report"));
      public void actionPerformed(ActionEvent event)
           String menuName;
           menuName = event.getActionCommand();
           if (menuName == "Open")
                JFileChooser chooser = new JFileChooser();
                int returnVal = chooser.showOpenDialog(this);
                if (returnVal == JFileChooser.APPROVE_OPTION)
                     try
                        File myFile = chooser.getSelectedFile();
                        this.LoadArray(myFile);
                        proccess.setEnabled(true);
                        query.setEnabled(true);
                     catch (Exception e)
         if (menuName == "Print File")
    JTextArea display = new JTextArea();
              display.setText("Hello");testing to see if it works
              display.setVisible(true);
         if (menuName == "Print Total")
                                               JTextArea display = new JTextArea();
              display.setText("Hello");//testing
              display.setVisible(true);
           if (menuName == "Exit")
                System.exit(0);
    }Phone.txt
    2000 0 300
    2000 0 538
    2000 1 305
    2000 1 729
    2005 0 205
    2005 0 305
    2005 1 592
    2005 1 594
    2010 0 364
    2010 0 464
    2010 1 904
    2010 1 100
    2020 0 234
    2020 0 839
    2020 1 999
    2020 1 210
    Assignment: Array Based GUI Assignment
    Telephone call data has been collected from a company's telephone switch. You have been asked to analyze it and produce various statistics.
    Input File
    The input file is a sequential file. It is in no specific order. The file contains an extension number, type of call, and the length of call in seconds. A record is produced each time a call is made from that extension. You should create your own test file.
    Field     Type     Description
    Extension     Integer     Extension number. This is a 4 digit number. Valid Extensions are 2000 to 2020.
    Type     Integer     Value of 1 means internal, any other value is an external call.
    Time     Long     Length of call in seconds
    Example:
    �     2000,1,60 : ----->>>> Extension 2000 had an internal call that lasted 60 seconds
    �     2000,1,356: ----->>>> Extension 2000 had an internal call that lasted 356 seconds
    �     2019,2,65: ------>>>> Extension 2019 had an external call that lasted 65 seconds
    �     2001,1,355: ----->>>> Extension 2001 had an internal call that lasted 355 seconds
    Process
    1.     Use 2 arrays to accumulate the time of calls for each extension, both internal and external.
    2.     The reports and queries are to be produced from the arrays.
    Hints:
    �     Create 2 arrays: one for internal calls and one for external calls.
    �     Load the arrays in Form Load: do not do any calculations here.
    �     The report and queries can totally be produced from the arrays.
    Output: Report
    Telephone Useage Report
    Extension Internal External
    2000 4500 3500
    2001 19350 22981
    2002 2333 900
    2003 3144 122
    Totals 99999 99999
    Output: Queries
    On the form add add query capability.
    1.     Average Total Utilization: Internal Calls: 9999 (total length of all internal calls / number extensions)
    2.     Average Total Utilization: External Calls: 9999
    3.     Extension with the highest internal call utilization: Ext xxxx; 9999 seconds.
    4.     Extension with the highest total utilization.
    Form Design
    The design of the form is up to you. However, use the following guidelines:
    �     use menus (preferred) or command buttons
    �     use a common dialog box to ask for the file name
    �     use a list box or text box to display the output
    the caption on the form should include your name

    hi
    u can try like following code
    if (menuName == "Print File")
              new mytextframe();
    class mytextframe extends JFrame{
         JTextArea display = new JTextArea();
         public mytextframe()
              setSize(300,300);
              setVisible(true);
              add(display);
              display.setText( "ello");
    }

  • Outlook window getting the keyboard focus instead of user created Form Window during Outlook Startup

    This MAPILogonComplete method involves creating a Form Window to show "What's New" of a certain Addin version (DisplayWhatsNewDialog() in the code):
    private void _outlook_MAPILogonComplete() {
    _logger.Info("_outlook_MAPILogonComplete");
    try
    if (_timerForm != null)
    _timerForm.Timer.Stop();
    _timerForm.Timer.Dispose();
    catch (Exception ex2)
    _logger.Error(ex2.Message, ex2);
    try
    if (Globals.BJNSettings.showWhatsNew)
    Globals.BJNSettings.showWhatsNew = false;
    UIHelper.DisplayWhatsNewDialog(false);
    Ol.Inspector insp = null;
    if (_inspectors.Count > 0)
    for (int i = _inspectors.Count; i >= 1; i--)
    insp = _inspectors[i];
    WrapInspector(insp);
    insp = null;
    Ol.Explorer expl = null;
    if (_explorers.Count > 0)
    for (int i = _explorers.Count; i >= 1; i--)
    expl = _explorers[i];
    WrapExplorer(expl);
    expl = null;
    GetAddinsList();
    Thread logSystemInfoThread = new Thread(new ThreadStart(LogSystemInformation));
    logSystemInfoThread.TrySetApartmentState(ApartmentState.STA);
    logSystemInfoThread.IsBackground = true;
    logSystemInfoThread.Start();
    try
    Ol.NameSpace ns = _outlook.GetNamespace("MAPI");
    _calFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderCalendar) as Ol.Folder;
    _calFolder.BeforeItemMove += new Ol.MAPIFolderEvents_12_BeforeItemMoveEventHandler(_calFolder_BeforeItemMove);
    _delFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderDeletedItems) as Ol.Folder;
    Marshal.ReleaseComObject(ns);
    ns = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    UIHelper.WriteDoNotDisableKeyToRegistry();
    Globals.AppointmentsToProcess = new List<string>();
    _timerForm.ProcessTimer.Interval = 3000;
    _timerForm.ProcessTimer.Start();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    DisplayWhatsNewDialog() has this signature:
    public static void DisplayWhatsNewDialog(bool modal)
    try
    string defaultWhatsNewFile = Globals.BJN_APP_BASE_DIRECTORY + "WhatsNew.txt";
    string localISOLanguageName = Languages.GetTwoLetterISOLanguageName();
    string localizedWhatsNewFile = Languages.GetInstalledLocalizedFilePath(localISOLanguageName, "WhatsNew.txt");
    if (String.IsNullOrEmpty(localizedWhatsNewFile))
    localizedWhatsNewFile = defaultWhatsNewFile;
    if (File.Exists(localizedWhatsNewFile))
    BJNWhatsNew whatsNew = new BJNWhatsNew(localizedWhatsNewFile);
    if (modal)
    whatsNew.ShowDialog();
    whatsNew.Dispose();
    else
    whatsNew.TopMost = true;
    whatsNew.Show();
    whatsNew = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    The problem is if the Window is made modal, it blocks the Outlook to launch and also goes back of the Outlook loading window (Whats New window will not be having keyboard focus). And if the Window is made non-modal (passing false to DisplayWhatsNewDialog()),
    Outlook launches properly and What's New window comes at the top but will not be having keyboard focus; instead the launched Outlook window will be having the keyboard focus. May anyone please suggest a way to make the What's New window to be always having
    the keyboard focus? Structure of form window class BJNWhatsNew is given below:
    public partial class BJNWhatsNew : Form
    private static ILog _logger = LogManager.GetLogger(typeof(BJNWhatsNew));
    public BJNWhatsNew(string whatsNewTextFileName)
    InitializeComponent();
    InitLabels();
    InitEventHandlers();
    InitWhatsNew(whatsNewTextFileName);
    private void InitLabels()
    try
    this.Text = Properties.Resources.bjn_version_info_caption;
    this.buttonClose.Text = Properties.Resources.ok_hotkey;
    this.labelBJNAddin.Text = Properties.Resources.bjn_version_ol_addin;
    this.labelVersion.Text = String.Format(Properties.Resources.version_format, Assembly.GetExecutingAssembly().GetName().Version.ToString(3));
    Assembly assembly = Assembly.GetExecutingAssembly();
    FileInfo fileInfo = new FileInfo(assembly.Location);
    DateTime buildDate = fileInfo.LastWriteTime;
    string formatString = "d MMM, yyyy";
    this.labelReleaseDate.Text = String.Format(Properties.Resources.bjn_version_release_date, buildDate.ToString(formatString));
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    private void InitEventHandlers()
    this.buttonClose.Click += new EventHandler(buttonClose_Click);
    private void InitWhatsNew(string whatsNewTextFileName)
    try
    if (File.Exists(whatsNewTextFileName))
    StreamReader sr = new StreamReader(whatsNewTextFileName);
    string whatsNew = sr.ReadToEnd();
    sr.Close();
    this.richTextBox1.Text = whatsNew;
    this.richTextBox1.SelectionLength = 0;
    this.buttonClose.Select();
    this.buttonClose.Focus();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    void buttonClose_Click(object sender, EventArgs e)
    this.Close();

    Hello Prasad,
    The ShowDialog method will block the current thread. If you want to continue working with Outlook objects you need to use the Show method instead. The key fact is that both methods (Show and ShowDialog) accepts an instance of the IWin32Window interface
    which allows to specify the parent window handle. Specifying the parent window handle (Outlook Explorer window) to the Show method you can make your window shown on top of Outlook all the time.
    To get the HWND of an Outlook explorer  object (e.g. Application.ActiveExplorer), cast it to IOleWindow and call IOleWindow.GetWindow(). Also you may find the
    How to get the IWin32Window for Outlook
    article helpful.

Maybe you are looking for

  • Not to update Goods receipt on process order in LIMS system

    Dear all, I am working on SAP-LIMS interface project. Please help me out with the below requriement: Release of process order (COR1) in SAP creates lot creation in LIMS (creates an inspection lot in QIWL table which is read by LIMS system to download

  • Preview images are too small - can't be changed.

    When I open some jpegs, I only see very tiny versions of the images in Preview. It's really disconcerting. I know that they are larger - I've downloaded them from the web, saved them on the desktop or in a folder, and then when I double click and ope

  • Configration of Deffered Tax

    Hai, How do we configured about the deferred Tax? Where we will show? Thanks in advance, kindly helpmeout RameshK Moderator: Please, read and respect the rules of SDN

  • AD FS fails to get configured and start

    Greeting MS community, I have an 3 VM's running Windows Server 2012 R2 in a data center running on a common network, joined to the same domain. One of the VM's is running DirSync to synchronise to Office365, another is an AD DC (with a DNS server too

  • ITouch will not restore

    Hi, i need some help i recently tried to restore my itouch and an error message keeps popping up. I don't know what to do please help???