Event loop hang, Windows Forms

My C# console application acquires video frames from a camera and uses OpenCV for per-frame processing.  The program is mostly an infinite loop with busy-wait on frame acquisition at the start of the loop and a sleep at the end of the loop
as recommended by OpenCV.  Typically CPU utilization is < 15%.  I wanted to display 5 video frames in a Form showing different stages of processing so I used the visual designer to subclass Form to my MapDisplay class that has 5 PictureBoxes. 
I instantiate MapDisplay with new and use Show() to display it as non-modal.  I over-rode Paint() for each PictureBox and in each iteration of my loop I call an overloaded version of Refresh() that has an array of 5 Bitmaps as its argument. 
The Bitmaps are made available to the Paint() overloads.
This all works but with very strange mouse behavior.  When running from VS there is always a busy cursor when I float over the Form so it can't be selected for movement or resizing.  When running outside VS the Form starts with focus but a
mouse click anywhere, even away from the Form, e.g. click Windows Start, causes Form updating to stop.  In all cases my main loop remains active and continues to call my Refresh() overload on each iteration.
I think my program structure is atypical but I can see no reason why it's affected by unrelated mouse clicks.  I have read solutions to hang problems recommending threading but I don't think I have anything that should be in a separate thread. 
The Form code only responds to events and runs no other application code.

