9,869,444 members (30,005 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*
510 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 11
Page Size:
10
·
25
·
50
Author filtered by: Amir Mahfoozi
[x]
Re: My vote of 5
by
Amir Mahfoozi
Forum Message
7 May 2013
Thank you.
General Discussions
»
Article "Implementing A Tree Structure With Database"
Assigning a value to variable in Dynamic SQL
by
Amir Mahfoozi
Answer
6 May 2013
license:
CPOL
Hi,It seems that your answer is here :http://stackoverflow.com/questions/803211/how-to-get-sp-executesql-result-into-a-variable[^]Good Luck
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
Re: TOC Links
by
Amir Mahfoozi
Forum Message
25 Feb 2013
Yes Dave, He should make all addresses relative.
General Discussions
»
Article "Project Definition And Versioning"
TOC Links
by
Amir Mahfoozi
Forum Message
24 Feb 2013
Links in TOC refer to your local drive ! for example : file:///C:/Users/skumar012c/AppData/Local/Temp/Temp1_documents-export-2013-02-24.zip/Project%20Definition%20and%20Versioning.doc#_Toc342
General Discussions
»
Article "Project Definition And Versioning"
My vote of 5
by
Amir Mahfoozi
Forum Message
11 Jan 2013
Well Done.
General Discussions
»
Article "Introduction To Delphi Prism"
My vote of 5
by
Amir Mahfoozi
Forum Message
11 Jan 2013
Thank you.It is useful to me.
General Discussions
»
Article "Delphi: Using Google For Online Translating"
how to get an output to a variable (@incode) from exec (query) command
by
Amir Mahfoozi
Answer
4 Jan 2013
license:
CPOL
Hi,Does this page help you :http://stackoverflow.com/questions/803211/how-to-get-sp-executesql-result-into-a-variable[^]Good Luck.
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
My Vote of 5
by
Amir Mahfoozi
Forum Message
21 Dec 2012
Thanks Abhinav. It helped me in my project :) .
General Discussions
»
Article "Finding A Child Control Inside Another Control"
Sorting in sql server
by
Amir Mahfoozi
Answer
18 Dec 2012
license:
CPOL
Hi,One solution is converting your data to seconds either on the fly or by using a user defined function.Here is a SQL statement that converts your data to seconds on the fly :SELECT * FROM (SELECT Duration ,CASEWHEN CHARINDEX(':',Duration )=0 THEN CAST (Duration AS...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Sorting
how can i copy only stored procedures
by
Amir Mahfoozi
Answer
16 Dec 2012
license:
CPOL
Hi,This may help you (with SSMS 2008) :Right click on desired database.Select Tasks > Generate Scripts...In Choose Objects section select Select specific database objectsMark the stored procedure in which you are interested.Generate their scripts and save it.Then run...
General Programming
»
Uncategorised Quick Answers
»
General
SqlServer
The auditing
by
Amir Mahfoozi
Forum Message
16 Dec 2012
The IRS decides to audit Morris, and summons him to the IRS office. The IRS auditor is not surprised when Morris shows up with his attorney. The auditor says, 'Well, sir, you have an extravagant l
General Discussions
»
The Lounge
Getting values from two columns into a temporary table
by
Amir Mahfoozi
Answer
15 Dec 2012
license:
CPOL
Hi,Maybe this helps you :IF OBJECT_ID('tempdb..#t1') IS NOT NULL DROP TABLE #t1SELECT * INTO #t1 from(SELECT Column1 FROM table1 unionSELECT column2 FROM table1) a SELECT * FROM #t1 Good Luck
General Programming
»
Uncategorised Quick Answers
»
General
SQL
SQL-Server
Those days
by
Amir Mahfoozi
Forum Message
30 Sep 2012
For those who had some good days with this : http://en.wikipedia.org/wiki/File:C64_startup_animiert.gif[
General Discussions
»
Survey "Is The Programming Language You First Learned One Of The Top 20 Most Popular?" (01 Oct 2012)
My 5
by
Amir Mahfoozi
Forum Message
29 Sep 2012
Well done ! :)
General Discussions
»
Article "Using Opengl In A Wpf Application"
Re: What can I say you saved my project
by
Amir Mahfoozi
Forum Message
27 Sep 2012
Hi Santosh, It's my pleasure to hear about that. Thank you. :)
General Discussions
»
Article "Implementing A Tree Structure With Database"
Dependency property's SetValue throws exception when not supposed to.
by
Amir Mahfoozi
Answer
25 Jul 2012
license:
CPOL
Hi Claudiu, Does my answer at this page help you : http://www.codeproject.com/Answers/409837/Creating-trace-log-file-using-threading#answer4Good Luck
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
WPF
Creating trace log file using threading
by
Amir Mahfoozi
Answer
24 Jun 2012
license:
CPOL
Hi,You should synchronize two threads to let them interfere with each other.Here is an example to show how to do this :The XAML part :
General Programming
»
Uncategorised Quick Answers
»
General
C#
WPF
add control between other controls in WarpPanel
by
Amir Mahfoozi
Answer
24 Jun 2012
license:
CPOL
Hi,What Sergey mentioned is completely correct but as I'm very interested in practical solutions here is one solution:First place a wrap panel in your XAML as here :
General Programming
»
Uncategorised Quick Answers
»
General
WPF
My vote of 1
by
Amir Mahfoozi
Forum Message
23 Jun 2012
:) Just kidding. Have a 5 from me ;) Thanks for the good tutorial. Good Luck.
General Discussions
»
Article "Asp.Net Mvc3 Razor With Jquery For Beginners"
Question about INotifyPropertyChanged
by
Amir Mahfoozi
Answer
23 Jun 2012
license:
CPOL
Hi,The problem is that your SelectedDVD is not a dependency property. When you bind to the Name property you are not notified of its value changes. So you should either make Name into a Dependency Property or The whole SelectedDVD object into a dependency property.Here is a working example...
General Programming
»
Uncategorised Quick Answers
»
General
C#
XAML
WPF
Re: Strategy
by
Amir Mahfoozi
Forum Message
1 May 2012
Thank you Slacker ;)
General Discussions
»
The Lounge
Re: Strategy
by
Amir Mahfoozi
Forum Message
30 Apr 2012
Thanks Espen ;)
General Discussions
»
The Lounge
Strategy
by
Amir Mahfoozi
Forum Message
30 Apr 2012
Long ago, when sailing ships ruled the waves, a captain and his crew were in danger of being boarded by a pirate ship. As the crew became frantic, the captain bellowed to his First Mate, "Bring me my
General Discussions
»
The Lounge
My vote of 3
by
Amir Mahfoozi
Forum Message
15 Apr 2012
not working in WPF
General Discussions
»
Tip/Trick "Using A Persian Calender In .Net 4"
My vote of 1
by
Amir Mahfoozi
Forum Message
15 Apr 2012
It's very scattered. And even if they where organized it doesn't run in .NET 4.
General Discussions
»
Article "Fixing Optional Calendars For Persian Culture In .Net"
working of keyboardlayout function
by
Amir Mahfoozi
Answer
27 Mar 2012
license:
CPOL
It seems that you load the Bengali language then neutralize that with activating previous language(which is most probably English). So removing the ActivateKeyBoardLayout may help you.With assumption that Bengali is already has been installed then just a simple call to LoadKeyboardLayout...
General Programming
»
Uncategorised Quick Answers
»
General
Keyboard
How to get the button in the Grid?
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
Use this function to get all the buttons in your grid:public static IEnumerable FindVisualChildren(DependencyObject depObj) where T : DependencyObject { if (depObj != null) { for (int i = 0; i
General Programming
»
Uncategorised Quick Answers
»
General
WPF
Exception in Storeboard
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
It is very hard to guess what the problem is but try using PropertyPathConverter when using complex paths (because I had the same problem recently and it solved my problem):Storyboard.SetTargetProperty(da5, (PropertyPath)new PropertyPathConverter().ConvertFromString( ...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
DataTrigger element binding
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
It seems that you have a typo in your XAML :SelectedValuePath in DataTrigger never changes but SelectedValue will change.Hope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
C#
WPF
Find combobox inside the Datagrid
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
Use this function to list all children of type ComboBox belonging to the data grid :public static IEnumerable FindVisualChildren(DependencyObject depObj) where T : DependencyObject{ if (depObj != null) { for (int i = 0; i
General Programming
»
Uncategorised Quick Answers
»
General
WPF
.net App that supports any os
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
I think Firemonkey Platform[^] which is shipped with Embarcadero RAD Studio XE2[^] will help you.http://edn.embarcadero.com/article/images/41566/RAD_Studio_XE2_Feature_Matrix.pdf[^]http://edn.embarcadero.com/article/images/41560/RADStudio_XE2_datasheet.pdf[^]Hope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
WPF
dynamic resource for usercontrol
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
Put your styles in a UserControl.Resources section in your user control XAML :...your styles goes here...Hope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
C#
WPF
User-controls
Data Binding- in ComboBox(relative to other combo box)
by
Amir Mahfoozi
Answer
26 Mar 2012
license:
CPOL
You need to have a SelectionChanged event handler :XAML code : ...
General Programming
»
Uncategorised Quick Answers
»
General
WPF
Automatic Create a 'LOG' name Folder on Desktop!
by
Amir Mahfoozi
Answer
13 Feb 2012
license:
CPOL
So if you use a third party component :You may firstly check its documentation to see whether it can change logging folder or disable the logging functionality?If it's impossible at this time to change its behavior then check whether you can remove its log folder regularly. For example...
General Programming
»
Uncategorised Quick Answers
»
General
C#2.0
C#
How to increment Row value(Running Number) in sql server
by
Amir Mahfoozi
Answer
8 Feb 2012
license:
CPOL
Your question is like this person :Multi-instances accessing to the same database and primary key conflict problem?[^]Transactions will solve your problem.
General Programming
»
Uncategorised Quick Answers
»
General
SQL2000
SQL-Server
SQL-Server
Election voting system
by
Amir Mahfoozi
Answer
7 Feb 2012
license:
CPOL
This may help you:http://stackoverflow.com/questions/2230976/how-do-i-implement-a-find-nearest-type-functionality[^]He answered very comprehensively.Also have a look at here :http://stackoverflow.com/questions/4131664/batch-accessing-google-or-bing-maps-from-c-sharp[^]Hope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL
How can I enable/disable ports in Cisco Catalyst 2960 with C#?
by
Amir Mahfoozi
Answer
7 Feb 2012
license:
CPOL
Firstly here is a good documentation :http://oreilly.com/catalog/esnmp/chapter/ch02.html[^]Here is a code snippet which communicated with a router :/*C# Network Programming by Richard BlumPublisher: Sybex ISBN: 0782141765*/using System.Net;using...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Insert Time of server using linq
by
Amir Mahfoozi
Answer
7 Feb 2012
license:
CPOL
You can add this to your data context :public partial class YourDataContext{ public DateTime GetDate() { return ExecuteQuery("SELECT GETDATE()").First(); }}extracted from here...
General Programming
»
Uncategorised Quick Answers
»
General
C#
LINQ
foreach from IQueryable procedure in linq
by
Amir Mahfoozi
Answer
6 Feb 2012
license:
CPOL
You should not return anonymous types from TestlinqPlease read my answer at this page :I have a problem in Linq to SQL to return a query? in method[^]And then make the helper class and return IEnumerable from your Testlinq() method.You will have access to the HelperClass fields in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LINQ
Microsoft office Excel is waiting for another process to complete an OLE action
by
Amir Mahfoozi
Answer
6 Feb 2012
license:
CPOL
This may help you :File, Options, Advanced, and under General check Ignore other applications that use DDE.Extracted from here...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Excel
How to get rank in SSRS? Similar to DENSE_RANK Function in SQL Server
by
Amir Mahfoozi
Answer
6 Feb 2012
license:
CPOL
Here it is :SELECT * , rank() over (partition by shift order by total desc) ShiftRank , rank() over (order by total desc) AllRank FROM AgentsHope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
SQL-Server
SSRS
how to get names and count of tables
by
Amir Mahfoozi
Answer
6 Feb 2012
license:
CPOL
For Access database :using System;using System.Data;using System.Data.OleDb;public class DatabaseInfo { public static void Main () { String connect = "Provider=Microsoft.JET.OLEDB.4.0;data source=.\\Employee.mdb"; OleDbConnection con = new...
General Programming
»
Uncategorised Quick Answers
»
General
C#
hi how to redirect to perticular master page ?
by
Amir Mahfoozi
Answer
6 Feb 2012
license:
CPOL
Because the master page and content page are merged during the initialization stage of page processing, a master page must be assigned before then. Typically, you assign a master page dynamically during the PreInit stage, as in the following example:void Page_PreInit(Object sender, EventArgs...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Application for FlashDisk or Pen Drive
by
Amir Mahfoozi
Answer
5 Feb 2012
license:
CPOL
If you need to develop a cross platform application you are not confined to .NET framework.You can also use well known Qt Framework :http://en.wikipedia.org/wiki/Qt_%28framework%29[^]I have worked with it and its very good.Also consider the new Delphi XE2's FireMonkey...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Checking incoming sound with sound in a database
by
Amir Mahfoozi
Answer
5 Feb 2012
license:
CPOL
This person had the same problem as you :http://www.dreamincode.net/forums/topic/176251-how-can-i-recognize-electric-keyboard-piano-sounds-in-c%23/[^]He was suggested with this library :http://naudio.codeplex.com/[^]Also this is a good resource...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
animating a sort algorithm
by
Amir Mahfoozi
Answer
4 Feb 2012
license:
CPOL
It is not a very complicated problem:1- randomize an array2- draw a line for each array element with the height of its value.3- determine in which point of the sort algorithm elements are substituted then update graphics in that point.4- call the sort methodAfter having a...
General Programming
»
Uncategorised Quick Answers
»
General
Java
how can I convert persian text to pdf
by
Amir Mahfoozi
Answer
4 Feb 2012
license:
CPOL
If you can work with MS Word Introp services then use this code (of course after opening word application and filling it with desired texts): wordApp.ActiveDocument.ExportAsFixedFormat(OutputFileName:@"C:\report.pdf" , ExportFormat:WdExportFormat.wdExportFormatPDF ,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Use of @@Error in Sql Server 2008
by
Amir Mahfoozi
Answer
4 Feb 2012
license:
CPOL
You can use TRY CATCH block in your TSQL. Please read these pages for more info :http://www.4guysfromrolla.com/webtech/041906-1.shtml[^]http://msdn.microsoft.com/en-us/library/ms179296.aspx[^]And find more about this topic by using Google.Hope it helps.
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Report Viewer 2010 fall in loop
by
Amir Mahfoozi
Answer
4 Feb 2012
license:
CPOL
Maybe Refresh causes a Page_Load and at the end of Page_Load, Refresh causes a Page_Load again and this is going to continue for ever.
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Get notification when the system's hostname changes
by
Amir Mahfoozi
Answer
4 Feb 2012
license:
CPOL
One solution can be this :Hostname is stored in registry at address :HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerNameunder the key name of ComputerNameGet notified of its changes by this...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#
C#4.0
Page 1 of 11
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