|
Are you sure you have no file called "text.txt" in your application folder?
|
|
|
|
|
Sir,
Say I want To Check is their any file Exist on C: Drive named taxt.txt ..?
my application on D:\tmyapp folder...
I how can check any file exist or not...?
Regards
Pankaj Joshi
|
|
|
|
|
string dir = "d:\tmyapp";
string file = "taxt.txt";
string fullpath = System.IO.Path.Combine(dir, file);
if (File.Exist(fullpath))
{
// file exist
}
{
// file not exist
}
regards
|
|
|
|
|
File.Exists(path to the file)
|
|
|
|
|
<code>
FileInfo fi = new FileInfo(@"Your_File_Path_Goes_Here.txt");
if(fi.Eists)
{...}
else
{
</code>
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
hi,
how to retain the values of dynamic generated text boxes in c#.net
|
|
|
|
|
How do you want to store them?
|
|
|
|
|
I click the exe file, in XP.
but it never execute startup form's load event?
Why?
Thanks anybody help me.
|
|
|
|
|
Because it's broken.
For more specific help, ask a more specific question, which probably means posting some code, as well as telling us what *does* happen ( does the form run at all ? does it crash ? )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you, i solved it.
just forgot regest Controls,
but it did not show any reports, when i opened it.
|
|
|
|
|
|
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;
But one tricky thing is here: if a value you are getting was not set (nobody checks or unchecks this checkbox) the value of it is null. We need handle this case.
int rowNumber = 3;<br />
int cellNumber = 2;<br />
<br />
bool b = false;<br />
if (dataGridView1.Rows[rowNumber].Cells[cellNumber].Value != null)<br />
{<br />
b = (bool)dataGridView1.Rows[rowNumber].Cells[cellNumber].Value;<br />
}<br />
|
|
|
|
|
Is it possible to see whether or not a program(exe) is installed on a
machine from web? for example, i'd like to check if winzip is installed and if
it is installed, the location of the executable.I want to check from web.Is it is possible...Plz any one help me.
Thanks.
Regards,
justin
|
|
|
|
|
You want to see if the user has a file on the local machine from an ASP web page? Can't do it, you don't have file access rights to the local machine from a web page.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks for ur reply.
Is there any alternate way like javascript.Plz help me.
|
|
|
|
|
ActiveX has file rights I think. Not sure, why do you need to do this from a web application.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
I wouldn't thank me yet, make sure it does what you need it to. I still don't understand why you are doing that check.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I want to check wheteher the exe is installed in a client system for invoking exe from the web
|
|
|
|
|
Hello Dear fellows
kindly do the needful
i want to get hardware information of client computers connected on Local area network.i want to get these information in C#.
plz help me how can i do it?
replay me
imee56@yahoo.com
haroon
-- modified at 2:49 Friday 17th August, 2007
|
|
|
|
|
Can you please tell me how to write the contents to the pdf file because it will be helpfull to me as i am creating asame type of applicaiton
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
iTextSharp is a library that allows you to generate PDF files on the fly.
SharpPDF is a C# library that implements different objects for the creation of PDF documents.
Are all were the inbuilt library in C#
Regards,
Satips.
|
|
|
|
|
Dont mistake me
you have mentioned SharpPDF know is it an extra refernce or else is in any namespace because i am new to this topic
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
They all are external references.
.NET itself doesn't have any support for PDF.
|
|
|
|