Questions tagged [filedialog]

Refers to both OpenFileDialog and SaveFileDialog in .NET WinForms.

This tag represents both the OpenFileDialog class and SafeFileDialog class from .NET. More information about them on MSDN here and here respectively.

358 questions
7
votes
1 answer

PySide2 v5.12 : Creating a FileDialog on a click of a button

I designed a basic UI in the QtDesigner. Now i am trying to pop a simple file dialog on click of a button, below given is my GUI Code : from PySide2 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self,…
Dravidian
  • 9,945
  • 3
  • 34
  • 74
7
votes
2 answers

How retrieve only filename from save file dialog

I have a save file dialog and i want to get only the filename entered. Equivalent for openfiledialog.SafeFileName; Save file dialog has no SafeFileName Property and FileName returns both filename, path and extension. Pls how do i extract only…
user2509901
7
votes
6 answers

Is there an OpenFileOrFolderDialog object in .NET?

Is it possible to use the OpenFileDialog class select a file OR folder? It appears only to allow the selection of a file, if you select a folder and then choose open it will navigate to that folder. If the OpenFileDialog can not be used for this is…
Eric Schoonover
  • 47,184
  • 49
  • 157
  • 202
6
votes
2 answers

Qt customizing save file dialog

I need to customize default Qt save file dialog: add some options in it. For example, adding some checkboxes with my own values in it between file type and save/close buttons. Have Qt any ways to do it?
fryme
  • 281
  • 4
  • 15
6
votes
1 answer

how to add dynamically image in label with button click using rcp and swt / jface component

Button click to open FileDialog Box and selected any image to display on specific label. i try to set absolute path or relative path using selected images in Label control but not proper working dynamically. so please help to my question solve.
Chetan Bhagat
  • 610
  • 6
  • 21
6
votes
1 answer

Specify File path in tkinter File dialog

I have a file dialog to open a file, however, the file that I want to open is in a different directory than the program I wrote. The file dialog opens to the directory where I am. Is there a way to specify where the filedialog opens? Here is the…
manateejoe
  • 344
  • 2
  • 6
  • 19
5
votes
2 answers

Is it possible to prevent file dialog from appearing? Why?

Suppose I have input[type=file] element and I want to intercept onclick event and prevent file dialog from appearing if conditions are not met. Is it possible? And why, if - not?
jayarjo
  • 16,124
  • 24
  • 94
  • 138
5
votes
2 answers

MS Office SaveAs type FileDialog with a filter in vb

I want to create a 'save as' file dialog with a filter, but this doesn't seem possible using the FileDialog class (Microsoft Office 12.0 Object Library). The documentation actually mentions this here, see last paragraph, but gives no reason as to…
David
  • 2,101
  • 2
  • 32
  • 41
5
votes
1 answer

How to overwrite existing file?

I want to overwriting file that I have saved before, my saveAs code: public void saveAs(){ judul = jTextJudul.getText(); s = area.getText(); if(s.length()>0){//jika s terisi try { …
5
votes
3 answers

Making File Dialog only accept directories

I want to have a file dialog only allow directories, here's what I've been trying: fileDialog = QtGui.QFileDialog() fileDialog.setFileMode(QtGui.QFileDialog.ShowDirsOnly) filename = fileDialog.getOpenFileName(self, 'Select USB Drive Location'))
matt
  • 153
  • 3
  • 9
5
votes
3 answers

Tkinter Entry widget in Python is uneditable

When I run this code, the file picker comes up, and then when I finish with it, I can't type in the entry widget until I focus on another window and then come back. Why is this happening? import tkinter as tk from tkinter.filedialog import…
ddsnowboard
  • 922
  • 5
  • 13
5
votes
1 answer

SWT Filedialog Open into home folder

I want to open a FileDialog window into the user home folder (i.e. /home/user or /Users/unsername) I read the user home folder, using System.getProperty: String homefolder = System.getProperty(user.home); And the variable containts the correct…
Ivan
  • 4,186
  • 5
  • 39
  • 72
5
votes
2 answers

How can I programmatically manipulate any Windows application's common dialog box?

My ultimate goal here is to write a utility that lets me quickly set the folder on any dialog box, choosing from a preset list of 'favorites'. As I'm just a hobbyist, not a pro, I'd prefer to use .NET as that's what I know best. I do realize that…
AR.
  • 39,615
  • 9
  • 44
  • 52
5
votes
6 answers

Need FileDialog with a file type filter in Java

I have a JDialog with a button/textfield for the user to select a file. Here's the code: FileDialog chooser = new FileDialog(this, "Save As", FileDialog.SAVE ); String startDir = saveAsField.getText().substring( 0,…
Morinar
  • 3,460
  • 8
  • 40
  • 58
5
votes
3 answers

improving JFileChooser under Ubuntu 12.04 (GTK)

I have a problem with the JFileChooser under Ubuntu 12.04. I use this code to set the look and feel: javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); And it looks like this. It's very uncomfortable to use…
sMau
  • 149
  • 2
  • 10
1
2
3
23 24