16,017,857 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by krushna chandra jena (Top 40 by date)
krushna chandra jena
28-Aug-14 4:19am
View
yes
krushna chandra jena
18-Aug-14 3:58am
View
have you know diskdefragment in windows 7 or windows xp ..
how it will do by c# coding..
krushna chandra jena
11-Mar-14 8:28am
View
Can you clarify ? do you want to restrict the user in a textbox insert upto decimal(6,2) or try to insert in database from textbox decimal(6,2)..
krushna chandra jena
4-Apr-13 2:34am
View
dr["A"] = (i + 1).ToString();
dr["B"] = (i + 1).ToString();
dr["C"] = (i + 1).ToString();
dt.Rows.Add(dr);
krushna chandra jena
26-Feb-13 8:18am
View
Hi....
I want to say that listview responses but after complete the execution ,
when execution in going on then it hangs , i can not select any row of the listview.
Regards
Krushna
krushna chandra jena
26-Feb-13 6:19am
View
I have tried Your code, but it still does not work....listview freezes , but i have a question that the cross thread exception can be overcome by "Control.CheckForIllegalCrossThreadCalls=false " which given by windows form control ....is the problem comes only for cross thread exception ?
krushna chandra jena
19-Dec-12 1:39am
View
you can use
dataGrid1.Items.RemoveAt(dataGrid1.SelectedIndex);
or you can use
var dg = dataGrid1.CurrentItem as DataRowView;
string deleteFilePath = dg[0].ToString();
krushna chandra jena
19-Dec-12 0:37am
View
After inserting, you must call bindgrid() method in button1_click().
krushna chandra jena
19-Dec-12 0:36am
View
Deleted
After inserting, you must call bindgrid() method in button1_click().
krushna chandra jena
18-Dec-12 5:44am
View
After insert or delete operation you can perform select query , so that whatever changes have done in database, may show in User Interface also
krushna chandra jena
10-Dec-12 2:42am
View
i have already try to check for the duplicate entry before inserting , code was
listView1.FindItemWithText(string)
but it falls , thats why i need a function which behaves like Distinct() method [in List Control ] ?
Is there any method of that kind?
krushna chandra jena
5-Dec-12 5:44am
View
in windows 7 the above code does not working. The hosts file does not allow to modify itself.......Please provide another solution. This may be working in windows xp but only for internet explorer..
krushna chandra jena
26-Nov-12 8:38am
View
thanks for your suggestion but i want to use different loop . because i have two threads . by first thread one listview will add items(even no.) and by second thread another listview will add items(square of those even no.). and i want to run these two process parallely . What i have to do ?
krushna chandra jena
26-Nov-12 6:06am
View
ok..i understand but in my problem one listview is depend upon another listview. that's why i have written that types of function .
please provide some solution ...
krushna chandra jena
10-Nov-12 2:49am
View
Thank You very much
krushna chandra jena
12-Oct-12 4:42am
View
I know the marquee style but i want to implement that(Marquee)coding in my program ?
means i want to redefine the 'Marquee' style.
How can i do that?
krushna chandra jena
10-Oct-12 3:08am
View
I don't know how to use Web service . Is there any another solution ?
krushna chandra jena
5-Oct-12 7:03am
View
ok , i got it ...
Thank You..
krushna chandra jena
5-Oct-12 6:39am
View
In the application when the user will run the program i will check some information ( like Mac address) , and kept it inside the file , and make it non editable because for second time i have to check user authentication from the data of that text file . it is important to my application . if the file is editable then user can easily edit the file and my application will not work properly
krushna chandra jena
5-Oct-12 6:14am
View
string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string filepath = path + "\\myfile.xyz";
File.WriteAllText(filepath, "Hi..");
i have done this code......
here in desktop the file can be easily opened by notepad
krushna chandra jena
5-Oct-12 6:09am
View
the point is clear to me but one more question i have that if i want to make the file non editable then what i have to do ?
krushna chandra jena
5-Oct-12 5:53am
View
but if the file is opened by notepad then it easily opens , how can i prevent it
krushna chandra jena
5-Oct-12 5:47am
View
@aspnet_regiis i need it because in my application when the user will run the program then i will check some information , and those information will be kept in that file
krushna chandra jena
4-Oct-12 10:20am
View
host file is used only for Internet Explorer only...then what about other browsers ?
krushna chandra jena
26-Sep-12 8:11am
View
My problem is in Windows Desktop Application ....So please provide another solution regarding windows based .
I have gone through
http://www.codeproject.com/Articles/42437/Toggling-the-States-of-all-CheckBoxes-Inside-a-Dat#3
but here i got an exception and could not overcome that problem , that's why i need another solution ..Please help
Thank You
krushna chandra jena
21-Sep-12 0:55am
View
Thank You....it works....
thank You once again.......
one more question is how could you divide two columns and give them to their particular tasks without written any back end code means in datagrid , two columns (one is File Name and another is Directory Name) contain values of File and Directory_Path respectively but where you assign that Name_Column could contains only name of file and Directory_Column could contains only Directory_path ?
Please Explain ?
krushna chandra jena
19-Sep-12 7:41am
View
actually i am new in WPF ,can not implement such type of codes.
i want to show all temporary files in one datagrid .
my code is
FileInfo[] files = new DirectoryInfo(System.IO.Path.GetTempPath()).GetFiles();
foreach (FileInfo fi in files)
{
if (fi != null)
{
//here i want to add files(as rows ) in datagrid
}
}
which code is needed to bind rows in datagrid dynamically ? please help..
krushna chandra jena
19-Sep-12 6:05am
View
here i can not apply data binding approach. Please provide another solution ....
krushna chandra jena
14-Sep-12 9:11am
View
Thank You...
krushna chandra jena
14-Sep-12 5:51am
View
can i see this EnableRowVirtualization property on the properties window of Datagridview
krushna chandra jena
14-Sep-12 4:46am
View
Thanks for suggestion ....
krushna chandra jena
14-Sep-12 2:29am
View
Thank you..
krushna chandra jena
14-Sep-12 1:40am
View
Yeah yes work....
but can you explain why it does not work if it starts from first(1st) position
krushna chandra jena
13-Sep-12 7:43am
View
But my question is if it does not check the condition then how you set the value of i.
at first you have to fulfill the condition then you can go inside of the loop other wise it still shows
Convert.ToBoolean(dataGridView1.Rows[i].Cells[1].Value) = null
krushna chandra jena
13-Sep-12 7:34am
View
My Project is Windows Desktop Application based.....Please provide another code.
krushna chandra jena
11-Sep-12 7:50am
View
Yes its done ....
Thanks a lot........
Thank You Very much once again.....
krushna chandra jena
11-Sep-12 7:05am
View
No i didn't get any exception ...
Actually I want to delete empty folders. That's why here i try to check any folder contains any file or not. and if it contains empty file then the folder will be deleted. and my code is
string Spath2=Spath +@"\"+fj;
// Spath is a directory path and fj is the name of my textfile
if (Spath2.Length== 0) //Here it shows Length=27
{
Directory.Delete ( Spath, true);
}
but my textfile does not contain any data,thats why it shows 0 byte when i check it manually by mouse click .but in my code it shows 27 bytes when i Debug it. Why it shows Length is 27?
krushna chandra jena
11-Sep-12 6:41am
View
Actually I want to delete empty folders. That's why here i try to check any folder contains any file or not. and if it contains empty file then the folder will be deleted. and my code is string Spath2=Spath +@"\"+fj; // Spath is a directory path and fj is the name of my textfile if (Spath2.Length== 0) //Here it shows Length=27 { Directory.Delete( Spath, true); } but my textfile does not contain any data,thats why it shows 0 byte when i check it manually by mouse click .but in my code it shows 27 bytes when i Debug it. Why it shows Length is 27?
krushna chandra jena
11-Sep-12 6:40am
View
Actually I want to delete empty folders.
That's why here i try to check any folder contains any file or not.
and if it contains empty file then the folder will be deleted.
and my code is
string Spath2=Spath +@"\"+fj;
// Spath is a directory path and fj is the name of my textfile
if (Spath2.Length== 0) //Here it shows Length=27
{
Directory.Delete( Spath, true);
}
but my textfile does not contain any data,thats why it shows 0 byte when i check it manually by mouse click .but in my code it shows 27 bytes when i Debug it.
Why it shows Length is 27?
krushna chandra jena
17-Jul-12 5:49am
View
But my form contain to much of data and i have to print the whole document,so i don't have any other choice to print that page...
any more suggestion please.
Show More