16,022,362 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 subhash04573 (Top 40 by date)
subhash04573
21-Sep-11 3:52am
View
then what about count ?
subhash04573
20-Sep-11 7:01am
View
i updated my question. Can you have a look into the quey once.
subhash04573
20-Sep-11 6:37am
View
i updated my question. Can you have a look into the quey once.
subhash04573
20-Sep-11 6:37am
View
i updated my question. Can you have a look into the quey once.
subhash04573
19-Sep-11 21:43pm
View
thank you very much
subhash04573
25-Aug-11 6:18am
View
ya i got it.
Any way thanks .
subhash04573
25-Aug-11 6:18am
View
ya i got it.
Any way thanks .
subhash04573
25-Aug-11 6:13am
View
Thanks,
And small suggestion on this, How can i eliminate duplicates values in the column.
subhash04573
25-Aug-11 6:13am
View
Thanks.
And small suggestion on this,
How can i eliminate duplicates values in the column.
subhash04573
25-Jul-11 6:55am
View
Thks
subhash04573
25-Jul-11 6:28am
View
we r using .net 1.1 framework. In this i can't implement ParameterizedThreadStart, Is there any other way to implement
subhash04573
25-Jul-11 5:34am
View
even on passing variables i am getting error
1.AddressOf ThreadWork does not have same signature as Delegate sub ThreadStart()
2.Too many arguments to Publis sub start()
subhash04573
25-Jul-11 5:19am
View
The values are dynamic. That's the problem
subhash04573
21-Jul-11 3:44am
View
sorry for troubling you,
may be i didn't update the question properly.
See the updated question.
In a table i am having some records. out of those records, two records having simillar data but only difference in that two records is Record date.
Now i want to retrive the latest record of those 2 records and following the other records.
Adcvice a query for this.
subhash04573
21-Jul-11 2:00am
View
I have to show only latest record not all records.
subhash04573
21-Jul-11 2:00am
View
I have to show only latest record not all records.
Thnks
subhash04573
19-Jul-11 2:01am
View
tnks
subhash04573
19-Jul-11 2:01am
View
Thanks, this will solve the issue
subhash04573
19-Jul-11 1:47am
View
ya i too agree with you.
but the clien want's the textbox. wat should i do ?
subhash04573
3-Jan-11 1:51am
View
just it will copy the content or image. and it will paste the content in the richtextbox and image in the picturebox.
while pasting i need to diplay the owner of the clipboard also.
subhash04573
23-Dec-10 5:34am
View
Thank you very much.......
subhash04573
23-Dec-10 2:11am
View
Thank you very much.
can you explain what is it mean
Process.GetProcessesByName("nameOfYourProcess").Length > 0
subhash04573
23-Dec-10 1:22am
View
while uninstalling, if the application running. u will get pop up dialog saying
the following app is opened
Cancel Retry Ignore.
If i selected ignore it's continue uninstall but the application which is opened is remained and then i have to close manually.
i can able to kill the process but i want to stop uninstallation.
subhash04573
20-Dec-10 8:49am
View
Deleted
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Xml;
namespace readingDoucment
{
public partial class Form1 : Form
{
HelpItem h1;
Help h2;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
foreach (HelpItem hi in Help.GetHelpItems())
{
listBox1.Items.Add(hi);
listBox1.DisplayMember = "Label";
}
listBox1.SelectedIndexChanged += new EventHandler(listBox1_SelectedIndexChanged);
}
void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
HelpItem hi = listBox1.SelectedItem as HelpItem;
if (hi != null)
{
LoadFile(hi.File);
}
}
void LoadFile(string file)
{
if (File.Exists(file))
{
richTextBox1.LoadFile(file, RichTextBoxStreamType.RichText);
}
else
{
richTextBox1.Clear();
MessageBox.Show("File Not Exist","Exception");
}
}
}
}
subhash04573
20-Dec-10 8:41am
View
Hi,
I am using a ListBox and I added 15 items into that listbox.
Some items names are around 25 characters long.
When I try to select an item by clicking at the ending 2 characters of the item, it's not selecting. If I try to select the same item at the beginning it's selecting.
For Example:
My ListBox Contains 3 items
1.Subhash Chandra Sekhar
2.ABC
3.BCD
4.Example of ListBox items
In 1. if i am clicking at subhash it's selecting but if i am clicking at har in sekhar it's not selecting.
In 4. if i am clicking at example it's selecting but if i am clicking at items it's not selecting.
What's the problem?
Help me out from this.
subhash04573
20-Dec-10 8:41am
View
Hi,
I am using a ListBox and I added 15 items into that listbox.
Some items names are around 25 characters long.
When I try to select an item by clicking at the ending 2 characters of the item, it's not selecting. If I try to select the same item at the beginning it's selecting.
For Example:
My ListBox Contains 3 items
1.Subhash Chandra Sekhar
2.ABC
3.BCD
4.Example of ListBox items
In 1. if i am clicking at subhash it's selecting but if i am clicking at har in sekhar it's not selecting.
In 4. if i am clicking at example it's selecting but if i am clicking at items it's not selecting.
What's the problem?
Help me out from this.
subhash04573
20-Dec-10 8:36am
View
FullRowselect property is for ListView not for ListBox.
subhash04573
20-Dec-10 8:26am
View
while uninstalling set up package,if the application is running we get a pop up dialog. continue ignore cancel.
After selecting continue it will uninstall successfully, but that application still be in the use or running .
so i want kill the process(application) when i am uninstalling the setup package if that application is running.
subhash04573
11-Dec-10 6:11am
View
The application is a Windows application written in C#.
I Created SetUp Package by adding application .exe file and all dependent refferences.
subhash04573
10-Dec-10 0:39am
View
MessageBoxResult is not coming in C#
subhash04573
7-Dec-10 23:51pm
View
The question is if your passing an empty string it should alert the user in a way like Select the path or it will install in a default path.
subhash04573
7-Dec-10 23:47pm
View
The thing is what ever u said streamReader is right.
But in our application we are loading the document when ever the required, so i am getting exception like can't access the file it was accessed by some one.
In this case it will not work. Only if we one instance then it will work.
So,i am eagerly waiting for another alternative.
Srry for asking same question repeatedly.
subhash04573
7-Dec-10 8:02am
View
Srry We need to add Privileged in the condition.
For Adminstrators only means we need to add AdminUser in the condition
I got the solution.
Anyhow Thanks for your Reply.
subhash04573
6-Dec-10 6:02am
View
i got it now.
Another thing. Can't we restrict the user for not to delete that file when it is in use.
subhash04573
6-Dec-10 5:15am
View
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
FileSystemWatcher watcher = new FileSystemWatcher();
Console.WriteLine("Started....");
//watcher.SynchronizingObject = this;
watcher.Path = Path.GetDirectoryName(@"D:\Samples");
watcher.Filter = Path.GetFileName(@"*.xml");
watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.Size;
watcher.Deleted += new System.IO.FileSystemEventHandler(OnDelete);
watcher.EnableRaisingEvents = true;
Console.ReadLine();
}
public static void OnDelete(object source, FileSystemEventArgs e)
{
Console.WriteLine("File: {0} Deleted",e.FullPath);
}
}
}
it's not raising any event even after deleting file .
subhash04573
6-Dec-10 4:43am
View
i getting exception like path is not a legal form.
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Path = Path.GetDirectoryName(@"D:\");
watcher.Filter = Path.GetFileName(@"D:\help2.xml");
My requirement is i am using this xml file in the application. if the user goes to the location & deletes this xml file means. it should notify that file is deleted.
subhash04573
5-Dec-10 23:42pm
View
i am already set the manufacturer property.
it's installing in that path.
but if i am passing the empty string also it's installing in that default path.
it should give a msg the path is empty. it's not giving for that we need to cutiomize dialog ?.
subhash04573
3-Dec-10 8:23am
View
HOw to do it?
just open a handle to the file, thus marking it in use from the OS perspective, and not release the handle until the application exits.
subhash04573
3-Dec-10 8:22am
View
Srry, for a file i need.
not for a folder
subhash04573
3-Dec-10 8:21am
View
Srry, i didn't mention clearly.
it's for file only. not for folder
Show More