NotifyIcon() does not work when integrated into the application (.exe)

Hey everybody,

I use the NotifyIcon() of System.Windows.Forms.dll (.NET 2.0) to create a menu for the handling of an application. I started work with the example shown here http://zone.ni.com/devzone/cda/epd/p/id/3915and the code works when running in the IDE of LabVIEW.

However, when I build the code in an executable file, the icon not during execution. Someone has an idea of what could be the problem?

My code is still very messy (still in try-everything-and-see-what-works phase), so I will clean it before returning and detachment.

For reference, I'm doing a system-tray only monitor for a NI DAQ 6009. Program begins in the system tray and begins to record data. The user can right click to display the main window where he can change the interval plots or update view.

OK, I got it working!

It turns out that I had a few errors:

1. when I copied on the System.Windows.Forms.dll, I also need to copy System.Drawing.dll because I used during the creation of the icon.

2. I had the .dll files in the build directory, but I forgot to include the icons used by the program.

It turns out that the NotifyIcon() has been called, but a picture of the icon was never created! So why I couldn't see it...

Tags: NI Software

Similar Questions

  • Save to File.vi report does not work when integrated with the executable

    Hello

    When I use the NI_Report.lvclass:New Report.vi and NI_Report.lvclassave report to the File.vi, I can use successfully to create and excel spreadsheet so he was working at the developer.

    However when I build the source into an executable, this no longer works.  (The name of the file is built from the source, so I'm not using a dialog box)

    It can, however, create a .html file, but it does not seem as tidy.  Why is he not creating the Excel file?

    Running developer suite 2009, tried the .exe on Windows 7 and Windows XP with the same effect.

    Thank you

    -

    James

    See the attached zip file, it works for me here, see jpeg images and build the application accordingly and let us know. Did not include exe file, because the file size is too big.

  • DeskJet 3632: Does not work when plugged into the laptop

    When my printer is not plugged, it is all set up and ready to print. But when I plug it into my laptop, the button just flashes, all other buttons are not on and the screen is blank as well as this, it is not picked up at all of my laptop.

    If anyone has an idea why it continues to be please help! Thank you

    Hi @Jademercer,

    Thank you for joining the HP Forums!

    I understand that you get a white screen and the button flashes with your printer HP Deskjet 3632. I'm happy to help you!

    Are you able to print a test page without the printer being connected to the computer?

    Print a test page to make sure that the equipment is working properly.

    1. Make sure that there is no US letter or A4 size, unused, plain paper in the input tray.

    2. Press and hold the power button / , then press the Cancel button .

    3. Release the button cancel, then the power button.

      The test page will print.

      Figure: Example of a test page

    In the meantime, please take a look at this guide, the lights flash.

    If you are unable to reach a resolution, please click on accept solution. If you appreciate my help, please click on the thumbs up icon. The two icons are below this post.

    I hope hear from you soon!

  • Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game. __Keyboard is very good

    Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game.
    Keyboard is fine.  Is this a compatibility issue?

    ---------------

  • Msconfig does not start when typed into the starting box?

    Msconfig does not start when typed into the starting box?

    Original title: windows

    What is the listed program in 'C:\Windows\System32' if you look in Windows Explorer?

    If this is the case, it starts if you click on it?

    Update your anti-virus software and run a full scan.

    Then download, install, update and run a full scan with malwarebytesfree. (Keep free, no need to enter in any trial etc.).

    Then run a sfc/scannow to see what that brings.

  • I have added a hyperlink which is a file video .mp4 but it does not work when I generate the document.

    I have added a hyperlink which is a file video .mp4 but it does not work when I generate the document.

    Hello

    Do you use the WebHelp for the CHM converter script? If so, this screenshot may seem reasonable. If this is not the case, this isn't out CHM.

  • Adobe lightroom does not update when I use the application manager to download upgrades.

    Hello

    I have problems with adobe lightroom.  It is not updated when I use the application manager to download the new updates.  I tried to uninstall the application and re-download it, however the application manager will not allow that to happen because it shows that it is already installed and up to date. I think that the problem may have started when I installed lightroom using a link which you offered when creative cloud first started offering of lightroom.  This version of the program does not appear to work with the application manager.  Please let me know what I should do to fix the problem.

    Best regards

    S

    Hello

    Please, try to remove Adobe Extension manager and install again. The reinstallation of the extensions Manager try to day light the room.

    If it does not resolve that question please make a complete own using adobe cleaner tool and reinstall everything.

    Thank you

    Kapil Malik

  • the volume button on my computer does not work, when I turn the sound upward just bar falls to zero, no idea?

    can someone me, help the sound icon on the bottom of my scree of the computer doesn't work, when I puch the bar until you get sound on my computer, it just goes back to zero all the time...

    Hi JacquelineStueck,
     
     
    Parameter by default on your computer would be to reduce the volume when inbound communications are detected.
     
    a. change the setting in your control-> Sound-> Communications tab panel ' doing nothing '.
     
    b. click on apply. Click OK.
     
    If this does not help, perform the clean boot in order to identify the request at the origin of this problem:
     

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Additional reference on:

    Tips for solving common audio problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

  • Trying to reinstall my Windows XP home edition and my keyboard does not work when I reached the part where I have to type my name and organization

    Original title: reinstalling Windows

    I am trying to reinstall my Windows XP home edition and when I reached the part where I have to watch myself and my organization my keyboard does not work and I can't type my name or to the next step.

    Hello

    1. did you have backed up your data before attempting to reinstall Windows?
    2. do you have other devices connected to your computer outside of the mouse and keyboard?

    If so, I suggest that you remove any external devices, then try reinstalling Windows.

  • Problem: The button States works perfectly in preview mode; It does not work when published through the source of catalyst for business.

    I tried every way I know to create a button States in Adobe Muse CC 2015.  It works perfectly in preview mode, but it does not work effectively when published on a web site using the Business Catalyst (filename.businesscatalyst.com) process.  The problem, in my view, is that the text used in the button does not accept state changes.  I tried every workaround that I think might work, but nothing seems to work.  I even deleted the Business Catalyst site and then he came again, but it does not work.  Any information on how to fix this problem would be appreciated.

    I think I found my problem.  My original links have been on the "master" page  When I placed a link on a page of content object, Business Catalyst was able to translate the code correctly.  It is a disappointment because I need to duplicate objects on the pages, but at least it works.

  • splash screen does not work when Self contains the .jar

    I use a function of the start screen for the appliction of javafx. I use the javafx ant task to run in the order, the fx:jar, the fx:signjar, the fx: deploy to produce the jar file, the jnlp, the HTML file and the nativeBundles including 'image' and 'exe '. The splash works well when they are packed in the .jar file by double-click.

    When I double-click on the exe file in the application image file or the shortcut after installation by running the installation .exe file, however, there is no splash screen. Why? The exe file does not have to based on the jar file? Thanks for help.

    The jar is produced by < fx:jar=""> . stand-alone file is produced by with inno installed on Win7. The generated jar has the start-up screen, double-click, but not .exe. Why? or something else has to do with the generation of a stand-alone application? I guessed that the .exe file runs based on the jar file it should have the boot too. Thanks for the reply ~ ~

  • Flex app does not work when moved from the original location

    I'm doing a gallery of images in flex. It works when I run it in Flex Builder perfectly fine. Files html and swf works perfectly well open in any browser too, but ONLY when these files and all related files are open to the default location where the application has been generated in bin-debug folder. When I export a generation to another folder, the swf file loads but no other information from the display of the xml file. I tried to set all paths reference files (that is, the xml language) in the flex application to the absolute exact location on the server, and it did not work when I downloaded it on the server.

    I tried several approaches from scratch and they all arrive at the same question. I work with a teaching for Flex Builder License, I'm not sure if they jip you on those and ruin the compiled swf.

    Help, please! I'm losing my mind on that. I think it has to do with something else, in addition to the code because it works fine when I click 'Run', but if someone thinks it is helps for the zip code let me know.

    Often this is because you must add the - use-network = true compiler option in FlexBuilder menu bar:

    Project - Properties - Flex Compiler - additional compiler arguments:

    Add - use-network = true, and then recompile and post back to the server, should work fine.

    Note: If you create a "Release" version and move elsewhere on your local computer, you may need to add - use-network = true, and then recompile the application to access local resources outside the Flex Builder environment.

    If this post answers your question or assistance, please mark it as such.

  • Narrative does not work when you create the Windows Movie Maker project

    The narration does not work

    I made 2 projects of film making. Narating was good. Remove all the two projects. Photos as well. And began a 3rd movie, project. This time the narration does not work.

    I made 2 projects of film making. Narating was good. Remove all the two projects. Photos as well. And began a 3rd movie, project. This time the narration does not work.

    ======================================
    I was wondering... work your tape recorder of Windows?

    Windows Vista - sound recording
    http://Windows.Microsoft.com/en-us/Windows-Vista/record-sound

    The following article might be worth a visit:

    How to: Add narration to a movie using Windows Movie Maker in Windows Vista. :-add-a-narration-to-a-movie-using-windows-movie-maker-in-windows-vista https://ask.qut.edu.au/app/answers/detail/a_id/4499/~/how-to.

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Keyboard does not work when connected to the internet

    MY keyboard for some reason any works offline as if it was supposed to, but when online, he goes haywire, instead of typing the letters he hit numbers?  now, I have tried nothing troubleshooting the problem.

    Looks like you may have a virus or other malware. Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.

    -

    Microsoft has suggestions and offerings to

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus

    -

    Moderator Forum Keith has a few suggestions along this line to

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

    -

    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem. To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore. Click on the box that says show more restore points.

    -

    You can check the corrupted system files. Open an administrator command prompt and run SFC if the above does not help. Click START, and then type CMD in the search box, right-click on CMD. EXE and click run as administrator. Then, from the command prompt type sfc/scannow.

    -

    Finally if all else fails, you can look at the rather cryptic system event log. To do that click on start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.

    `

    When you get your system in good working condition, I invite you to back up your system up to an external hard drive and make it regular periodic updates.

    -

    I hope this helps. Good luck.

  • It does not work when you use the trigger to check the data of the other table.

    Please help me with this, I put a trigger on a table, but it can not work as I expect.

    case study: a class has many students, one of them is going to match.
    The purpose of this trigger is to check when to choose a student going to match, this student has in his class where it belongs to.
    Oracle version is 10.2.0.1.0.
    --table:
    DROP TABLE STU;
    DROP TABLE CLASS;
    
    create table CLASS(
    CID     VARCHAR2(5)   PRIMARY KEY,
    CNAME   VARCHAR2(20)  NOT NULL,
    SCHOSEN VARCHAR2(5));
     
    create table STU(
    SID     VARCHAR2(5)   PRIMARY KEY,
    SNAME   VARCHAR2(20)  NOT NULL,
    CID     VARCHAR2(5)   NOT NULL REFERENCES CLASS(CID) ON DELETE CASCADE);
    
    --data:
    --CLASS
    INSERT INTO CLASS(CID,CNAME) VALUES(1,'SUN');
    INSERT INTO CLASS(CID,CNAME) VALUES(2,'MOON');
    INSERT INTO CLASS(CID,CNAME) VALUES(3,'EARTH');
    --STU
    INSERT INTO STU VALUES(1,'JACK',1);
    INSERT INTO STU VALUES(2,'TOM',1);
    INSERT INTO STU VALUES(3,'LILY',2);
    INSERT INTO STU VALUES(4,'DUSTIN',3);
    
    --TRIGGER
    CREATE OR REPLACE TRIGGER CHECK_SCHOSEN
    BEFORE INSERT OR UPDATE OF SCHOSEN ON CLASS
    FOR EACH ROW WHEN (NEW.SCHOSEN IS NOT NULL)
    
    DECLARE
    DUMMY INTEGER;
    INVALID_STU EXCEPTION;
    VALID_STU EXCEPTION;
    MUTATING_TABLE EXCEPTION;
    PRAGMA EXCEPTION_INIT(MUTATING_TABLE, -4091);
    
    CURSOR DUMMY_CURSOR (ST VARCHAR2, CL VARCHAR2) IS
      SELECT SID FROM STU, CLASS
      WHERE STU.SID=ST AND STU.CID=CLASS.CID AND CLASS.CID=CL
        FOR UPDATE OF CLASS.SCHOSEN;
    
    BEGIN
      OPEN DUMMY_CURSOR(:NEW.SCHOSEN, :NEW.CID);
      FETCH DUMMY_CURSOR INTO DUMMY;
      IF DUMMY_CURSOR%NOTFOUND THEN
        RAISE INVALID_STU;
      ELSE
        RAISE VALID_STU;
      END IF;
      CLOSE DUMMY_CURSOR;
    EXCEPTION
      WHEN INVALID_STU THEN
        CLOSE DUMMY_CURSOR;
        DBMS_OUTPUT.PUT_LINE('PLEASE RE-ENTER CLASS ID AND STUDENT ID AS CLASS OR STUDENT IS NOT VALID.');
      WHEN VALID_STU THEN
        CLOSE DUMMY_CURSOR;
        DBMS_OUTPUT.PUT_LINE('STUDENT CHOOSE SUCCEFULLY!');
      WHEN MUTATING_TABLE THEN
        NULL;
    END;
    /
    Just copy and paste on it and try to run next:
    UPDATE CLASS
    SET SCHOSEN = 3
    WHERE CID = 1;
    Clearly, you can't student who is 3 as to Member of class 1. Please help me. Thank you.

    Published by: 991096 on March 1st, 2013 02:36

    Published by: 991096 on March 1st, 2013 03:03

    Published by: 991096 on March 1st, 2013 03:11

    Hello

    991096 wrote:
    1. the purpose of this trigger is to check when to choose a student going to match, this student has in his class where it belongs to. Then, when I try to choose 3 student-member of correspondence of class 1, should give me "PLEASE RE-ENTER ID AND STUDENT ID AS CLASS or STUDENT not IS NOT VALID."

    Then do something like this:

    CREATE OR REPLACE TRIGGER CHECK_SCHOSEN
    BEFORE INSERT OR UPDATE OF SCHOSEN ON CLASS
    FOR EACH ROW WHEN (NEW.SCHOSEN IS NOT NULL)
    DECLARE
        sid_found     stu.sid%TYPE;
    BEGIN
        dbms_output.put_line (:NEW.schosen || ' = schosen entering check_schosen');             SELECT  sid
             INTO    sid_found
         FROM      stu
         WHERE     sid     = :NEW.schosen
         AND     cid     = :NEW.cid
         AND     ROWNUM     = 1     -- to avoid TOO_MANY_ROWS
         ;
    EXCEPTION
        WHEN  NO_DATA_FOUND
        THEN
         RAISE_APPLICATION_ERROR ( -20000
                        , 'Please re-enter class id and student id as class ('
                          || :NEW.cid
                          || ') or student ('
                          || :NEW.schosen
                          || ') is not valid.'
                        );
    end;
    /
    

    DBMS_OUTPUT creates only a message. The message may not be displayed, and if this is the case, then the user cannot see it. The DML will still take place.
    I used instead, RAISE_APPLICATION_ERROR to keep the DML does not happen. It displays a message like

    ORA-20000: Please re-enter class id and student id as class (1) or student (3) is not valid.
    

    ' 2 ' game ' means ' an official competition in which two several people or teams competing.

    What individuals or teams are competing in this case?
    In any case, the question wasn't 'that 'game' means', but

    Frank Kulash wrote:
    What do you mean when you say "going to match?

    I think that now you're saying that the new values of (class.cid, class.schosen) must be equal to (or "fit") some existing (stu.cid, stu.sid).

    3. thanks for your tip, I learned how to use '{code} '.

    4. it's really goes with the exception of MUTATING_TABLE. So, how do to fix the trigger to show me INVALID_STU EXCEPTION when I try to choose a student does not belong
    a class?

    Don't refer to the table of class in the trigger, and the error table mutation occur. All the information you need are in the stu table, so there is no need to query the table of class, anyway.

Maybe you are looking for