Hi
leftwing,
The program is mostly an infinite loop with busy-wait on frame acquisition at the start of the loop and a sleep at the end of the loop as recommended by OpenCV. 
Since your case used by OpenCV, i am afraid this is out of our support. I would suggest you can ask in OpenCV official forum     Thanks for your understading.
Have a nice day!
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to show windows form in SAP B1

    Hi
    I would like to create interface UI form using C# , windows form and add to SAP B1. I would like to know process and send me if you have any sample code please.
    Thanks
    rl

    Hi ragno liver.
    This are the step to create your addon. :
    1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    2- Add References SAPbouiCOM and SAPbobsCOM
    3- Add a module call SubMain to your project
    4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
    5- On the SubMain module add this code:
    using System;
    using System.Windows.Forms;
    class SubMain {
    static void Main() {
    // Creating an object
    MyClase oMyClase = null;
    oMyClase = new MyClase();
    // Start Message Loop
    System.Windows.Forms.Application.Run();
    Where MyClase are located the code to create your menu and the call to your form.
    Regards,
    Jose

  • Show windows form on SAP

    Hi.
    I am opening a windows form and have this problem.
    When open the form this show on the taskbar. But it doesn't maximize.
    I am need that this form maximizes. How can I do this?
    Regards,
    Jose

    Hi ragno liver.
    1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    2- Add References SAPbouiCOM and SAPbobsCOM
    3- Add a module call SubMain to your project
    4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
    5- On the SubMain module add this code:
    using System;
    using System.Windows.Forms;
    class SubMain {
        static void Main() {
            // Creating an object
            MyClase oMyClase = null;
            oMyClase = new MyClase();
            //  Start Message Loop
            System.Windows.Forms.Application.Run();
    Where MyClase are located the code to create your menu and the call to your form.
    Regards,
    Jose

  • Window form hang while looping

    I created a window form, while doing a while loop, the window hang while processing. It will revert back to normal state after it finished processing. How do I prevent my windowm form to hang while processing??? Also I do not understand why it will hang while doing a while loop???

    Hello everybody, would you mind if you telling how to design tool menu as MAC OSx.

  • Unable to create cluster, hangs on forming cluster

     
    Hi all,
    I am trying to create a 2 node cluster on two x64 Windows Server 2008 Enterprise edition servers. I am running the setup from the failover cluster MMC and it seems to run ok right up to the point where the snap-in says creating cluster. Then it seems to hang on "forming cluster" and a message pops up saying "The operation is taking longer than expected". A counter comes up and when it hits 2 minutes the wizard cancels and another message comes up "Unable to sucessfully cleanup".
    The validation runs successfully before I start trying to create the cluster. The hardware involved is a HP EVA 6000, two Dell 2950's
    I have included the report generated by the create cluster wizard below and the error from the event log on one of the machines (the error is the same on both machines).
    Is there anything I can do to give me a better indication of what is happening, so I can resolve this issue or does anyone have any suggestions for me?
    Thanks in advance.
    Anthony
    Create Cluster Log
    ==================
    Beginning to configure the cluster <cluster>.
    Initializing Cluster <cluster>.
    Validating cluster state on node <Node1>
    Searching the domain for computer object 'cluster'.
    Creating a new computer object for 'cluster' in the domain.
    Configuring computer object 'cluster' as cluster name object.
    Validating installation of the Network FT Driver on node <Node1>
    Validating installation of the Cluster Disk Driver on node <Node1>
    Configuring Cluster Service on node <Node1>
    Validating installation of the Network FT Driver on node <Node2>
    Validating installation of the Cluster Disk Driver on node <Node2>
    Configuring Cluster Service on node <Node2>
    Waiting for notification that Cluster service on node <Node2>
    Forming cluster '<cluster>'.
    Unable to successfully cleanup.
    To troubleshoot cluster creation problems, run the Validate a Configuration wizard on the servers you want to cluster.
    Event Log
    =========
    Log Name:      System
    Source:        Microsoft-Windows-FailoverClustering
    Date:          29/08/2008 19:43:14
    Event ID:      1570
    Task Category: None
    Level:         Critical
    Keywords:     
    User:          SYSTEM
    Computer:      <NODE 2>
    Description:
    Node 'NODE2' failed to establish a communication session while joining the cluster. This was due to an authentication failure. Please verify that the nodes are running compatible versions of the cluster service software.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-FailoverClustering" Guid="{baf908ea-3421-4ca9-9b84-6689b8c6f85f}" />
        <EventID>1570</EventID>
        <Version>0</Version>
        <Level>1</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2008-08-29T18:43:14.294Z" />
        <EventRecordID>4481</EventRecordID>
        <Correlation />
        <Execution ProcessID="2412" ThreadID="3416" />
        <Channel>System</Channel>
        <Computer>NODE2</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="NodeName">node2</Data>
      </EventData>
    </Event>
    ====
    I have also since tried creating the cluster with the firewall and no success.
    I have tried creating the node from the other cluster and this did not work either
    I tried creating a cluster with just  a single node and this did create a cluster. I could not join the other node and the network name resource did not come online either. The below is from the event logs.
    Log Name:      System
    Source:        Microsoft-Windows-FailoverClustering
    Date:          01/09/2008 12:42:44
    Event ID:      1207
    Task Category: Network Name Resource
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      Node1.Domain
    Description:
    Cluster network name resource 'Cluster Name' cannot be brought online. The computer object associated with the resource could not be updated in domain 'Domain' for the following reason:
    Unable to obtain the Primary Cluster Name Identity token.
    The text for the associated error code is: An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.
    The cluster identity 'CLUSTER$' may lack permissions required to update the object. Please work with your domain administrator to ensure that the cluster identity can update computer objects in the domain.

    I am having the exact same issue... but these are on freshly created virtual machines... no group policy or anything...
    I am 100% unable to create a Virtual Windows server 2012 failover cluster using two virtual fiber channel adapters to connect to the shared storage.
    I've tried using GUI and powershell, I've tried adding all available storage, or not adding it, I've tried renaming the server and changing all the IP addresses....
    To reproduce:
    1. Create two identical Server 2012 virtual machines
    (My Config: 4 CPU's, 4gb-8gb dynamic memory, 40gb HDD, two network cards (one for private, one for mgmt), two fiber cards to connect one to each vsan.)
    2. Update both VM's to current windows updates
    3. Add Failover Clustering role, Reboot, and try to create cluster.
    Cluster passed all validation tests perfectly, but then it gets to "forming cluster" and times out =/
    Any assistance would be greatly appreciate.

  • Event Loop in SO and failover

    Hi, All Forte Experts
    I have 2 questions:
    1. Would any one tell me where can I put the event loop block in a
    Service Object?
    I tried to put it in the Init to get a timer.tick event, but the SO
    hanged to wait there.
    How can I do this to let the SO do something at certain time?
    2. I have SO doing failover. Can one sleeping SO get any kind of
    information when it becomes alive
    after the running SO dies?
    Thanks a lot for your help.
    Alex
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    Thank you all a lot for your help.
    For the second question, I explain the situation here. I have a failover
    LockManager SO which contains a LockList. When the first running SO dies, I
    want the second one to become alive and restore the state of the first one( I
    mean the LockList should not be lost). Then I tried to do it in this way:
    1. As Daniel Nguyen suggested in Re:Retaining state on failover of SO
    (Jan.19,1999), I put one shared object holding one Locklist on the Router
    partition. Let the running SO always refresh its contents.
    2. I make the SO Transactionaln with Transaction Dialog Duration. On the
    client, every time I start a transaction to add or remove lock through SO, I
    try to catch the exception "AbortException" (which means the SO dies). To
    handle the exception, I use Releaseconnection, then force the backup SO get the
    locklist from the shared object on Router partition. In this way, the backup SO
    becomes alive and also restore the state.
    I think this works. I will also try your suggestion ASAP. However, would you
    please tell me how to control the secondary SO not to start and later to start
    it? Every time I try to run the app, all the partition will start. And I guess,
    I can not new it.
    Thanks.
    Rds
    Alex
    Alex,
    1) as Arpad mentioned in his posting, you can start task a method which
    contains your event loop from the init method.
    as for
    2), what I've done in the past is to start both primary and secondary SOs,
    where the primary SO's event loop begins at start up, but the secondary SO
    is dormant.. I created a "monitoring" SO which listens for remote access
    exceptions (or distributed access exceptions) and on the death of the first
    SO, the second SO's event loop is started. The other option is to not start
    the secondary SO until the primary one fails, but there is a lag time for
    the SO to come up.
    j
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Need help with an Aforge and windows forms memory stack-up issue

    Hello,
    I am experiencing a strange memory stack-up in my c# windows form program that occurs all the time on slow PCs, and when the windows form loses focus or is otherwise interrupted on faster PCs.
    The program I have written uses Aforge to get images from my webcam, which I then display in an Aforge picturebox control (CurrImagePic in code) in the windows form.  The images are switched into the picture box and then disposed at the camera's native
    framerate, so it appears as video to the user, not still images.  The picture box is 1080x1920, but the space for it in the form is smaller and so I allow the user to scroll around the picture.
    After about ~30 seconds of memory-stable operation on slower PCs, the problem begins.  On faster PCs, the problem only occurs when holding down scroll bar arrows or clicking and dragging around either scroll bar, and if I lock the PC or bring up the
    Ctrl+Alt+Delete menu.
    The problem itself is that memory used by the program starts to increase in very large chunks, leading to an out of memory crash.  This is unstoppable on slower PCs, but on the faster PCs if you stop scrolling or return from the lock/Ctrl+alt+delete
    menu, the program stabilizes at the higher memory usage level.  The memory that was accrued during scrolling or while in the lock menu is never collected by the garbage collector.  I've even tried to put in a button that forces a GC.collect() when
    pressed, and it does not reduce this memory usage.
    I've run perfmon and found that the memory increase is on the unmanaged heap, but I don't know if it's coming from bitmaps which are not being disposed or what it could be from.  It's been impossible to track down since it does not occur except in the
    above conditions.  I've tried various solutions (like moving my image processing out of the event handler and even using both global flags and a "lock" statement to try and ensure that only one thread or frame can access the image processing
    and displaying method at at time, but I have seen no change.  In fact, I am now seeing some unexplained small jumps in memory usage that I wasn't seeing before I put in the lock and moved the processing out of the handler.
    Has anyone run into situations like this?  I am at a loss for what I need to fix.  I think the problem is based around my Aforge event handler and image processing method if it is in my code at all - but I also have a suspicion that this is something
    deeper in the windows form code that I am either misusing or that can't keep up with the demands of my code.  Code below:
    //Applicable Globals to this code snippet
    private bool ALLOWFRAME = true;
    private Object FRAMEKEY = new Object();
    private VideoCaptureDevice COMPVID;
    private Bitmap TMPLTCAP;
    private System.Drawing.Image OLDIMAGE;
    private bool RCRDPIC = false;
    private void COMPVID_NewFrame(object sender, NewFrameEventArgs eventArgs)
    //Only process a frame when another is done processing
    if (ALLOWFRAME == true)
    ALLOWFRAME = false;
    Bitmap PassFrame = AForge.Imaging.Image.Clone(eventArgs.Frame);
    ProcessFrame(PassFrame);
    PassFrame.Dispose();
    private void ProcessFrame(Bitmap frameIn)
    lock (FRAMEKEY)
    if (OLDIMAGE != null) { OLDIMAGE.Dispose(); }
    //Call comparison method if flag is set.
    if (COMPON == true)
    Difference TmpltFilter = new Difference(TMPLTCAP);
    TmpltFilter.ApplyInPlace(frameIn);
    OLDIMAGE = CurrImagePic.Image;
    CurrImagePic.Image = AForge.Imaging.Image.Clone(frameIn);
    OLDIMAGE.Dispose();
    else
    OLDIMAGE = CurrImagePic.Image;
    CurrImagePic.Image = AForge.Imaging.Image.Clone(frameIn);
    OLDIMAGE.Dispose();
    //Toggle the flag back to false to show it's safe (i.e., comparisons have stopped)
    //for the result-recording method to copy from the picture box if it is attempting to copy
    if (RCRDPIC == true)
    RCRDPIC = false;
    ALLOWFRAME = true;

    As you are using third party tools and controls, and I cannot find posts on parallel cases using native VS controls, have you asked in the Aforge forums about your memory issue?
    http://www.aforgenet.com/aforge/framework/

  • Trap and Windows Forms

    Hi, usually i have a  trap{} in my scripts to handle and log(!) all
    unforseen exceptions which i have
    not otherwise handled via Try/catch.
    This works great.
    But, when i have a script with windows forms, all exceptions will be displayed automatically as a system-popup
    and the code inside trap{} is not executed, so the error never gets logged.
    Why is the trap being ignored?
    And how do i make my form execute the trap in case of an exception?
    Thanks, Rob 
    http://www.administrator.de/

    Thanks for your reply David.
    Separate runspace? Mhm, I dont think so. Otherwise I would not be able to access variables of the root script (that set up the form), would I? 
    Also i do not set up confined script blocks to the events. They call functions in the script which call other functions and so on. Its
    all one script, only that actions are triggered by events.
    That depends on how the runspace is set up (and in this case, it's all being done by the PowerShell engine, so I'm not sure exactly what's happening.)  It's possible to give different runspaces access to the same variables, functions, etc (though you
    have to be careful when doing that, as you may create race conditions.)
    As I said, I don't know if that's actually what's happening here, but it would make sense.  Your main thread is blocking on $form1.ShowDialog(); until that function returns, execution would never jump to your trap block.
    Anyhow, regardless of the technical details of why it's behaving this way, making sure you set up a new trap statement within those events (or the functions they call) does seem to work:
    trap { Invoke-ErrorHandler -ErrorRecord $_ }
    function Invoke-ErrorHandler
    [CmdletBinding()]
    param (
    [Parameter(Mandatory = $true)]
    [System.Management.Automation.ErrorRecord]
    $ErrorRecord
    Write-Host "This statement called from the error handler."
    [void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form1 = New-Object 'System.Windows.Forms.Form'
    $form1.ClientSize = '200, 150'
    $button1 = New-Object 'System.Windows.Forms.Button'
    $button1.Location = '54, 45'
    $button1.Size = '75, 23'
    $form1.Controls.Add($button1)
    $button1.add_mouseclick({ TestFunction })
    function TestFunction {
    trap { Invoke-ErrorHandler -ErrorRecord $_ }
    $button1.FalseProperty = 1
    # TestFunction ## If you call the function here, instead of the command below, the trap catches the error
    $form1.ShowDialog()

  • How to open A Windows Form from Crystal Reports

    Hello All
    We are using crystal Repors 10 with Visual studio .Net 2005. Our requirement is to open the Windows Form when a user click on the respective Hyperlink. Simillarly popping up the MessageBox when clicking hyperlink.
    How this is possible, I will be really thankful to anyone who solves my problem

    Depending if this is a web or win app, you have different solutions.
    Web or win, use hyperlinks and redirect to an aspx page (I think hyperlinks are supported in CR 10.2).
    Win, use events as described in the sample app csharp_win_viewer_events.zip / vbnet_win_viewer_events.zip. I have never used the events to pop up a new form, but you should be able to do this.
    BTW.; make sure you have sp 1:
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Windows Form with SAP B1 Problem

    Dear all,
    I'm building an add-on that use some windows form.
    In Menu Event i placed the code for open my windows form:
                        MyForm xxx = new MyForm();
                        xxx.WindowState = System.Windows.Forms.FormWindowState.Normal;
                        xxx.Visible = true;
                        xxx.ShowInTaskbar = true;
                        xxx.TopMost = true;
                        xxx.Text = string.Empty;
                        xxx.ControlBox = false;
                        System.Windows.Forms.Application.Run(xxx);
    All works fine, but, when my form is open i can't operate on SAP.
    It's like my form is modal, and until I have it open I can't do anything outside the form.
    Can someone help me?
    Regards
    Diego

    Hi Diego
    There's actually two ways to build an add-on, one that runs inside SAP Business One and one that runs along SB1 side but built on windows forms.  You can see this clearly if you try some of the add-on samples that come along with B1.  Overall, when I did the analysis I ended up with the conclusion that I was going to spend twice the work to achieve windows forms.
    First, you would have develop classes and objects that keep in communication with Business One.  Second, you have to keep in mind that you cannot create, update, or delete data directly to the database unless you use the SDK provided objects and methods.  Which brings you back to the SAP data sources.
    Furthermore, you can run into a bit of complexity do to the fact that to illustrate data in your form, you might have to "convert" your data.  For instance, say a SAP recordset into a dataset or ADO recordset.  In other words, you can end up with a bit more complex architecture the way I see it.
    Using the Screen Painter and SAP Business One tools such as the BIDE you can construct bound form (UDOs) which can even require very little coding from your part (if forms are not to be too complex).  Once you get use to SAP's way handling data objects you see is a lot easier than trying the alternative.

  • Problems with the System.Windows.Forms.Timer

    Hi All,
    Could some one help me please? I'm having a problem using the System.Windows.Forms.Timer inside an ItemEvent, the timer event just doesn't works...give a look in my code:
    private System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer();
    if (pVal.FormUID.Equals("FrmTimer") && pVal.ItemUID.Equals("btnStartTimer") && (pVal.Before_Action.Equals(true)) && (pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_CLICK)))
                myTimer .Interval = 1000;
                myTimer .Enabled = true;
                myTimer .Tick += new EventHandler(myTimer _Tick);
    void myTimer _Tick(object sender, EventArgs e)
                SBO_Application.MessageBox("Timer: " + DateTime.Now, 1, "OK", "", "");
    does someone have already tried to use the timer inside an itemevent, or could suggest another solution?
    thanks a lot...

    Hi Bruno,
    Unfortunately you cannot use a Forms.Timer without using a windows form (ie not a SBO form). Have you looked at the other 2 timer objects in .Net, the System.Timer.Timer and System.Threading.Timer? Here's a link to a web page that goes through the differences between each one:
    http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/
    Kind Regards,
    Owen

  • System.Windows.Forms.SaveFileDialog not working under Windows 2008 R2 Server

    I am using Windows Server 2008 R2 (64-bit) that is been virtualized with Hyper-V and it is being used as a "Remote Desktop Server".
    I am trying to use this PowerShell code that will open a "Save-File-Dialog" box to select the PDF file and send it to my "batch" file for scanning.  This code works great on my Windows Vista machine and my Windows 7 32-bit machine
    but I cannot get it to work on the "Windows 2008 R2 Server (64-bit)".  It will not come up with any window at all and it will not produce any errors at all, so I can't exactly google for this issue.  I am using PowerShell 2.0 from 2009.
    Any ideas?  I tried it from an Admin account and a regular domain users and neither worked at all, no errors, no window, no nothing.
    *** Update ***
        I took Out-Null out and I received this...
      GAC    Version        Location
    True   v2.0.50727     C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
    I then checked the path and the DLL file was in there and it had read and execute permissions for Domain users and Administrators and the window still won't pop up... 
    Here is the entire code in question.....
    # Uses the dot net assembly to give the users a Save-File-Dialog box so they can decide where to put the pdf file
    Function Get-SaveFile($initialDirectory){
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
    $SaveFileDialog = New-Object System.Windows.Forms.SaveFileDialog
    $SaveFileDialog.initialDirectory = $initialDirectory
    $SaveFileDialog.filter = "PDF files (*.pdf)| *.pdf"
    $SaveFileDialog.ShowDialog() | Out-Null
    $SaveFileDialog.filename
    # open dialog box to select the .nessuss file.
    $OutputFile = Get-SaveFile
    # User selected where they want to put the scanned.pdf file and it will automatically set it to .pdf for them
    start-process Scan $OutputFile

    I ran the code you have in your function on a Windows 2008 Standard server, and it seems to be hanging on the line
    $SaveFileDialog.ShowDialog()
    | Out-Null
    It just sits there and nothing happens, but if I run it on my Windows 7 machines, it runs without any issues. So it seems like the dialog opened, but behind the scenes, and is waiting on the user, but since it doesn't open, the user can't do anything.
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • Spry event listeners with dynamic form elements

    Hi ,
    I am trying to implement spry event listeners with a form that has dynamic check boxes and text field name. I now i can get the elements in a var and loop through with a normal function but can this work for spry events listeners

    Short answer is yes. But I have a feeling that you need further assistance, in which case give us a URL to a page that you want to apply the event listener to.

  • User Windows Forms in SAP

    Hi, is there an easy and quick way to use my Forms I made, which look like SAP forms as an AddOn in SBO?
    Maybe you know Mari-Projekt. The functionality should be the same. I have a stand-alone software but I also want to use it as an AddOn.
    Thanks Philipp

    Hi
    You can Open your windows forms in SAP Business One with a little bit work around.But event handlers for the form will be of .Net(like Button Clicks).But the problem is that you have to use showdialog property of form to show the form,Which will not allow you to access Sap Business One untill you close the windows form.
    If you want to handle your form events form with SDK,i am not sure whether that is feasible or not.
    Hope this helps you
    Regards
    Vishnu

Maybe you are looking for

  • Manual Depreciation

    Hi , This is with reference to error in  FI-AA At the time of running transaction code ABMA or ABAA for posting manual planned and unplanned depreciation for assets assigned to group asset......following error is appearing: Dep. area is assigned to a

  • As soon as I shifted to iCloud I could not use my mail on my computer. It put all accounts offline. What's up

    As soon as I shifted to iCloud I could not use my mail on my computer. It put all accounts offline. What's up

  • Issue with Condition step in workflow

    Hi Guys, I am using a condition step to check the value of a variable A. If the value of A is 7 , then the wf will follow the true branch. If not it will go down the false branch. This is as simple as that. But the wf was going down the wrong path wh

  • Missing command menu items - blur

    in ps cs6 there are some menu items, such as FILTER / BLUR / FIELD & IRIS & TILT, which are missing from configuators choices in the command list. i just wanted to confirm that missing items will be added in revisions past configurator 3.1, thanks.

  • Mac mail.  what is it

    I dont understand the purpose of the .mac mail. Can someone explain this to me? Is it true you have to pay extra for it? why is it necessary. Is it only for people with buisness who handle large bulk mail? Is it used for reading mail offline?