473,320 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problème avec CommonDialog1.Flags =

Bonjour,
J'ai vb4. Pouquoi ma 2e ligne est sans effet? car lorsque mon
CommonDialog1 ouvre la case à côché pour lecture seul est toujours visible
dans la fenêtre CommonDialog.
CommonDialog1.Flags = cdlOFNCreatePrompt 'And cdlOFNPathMustExist And
cdlOFNLongFileNames And cdlOFNExplorer 'cdlOFNFileMustExist
CommonDialog1.Flags = cdlOFNHideReadOnly ' équivaut à &H4& 'Cache la
case à cocher pour l'option "lecture seul" d'un fichier.

J'ai au moins deux boutons pour ouvrir le même CommonDialog1, un dans un
dossier par défaut et l'autre dans un autre dossier par défaut. Et pourtant
dans mes deux procédures j'ai bien la ligne CommonDialog1.InitDir =... pour
indiquer si on ouvre soit dans le dossier 'Vos listes' ou 'Personnel'. Car
en cliquant sur le même bouton tantôt il ouvre avec 'Vos listes' et tantôt
dans le dossier 'Personnel', et pourtant c'est le même bouton, la même
procédure qui est exécuté.

Dans une procédure j'ai
CommonDialog1.InitDir = App.Path & "\Vos listes"
et dans l'autre j'ai
CommonDialog1.InitDir = App.Path & "\Personnel"

a+
Raymond H.
di*******@hotmail.com
Jul 17 '05 #1
0 1864

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eric BARMAZ | last post by:
Comment faire fonctionner MySQL avec Microsoft Access 2002 ? Existe-t-il une procédure de connexion ? D'avance merci de votre aide
0
by: Mario Tardif | last post by:
I'm trying to use the CommonDialog1 to print my stuff.. But it's only printing on the default printer, I could it print on the printer I clicked on ? I saw something about hDC but it's not...
9
by: jab | last post by:
Je veux lier (join) une table qui se trouve dans une database avec une qui se trouve dans une autre database. Les 2 databases sont sur le même serveur en l'occurence DB2/NT 7.2.9. J'ai créé un...
21
by: Bigorre.Edouardd | last post by:
bonjour, j'ai une erreur de compilage qui me revient souvent qui est : "undefined reference ", il s'agit d'un probleme de librairie. Je voulais savoir comment on faisait pour incorporer des...
5
by: DarkPearl | last post by:
Bonjour à tous, apres avoir créer un service windows avec py2exe, j'ai ce probleme quand je lance le service : voici ce que je trouve dans le journal d'evenement : The instance's SvcRun()...
7
by: Nourita | last post by:
Hi All I have a strange problème with the OnClick methode: it does not work whene i use Konqueror embedded! I developpe a very simple test script: <HTML> <HEAD> <script...
1
by: Alexander Korsunsky | last post by:
Hi! Is it possible to extract the mode flags of a stream (FILE* stream or fstream - object), without looking at how the stream was opened? What I mean by mode flags is wether the stream is opened...
0
by: hessman1234 | last post by:
achat lipitor canada bon marche achat lipitor au rabais en ligne sans prescription acheter lipitor le plus bon marche un Achat de achat lipitor us usa avec livraison achat lipitor belgique soft...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.