9,868,710 members (24,228 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
1,013 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 21
Page Size:
10
·
25
·
50
Author filtered by:
JF2015
[x]
Filling the dropdown item from the database
by
JF2015
Answer
18 Oct 2012
license:
CPOL
You should have at least googled for "fill combobox from database c#". There is even a youtube video showing how to do that:http://www.youtube.com/watch?v=izlgxu51RoQ[^]or read these forum...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Building a Surviellance system in winform
by
JF2015
Answer
18 Oct 2012
license:
CPOL
This article here should be a perfect match for your requirements:Camera Vision - video surveillance on C#[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
My vote of 5
by
JF2015
Forum Message
13 Oct 2012
That brings up memories about boring Informatik lessons back in school that we spend playing this game. Thanks for sharing!
General Discussions
»
Article "Ultimatevolley"
How to build Trial Period Software In C#
by
JF2015
Answer
7 Oct 2012
license:
CPOL
See these articles from CodeProject and MSDN:Application Trial Maker[^]Implementing a Rudimentary Count Based Trial Version Plugin for Windows Applications.[^]http://msdn.microsoft.com/en-us/library/windows/apps/hh694065.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Re: invoke DoubleClick event
by
JF2015
Forum Message
7 Oct 2012
Try the following approach - anything else is unclean: private void gridPatients_DoubleClick(object sender, System.EventArgs e) { DoStuff(); } private void gridPatients_KeyDown
General Programming
»
C#
List Box Accepting User Input by Text Box
by
JF2015
Answer
7 Oct 2012
license:
CPOL
Try this code:Private Sub button1_Click(sender As Object, e As EventArgs) listBox1.Items.Add(textBox1.Text)End Sub
General Programming
»
Uncategorised Quick Answers
»
General
Visual-Studio
Beginner
VB
VB10
Voice command in windows forms
by
JF2015
Answer
7 Oct 2012
license:
CPOL
Here is an aticle that does exactly that, but for WPF:http://www.redmondpie.com/speech-recognition-in-a-c-wpf-application/[^]porting or adapting that for WinForms should be simple. You will also find much more results by just googling for "voice commands c#".Enjoy coding!!
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
C#
.NET
Message box does not show up next to the text box control
by
JF2015
Answer
7 Oct 2012
license:
CPOL
You can't set the location, or size or most of the look and feel of the standard message box. But, you can show a customized messagebox like described in this article:A Custom Message Box[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
I need help on windows thumbnail generation
by
JF2015
Answer
7 Oct 2012
license:
CPOL
See the answer here that provides a VB.NET snippet (should be easily convertible to C#) that does exactly that.http://stackoverflow.com/questions/1193711/changing-extension-icon-programmatically[^]
General Programming
»
Uncategorised Quick Answers
»
General
generation
Window
Thumbnail
ZIP
Hi everyone,How to protect a process not be kill?
by
JF2015
Answer
6 Oct 2012
license:
CPOL
This is certainly possible somehow. I suggest reading through these answers here:http://stackoverflow.com/questions/187983/how-do-i-hide-a-process-in-task-manager-in-c[^]I would suggest you to not implement this feature though - since this is not user friendly. One option that may be easy to...
General Programming
»
Uncategorised Quick Answers
»
General
C#2.0
C#
maximum session time out
by
JF2015
Answer
4 Oct 2012
license:
CPOL
The maximum limit for session timeout is 525,600 minutes. i.e., 365 days x 24 hours x 60 min. go here: http://www.sswug.org/articles/viewarticle.aspx?id=28269[^] to read more about that.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Incase of insufficient memory
by
JF2015
Answer
4 Oct 2012
license:
CPOL
Your application should have exception handling to make sure that it does crash nicely. You should have at least a try catch block on a very high level, but a try catch for every "new" is far too much in my opinion.
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to create object as public
by
JF2015
Answer
4 Oct 2012
license:
CPOL
It looks like you want to create one instance of a "global" object. For this requirement, the singleton pattern should be used. I believe from an object oriented programming perspective, this is the right approach. See these links for more information:Simple Singleton Pattern in...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
what things to make finger print attendance system?
by
JF2015
Answer
4 Oct 2012
license:
CPOL
I suggest you start reading some online articles. See these links:A Framework in C# for Fingerprint Verification[^]http://sourceforge.net/projects/sourceafis/[^]http://www.neurotechnology.com/vf_sdk.html[^]
General Programming
»
Uncategorised Quick Answers
»
General
programming
C++ operator overloading
by
JF2015
Answer
4 Oct 2012
license:
CPOL
a, b, c cannot be overloaded. See here:http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++
overloading
C++ Constructor definition
by
JF2015
Answer
4 Oct 2012
license:
CPOL
Yes this is valid C++ and it compiles - I tested it. The constructor allows setting var1 and var2 when creating an object of the myClass class.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Cancellation of Membership
by
JF2015
Answer
4 Oct 2012
license:
CPOL
Please post your request in this forum and the admins will delete it for you:http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
technical
string Split with Single quotes
by
JF2015
Answer
4 Oct 2012
license:
CPOL
not the nicest solution:string test = "The Value 'sd' is not valid value"; string[] parts = test.Split('\''); if (parts.Length > 2) { parts[1] = "'" + parts[1] + "'"; MessageBox.Show("Part1: " + parts[0] + " Part2: " + parts[1] + " Part3: " + parts[2]); }
General Programming
»
Uncategorised Quick Answers
»
General
C#
Host a .net User Control in an MFC CView
by
JF2015
Answer
4 Oct 2012
license:
CPOL
I suggest reading this:Using WinForms controls in an MFC dialog[^]http://msdn.microsoft.com/en-us/library/ahdd1h97.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
.NET
MFC
User-controls
view
Image Processing Application using .Net
by
JF2015
Answer
4 Oct 2012
license:
CPOL
For this I can suggest you reading through this article series:Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[^]Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters[^]Image Processing for Dummies with C# and GDI+ Part 3 - Edge Detection...
General Programming
»
Uncategorised Quick Answers
»
General
.NET
API
find in Rich_Text_Box
by
JF2015
Answer
4 Oct 2012
license:
CPOL
You should use this code for the event handler of the button:private void button1_Click(object sender, EventArgs e){ string strTextToFind = TextBox1.Text; string strTextToReplace = textBox2.Text; richTextBox1.Text.Replace(strTextToFind, strTextToReplace);}Basically the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C++ warning and error function
by
JF2015
Answer
3 Oct 2012
license:
CPOL
Just modify your code so that main() returns void as here:void main()And the function get_info() does also not need to return an integer, so change it to:void payroll :: get_info()Make sure to modify both the class definition as the code itself.
General Programming
»
Uncategorised Quick Answers
»
General
C++
get duration of .mp3 file
by
JF2015
Answer
3 Oct 2012
license:
CPOL
Did you try Google?Here are some very good results:http://sourcecodecenter.blogspot.de/2011/04/c-get-time-duration-of-audio-file.html[^]How to get the length (duration) of a media File in C# on Windows 7[^]Or these...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to connect multiple VNC Clients at the same time?
by
JF2015
Answer
3 Oct 2012
license:
CPOL
I suggest you use this library. It allows you to use as many VPN connections as you want:http://cdot.senecac.on.ca/projects/vncsharp/index.html[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
RemoteControl
Remote
how to hide data in mp3 file
by
JF2015
Answer
3 Oct 2012
license:
CPOL
Hiding data in music is called steganography. Here are some articles that should get you started:Steganography 15 - Hiding Digital Data in Music on Audio Cassettes[^]http://www.petitcolas.net/fabien/steganography/mp3stego/[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#2.0
C#
Webcam interface in c#.net3.5
by
JF2015
Answer
3 Oct 2012
license:
CPOL
Hi,see these CodeProject articles. These should work with .NET 3.5:DirectShow.NET[^]WebCam Fast Image Capture Service using WIA[^]Versatile WebCam C# library[^]
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
C#
.NET
GimmeCode
Fill ComboBox with Font Size
by
JF2015
Answer
2 Oct 2012
license:
CPOL
You can just fill your combobox with some size values like:comboBox1.Items.Add("8");comboBox1.Items.Add("9");comboBox1.Items.Add("10");comboBox1.Items.Add("11");comboBox1.Items.Add("12");...And then you can set the font size of your textbox using something like this:private...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Play mp3 file on button click
by
JF2015
Answer
2 Oct 2012
license:
CPOL
There are several options that you could choose. See these Links:LowLevel:A low-level audio player in C#[^]WindowsMediaPlayer:http://msdn.microsoft.com/en-us/library/dd564582%28v=vs.85%29.aspx[^]http://msdn.microsoft.com/en-us/library/dd563946%28VS.85%29.aspx[^]Or through...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Passing data between forms why so complicated?!~SOLVED
by
JF2015
Answer
2 Oct 2012
license:
CPOL
Another possibility for you would be to use the singleton pattern by having a static object.Please see this code for your class:class Settings{ private Settings() { } static Settings m_instance = null; public static Settings Core { get { ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Would you let me link to download visual studio for android?
by
JF2015
Answer
2 Oct 2012
license:
CPOL
There is no special Visual Studio for Android. You can use VisualStudio to develop Android apps using the Mono for Android http://xamarin.com/monoforandroid[^].
General Programming
»
Uncategorised Quick Answers
»
General
Mobile
Android
read/ write csv file
by
JF2015
Answer
2 Oct 2012
license:
CPOL
It is hard to guess what your problem is without seeing your code, but I believe you simply overwrite the file e.g. by using File.WriteAllLines. You should append your lines instead by using e.g. the function File.AppendAllLines.
General Programming
»
Uncategorised Quick Answers
»
General
C#
WPF
CSV
Textbox should get only numeric with only one decimal
by
JF2015
Answer
2 Oct 2012
license:
CPOL
See this MSDN article which shows you the code:http://msdn.microsoft.com/en-us/library/ms229644%28v=vs.80%29.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Working with datetime in winform
by
JF2015
Answer
2 Oct 2012
license:
CPOL
See these articles:http://www.codeproject.com/KB/datetime/[^]There is more than enough information for you to learn everything about that topic.For example to get the age: DateTime bday = new DateTime(1980, 11, 8); DateTime now = DateTime.Today; int age = now.Year - bday.Year; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
explaining user exception handling
by
JF2015
Answer
1 Oct 2012
license:
CPOL
Better is this code which makes more sense:namespace ConsoleApplication1{ class myexception : Exception { public myexception(string str) { Console.WriteLine("user define exception" + str); } } class Program { static...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Understanding Reflection API
by
JF2015
Answer
1 Oct 2012
license:
CPOL
I suggest you start reading through some CodeProject articles about that topic:Reflection[^]Reflection in .NET[^]Reflection in C# Tutorial[^]Dynamic Code Generation vs Reflection[^]Reflection is Slow or Fast? A Practical Demo[^]Reflection 101: An Introduction to Reflection in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Create a new event through delegate,of textbox of UserControl
by
JF2015
Answer
1 Oct 2012
license:
CPOL
Have a look at this code, it might give you an idea of how to get started:public class UserControl : Control{ private TextBox textBox1; public UserControl() { textBox1 = new System.Windows.Forms.TextBox(); textBox1.KeyPress += new...
General Programming
»
Uncategorised Quick Answers
»
General
C#
calculating user Inputs like 67*74+52-63 by creating a C# program in a console application
by
JF2015
Answer
1 Oct 2012
license:
CPOL
What you need is a mathematical expression parser. See these links for some libraries that provide this for you:Math Parser[^]Math Parser NET C#[^]MathParser - Math Formula Parser[^]Parsing Mathematical Expressions with muParser[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
easiest five methods of string
by
JF2015
Answer
1 Oct 2012
license:
CPOL
Strange question´, but here are the five methods that I think are the easiest or most important ones:string test = "Hello World";string[] parts = test.Split(' '); //splits the string into piecesbool bIsEmpty = String.IsNullOrWhiteSpace(test); //checks if the string is emptyint...
General Programming
»
Uncategorised Quick Answers
»
General
C#
HOW TO BE A GOOD ANDROID PROGRAMMER
by
JF2015
Answer
1 Oct 2012
license:
CPOL
Before asking questions in forums, I suggest you read the available material that can be found using Google & Co. Here is even a video turorial for android development that should get you...
General Programming
»
Uncategorised Quick Answers
»
General
Mobile
Android
Re: How to use FileSystemWatcher Control ?
by
JF2015
Forum Message
1 Oct 2012
I suggest you read the following article and work through it since it gives you a good understanding of how the file system watcher is used:
General Programming
»
.Net Framework
Get connection string from app.config
by
JF2015
Answer
1 Oct 2012
license:
CPOL
Hi,use this code:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication3{ public partial class Form2 : Form { public...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How can i Parsea string to Datetime?
by
JF2015
Answer
1 Oct 2012
license:
CPOL
This code here is definitely working:string strTemp = "2012";DateTime time = DateTime.ParseExact(strTemp, "yyyy", CultureInfo.InvariantCulture);MessageBox.Show(time.ToString());It gives an output of: "01.01.2012 00:00:00"
General Programming
»
Uncategorised Quick Answers
»
General
C#
Want to call Defragment Process in Windows 7 using C#.net Desktop Application
by
JF2015
Answer
30 Sep 2012
license:
CPOL
Change your Target Platform for building the project from "x86" to "AnyCPU" in the project settings. This worked for me.
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
Application
Desktop
viewing graph in windows form application
by
JF2015
Answer
30 Sep 2012
license:
CPOL
See this CodeProject library:A flexible charting library for .NET[^]Or the controls provided by Microsoft (available since .NET 3.5, so VS2008 is supported with the correct framework...
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
How to change password
by
JF2015
Answer
30 Sep 2012
license:
CPOL
Hi,click this link to change the password for CodeProject:https://www.codeproject.com/script/Membership/Modify.aspx[^]This is available by hovering on your name in the top right section of CodeProject and clicking "My Settings".
General Programming
»
Uncategorised Quick Answers
»
General
Change
password
Use of Finally Block
by
JF2015
Answer
30 Sep 2012
license:
CPOL
The finally block is always executed, no matter what. This may be helpful when throwing exceptions or leaving your function earlier.See this sample which also calls finallytry { //do something return;}finally { Console.writeline("executes inside Finally"); // Code executes...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
.NET
C#
C#4.0
need help in the piece of code
by
JF2015
Answer
30 Sep 2012
license:
CPOL
Without knowing what "b" is, I would say you need this:If RadioButton1.Checked = True Then b.Add(textBox27.Text)Else b.Add("0")End If
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
print preview error
by
JF2015
Answer
30 Sep 2012
license:
CPOL
Since you don't show us more of your code, my guess is, that you did not instantiate the instance of myReader as in this sample:private StringReader myReader;public Form1(){ InitializeComponent(); string line = myReader.ReadLine(); //throws: Object reference not set to an instance...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Basic Introduction/Tutorial to writing sockets in C#
by
JF2015
Answer
30 Sep 2012
license:
CPOL
You should have a look at the Articles that CodeProject provides:An Introduction to Socket Programming in .NET using C#[^]An Asynchronous Socket Server and Client[^]C# SocketAsyncEventArgs High Performance Socket Code[^]Asynchronous Socket Communications Using the .NET...
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
C#
.NET
.NET4
Links for Threads in ASP.NET
by
JF2015
Answer
30 Sep 2012
license:
CPOL
You should have a look at the article series here on CodeProject which covers most (if not all) ascpects of Threading in .NET (and therfore ASP.NET):Beginners Guide to Threading in .NET: Part 1 of n[^]Beginner's Guide to Threading in .NET: Part 2 of n[^]Beginner's Guide to Threading in...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Page 1 of 21
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid