9,867,803 members (46,999 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*
465,657 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 9,314
Page Size:
10
·
25
·
50
License filtered by: The Code Project Open License (CPOL)
[x]
how to extract string between two symbols
by
amitesh1989
Answer
14 May 2013
license: CPOL
just made some changes in mt regex and it works(?:\b)([0-9]{0,}[.][0-9]{2})(?=TTL)
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
RegEx
how to extract string between two symbols
by
amitesh1989
Answer
14 May 2013
license: CPOL
i just made some changes in my regex and it works(?:\b)([0-9]{0,}[.][0-9]{2})(?=TTL)
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
RegEx
How to prevent hacking from file upload control?
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
There is nothing to prevent. Anyone can upload anything, including some code which would try to hack your site. So what? You should never execute any code, even anything which is harmless. I can imagine that you should show some uploaded content, including, for example, HTML, and HTML would mean...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to print div in asp web page in windows xp?
by
MJ MOUSAVI
Question
14 May 2013
license: CPOL
I have a div that I want to print it. I use css to print that specific div and it is right when i use it in windows seven.But when i use it in windows xp, my settings are ruined. I do not know whats the problem with windows xp?This is the code for print...
General Programming
»
Uncategorised Quick Answers
»
General
CSS
HTML
Method to load data on the form
by
Basmeh Awad
Answer
14 May 2013
license: CPOL
private void formloaddata() { SqlDataReader read SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString01"].ConnectionString);conn.open //Open your Connection string strquery = "Select...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to return HWND from a function which is designed to return integer.
by
Kucera Jan
Answer
14 May 2013
license: CPOL
Hi,the worst case is to use a type casting. In this case you have to be very carefull about the data types and the conversion that you use, because of possible corruption of the value.Much better sollution would be to modify the function/method, so that it will return the HWND in an...
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
How to Set Custom PaperSize(6 X 8) in Crystal Report in C#
by
Sureshjv
Answer
14 May 2013
license: CPOL
http://www.youtube.com/watch?v=eUUPSddLi0A
General Programming
»
Uncategorised Quick Answers
»
General
C#
CrystalReports
Method to load data on the form
by
- NA -
Question
14 May 2013
license: CPOL
Good Day,I have created a web form for sumbmiting data to the database and it is working with no errors. It diplays on a griedviewnow i have decided to add an update button. but i dont know where to start with my updating satatement. can you please help me on how to write an update...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Online Video Editing website like youtub
by
Lakhan Aanjana
Answer
14 May 2013
license: CPOL
jw player and flowpalyer both have lot of features and plugins ...done with help of flow player .which has plugin crrentpos which gives the current time line position ..fell free if any buddy have any query about video,rtmp,hls,jwplayer,flowplayer,rtsp,ffmpeg.please let me know ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
SQL-Server
SQL Server 2012 using READPAST and ROWLOCK for locking rows in a multi process environment
by
Nicholas Marty
Question
14 May 2013
license: CPOL
Im a bit at lossThis is what I want to do:1. Open a transaction2. Read 1 Row and locking it from further reads, but allowing reading other records on the same table3. Update a value on it4. Do some stuff with the data while still holding the transaction open5. If everthing was ok:...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL
SQLServer2012
how to extract string between two symbols
by
Bojjaiah
Answer
14 May 2013
license: CPOL
try thisstring xmlval = "asdfsadfsadf"; string descriptval = xmlval.Substring(xmlval.LastIndexOf("")); string findfrom = ""; string findto = ""; int start = descriptval.IndexOf(findfrom); ...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
RegEx
WIndow Application c# and MySql Database
by
CHill60
Answer
14 May 2013
license: CPOL
You need to add Launch Conditions to your setup. See How to install Mysql.Data Connector with C# setup[^] for some links on adding launch conditions. I've used that link specifically because it also tells you how to silently install the MySql database setup - you're going to have to ensure...
General Programming
»
Uncategorised Quick Answers
»
General
C#
MySQL
How to get the right LPITEMIDLIST to use for IShellLink::SetIDList
by
Oso Oluwafemi Ebenezer
Question
14 May 2013
license: CPOL
Please how can I get the right LPITEMIDLIST to use for IShellLink::SetIDList?I triedHRESULT hr = S_OK;ULONG celtFetched;LPITEMIDLIST pidlItems = NULL;LPITEMIDLIST netItemIdLst = NULL;IShellFolder* pPrinterFolder = NULL;IEnumIDList* pEnumIds = NULL;IMalloc* pMalloc =...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
COM
Shell
How to add Items like attribute of ListBox to a custom control?
by
Ibrahim Adham
Answer
14 May 2013
license: CPOL
thanks lukeer for your great solution
General Programming
»
Uncategorised Quick Answers
»
General
C#
WinForm
Page size in crystal report
by
Sureshjv
Answer
14 May 2013
license: CPOL
check this http://www.youtube.com/watch?v=eUUPSddLi0A[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
CrystalReports
Printer
My database showing negative numbers
by
Eng.ae 2
Answer
14 May 2013
license: CPOL
I finished from the project, but I faced another problem !!It show a message:" Unhandled exception has occurred in your application.... etc"It seem that the program didn't find a file ?!!
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
how to get video file from hosted server using rtmp protocol
by
Lakhan Aanjana
Answer
14 May 2013
license: CPOL
done with the help of rtmpdump ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Auto click event C# windows application
by
stellus
Question
14 May 2013
license: CPOL
Hi all,I have one application which is called as auto click event by the help of C# windows application.My doubts are:I have a button and when I click it, it is showing a message box like "hi" which is mentioned by the below code.What I want to do is I need to click one time on...
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to extract string between two symbols
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
The problems is solved using grouping. It could look like this: "start_pattern(.)end_pattern" ("end_pattern" is "TTL" in your case). The brackets denote a group. Now, in code, you find the Regex group corresponding the dot in the middle.Please see:...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
RegEx
how to create xml node like this using php
by
Lakhan Aanjana
Question
14 May 2013
license: CPOL
how to create node like this
General Programming
»
Uncategorised Quick Answers
»
General
XML
PHP
How to return HWND from a function which is designed to return integer.
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
In most cases, you don't need such case. I can explain: on the user size, there is no arithmetic operations with HWND; they are some abstract pointers; you only get HWND values from Windows API and pass HWND as parameters of other API function, never do any calculations with then on the user...
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
ModalPopupExtender closes on any Button Click
by
Kevin Roberts
Answer
14 May 2013
license: CPOL
protected void btnShowModal_Click(object sender, EventArgs e) { //this is the button that is used to invoke //Manually show the modal popup ModalPopupExtender1.Show(); }
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Getting HTML Fields Data into your TFS Warehouse
by
Gordon W Beeming
Article
14 May 2013
license: CPOL
Small trick on how to get HTML data into your warehouse
General Programming
»
Tools And Ide
»
General
TFS
how to extract string between two symbols
by
amitesh1989
Question
14 May 2013
license: CPOL
I have a string in which i want to fetch number before TTL using regex how can i do thatthis is my string WPNCB« 19AUG DEPARTURE DATE-----LAST DAY TO PURCHASE 21MAY/2359 BASE FARE EQUIV AMT TAXES ...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
RegEx
How to get missing number in Grouped data
by
prakash.chakrala
Question
14 May 2013
license: CPOL
Hi I have another requirement like this i have the data like 301 1 june301 2 june301 5 june301 7 june301 10 june301 2 july301 3 july301 5 july301 8 july301 9 july303 5 june303 6 june303 8 june303 9 june303 2 july303 4 july303 8 july303 10 july...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Conversion HWND to LPARAM
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
Now it really explains where you may really need such a cast. (I refer to your previous question.) Please see: http://www.cplusplus.com/doc/tutorial/typecasting/[^].—SA
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
How to rotate button in vb.net
by
Dave Kreskowiak
Answer
14 May 2013
license: CPOL
In Windows Forms it's a giant pain in the ass. In WPF, it's incredibly easy!I think you're using the wrong application type...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
WinForm
Conversion HWND to LPARAM
by
joyjhonson
Question
14 May 2013
license: CPOL
Hello All,How can we convert HWND ( handle of any window) type to LPARAM type in vc++?Thanks in advance.Regards,Joy
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
array in javascript to server side code
by
yloginov
Answer
14 May 2013
license: CPOL
you can use JSON to represent your array, or any other object for that matter. Convert the array you have to a JSON string, then send the string to anywhere you want and on the receiving end recreate the array from the JSON string.The code will look something like this//sendervar data=...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP
ASP.NET
HTML
Ajax
MVC
EPUB Viewer for Android with Text to Speech
by
dteviot
Article
14 May 2013
license: CPOL
This is an Android application that shows the basics of building an EPUB file viewer for Android.
Mobile Development
»
Android
»
General
Java
Dev
Intermediate
Mobile
Android
Method to load data on the form
by
Maciej Los
Answer
14 May 2013
license: CPOL
I would suggest you to start here: ADO.NET[^]There you'll find code examples for ADO.NET: http://msdn.microsoft.com/en-us/library/dw70f090.aspx[^]From CP Knowledge Base:Using ADO.NET for beginners[^]A Beginner's Tutorial for Understanding ADO.NET[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
want to use Chart control at ItemCommand of data list
by
Arun kumar Gauttam
Answer
14 May 2013
license: CPOL
I found The solution Its very easy:just add namespace to top of page and you will get chart control at itemdatabound:System.Web.UI.DataVisualization.Charting
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
i want to show the faculty rating from the database using sql server
by
Member 8054539
Question
14 May 2013
license: CPOL
My query as follows; SELECT F.facname, BA.examdate, FD.bfid, FD.rate FROM faculty F JOIN bthfac B ON F.facid = B.facid JOIN facfeedback FD ON FD.bfid = B.bfid JOIN batch BA ON BA.bthid = B.bthid...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C# image processing fixing scanned image
by
irfanniazi
Question
14 May 2013
license: CPOL
i have two images both are different in sizes i want to perform some type of translation/transformation on second image so that it should become same as first one. i want that pixels of both images must be exactly at same position. kindly guide me how this can be done and if some one have done...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to return HWND from a function which is designed to return integer.
by
joyjhonson
Question
14 May 2013
license: CPOL
Hi All,I have a function is designed to return integer type, but I need to return HWND ( handle of an window) of an window from the same function.I am trying to cast as below.However I am not seeing results as expected.Am I doing somthing somthing wrong in conversion?Please let me...
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
How to implement "Direct Video Recording" functionality in asp.net website
by
sonusharma65
Question
14 May 2013
license: CPOL
Hi friends..,I want to implement "Direct Video Recording" functionality in my web application. Actually in my web application there is a button for reviews posting. Review posting may be textual or video for reviews. so i want that when user selects video review than his/her pc web came is...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to Remove duplicate data From table in sqlserver table
by
nandkishorre
Answer
14 May 2013
license: CPOL
select ID,Name from Table1 as A where ID = ( select top1 ID from Table1 where Name= A.Name)
General Programming
»
Uncategorised Quick Answers
»
General
sqlserver2008
Child window doesn't display its own children.
by
Nenad Smiljkovic
Question
14 May 2013
license: CPOL
Hello everyone! I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.I have a main window with a child static control. I have named the variable hsInfo.This static control is created with styles SS_BITMAP, SS_NOTIFY and...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
How to calculate Bayesian Average Rating using Bayesian Formula
by
sonusharma65
Question
14 May 2013
license: CPOL
Hi...friendsI want to calculate average rating for reviews on products using Bayesian Rating Formula in my website. So please clerfy me that how we can implement Bayesian Avg. rating formula or any other reference link where i can found for this.....In Bayesian formula for rating...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
mathematics
How to Remove duplicate data From table in sqlserver table
by
Maciej Los
Answer
14 May 2013
license: CPOL
Maciej Los - wrote:Based on which criteria?nandkishorre - wrote:Based on Name bind only name and idIt's not possible, because names are duplicated, but id's not! ID Name344B6794 Visal is not equal to 9DC012F7 VisalCA6B5B10 Raghu is not equal to FDC12AC1 Raghu9B439B6F...
General Programming
»
Uncategorised Quick Answers
»
General
sqlserver2008
i want to show the faculty rating from the database using sql server
by
Pheonyx
Answer
14 May 2013
license: CPOL
You issue is this:FacId varchar(40) as a result when you do this:ON F.facid = B.facid you are trying to compare a Varchar(40) with a Bigint which you cannot. Hence your error.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Public variable invoking incorrect result
by
OriginalGriff
Answer
14 May 2013
license: CPOL
You will. The clue is in the word new: ThanglishToTamilGUI tt = new ThanglishToTamilGUI(); String apper = tt.anz;Since you create a new instance, it will not have the values that the user entered into a different instance!Try just using the current value! Have a look at...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
.NET4
Public variable invoking incorrect result
by
Prasad C.M.
Answer
14 May 2013
license: CPOL
Try by changing to static variablepublic string anz;aspublic static string anz;
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
.NET4
Error Exporting to Excel C#
by
Pedro Brito
Answer
14 May 2013
license: CPOL
Thanks all for your answer , i discover my problem :))) public static void ExportDataGridViewTo_Excel12(DataGridView itemDataGridView) { Excel_12.Application oExcel_12 = null; //Excel_12 Application Excel_12.Workbook oBook = null; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
DataGridView setting up colums from textfile
by
Johnny J.
Answer
14 May 2013
license: CPOL
Perhaps something like:string[] s = line.Replace("#COLUMNNAME", "").Trim().Split('\t');That should filter out the Column name keyword...
General Programming
»
Uncategorised Quick Answers
»
General
DataGridView
Advance my Performance exporting data to Excel
by
CHill60
Answer
14 May 2013
license: CPOL
To improve performance you need to minimise the use of the Excel COM interface.I would suggest converting your list of objects to a datatable first and then exporting that to excel ...Here is a generic way to convert a list to a datatable Converting a List to Datatable[^]and here's how...
General Programming
»
Uncategorised Quick Answers
»
General
Excel
Interop
performance
export
DataReader
txt.file remove lines
by
CPallini
Answer
14 May 2013
license: CPOL
There is no direct way for removing a line from a file. However you might read the input file line by line, copying to a new file only the lines you want to maintain. At the end of the process discard the original file and rename the freshly written one.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Visual-Studio
VisualStudio2012
Public variable invoking incorrect result
by
Suthan-S
Question
14 May 2013
license: CPOL
public partial class ThanglishToTamilGUI : Form{ public string anz; public ThanglishToTamilGUI() { InitializeComponent(); } public void btnConvertToBraille_Click(object sender, EventArgs e) { anz = richTextBoxTamil.Text.ToString(); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
.NET4
array in javascript to server side code
by
Sam Van den Bossche
Question
14 May 2013
license: CPOL
Hi I have this code working, it prints all email adresses it gets from a request to gmail but now I need to send the array with results to another partial view how can I store it in a way that I can use it somewhere else? (the partialview does appear on the same page)var array =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP
ASP.NET
HTML
Ajax
MVC
txt.file remove lines
by
andremateus
Question
14 May 2013
license: CPOL
I need help.I have a txt file. which is an inventory of a store. The format of each is aritgo by name, location in the warehouse and date separated by ";". Example: Computer; 001; 10/02/2013One aim of my work is to select an item and remove. How can I do?
General Programming
»
Uncategorised Quick Answers
»
General
C++
Visual-Studio
VisualStudio2012
Page 1 of 9,314
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid