Scroll Listview Items
Hi I want to scroll the items on the listview on the event of a button clik.is there any funtion on .Net(Windows Application) for this? ...
Hi I want to scroll the items on the listview on the event of a button clik.is there any funtion on .Net(Windows Application) for this? ...
I want to write a wizard in .net which programmatically generates Visual Studio Solution with some projects. I will have a XML file with details of files need to be included in the project with their respective paths to fetch them and a list of project names. Is there any way I can achieve this ...
I am building an application which is based on a sample application, written in C# on .NET 2, and is built on VS2008. This application is mostly a wrapper for a COM application. However I compile it in .NET 3.5. The sample application came with the following files in it's bin\debug: appName.vshost.exe appName.vshost.exe.manifest ...
I read an article about using C# 3 features in C# 2 where you can for instance type var x = 2; and even if the project is a 2.0 project, the Visual Studio 2008 compiler picks it up and generates the same code as it would if you type int x = 2. But what I don't get is, should you not do this in some cases? I always thought that the var k...
Hello, I got a strange problem. Let me give you some information. There is a stored procedure having one select returning the set of data and the return value of 0. Before the "main" select in the sp, there's also fake select (because of SSIS and codegen tools) looking like this : IF (1=0) BEGIN CONVERT(INT, NULL) AS Id ,CONVERT...
Hello everyone. I have problems with executing a process in a webservice method on a Windows Server 2003 machine. Here is the code: Dim target As String = "C:\dnscmd.exe" Dim fileInfo As System.IO.FileInfo = New System.IO.FileInfo(target) If Not fileInfo.Exists Then Throw New System.IO.FileNotFoundException("The ...
Hi, I made a small product using Google APIs. Now i need to sell it to my client. I made installer and simply added all APIs. But now it is showing error of type COM. How can i resolve this issue? ...
I am trying to unit test / verify that a method is being called on a dependency, by the system under test (SUT). The depenedency is IFoo. The dependent class is IBar. IBar is implemented as Bar. Bar will call Start() on IFoo in a new (System.Threading.Tasks.)Task, when Start() is called on Bar instance. Unit Test (Moq): [Test] ...
We are developing a product for complete payroll management in c#.net. We want to get and display the attendance, leave and overtime (in hours/minutes) details of employees in a graphical form. Is there any third party control available for this? ...
Hi, We have a .NET client calling a Java webservice using SSL. Sometimes the call fails due to poor connectivity (the .NET Client is a UI that is used from the weirdest locations). We would like to implement an automatic retry mechanism that will automatically retry a failed call X times before giving up. This should be done solely with...
I have 2 classes that have a many to many relationship. What i'd like to happen is that whenever i delete one side ONLY the association records will be deleted with no concern which side i delete. simplified model: classes: class Qualification { IList<ProfessionalListing> ProfessionalListings } class ProfessionalListing { ...
I just finished using Linq to Sql to map our existing Database structure for use in a Thick Client app. While writing some Linq Methods to replace some Stored Procedures I noticed that sometimes I could do tblOne.tblTwo.MyDesiredField. I learned that there needed to be an association in the dbml for that to work. Well mine was missi...
I have just changed my WPF application from .Net3.5 to .Net4. Doing this caused all my global styles to stop working. Only the styles explicitly set using a key did work. I've done some research and figured out what causes this, and reproduced it in a simple app. I have a simple WPF app containing only a button with text - no style or ...
hi, I was wondering if there would be any confident approach for use in catch section of try-catch block when developing CRUD operations(specially when you use a Database as your data source) in .Net? well, what's your opinion about below lines? public int Insert(string name, Int32 employeeID, string createDate) { SqlConne...
I would like to try to download usenet newsgroup messages. Anybody know how? I'd take a look at IPWorks but I don't understand how to download it. Any suggestions? ...
Hi, in Entity Framework in VS2010 (in a C# project) how do I configure a new association in the Mapping Details pane? I don't quite get the Mapping Panel, in particular when you click on one of the Navigation Properties in a table. Once I've added the association between two tables, I can see it visually as a line between the tables, ...
I'm trying to figure out how to resolve a instance somewhere in the code. At the application startup I registered a type static void Main() { var builder = new ContainerBuilder(); builder.RegisterType<Foo>().As<IFoo>(); } Now, how can I resolve an instance somewhere in the code ? In structure mam there is a static object...
At work we are inte process of starting development on a new web-based product. Before doing so we need to establish what technology stack we are going to use. For this application my preference would have been to use Django but since the development- and management-team is soo heavily rooted with Microsoft the new product will have to b...
I am using Visual Studio 2008 and recently a wierd bug has appeared. In my forms I have a tab control with multiple tab pages. I can place a control on a tab page fine, but when I move it by way of clicking it and dragging it to another location, it leaves behind an outline of where it should be. Looking around, it has moved to the fi...
I created MeshGeometry3D mesh in wpf. How can i display it smooth? I need something like that: http://www.forman.free-online.co.uk/images/smoothshading.png ...