Audacity displays too wide open file dialog

The problem concerns "File - Open..." and "File - Import - Audio..." dialogs. Window height is small enough to fit on the screen, but it has width about 5 times larger than screen (1600x900). It is possible to change window height to both smaller and larger size, but width can be made larger only. The reason is probably second position in the "file types" filter list, it has many extensions in one line. Did you notice same Audacity behaviour?
Audacity 1.3.13-1
Gnome 3.2.0
Archlinux 64-bit

I don't understand how iMovie works with those thumbnails.
I imported some DV footage from an old iMovie HD, 2 clips. The files generated by iMovie'08 looks like this:
clip1.dv is 768x567 and is 118 MB on disk (although Quicktime reports 238 MB) and clip2.dv is 768x567 and 53 MB on disk. iMovie'08 creates a folder iMovie Cache with a file Cache.mov, 720x576, 12 kB on disk. In the folder iMovie Thumbnails is the file clip01.mov, 160x90, 10 MB on disk and clip02.mov, 160x90, 4.5 MB on disk. In the subfolder iMovie Cache is the file Cache.mov, 160x90, 16 kB.
Now, the HD footage I had to process differently. In order to get it into iMovie'08, I used VisualHub to convert the 1 hour video at 1440x1088, 10 GB on disk, file HD.mpeg to AppleTV format (720p) as HD.mp4, now 1280x720, 1.5 GB. I import this in iMovie, goes fine, takes a minute or so. Then iMovie starts creating its thumbnails. It took 4 hours 9 minutes!
The clip is in there as one 1 hour clip. The file structure is as follows: HD.mp4 is 1280x720, 1.5 GB on disk. In the folder iMovie Cache is cache.mov, 1280x720, 2.1 MB. In the folder iMovie Thumbnails is HD.mov, 160x90, 980 MB on disk - ie. two-thirds the size of the original file, in 1/64 the resolution! In the subfolder iMovie Cache is cache.mov, 160x90, 590 kB.
Skimming is hardly possible on the HD clip, especially moving the cursor backwards, and it is hard to trim selections. It plays fine, though. For the DV clips skimming it works fine.
Any ideas what is going on here, and how to work around? Is the inefficiency due to the very large clip? I tried to trim of a 2 min clip from the original file and put it through the same conversion, but the result was more or less the same, skimming-wise - very inefficient.

