<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : howto handle browse folder,open,save dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : howto handle browse folder,open,save dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 00:22:54 +0000</pubDate>
  <lastBuildDate>Wed, 13 Jun 2012 19:05:07 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19857</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[howto handle browse folder,open,save dialog : Hello all,I was just in a mode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19857&amp;PID=68433&amp;title=howto-handle-browse-folderopensave-dialog#68433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6659">Developerx</a><br /><strong>Subject:</strong> 19857<br /><strong>Posted:</strong> 13 June 2012 at 7:05pm<br /><br /><p>Hello all,</p><p>I was just in a mode to share some tips howto use CJ commondialog<br></p><p>3 important things i found after testing open with cj commondialog filters, parenthwnd, and capture if user click cancel instead of OK.</p><p>1. important use the parentHWND, look in code ; )<br>2. Capture if user press cancel , look in code<br>3. FILTERS , oh those filter often messed up but look in code for using many of them</p><p>----------------------------------------------------------------------------------</p><p>' EXAMPLE<br>'Create 2 buttons, with .caption ...<br>'name them&nbsp; cmdbrowseinput and &nbsp; cmdbrowseouputdir<br>'add flatedit1 and flatedit2</p><p>' EXAMPLE how to choose a file<br>Private Sub cmdbrowseinput_Click()<br>Dim whataction As Long<br>Dim filex As String<br></p>'important else function correct<br>CommonDialog1.ParentHwnd = Me.hWnd<br>'set filters<br>CommonDialog1.Filter = "html (.html)|.html|" &amp; "htm (*.htm)|*.htm|" _<br>          &amp; "text (*.txt)|*.txt|" &amp; "JPEG (*.jpg)|*.jpg|" &amp; "ALL (*.*)|*.*|"<br> <br>   whataction = CommonDialog1.ShowOpen<br>   filex = CommonDialog1.FileName 'this must come after showsave<br>   If whataction = 2 Then<br>   Me.Caption = "Cancel..."<br>   Else<br>    Me.Caption = "Ready"<br>    'send result to flatedit1<br>    FlatEdit1.Text = filex<br>    End If<br>    <br>End Sub<br><p>'Example howto browsefolder correct<br>Private Sub cmdbrowseouputdir_Click()<br>Dim whataction As Long<br>Dim filex As String<br></p> CommonDialog1.ParentHwnd = Me.hWnd<br> whataction = CommonDialog1.ShowBrowseFolder<br>filex = CommonDialog1.FileName 'this must come after showsave<br>   ' Me.Caption = CommonDialog1.FileName<br>   <br>   <br>    If whataction = 2 Then<br>    Me.Caption = "Cancel..."<br>    Else<br>    Me.Caption = "Ready"<br>    FlatEdit2.Text = filex<br>    End If<br><p>End Sub</p><p><br></p><p>Example in use</p><p><img src="uploads/6659/cj_juhax_example.jpg" height="282" width="504" border="0" /></p>]]>
   </description>
   <pubDate>Wed, 13 Jun 2012 19:05:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19857&amp;PID=68433&amp;title=howto-handle-browse-folderopensave-dialog#68433</guid>
  </item> 
 </channel>
</rss>