tag:blogger.com,1999:blog-6497434045878013201.post7724889312557783684..comments2023-12-06T18:45:51.800-08:00Comments on Dot Net Tips & Tricks , C# (C Sharp)Tips & Tricks: OpenFileDialog in C# - How to Use OpenFileDialog in C# Windows ApplicationUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6497434045878013201.post-10632339176940320222012-02-21T03:24:15.107-08:002012-02-21T03:24:15.107-08:00hi i have one doubt..
i am running open dialog b...hi i have one doubt.. <br /> i am running open dialog box in c# i want to one or more files concurrently using loops... then i want to exe.. files .. i opened any files in opendialog the exe will not running.. <br />i press the cancel button of open dialog box the exe will running may i know the reason .. <br />any help will be greatly appreciated.. <br />thanks in advance here <br />my coding <br /><br />TextBox txtfilelocation = new TextBox();<br /> int cancelcount = 0;<br /> OpenFileDialog ofdnew = new OpenFileDialog();<br /> ofdnew.Filter = "xls Files|*.xls|xlsx Files|*.xlsx|Text Files|*.txt";<br /> ofdnew.Title = "Select File";<br /> DialogResult resultnew = new DialogResult();<br /> //runexeDownload();<br /> for(int i=0;i<3;i++)<br /> {<br /> resultnew = ofdnew.ShowDialog();<br /> ofdnew.Filter = "All Files|*.*";<br /> ofdnew.FilterIndex = 2;<br /> ofdnew.RestoreDirectory = true;<br /> ofdnew.Reset();<br /> ofdnew.Dispose();<br /> ofdnew.FileName = "F:\\Documents and Settings\\Origin\\My Documents\\Visual Studio 2008\\Projects\\Test1\\Test1\\bin\\Debug\\Download.txt";<br /> runexeDownload();<br /> ////int dialog = 0;<br /> if (resultnew == DialogResult.OK)<br /> {<br /> txtfilelocation.Text = ofdnew.FileName;<br /> }<br /> cancelcount = 0;<br /> while (resultnew == DialogResult.Cancel && cancelcount != 2)<br /> {<br /> cancelcount++;<br /> resultnew = ofdnew.ShowDialog();<br /> if (resultnew == DialogResult.OK)<br /> {<br /> txtfilelocation.Text = ofdnew.FileName;<br /> }<br /> }<br /> if (cancelcount == 2 && resultnew == DialogResult.Cancel)<br /> {<br /> ofdnew.Dispose();<br /> // int filecount = 0;<br /> }<br /> <br /><br /> }<br /> //runexeDownload();<br /> }<br /><br /> // reply to my mail id bharathiit09@gmail.com thanks in advance.. <br /><br /><br />**** i think little bit diff to understand the problem doubts on my questions free to mail @ bharathiit09@gmail.com //bharathihttps://www.blogger.com/profile/00361734397397462080noreply@blogger.comtag:blogger.com,1999:blog-6497434045878013201.post-28656153584237771732012-02-04T19:52:48.945-08:002012-02-04T19:52:48.945-08:00Excel has a property Visible which can be set - Ap...Excel has a property Visible which can be set - Application.Visible = TrueM Shasurhttps://www.blogger.com/profile/17390752937266096344noreply@blogger.comtag:blogger.com,1999:blog-6497434045878013201.post-55456440064227895092011-12-18T19:13:17.722-08:002011-12-18T19:13:17.722-08:00hi! may i know how to make the excel file that i a...hi! may i know how to make the excel file that i am opening with visibility using your code?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6497434045878013201.post-38013815042032596512011-11-30T05:24:38.073-08:002011-11-30T05:24:38.073-08:00i'm trying to create an application that will ...i'm trying to create an application that will need the user to input numeric data,and i want it to be in data grid form like a spread sheet,please how can i do that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6497434045878013201.post-30063203118441290782010-01-05T10:30:32.008-08:002010-01-05T10:30:32.008-08:00I'm trying to program a small file comparison ...I'm trying to program a small file comparison program. I have two input files, one has one more field than the other. I need to compare each record of the text file against the other text file and extract the duplicates adding the additional field to the output file. Any suggestions? The first input file, which has the additional field can get up to 100,000 records. The other file will usually be much smaller. What is the quickest way to read through files and compare? All data is numeric. Thanks!Tiffhttps://www.blogger.com/profile/00993977673289407238noreply@blogger.comtag:blogger.com,1999:blog-6497434045878013201.post-71280479537710412932009-03-02T08:06:00.000-08:002009-03-02T08:06:00.000-08:00really good . your blog is one of bests ;) . thx.really good . <BR/>your blog is one of bests ;) . <BR/><BR/>thx.Anonymousnoreply@blogger.com