Similar Messages

  • How to displays the standard open file dialog box in Oracle Apps Server

    Hi,
    I am having a form, where i am opening a file and putting that file content in a text box.
    This is my code written in WHEN-BUTTON-PRESSED trigger:
    declare
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(8000);
    filename VARCHAR2(30);
    BEGIN
    filename:=GET_FILE_NAME('d:\Rajesh\Practice', File_Filter=>'Text Files (*.txt)|*.txt|',select_file=>false);
    in_file := Text_IO.Fopen(filename, 'r');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    :text_item5:=substr(:text_item5||linebuf||chr(10),1,5000);
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Put_Line('Closing the file...');
    Text_IO.Fclose(in_file);
    END;
    I have posted this in ORacle Apps Server.Where i was not able to get the Open Dialoq Box.It is giving an error as
    "FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000.".
    I think the GET_FILE_NAME function is not supported in the Apps Server.
    Is there any alternative solution for getting the OPEN DIALOG WINDOW in Oracle Apps Server?
    Pls let me know.

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • Open file dialog box - Excel 2011

    Not sure if this is the right forum to ask a question about running Office 2011 under Mavericks.
    Since upgrading to OSX 10.9, something very odd seems to have happend to the open file dialog box in Excel. The list of the files in the current folder is displayed, but the filename column is really narrow showing just 7 characters of each name. In contrast the date modified column is incredibly wide. I can manually adjust the filename column to make it wider so I can read the filenames, but each time I reopen Excel it has defaulted back to being very narrow.
    Does anyone know if there a preference setting somewhere that I can change in order to make the width default to something more readable so I don't have to manually change it every time I want to open a file. The Word and Powerpoint open dialog boxes appear normal, so the problem seems to be confined to Excel.
    I had been running the same version of Office 2011 under Snow Leopard and the change to Excel only appeared after upgrading the OSX 10.9.

    MalcolmBebb@Honeywell wrote:
    OK, I was a bit hasty. The thanks stand. Can't see how to edit the post, please consider the rest withdrawn.
    It's okay - we all get like that at some time or other.  I dread reading my posting history for that reason. 
    I'm just glad you got exactly the help you needed. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Open File dialog in 1.1.0.21

    This is an old issue which I thought was supposed to be resolved in 1.1, but whenever you go to the open file dialog, it still always starts in the installation directory. It does not remember the last directory used and I cannot find anything in the global preferences that enables you to specify a preferred default location. There is a feature request that is marked as complete in 1.1 which kind-of covers this issue but relating to saving files, but the behaviour of both the save file and open file dialog is the same as it was.
    Using build MAIN-21.41 on windows xp.

    I too was disappointed that this promised enhancement was left out of version 1.1. However, I found a workaround that helps minimize the problem.
    If you have a Windows Explorer window open to the folder where your SQL file resides, you can drag-and-drop the file into SQL Developer to open it. The trick is that you must drag your cursor to the tab bar area of the SQL Developer window to get the file to open in a new tab. Dragging it to the editor section of the SQL Developer window will not open the file.
    Paul

  • Please fix: Common Open File Dialog Box to support Favorites (Follow-up: Better provisioning in the Windows client)

    One more thing:
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Please obsolete or (re)develop components in Windows, so those components support any new workflows in Windows!
    On example of an application where you cannot use Favorites is Adobe Photoshop. It uses the Common Open File Dialog Box in Windows (which does not support Favorites).
    Comparing Finder (MacOS) with Windows Explorer - you "seem" to have the option of using favorites to pin folders.
    Well, if your application calls Windows to use the Common Open File Dialog Box - it's actually NOT POSSIBLE AT ALL to navigate to the user concepts (user folders) pinned to favorites.
    Again, the favorites namespace is completely unused (not provisioned) out-of-the-box. That's may be ok, however it's not fully implemented across Windows and just another example of stuff accumulating up to being unusable.
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Ref.: Better provisioning in the Windows client
    https://social.technet.microsoft.com/Forums/en-US/dbb2102f-00b7-47ca-88f2-4f88cd9d3409/followup-starting-launching-and-switching-?forum=WinPreview2014Feedback#2aba34e9-6074-4750-8f66-425bdeacc705
    https://social.technet.microsoft.com/Forums/en-US/168bb9f9-ab18-42e6-9f20-5e36e71f742c/merging-the-task-bar-and-the-start-screen-area?forum=WinPreview2014Feedback#168bb9f9-ab18-42e6-9f20-5e36e71f742c
    https://social.technet.microsoft.com/Forums/en-US/59a5bb6a-0368-4f34-bea4-b9811ac0bf8c/dont-forget-development-of-the-start-screen-remember-virtualization-of-it-too-purpose-is-hud?forum=WinPreview2014Feedback#59a5bb6a-0368-4f34-bea4-b9811ac0bf8c
    https://social.technet.microsoft.com/Forums/en-US/c10168fe-a534-44aa-a0ec-e9defc71da5f/better-provisioning-in-windows-client-remember-templates-for-the-start-screen-like-the-need-for?forum=WinPreview2014Feedback#c10168fe-a534-44aa-a0ec-e9defc71da5f

    Congrats to Carmelo!
     Windows Phone and Windows Store Apps Technical Guru - February 2015  
    Carmelo La Monica
    Windows Phone 8: control Nokia Maps (Part 3)
    JH: "Part 3 of the series how to work with the Nokia maps control. As the previous articles this one contains a lot of code snippets and some pictures. Good work!"
    Ed Price: "A great topic, a fantastic breakdown of sections with clear descriptions, and a nice mix of code formatting and helpful images! Another stellar article from Carmelo! Great job including the link back at the end to the portal
    article!"
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • What does the open file dialog do 'under the hood' and is there a way to simulate it

    What does the open file dialog do 'under the hood' and is there a way to simulate it?
    I have a bug in my code (that I've posted about before, here) which I can't fix at the moment, but I do have a workaround.
    Briefly, the bug:
    I call a dll from a function node, to initialise and run a spectrometer. If I start up the PC, LabVIEW and run my vi the code runs without complaint, the first call to the dll to initialise the spectrometer doesn;t return an error but the spectrometer is not detected either.
    I've tried various solutions, see the link above, and none work
    The workaround:
    If, at any time before running the code containing the function node I open an 'open file' dialog window, select the dll and click ok/hit enter then everything is fine. When I run the main code the spectrometer is detected.
    I use an express vi to open the file dialog, I specify the start path and file name as constant inputs and just click ok/hit return when the dialog pops up. I don't do anything with the dialog outputs. In fact the vi that contains the open file dialog can be run before the project containing the bug is even open.
    I have to do this everytime I turn the PC on.
    So, either
    1) Can somewone suggest a fix for the original bug?
    2) What is the easiest way to simulate the enter keypress when the open file dialog pops up
    or
    3) Can someone tell me what the open file dialog does under the hood that somehow causes the dll to work and can it be simulated in straight LabVIEW
    I suspect that the dll itself is dodgy ( I have in the past talked to the supplier but not got very far, and I will try again but I would like a quick, temporary solution too). I'm guessing that the file dialog is making some kind of check on the file, and possibly registering its presence with the OS (winXP). I tried using the file/folder exists vi to see if checking the file like that worked but no luck.
    Any help greatly appreciated.
    Dave

    Hi David
    I am very conscious about thread hijacking but this sounded like my issue so I hope you dont mind me asking about your issue. I am hoping that you have a spectrometer from the same vendor as me and its not just me seeing an Error 1097 issue. My spectrometer is from a company called Stellarnet.
    So far I have unable to get it to work with other VIs. There is one condition where I can get it to work but its no good for me.
    Case 1
    I open the VI in a fresh labview environment with no other VIs in memory. The code runs with no issue.
    Case 2
    Labview is not opened. I double click the spectrometer VI in windows explorer.  The VI opens but it fails to run resulting in Error 1097. Personally, I dont see the difference between this and Case 1 above and yet it fails.
    Case 3
    If I already have other VI's in memory and try to load the spectrometer VI and run it fails with Error 1097. This case is the one that most important to me. I have a test executive that will load test VIs dynamically and I can't get this to work. Same problem Error 1097.
    I wanted to share what I have seen with you and to let you know that maybe somebody else has the same issue. I am convinced its the DLL but the vendor dis-agreed saying it was LabVIEW. I couldn't convince him otherwise.
    Thanks in advance
    David

  • Some qt only programs are crashing opening the "Open File" dialog

    Hello Archers,
    I'm having some trouble to find out what's crausing the crashes, so i can properly fill a bug report upstream.
    Here is the issue:
    * After an upgrade from glibc 2.13-5 to glibc 2.14-4, some qt-only apps are crashing when i open the "Open File" dialog. This only happens when using specific KDE 4.6.4 or KDE 4.6.5 styles, like Oxygen and QtCurve.
    * Before i upgrade KDE from 4.6.4 to 4.6.5, i downgraded glibc and its dependencies to glibc 2.13-5 and the bug was gone. After upgrading KDE to 4.6.5, i didn't try the downgrade again because KDE 4.6.5 requires glibc 2.14 and the process of downgrading become unsustainable.
    * I tried removing the crashing apps data from my home directory and the crash still exists. I also tried to create a new user and start the apps from that new environment and the apps crashes, so the bug is not user-specific.
    * I tried replacing the binary nvidia driver with xf86-video-nouveau but the issue persists.
    * The apps crashing (and not applying the kde theme) are the following:
    => opera 11.50
    When opening the "Open File" dialog, it crashes with the following message:
    ------------- begin ---------------------------------
    $ opera --sync
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400034 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400033 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x7400032 unexpectedly destroyed
    (operapluginwrapper:2349): Gdk-WARNING **: GdkWindow 0x740001c unexpectedly destroyed
    The program 'operapluginwrapper' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
      (Details: serial 547 error_code 3 request_code 18 minor_code 0)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    ------------- end ---------------------------------
    => vlc 1.1.10
    When opening the "Open Directory" dialog, it crashes with the following message:
    ------------- begin ---------------------------------
    $ vlc
    VLC media player 1.1.10 The Luggage (revision exported)
    Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
    Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
    [0x9884a7c] main interface error: no suitable interface module
    [0x97e28fc] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    Blocked: call to setlocale(6, "")
    Blocked: call to setlocale(6, "")
    Segmentation fault
    ------------- end ---------------------------------
    * Using other qt-only apps, like qmmp or UMPlayer the bug doesn't occur.
    So, what do you thing of this? Am i the only one with this issue? I already reported the bug report on https://bugs.archlinux.org/task/24991 and https://bugs.opera.com/wizard/, but since i latter found out that this is not opera specific, i don't know where to fill the report. 
    Thanks in advance.
    Last edited by eldarion (2011-07-09 15:15:13)

    kachelaqa wrote:
    eldarion wrote:kachelaqa, can you please confirm if it happens with vlc or opera too? Thanks for helping.
    i had to install vlc and opera to test - but i'm afraid i don't get the errors you are seeing.
    so far, qt designer is the only application i've found that crashes when opening file dialogs.
    Ok, thanks for helping.

  • Folder appears in Windows Explorer, but not in the Open File dialog

    Hello,
    I hope this is the right place to post this. If not, please let me know where is.
    A friend just showed me a weird problem he is having with his computer. He is using Windows 7 pro, and has a folder under My Documents, in which he keeps his work files. He emails these files using Gmail, which he accesses via Internet Explorer.
    All worked fine until a few days ago, when he noticed that when he clicked the link in Gmail to attach a file, his folder wasn't listed in the Open File dialog. He looked in Windows Explorer, and could see the folder OK. I tried opening Word and using the Open
    File dialog there, and the folder wasn't visible.
    If he clicks in the address bar, and adds the folder name to the path, it opens the folder, but shows it as empty. I actually has two subfolders. If he adds the name of a subfolder, then the Open File dialog shows the files in that folder.
    I checked the permissions on the folder, and couldn't see anything odd. What I don't understand is how the folder can be visible in Windows Explorer, and not in the Open File dialog.
    Anyone any ideas? Thanks
    FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
    Download from the Visual Studio Gallery.
    If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
    http://dotnetwhatnot.pixata.co.uk/

    I can confirm - I'm having the exact same problem.
    When I try to lookup or save a file from an IE file dialog some folders do not show up. I can type the folder name into the directory field and it then goes there, but this assumes you know the directory name and it's a PITB.
    Firefox can browse to the directory directly.
    It would be interesting if anyone else found a fix for this - I'll post here again if I find out more somewhere else, but there are not too many threads out there as far as I have found for now.
    Found a solution over at answers at Microsoft dot com. (can post links here yet - will update once I can)
    In short: There's a fast fix for this issue by resetting a hidden flag that IE sets for some folders. I believe this part of the "protected mode" feature, though I can't confirm and also have no idea how this would protect me from any intruders,
    if only (unimportant) subfolders are protected ...
    Anyway - if you know the name of the missing folder (e.g. from browsing the directories form windows explorer): in the parent directory that has the folder missing do a Search (in box at top right) for the missing
    folder name. In my case the hidden folder shows up in the search - now right click -> Properties -> clear hidden flag. Note: this "hidden" flag is independent of the flags set in windows explorer - that's why you have trouble going there with IE and not
    the file explorer from the desktop.

  • Open file dialog hangs

    I have some raw video files dumped from a Sony HD camera. The files are in some MPEG format (VLC just reports mpegv, mpega), the resolution is 1440x1088, and they are about 10 GB for 1 hour of video. My Quicktime wont play the video, but VLC plays it fine.
    When I try to "Import video from file..." in iMovie '08, and navigate to the folder where the files are, the open file dialog hangs and iMovie beachballs - so far I have only had patience for 30 min, then a Force Quit is the only option.
    Edit: OK, so it took 45 min then I could interact. The .mpeg is greyed out and as soon as I touch anything, iMovie beachballs again.
    Any idea of the reason for this and how to circumvent it? Is iMovie trying to extract info from the files beforehand? Is it due to the file size (10 GB)?
    Presently, I am trying to transcode the files using VLC, but I am having some trouble finding the best settings so not to loose too much quality, get rid of the interlace, etc. Any pointers on how to optimize setting for processing afterwards in iMovie HD and/or '08 are appreciated.
    Message was edited by: Dalle

    I don't understand how iMovie works with those thumbnails.
    I imported some DV footage from an old iMovie HD, 2 clips. The files generated by iMovie'08 looks like this:
    clip1.dv is 768x567 and is 118 MB on disk (although Quicktime reports 238 MB) and clip2.dv is 768x567 and 53 MB on disk. iMovie'08 creates a folder iMovie Cache with a file Cache.mov, 720x576, 12 kB on disk. In the folder iMovie Thumbnails is the file clip01.mov, 160x90, 10 MB on disk and clip02.mov, 160x90, 4.5 MB on disk. In the subfolder iMovie Cache is the file Cache.mov, 160x90, 16 kB.
    Now, the HD footage I had to process differently. In order to get it into iMovie'08, I used VisualHub to convert the 1 hour video at 1440x1088, 10 GB on disk, file HD.mpeg to AppleTV format (720p) as HD.mp4, now 1280x720, 1.5 GB. I import this in iMovie, goes fine, takes a minute or so. Then iMovie starts creating its thumbnails. It took 4 hours 9 minutes!
    The clip is in there as one 1 hour clip. The file structure is as follows: HD.mp4 is 1280x720, 1.5 GB on disk. In the folder iMovie Cache is cache.mov, 1280x720, 2.1 MB. In the folder iMovie Thumbnails is HD.mov, 160x90, 980 MB on disk - ie. two-thirds the size of the original file, in 1/64 the resolution! In the subfolder iMovie Cache is cache.mov, 160x90, 590 kB.
    Skimming is hardly possible on the HD clip, especially moving the cursor backwards, and it is hard to trim selections. It plays fine, though. For the DV clips skimming it works fine.
    Any ideas what is going on here, and how to work around? Is the inefficiency due to the very large clip? I tried to trim of a 2 min clip from the original file and put it through the same conversion, but the result was more or less the same, skimming-wise - very inefficient.

  • WebUtil within Oracle Forms (Find File - Open File Dialog Window)

    I have successfully configured WebUtil and I can successfully execute the functions. I have been working with PKG_FIND_FILE.Selection function (which displays an Open File Dialog Window).
    I cannot figure out why the following is occurring:
    When I call the above function, the system typically displays an older dialog window (light blue / gray) window. For a brief time, we were able to bring up the "Windows looking" dialog window. I don't know what we changed in the configuration, but it is now back to the older looking light blue/gray dialog window.
    Any ideas on where in the configuration, this would cause the dialog window to switch its "look and feel"
    Thanks,
    Mike

    File dialog look has been changed because of the java version difference.
    In Java 1.4 the look is different and 1.5 shows another way.
    So check which java plugin and the version of the java
    ( go to control panel->settings -> click on java and check on version)
    Rajesh ALex

  • RW2 preview in finder and "Open file" dialog

    Hello,
    I run into a curiosity with RW2 file format (from LX3 and FZ38). In Finder, RW2 preview is not displayed and only default icon (black icon with text exec in corner). The same RW2 files does have correct preview, when I browse them in "Open file" dialog window (for example Safari > File > Open File...).
    How it is possible the Finder and Open dialog do have different settings? Is it possible to copy these settings?
    Thank You

    see thread http://discussions.apple.com/thread.jspa?messageID=3805971&#3805971
    though no solution yet.

  • Intermittent too many open files error and Invalid TLV error

    Post Author: jam2008
    CA Forum: General
    I'm writing this up in the hopes of saving someone else a couple of days of hair-pulling...
    Environment: Crystal Reports XI Enterprise / also runtime via Accpac ERP 5.4
    Invalid TLV error in Accpac
    "too many open files" error in event.log file
    Situation:
    Invalid TLV error occurs seemingly randomly on report created in CR Professional 11.  Several days of troubleshooting finally lead to the following diagnosis:
    This error occurs in a report that contains MORE THAN 1 bitmap image.
    The error only shows up after 20 or more reports have been generated sequentially, WITHOUT CLOSING the application that is calling the report.  In our case the Invoice Report dialog within Accpac.  This same error occurred in a custom 3rd party VB.NET app that also called the report through an Accpac API.

    after getting this message you need to do 2 things:
    1. delete the current workspace because it contains some bad data in one the config files - failure to delete the workspace will result the error message to appear even if trying to upload a single file.
    2. add to DTR files in groups - no more than 500 in a single add.

  • Functioning of Open File dialog in SAP

    Hi ,
    I have created a form in which a "Browse" button is been created which will function just like the Attachment Option in Employee
    Master Data .But while coding the Open File Dialog in VB.Net it is showing errors.
    Code which i have used is :-
    Dim OpenFile as OpenFileDialog=New OpenFileDialog
            If OpenFileDialog1.ShowDialog(Me) = Windows.Forms.DialogResult.OK Then
    Code
    End If
    But this code is not working .
    Please help me to make the openfile dialog works using sap.
    Thanks & Regards,
    Amit Kumar

    Hi Amit Kumar,
    You may check these threads:
    Re: browse button functionality
    Re: How to display the open file dialogue in SBO 2007
    Thanks,
    Gordon

  • No Cifs Share in Open File Dialog of Device Manager

    Hello,
    I just copied lots of driver-files to a Cifs-share and connected to that share over the explorer just to recognize, that the
    Device Manager - Driver Open File Dialog
    does not show any Shares, just the local HDs and the Network.
    Is there any workaround on this, so that the Open File Dialog shows the Shares?
    thx,
    hugo

    Hi,
    First make sure that you successfully share the files out.
    http://doc.freenas.org/index.php/Windows_(CIFS)_Shares
    form this article, there is a "Browsable to Network Clients" option,  it enables Windows clients to browse the shared directory using Windows Explorer.  
    You can also try to directly type the UNC path of the cifs share in the explorer to search the share, verify whether it exists.
    NOTE:
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda
    TechNet Community Support

  • UI - Open File Dialog leaks...

    Hi there,
    I am working on an add-on which manages attached files in standard SBO forms.
    I need to display an open file dialog on the top of the SBO client, so that the user can browse its file system to select a file to attach. I managed to do it, but if I move the file dialog, it is "leaking" on the SBO client window (which is in the background).
    This doesn't look very professional...
    Here is the code used:
    Public Class ForegroundWindow
        Implements IWin32Window
        Private Shared _window As New ForegroundWindow
        Private Sub New()
        End Sub
        Public Shared ReadOnly Property Instance() As IWin32Window
            Get
                Return _window
            End Get
        End Property
        Public Declare Function GetForegroundWindow Lib "user32" () As IntPtr
        Public Overridable ReadOnly Property Handle() As IntPtr Implements IWin32Window.Handle
            Get
                Return GetForegroundWindow()
            End Get
        End Property
    End Class
                'method to select an attached file into the matrix
                Public Sub [Select](ByVal Form_UID As String)
                    Dim oFileDialog As New System.Windows.Forms.OpenFileDialog
                    With oFileDialog
                        .Title = FILE_DIALOG_TITLE
                        .InitialDirectory = Me._Folder
                        .Filter = FILE_DIALOG_EXTENSIONS_FILTER
                        .FilterIndex = FILE_DIALOG_FILTER_INDEX
                        .Multiselect = False
                    End With
    System.Windows.Forms.DialogResult = oFileDialog.ShowDialog(ForegroundWindow.Instance)
                End Sub
    Does anyone have an idea?
    Thanks a lot in advance
    Cheers,
    Cyril

    Have a look on this post.
    Re: My solution to the OpenFileDialog problems (C#)

Maybe you are looking for