9,869,444 members (42,496 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,779 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,316
Page Size:
10
·
25
·
50
License filtered by: The Code Project Open License (CPOL)
[x]
RegEXPRESSION help with non-standard reading of a number range
by
Buddy Farrell
Question
14 May 2013
license: CPOL
I am parsing some text and need to look within an individual sentence (already parsed).I am looking to pull a numeric range. The problem is, the range is identified with a "dash", a "dash with spaces", or simply the word "to" or "through" and sometimes includes a degree symbol on one or...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
VBA
Problem in Locking folder
by
Rocky_Bas
Question
14 May 2013
license: CPOL
Hello,I have developed an application to lock the folder.Below is the code that i use for locking the folder.Normally the code works fine if the folder/file name doesnt contain any spaces.(Example: Folder Name - Test Folder) and if the folder name is TestFolder then the code works fine and...
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
Refactoring ideas - Improving desing - c# game
by
Sakis Anastasiadis
Question
14 May 2013
license: CPOL
Hi,I have started a c# project to develop an easy board game as a hobby and since there is no pressure I try to improve its design based on the Object Oriented logic. The primary reason is to further develop myself as a programmer and share my thoughts with the community as food for...
General Programming
»
Uncategorised Quick Answers
»
General
C#
QA
Design
Refactor
error "unfortunately, xxxdemo has stoped" when run this on AVD
by
dev C plus
Question
14 May 2013
license: CPOL
hi all!i'm start learn about dev with androidin my project, i have create two button.when i event of them and run it with AVD, so have error same as the topic.how to fix this.plz help me.Event onClick is sample, to show message "clicked"i had read LopCat, but i don't see...
General Programming
»
Uncategorised Quick Answers
»
General
Mobile
Android
clear the textbox after direct to a download page
by
_Damian S_
Answer
14 May 2013
license: CPOL
If your textbox is being populated in the page load event, you could check for page.ispostback to determine whether to clear it or not?
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript running 'too late' to change modified ASP.NET Label content
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
I'm not sure I could analyze your particular situation, but… You can use jQuery which is conveniently built around the conception of processing everything after the document is ready. Please see:http://learn.jquery.com/about-jquery/how-jquery-works/[^].However, you can use jQuery in...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
C# / Winform- maintaining text quality in changed DPI situation
by
Member 10052728
Question
14 May 2013
license: CPOL
how maintaing text quality in serveral DPIs.e.g)First, do task in 96DPI Environment.So i make layout(frame) 100 * 100. i add label (Font size 10)Second, i excute that programms in 200DPI Windows.it will show layout size (400* 400) [actually 400*400 is not exactly, just...
General Programming
»
Uncategorised Quick Answers
»
General
C#
WinForm
Javascript running 'too late' to change modified ASP.NET Label content
by
xxhatred
Question
14 May 2013
license: CPOL
Using MSVS Express 2012 for WebWith ASP.NET, C#I have on a WebForm:- A ScriptManager, with an UpdatePanel, which contains a Label.The Label is being updated with some HTML data that it is downloading & parsing from another web site. Works fine.I also have a javascript (from a...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
Mask out unwanted pixels from Kinect RGB display by using depthdata
by
narayaru
Question
14 May 2013
license: CPOL
Hi,I am trying out something with Kinect sensor. I am trying to display objects at certain depth in original colour and the rest in black. I don't want to use the playerindexbitmask since I don't want to use it for skeletons. What I have now is helping me display the original colour at the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Kinect
Graphical Outputs on Web page
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
And where is the nightmare? You just need to approach it systematically.The images can be created on the fly with ASP.NET by using System.Drawing.Bitmap. Create a bitmap of the required size and dynamically draw on it (if many bitmaps have a lot in common, load then from pre-created files...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Web
Overloaded variable type?
by
xxhatred
Answer
14 May 2013
license: CPOL
I ended up doing something like:public dynamic myName { get; set; }if (myName != null) if (myName is string) // can access it directly else // is object with .value property for reading // (need more checks for safety, of course)This idea was spawned from...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
report viewer does not visible true after page load
by
afiqdoherty
Question
14 May 2013
license: CPOL
hye, i always thinking why my report viewer does not visible true on event click even when I set it visible true. the report viewer will visible true if i not set it visible false on Page Load but set visible false on others event click.here's the code below.as you guys can see, only the Label1...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Reporting
VisualStudio2010
cheap and best off shore development business - which one is best
by
naflas
Answer
14 May 2013
license: CPOL
Just I want to know which language is easy to develop and deploy without buying any additional hardware and Software. My understanding is android development is an open source and does not cost anything. I can have my team anywhere in the world to develop apps for my clients who in...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
Mobile
Android
Sharepoint
clear the textbox after direct to a download page
by
melberry
Question
14 May 2013
license: CPOL
i have 2 pages. main.aspx and download.aspxpage_load at download.aspx is to download a filetextbox and download button at main.aspx, button redirect to download.aspxafter i filled the textbox and press the button, the page remain at main.aspx and file is downloaded from...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
problem in javascript with datapager in listview
by
Al-Najjar Ali Moh'd
Question
14 May 2013
license: CPOL
Welcome all:I would like to ask you about this javascript, this is a peace of code: name:
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
ListView
C# - Actionscript3 communication/seriazlization
by
NKlinkachev
Question
14 May 2013
license: CPOL
I'm doing a multiplayer game, the server code is written in C# and the client is Actionscript3.The best way to do this is probably serialization/deserialization. I'm a little lost with serializers when it comes to AS3. If both sides were C# I could just use any serializer and use DLL for all...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Flash
serialization
Help to findout Week number of year?
by
Ian A Davidson
Answer
14 May 2013
license: CPOL
Of course, looking at my WHS diary, I realised that the first of January is not always in week 1, but is sometimes week 52/53 of the previous year, and also the last few days of December may be counted as the first week in the next year.Thus all the solutions given so far, while some of them...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
VC++
MFC/C++
Graphical Outputs on Web page
by
dews turner
Question
14 May 2013
license: CPOL
I wants to develop a web solution with major Graphical Outputs like flowcharts on the webpage. I mean after performing some activity it should display it as a BOX on the web page with brief description about the activity. Also the box should have some meta data behind the scene to edit it. I can...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Web
Recover data from corrupt SQL database
by
Alessio Piazza
Answer
14 May 2013
license: CPOL
Try the procedure described below. It should work unless the damage is really big in which case you’ll need a third party tool such as ApexSQL Recover[^] to actually read the MDF file and restore the data.Stop SQL Server -> Copy database and transaction log files to another location ->...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2000
SQL2005
SQL
SQL-Server
SQL-Server
SQL2008
SQL2012
How to create child drop down menu for parent static control?
by
Nenad Smiljkovic
Answer
14 May 2013
license: CPOL
I did it!Thanks to Richard MacCutchan's comment, I have managed to implement it!Everything works fine, I just had to adjust x and y coordinates!Thanks ALOT Rich!
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Failover or Restart Results in Reseed of Identity – FIX
by
Gordon W Beeming
Technical Blog
14 May 2013
license: CPOL
Simply run the script and then every time SQL is restarted all your Identity columns will be reset to the latest available seed.
Database
»
Database
»
General
SQL
developing a translator like babylon
by
Anees126
Question
14 May 2013
license: CPOL
Hello Sir,I would like to make a language translator like the one Babylon application which can be installed on the system.Request you to guide me on how do i go about in making one. i Want make it for my college project, kindly help.you can mail on nospam@deleted.com as...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Alt + Click + Drag shortcut key
by
Gordon W Beeming
Technical Blog
14 May 2013
license: CPOL
It stops you from having to do multiple copy and pastes.
General Reading
»
Hardware & System
»
General
C#
Creating a Sudoku Problem Solver using Microsoft Solver Foundation
by
Gordon W Beeming
Technical Blog
14 May 2013
license: CPOL
Creating a Sudoku Problem Solver using Microsoft Solver Foundation.
General Programming
»
Game Development
»
General
C#
Problems installing Windows 8 apps
by
Gordon W Beeming
Technical Blog
14 May 2013
license: CPOL
Problems installing Windows 8 apps.
Platforms, Frameworks & Libraries
»
Win32/64 Sdk & Os
»
General
Windows
how to add the new process was opened
by
Dave Kreskowiak
Answer
14 May 2013
license: CPOL
Well, for starters, I can tell you that your if statement is garbage. You're assuming that a process never starts at the same time another process exits. Your logic is flawed. You cannot compare the number of processes on the last pass with the number of processes in the latest pass and draw...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
how can i make the website admin to login to his website account from webpage
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
Please see my comment to the question and start here: http://www.asp.net/web-forms/tutorials/security/roles/role-based-authorization-cs[^].—SA
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Facebook application for windows 8 in html5 and javascript
by
daluu
Answer
14 May 2013
license: CPOL
You can also look at this project: https://facebookwin8.codeplex.com/
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
FacebookAPI
Windows-Phone-8
HTML5/CSS
How to rotate button in vb.net
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
The best idea so far is the Solution 4.The right solution for System.Windows.Forms is: create a custom control which behaves like a button and implement rotation property. If you want to rotate to an arbitrary angle, you should also set the property...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
WinForm
retrieving multiple sockets from one TcpClient
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
You would need to make two connections (or any other number of connections you may need) using two separate instances of TcpClient, which is, basically, a wrapper around an instance of a Socket. Besides, you can do development either on the level of Socket objects, or TcpListener/TcpClient...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Arrays declared as structure members cannot be declared with an initial size
by
lewax00
Answer
14 May 2013
license: CPOL
My VB is rusty, but I think you want:Dim options(300) As Stringinstead of the line you have declaring it.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
how can i make the website admin to login to his website account from webpage
by
- NA -
Question
14 May 2013
license: CPOL
in the home web form of the website, there are login button i want this button to allow the admins of the website to check or enter to specific account in the website, but i did not know how i can code this. any help please
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
CTM - Clone To Modify Model
by
Paulo Zemek
Article
14 May 2013
license: CPOL
Create data structures that implement the right Clone To Modify Pattern the easy way.
Languages
»
C#
»
General
C#
.NET
Architect
Dev
Intermediate
Advanced
Object of type 'System.Int32' cannot be converted to type 'System.Int16'. 0 0
by
Member 2497977
Question
14 May 2013
license: CPOL
good night i need help for this problem i use this CButtonhe work perfectly in vs2010 (0 error,0warnings,etc)but in the VS 2012 i get this errors.... (only in the design mode) Object of type 'System.Int32' cannot be converted to type 'System.Int16'. 0 0 thanks
General Programming
»
Uncategorised Quick Answers
»
General
object
type
Arrays declared as structure members cannot be declared with an initial size
by
Maciej Los
Answer
14 May 2013
license: CPOL
Please, read my comment. You did not provide enough information to post exact answer.VB6 vs. VB.NET[^] - there are similar languages both not the same.Array class (VB.NET)[^]I would suggest you to use custom class. Please, follow this link: Using Classes and Structures in Visual Basic...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
Free eBooks on Expression Blend
by
Andrew797
Question
14 May 2013
license: CPOL
Can anyone tell me where I can find free eBooks on Expression Blend in Visual Studio 2012?I have used Google to search for a few, only to find that the links that claim to be free, are not really free.Thanks in advance.
General Programming
»
Uncategorised Quick Answers
»
General
expression
Blend
VisualStudio2012
Arrays declared as structure members cannot be declared with an initial size
by
AspDotNetDev
Answer
14 May 2013
license: CPOL
Does this work:Structure selectStruct Dim options() As String Sub New(ByVal size As Integer) ReDim options(size - 1) End SubEnd StructureNote that I used "size - 1" because I'm guessing the original code should say "options(0 To 299)".
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
Modify an existing xml
by
Clifford Nelson
Answer
14 May 2013
license: CPOL
I would start by understanding XLinq since it is the newest XML technology from Microsoft. There are also other ways of doing it, but probably want to use the newest: XLINQ Introduction Part 3 Of 3[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Arrays declared as structure members cannot be declared with an initial size
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
Please see: http://msdn.microsoft.com/en-us/library/tey4z3ca%28v=vs.110%29.aspx[^].—SA
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
Arrays declared as structure members cannot be declared with an initial size
by
Amy Adams
Question
14 May 2013
license: CPOL
I have the following code in VB6. How can I re-write this in Visual Studios 2012? As it is written below, I get the following error message: "Arrays declared as structure members cannot be declared with an initial size. "I've seen possible alternatives to how this should be written...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
Delegate or delegate
by
Sergey Alexandrovich Kryukov
Answer
14 May 2013
license: CPOL
No, the keyword delegate and System.Delegate are not the same, not at all.You could be confused with the C# alias keywords. For example "int" is an alias for System.Int32. For delegates, this is not the case.Read the documentation on these type and look through all the cases of using the...
General Programming
»
Uncategorised Quick Answers
»
General
C#2.0
ASP.NET
C#
Crystal Report Select Fields
by
Kschuler
Answer
14 May 2013
license: CPOL
When I saw what code you used, I immediately thought you were not using the LIKE the correct way. When you use a LIKE, you would usually include a wildcard character. For example, when searching for things that start with the letter M, you'd write something along these lines: {Name} LIKE "M%"....
General Programming
»
Uncategorised Quick Answers
»
General
CrystalReports
how to get the below output
by
Member 8054539
Question
14 May 2013
license: CPOL
My query as follows select fa.facname,f.bfid,b.class,b.examdate from bthfac f,batch b,faculty fa where month(b.examdate)= '11' and year(b.examdate)= '2012' and b.bthid=f.bthid and fa.facname = 'MADHAVAN'when i execute the above query output as follows;Facname Bfid class ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to create menu in mvc using razor
by
PratapReddyP
Answer
14 May 2013
license: CPOL
you can use simple tags to construct you menu. For some awesome effects use JQuery and CSS as per your requirment.You can llok at this.Smaple[^]
General Programming
»
Uncategorised Quick Answers
»
General
MVC
Advance my Performance exporting data to Excel
by
Maciej Los
Answer
14 May 2013
license: CPOL
If you fetching data from database, the fastest way to export data is to use CopyFromRange()[^] method for MS Excel range.More about: How to transfer data to an Excel workbook by using Visual C# 2005 or Visual C# .NET[^]
General Programming
»
Uncategorised Quick Answers
»
General
Excel
Interop
performance
export
DataReader
Map pin markers on a HTML Imagemap in a VB.net Webbrowser control
by
psypgmr
Question
14 May 2013
license: CPOL
I have a VB.Net 2005 project that uses a WebBrowser control on a windows form. On the control, I have created an imagemap using HTML and javascript. When a user clicks on the imagemap, a marker (like a map pin) is displayed where the user clicked, and prescribed processing for that section of...
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
HTML
VB
VB.NET
how can i get the output in ms access database
by
Maciej Los
Answer
14 May 2013
license: CPOL
Have a look here:HOW TO: Transpose Data in a Table or Query in Access 2000[^]Transpose data from columns into rows using SQL[^]and try to it by yourself.
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to call ascx page to razor in mvc
by
PratapReddyP
Answer
14 May 2013
license: CPOL
No server controls in MVC Razor. Use a Partial View instead.
General Programming
»
Uncategorised Quick Answers
»
General
MVC
How to rediect from one action to another action within two diferent ccontroller
by
PratapReddyP
Answer
14 May 2013
license: CPOL
The above code will return the markup for the Events/Index to JQuery method.The post method of Home controller should be "void" in your case, and then just remove return before RediectToAction().It will give you desired result.
General Programming
»
Uncategorised Quick Answers
»
General
MVC
How to get WPF Menu items names when window loaded?
by
Clifford Nelson
Answer
14 May 2013
license: CPOL
I have not actually tested this, but it should work for your simple case:var names = baseMenu.Items.Cast().Select(j => j.Name);What I have had to do is dynamically change a context menu depending on the selected record. I used the ContextMenuOpening event and then used a method in the...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
Page 1 of 9,316
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid