.net

Databound DataGridView - IDataError

I have a form with a databound DataGridView. I use IDataError interface to handle errors and it works perfect, showing red marking in row header of rows with errors.. But how do I get the cursor to jump to the first row with error(s). Thanks in advance.. ...

events for picturebox in standard windows mobile 6

Hello, I am new in windows mobile development.How to redirect to another page.when i click on picture box in standard windows mobile 6. There is no click event for standard windows mobile 6.it's is not a touch screen mobile. could any one help me ? Added-If main screen 9 icon/picturebox.then how to go from one icon to an...

Avoid circular reference in domain model

Hi, this must be such a common scenario that there's been a lot written about it already, hopefully even a really good pattern. I have a domain model in which a custom container contains entities. For example (properties and interfaces excluded for brevity): class Entity { public int Id; public EntityContainer ParentContainer;...

Tag innertext not displayed in label box in ASP.NET

protected void Button1_Click(object sender, EventArgs e) { string a; a = "vimal < kumar>"; Label1.Text = a; } Output: vimal Tag( <ABCDE> ) inner text why not displayed in label box (ASP.NET), Actual result is vimal <kumar> but the vimal only displayed, tag inner text not displayed ...

Gridview dot net layout

I have 7 columns in a gridview. the 7th column holds a 50 word description of the other six. Where can i find help seeing how to lay out the rows so that the 6 fields appear and then the 7th is underneath it. i am struggling to find the template sample, or datalist view, or gridview that shows a sample of how to lay that out properly. In...

Comparing Integer and Integer? results in Boolean? not Boolean

I'm just writing a bit of code to compare an id of integer with an id of integer? for example: Dim id As Integer = 1 Dim nullId As Integer? = Nothing Dim areEqual As Boolean areEqual = nullId = id When I try to compile the code I get a compiler error: Option Strict On disallows implicit conversions from 'Boolean?' to 'Boolean'. Whi...

Detect if SSL is supported

I am redirecting users to https using a HttpModule for selected pages, what I don't want is to force users to use SSL if for some reason there browser, proxy, etc does not support it. Is it possible to detect if the client supports SSL connections using .NET? ...

How to run multi-Threading Application ?

These codes generates us this error: Cross-thread operation not valid: Control 'progressBar2' accessed from a thread other than the thread it was created on. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.T...

Is setting CultureInfo in a intranet, ASP.NET, single server app a waste of time?

I'm looking at 1000s of code setting the CultureInfo for ToString and number conversions and date usages. The application is only used on one server, in one town, by one monolingual office and isn't going to move to another country ever. I think these got there from following misplaced FxCop advice about internationalization. Is there...

How to Send SMS via Windows application

Hello, I want to send SMS by windows application. I ran the code but I got an error. This is AT OK AT+CMGF=1 OK AT+CSCA="+9460921985" OK AT+CMGS="+9660775564" this is new message +CMS ERROR: 500 I am using this code. Public Class Form2 Dim number As String = "+9660775564" ''# Dim message As String = TextBox1.Text Dim...

Test project and config file

I have this kind of setup in my Visual Studio 2008 solution: One WCF service project (WCFService) which uses library (Lib1, which requires some configuration entries in app.config file). I have a unit test project (MSTest) which contains tests related to Lib1. In order to run those tests, I need a config file in test project. Is there an...

My .net application works on local machine but fails when used from a network location

Hey, I have an C# application that needs to list a directory ( Directory.GetFiles() ) and also to access one of the files returned. If I run the application locally it doesnt have problem access the network location or the local locations, if I run it from a network share then I get a security exception thrown when accessing the shares...

Create Video, Frame by frame, from .Net

I have a .Net application which renders graphics using GDI+ and/or XNA and I want to record the frames directly into a video (preferably an AVI, where I can include a codec like xvid etc). I've tried many of the solutions out there, and run into show stoppers with all of them. All of the FFMPeg based libs seem to be dedicated to transc...

EnterpriseServicesInteropOption for .NET to COM+ call

I need to carry out some database updates, part of which will go through a COM+ component (that will be enabled for transactions), and others through standard LINQ to SQL, and I want both updates to part of one transaction. I intend to use a TransactionScope to allow .NET and COM+ transactions to synchronise. However having read the doc...

How to add or handle help files to a .NET project?

I have been tasked to add an on-line help file to a windows application. So I have several questions in my mind: How do you create help files and how do you add them to a Windows Forms project? Is there a good way to handle them in a VS solution? Is there a tutorial on how to do this? ...

Which interface should I expose a List<T> via?

In a response to this question runefs suggested that "unless you have a very specific reason for using IList you should considere IEnumerable". Which do you use and why? ...

Geneva-based STS, Java interop

I'd like to test whether my Geneva-based fedearated security services can be consumed with NetBeans/WSIT. Is there something like step-by-step guide? Server side uses 'message credentials over HTTPS' security mode while all the examples I've seen rely on message-level encryption and focus on consuming .net STS from Java RP-service. ...

.NET Data Adapter Timeout SP Issue

We have a SQL Server stored procedure that runs fine in SQL Manager directly, does a rather large calculation but only takes 50-10 seconds max to run. However when we call this from the .NET app via a data adapter it times out. The timeout however happens before the timeout period should, we set it to 60 seconds and it still times out ...

Crystal Reports append multiple reports together

Hello, I have a number of reports that need to be both run separately and also as a group. I've created these reports and was hoping I could just create a form where I could just append report1, report2, report3... together without creating a different report and making all of those reports subreports. Is this possible? Thanks, Ed...

How to create ADO.NET Entity Framework ObjectContext extensions

I'd like to create the context extension methods described in Cesar de la Torre's blog post. But I'm not sure how to declare the class that holds my extension methods. Griff Townsend wrote: If I include a reference to this class (or have the class in my namespace), any ObjectContext references will be able to execute these ex...