Click here to Skip to main content
Page 1 of 11
Page Size: 10 · 25 · 50


Author filtered by: Amir Mahfoozi [x]
Re: My vote of 5 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
Re: TOC Links by Amir Mahfoozi
Forum Message 25 Feb 2013  
Yes Dave, He should make all addresses relative.
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
My vote of 5 by Amir Mahfoozi
Forum Message 11 Jan 2013  
Well Done.
My vote of 5 by Amir Mahfoozi
Forum Message 11 Jan 2013  
Thank you.It is useful to me.
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.
My Vote of 5 by Amir Mahfoozi
Forum Message 21 Dec 2012  
Thanks Abhinav. It helped me in my project :) .
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...
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...
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
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
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[
My 5 by Amir Mahfoozi
Forum Message 29 Sep 2012  
Well done ! :)
Forum Message 27 Sep 2012  
Hi Santosh, It's my pleasure to hear about that. Thank you. :)
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
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 :
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 :
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.
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...
Re: Strategy by Amir Mahfoozi
Forum Message 1 May 2012  
Thank you Slacker ;)
Re: Strategy by Amir Mahfoozi
Forum Message 30 Apr 2012  
Thanks Espen ;)
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
My vote of 3 by Amir Mahfoozi
Forum Message 15 Apr 2012  
not working in WPF
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.
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...
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
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( ...
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.
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
WPF
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.
WPF
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.
Answer 26 Mar 2012   license: CPOL
You need to have a SelectionChanged event handler :XAML code : ...
WPF
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...
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.
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.
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...
C#
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...
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...
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...
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.
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...
C#
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...
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...
C#
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...
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...
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 ,...
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.
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.
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...

Page 1 of 11
1 2 3 4 5 6 7 8 9 10


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