How do I open a transacted file in C#
I understand W7 support transacted files. How do I use them in C#? ...
I understand W7 support transacted files. How do I use them in C#? ...
I'd really like to listen for when a monitor gets hotplugged like when a laptop docs or has a external monitor plugged in. I'm hoping I can do this in .net maybe with some pinvoke. ...
I'll admit it, I'm too lazy to look at the source code. Does anyone know? ...
I am loading a file into a byte array and then converting it to string using the following method. string str1 = Convert.ToBase64String(fileBytes); It works fine with the small files, but when the files fet too bigger like 170MB, the application throws 'system.outofmemory' exception. So to avoid the problem, I am trying to break the...
I need a way to track instances of various classes, without those classes having any knowledge that they are being tracked. Essentially, I have a class factory which creates instances and hands them off to another thread. Once that thread completes and unloads the instance, I need to get notified of that so I can do reference counting an...
Hey all, Hopefully I can explain this to where it make sense, but I'm trying to get a list of objects out of a master list using a speicific and complex (complex to me, at least) set of criteria. I have a Class called TableInfo that exposes a List of ForeignKeyInfo. ForeignKeyInfo has a string property (among others) called, Table. I...
I am tasked with proving or disproving the transaction support in .net. We all know that the TransactionScope can handle committing/rolling back simple things like inserting 3 records in 3 different tables and then deleting 5 records in 5 other tables. My team is not so sure that TransactionScope can handle the transaction properly if t...
I am trying to follow some starter guides for using MEF in .Net 4, but I get stuck when I get to setting up the application. The instructions say to do this: var catalog = new DirectoryCatalog(@".\"); var container = new CompositionContainer(catalog); container.Composeparts(this); But the version of System.ComponentModel.Composition i...
when i do the following command into dos it will work fine ffmpeg -f image2 -i frame%d.jpg -vcodec mpeg4 -b 800k video.avi When I try to use the process class in c#, without the arguments, it loads ffmpeg in a console window then dissapears like usual. However, when I try to use the argument as I do above, formatted exactly the same.....
Possible Duplicate: Elevating process privilege programatically? I'd like to build a console application in .NET that simply runs another program with elevated rights. That way I can point it to, say, an install exe for Flash, send a shortcut to the user pointing to my 'runasadmin' exe, and the user can update Flash. The cre...
I'm totally a newbie with Ninject and I tried to follow the tutorial by Shiju Varghese at his blog post about DI. I did add reference of ninject.dll and Ninject.Web.Mvc.dll However, I got stuck as Visual Studio cannot resolve the function RegisterAllControllersIn.... protected override void OnApplicationStarted() { Are...
I'm interested in creating a service that will receive a text message and based on it's content send a text message back to the original number. I've looked around a little bit but haven't found any good resources for information on how to do this. Can anyone point me to any good links to find some info on this or recommend what .NET l...
Hello My Project include dataGridView Control, and i change the property: gridview1.columns.DataPropertyName at run time Now, i need rebind my gridView, how i do this. in asp.net is simple gridView1.DataBind(), bun how in c#. i try to do this: this.gridview1.DataSource = "MyDataSource" this.gridview1.refresh() and it's not working....
I haven't worked on the UI in some time. I thought that in ASP.NET 4.0, gridviews handle the paging automatically (if you set paging=true). Is this true, or do you still have to handle it in code? ...
Using regex. trying to get only the last x digits of the number and 0 padding where necessary Consider the following input 1234 123 12 1 EDIT: These will appear individually as string values i'm trying to make a regex expression (or several regex expressions, ideally just a single) yield 34 23 12 01 I'm a bit new to regex and bac...
A while back, I asked a question on here about how to run an application as a thread in the memory space of another application, rather then a new process: http://stackoverflow.com/questions/3169234/executing-a-program-as-a-thread-and-not-as-a-process As a follow up to that question, I think I have a theory on how I might do this to ach...
I have a WinForms Application (.net 3.5) which displays a list of processes. I would like to be able to attach to one of those processes. I have multiple Visual Studio 2010 instances running and I would like to create a List/Dropdown where I select one of those instances and then attach the Debugger to it. Getting the VS2010 instances ...
Suppose I have an application with multiple instalations that share the same CSS schema. Each of these applications would have the same CSS files with differente colors. I'm thinking of the following solution: Instead of referencing real colors, I'd reference <%variable names%> inside the CSS files. These CSS files, as already mention...
OK, I realize that the PDB files are the symbol files for .NET assemblies. But I never really looked into their extended usage. If I hook in with a remote debugger from a visual studio that has the running code loaded, do I actually need the PDB files on the remote machine? Will I get unhandled exception information without them on th...
On the WebClient page i see the following By default, the .NET Framework supports URIs that begin with http:, https:, ftp:, and file: scheme identifiers. The FTP i am using requires a login. How do i login with WebClient to download a file? ...