Click here to Skip to main content
15,890,947 members

Videos


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


41. DataTrigger element binding
It seems that you have a typo in your XAML :SelectedValuePath in DataTrigger never changes but SelectedValue will change.Hope it helps.
Amir Mahfoozi Updated: 26 Mar 2012
Rating: ( (No votes))
42. Find combobox inside the Datagrid
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
Amir Mahfoozi Updated: 26 Mar 2012
Rating: ( (No votes))
43. .net App that supports any os
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.
Amir Mahfoozi Updated: 26 Mar 2012
Rating: 1.00/5 ( (1 vote))
44. dynamic resource for usercontrol
Put your styles in a UserControl.Resources section in your user control XAML :...your styles goes here...Hope it helps.
Amir Mahfoozi Updated: 26 Mar 2012
Rating: ( (No votes))
45. Data Binding- in ComboBox(relative to other combo box)
You need to have a SelectionChanged event handler :XAML code : ...
Amir Mahfoozi Updated: 26 Mar 2012
Rating: 5.00/5 ( (1 vote))
46. Automatic Create a 'LOG' name Folder on Desktop!
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...
Amir Mahfoozi Updated: 13 Feb 2012
Rating: 3.00/5 ( (1 vote))
47. How to increment Row value(Running Number) in sql server
Your question is like this person :Multi-instances accessing to the same database and primary key conflict problem?[^]Transactions will solve your problem.
Database Development » SQL Server »
Amir Mahfoozi Updated: 8 Feb 2012
Rating: ( (No votes))
48. Election voting system
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.
Amir Mahfoozi Updated: 7 Feb 2012
Rating: ( (No votes))
49. How can I enable/disable ports in Cisco Catalyst 2960 with C#?
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...
Amir Mahfoozi Updated: 7 Feb 2012
Rating: 5.00/5 ( (2 votes))
50. Insert Time of server using linq
You can add this to your data context :public partial class YourDataContext{ public DateTime GetDate() { return ExecuteQuery("SELECT GETDATE()").First(); }}extracted from here...
Amir Mahfoozi Updated: 7 Feb 2012
Rating: 4.00/5 ( (1 vote))
51. foreach from IQueryable procedure in linq
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...
Web Development » ASP.NET »
Amir Mahfoozi Updated: 6 Feb 2012
Rating: 5.00/5 ( (1 vote))
52. Microsoft office Excel is waiting for another process to complete an OLE action
This may help you :File, Options, Advanced, and under General check Ignore other applications that use DDE.Extracted from here...
Productivity Apps and Services » Microsoft Office » Microsoft Excel
Amir Mahfoozi Updated: 6 Feb 2012
Rating: ( (No votes))
53. How to get rank in SSRS? Similar to DENSE_RANK Function in SQL Server
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.
Database Development » SQL Server »
Amir Mahfoozi Updated: 6 Feb 2012
Rating: 3.00/5 ( (1 vote))
54. how to get names and count of tables
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...
Amir Mahfoozi Updated: 6 Feb 2012
Rating: ( (No votes))
55. hi how to redirect to perticular master page ?
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...
Web Development » ASP.NET »
Amir Mahfoozi Updated: 6 Feb 2012
Rating: 5.00/5 ( (1 vote))
56. Application for FlashDisk or Pen Drive
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...
Amir Mahfoozi Updated: 5 Feb 2012
Rating: 5.00/5 ( (1 vote))
57. Checking incoming sound with sound in a database
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...
Programming Languages » C# 4.0 »
Amir Mahfoozi Updated: 5 Feb 2012
Rating: ( (No votes))
58. animating a sort algorithm
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...
Amir Mahfoozi Updated: 4 Feb 2012
Rating: ( (No votes))
59. how can I convert persian text to pdf
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 ,...
Programming Languages » C# 4.0 »
Amir Mahfoozi Updated: 4 Feb 2012
Rating: 5.00/5 ( (1 vote))
60. Use of @@Error in Sql Server 2008
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.
Database Development » SQL Server »
Amir Mahfoozi Updated: 4 Feb 2012
Rating: ( (No votes))

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