C# cursor highlighting/follower
How to highlight the system cursor? Like many screen recording applications do. Ideally, I'd like to display a halo around it. Thanks ...
How to highlight the system cursor? Like many screen recording applications do. Ideally, I'd like to display a halo around it. Thanks ...
Recently I've started learning about Contexts in .NET (context-bound, context-agile, message sinks, etc.). Several alarm bells started ringing: All context-bound classes are derived from ContextBoundObject, which in turn is derieved from MarshalByRefObject. MarshalByRefObject is a part of the .NET Remoting architecture. The .NET Remot...
Hello, This might seem an easy question for some, but I am struggling with it. I am trying to use SQLDataReader.GetFieldType to check if a certain field is an Image field. Lets assume the first field of the result set is an Image field, if I do: reader.GetFieldType(0).ToString; I get System.Byte[] But is this the correct way to chec...
I am investigating whether to use nServicebus or a custom solution for a new project. Basically I want to create a "messaging layer" that will receive messages from various sources, process these messages and then send them off to some destination. In most cases I retrieve and send the messages. In a few cases, messages arrive via a web ...
I've been handed a C# codebase that uses a SQL Server 2005 database. I would like to have an overview which database tables and procedures are accessed by which method bodies in the code; in the case of tables, I would also like to know the type of access (CREATE, DROP, SELECT, INSERT, UPDATE or DELETE). String searching for these keyw...
Hi all, I am developing a small application to get some picture from a scanner. What is the best option (free) to get the picture from the scanner? Already tryed with the WIA, but always gives me this error HRESULT: 0x80210015 ...
hello everybody, I am making a simple form with two semi-transparent texts and i put it in a paint event. only, when I wider the form, the texts turn darker and grainy. actualy I want the darker color but not the grainy effect. here is my code snippet: private void sbfToolBox_Paint(object sender, PaintEventArgs e) { System.Drawing...
Sometimes, when running a Mono .NET application (it seems to not depend on the input data, as it does not change), I run into following situation: when trying to Dequeue an element from a (non-empty, I check its Count beforehand) Queue, an exception is thrown: Unhandled Exception: System.InvalidOperationException: Operation is not va...
In my desktop .NET application I have written(for internal use) where I need to allow my users to apply diagnosis's to a Member Plan. There are currently 700 in the system and growing. I need to allow them to add multiple diapnosis's at once. I currently am allowing this through a combo check list box. This works but is INSANELY unwe...
I'm trying to generate a diagram for a design document. I've generated a class diagram in VS. At the moment it's just a bunch of unconnected boxes as there isn't any inheritance going on. It feels like it would be more useful if I could show how the objects interact through properties and parameters. As an example, a Boy class has a met...
I searched through internet but found nothing. The whitepapers of Windows Azure Platform say something like that: In its first release, the maximum size of a single database in SQL Azure Database is 10 gigabytes A few things are omitted in the technology’s first release, however, such as the SQL Common Language Runtime...
Hi All, I am a c# dev working on some code for a website in vb.net. We use a lot of caching on a 32bit iss 6 win 2003 box and in some cases run into OutOfMemoryException exceptions. This is the code I trace it back to and would like to know if anyone else has has this... Public Sub CreateQueryStringNodes() 'Check for nonstandard ch...
I know this is a basic function of the DataGridView, but for some reason, I just can't get it to work. I just want the DataGridView on my Windows form to submit any changes made to it to the database when the user clicks the "Save" button. I populate the DataGridView according to a function triggered by a user selection in a DropDownLi...
I'm writing a plugin (dll file), and I'm creating a WinForm as its interface/dialog. If it does require a message pump, how and where should I create one? ...
To be clear, I am not asking for a side by side comparision which has already been asked Ad Nauseum here on SO. I am also Not asking if Linq2Sql is dead as I don't care. What I am asking is this.... I am building internal apps only for a non-profit organization. I am the only developer on staff. We ALWAYS use SQL Server as our Datab...
We have a WCF service using TCP binding, hosted in a Windows service. The WCF service is called by an ASP.NET web application. When the WCF service is called, I would like to check whether the calling identity is a member of a particular local group. A few ways to do this are: [PrincipalPermission(SecurityAction.Demand, Authenticated =...
I have a system where a remote agent sends serialized structures (from an embedded C system) for me to read and store via IP/UDP. In some cases I need to send back the same structure types. I thought I had a nice setup using Marshal.PtrToStructure (receive) and Marshal.StructureToPtr (send). However, a small gotcha is that the network bi...
I can not make NHibernate 2.1 work in machines without framework 3.X (basically, windows 2000 SP4, although it happens with XP too). NHibernate doc do not mention this. Maybe you can help? I NEED to make NHibernate 2.1 work in Windows 2000 PCs, do you think this can be done? PD: DataBase is SQL 2000/2005. Error is: NHibernate.Mapping...
Does anyone know a good set of Saxon XML, XSLT, PDF (link text) tutorials for .net? ...
I have a type that both implements ISerializable and defines a method adorned with the OnSerializingAttribute. I have noticed that ISerializable.GetObjectData is called before the OnSerializing callback. This seems wrong to me because it renders the OnSerializing callback redundant. After all, there's no point in making preparatory ad...