C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform

learn more… | top users | synonyms

2
votes
1answer
611 views

C# windows 7 run exe before computer shutdown

I want to run an executable that saves an XML file on a local drive before the computer (running on Windows 7) gets shut down. I know it is possible to run scripts before shutdown. This can be ...
1
vote
0answers
28 views

Retrieve deleted accounts [closed]

Several thousand accounts were deleted by mistake in our CRM 2011 system. We have a backup where we can retrieve them, but are having issues with restoring those records. Is there a deep clone ...
0
votes
0answers
823 views

How to extract jpegs from a video file using ffmpeg

I am using C# and ffmpeg. In this scenario I have 279 individual jpegs and i have used ffmpeg to create a AVI file from these images on my client. CMD Line: -f image2 -r 10 -i ...
-2
votes
1answer
434 views

Unity 3D coding language, C# or JavaScript [closed]

Hello to the gaming community. I am a budding game designer, learning to code for the first time in my life. I did learned c++ in school, 8 years back, so I sort of understand the logic when people ...
-1
votes
2answers
1k views

How to reduce the font size while print notepad file from DOS using BAT file

I am using DOS BAT file for print text file(bill).The problem is font size is too large so, its not fit in the paper size.The BAT Code is copy bill.txt \\127.0.0.1\bill exit please explain how to ...
2
votes
1answer
760 views

Omnisharp for Emacs doesn't work

I tried recently to work with C# with Emacs24. I found https://github.com/sp3ctum/omnisharp-emacs I installed it with MELPA. Then I run it. Nothing happened. I wonder what went wrong. I think I don't ...
0
votes
1answer
299 views

More than 256 colors for xp .ico

I am working in a windows form application with .net 4.0 c#. I am having a problem with the .ico images. The machines that will use de application have xp installed(some of them). I've been having ...
4
votes
2answers
2k views

How to launch the Windows Explorer shell after starting with a different one?

The following is a hack, but for what I need it for its fine. I created a C# program that shows some EULA text and has an Agree and Disagree button. I set the ...
0
votes
1answer
150 views

Is there a software which prevents illegal distributing of my Windows application [closed]

The subject itself is saying : i created application for Windows 7 based on .Net 4 i want this application to be used only by legal users who really bought it thus i probably want some software ...
1
vote
1answer
142 views

.Net Specific PerfMon Counter Missing

I do have another issue with Perfmon data. On below screen you can see my Prod Box has all .Net Perfmon Data available while on Dev box it's missing. I thought it could be missing Registry ...
0
votes
1answer
825 views

Detecting whether a proxy is HTTP or SOCKS

Based on the long search in net I came to know that SOCKS uses a handshake protocol to inform the proxy software about the connection that the client is trying to make, and then acts as transparently ...
-2
votes
2answers
366 views

Need to start my application on Windows logon screen

I have a problem. I have a GSM device and I wrote an application in C#. The app continuously receives SMSs and stores them in a database, but when Windows gets restarted, I have to explicitly login ...
0
votes
0answers
298 views

how to change program name in setup UAC with installshield

I am trying to create a setup.exe using limited edition of Installshield, but I am not able to change the program name show in the user account control form. However when I uninstall, the program ...
1
vote
1answer
194 views

Install sql server management studio API only

I have already installed sql server 2008 R2 , but now i need to install sql server management studio also ( i mean just that API ony ) is it possible to install only this instead of uninstall sql ...
0
votes
1answer
482 views

batch - pass full path name as one argument [duplicate]

I am writing a batch to call a .exe file which is made by C#. However, the C# program reads one of the parameters incorrectly. Here's my code in the batch file: start "" "example.exe" %cd% para1 ...
0
votes
1answer
151 views

website hosted outside default website is not working

I deployed my website as a separate webiste in IIS. It is an intranet website and is windows Authenticated i followed the below step created the virtual Path for the published files. Right click on ...
2
votes
1answer
342 views

C# 5 Language Specifiction in LibreOffice Writer

I've faced with very weird behavior of LibreOffice when opening C# Language Specification version 5.0 in it. When I open this specification in Microsoft Word 2013 on the title page it's written "C# ...
2
votes
0answers
150 views

WinRT C# SVN Client

I try to connect SVN repo from Surface. And I realized that there are no apps for this. I want to write some one, but it's too complex to write my own SVN lib. Are there some lib for WinRT ARM ...
-2
votes
1answer
363 views

Code disappears in vs2010

I was writing the c# code in vs2010, suddenly the light went out. When I restarted my system and opened my project in vs2010 and opened my class (.cs) file, a blank notepad window appear and nothing ...
16
votes
2answers
4k views

When you start multiple threads on a multi core processor, are they guaranteed to be processed by different cores?

I have a Pentium core i5 processor, which has 4 cores. If I do this in a C# console program var t1 = new Thread(Thread1); var t2 = new Thread(Thread2); t1.Start(); t2.Start(); are t1 and t2 threads ...
8
votes
2answers
5k views

How can I compile a .NET project without having Visual Studio installed?

I want to compile a .NET/C# project, but I don't want to install Visual Studio to do this. What tools do I need and how can I compile the project?
0
votes
3answers
660 views

Error connecting to Access DB on network

I have two pc lined up connected to each other using WAN. I have shared the folder containing an Access Database and the i give permission to Everyone for everything on the database itself. Now the ...
0
votes
1answer
227 views

Can you reach back into the local machine and execute an application with parameters from your remote session?

I am writing a program that is used as a RemoteApp from server to the client machine. I know that using System.Windows.Forms.SystemInformation.TerminalServerSession I can determine if the current ...
0
votes
0answers
315 views

Installing mono without root privileges

I use mono on my mac now for my .NET development, when I dont feel like using my pc, but I want to use mono on my Universities linux server, but I dont have root. Is there a way I can install mono in ...
0
votes
2answers
544 views

access local asp.net website from the Internet

I have a asp.net local website in C# (ISS 7). In order for my client to test it, I would need him to access my machine through the internet. How can I do it? There must be an easy way.
1
vote
1answer
1k views

One Way Syncing between two folders using a third folder

I want to create a one way sync between Folder A and Folder B so far so good and RoboCopy does the job. But Some of the files in Folder B will be moved to Folder C (not controlled by this system) So ...
3
votes
1answer
888 views

How do I find the applications that require the .NET framework?

Is there a way to look at all the applications installed on a users computer and determine which, if any, are utilizing the .NET framework? My problem is that I want to upgrade our users computers ...
0
votes
2answers
493 views

Is it possible that update of (MS) security essentials is blocking ports while updating?

Seem to have encountered an issue that I can't really resolve. I have a client trying to write to a stream on port 4530. This is a system running constantly, and when I got back to work monday ...
1
vote
2answers
5k views

How to get curly braces autocompletion in Visual Studio 2012. C #

In moste IDEs you can set so if you type for example> if(isTrue) { //and when you hit enter here you get the } automatically But I have not found where you get this behavior in VS Options. Is there ...
1
vote
0answers
506 views

Virtual COM Port Using usbser.sys Keeps Dropping

I have a C# wpf application that is communicating with a device via a virtual com port over USB. This device is using the usbser.sys driver. Everything works normally as expected and communication is ...
1
vote
3answers
9k views

Can I make C# Console applications on Visual Studio 2012 Express for Windows 8?

As the question, can I make C# console applications on Visual Studio 2012 Express for Windows 8? I am aware that you can create Windows 8 apps but is there a template to create C# based console ...
1
vote
1answer
547 views

Page hosted on IIS7.5 changes appearance on IIS6

I'm in the middle of switching our site over to a new web server (Server 2008 R2), and am trying to copy one of the new applications to the old server (Server 2003) in order to let users access it in ...
11
votes
3answers
7k views

How to make CTRL + / toggle a comment in Visual Studio

How can I make CTRL + / toggle a comment in Visual Studio, as it does with XCode and Eclipse?
0
votes
1answer
708 views

Visual Studios 2012 Debug MVC App Opens Chrome Browser in Random Window

Basically when I right click project --> Debug --> Start New Instance in visual studio 2012 with chrome as the default browser, it seemingly picks a random window instance of chrome browser and opens ...
1
vote
1answer
1k views

how to connect to secured wireless network connection in cmd in windows?

I program on C#, I don't want to use P/invoke, so I will use shell, so I need to connect to a secured wireless network connection on the CMD in windows, I know how to connect to a wireless network but ...
2
votes
2answers
21k views

How to use PSCP to copy file from Unix machine to Windows machine where target path has spaces?

I am having a problem using PSCP in a C# program to copy a file from a Unix machine to a Windows machine. The problem only happens when the target folder on the Windows machine has a space in it. ...
1
vote
1answer
5k views

Can't open an .exe app made in c# with Visual Studio

So I made a simple calculator console application with C# and Visual Studio. Now I gave the .exe file from my debug folder to a friend to test the application. Unfortunately, when he tries to open it, ...
2
votes
0answers
133 views

Microsoft security update KB2656351 prevents output caching

I am working with .Net framework 4 and cookies are used in my application. Due to Microsoft security update KB2656351, output caching does not work. I can not remove cookies. If I remove the above ...
2
votes
0answers
583 views

runas verb not working in windows 8?

I am using some applications need to do some thing as an admin, so I was using the verb "runas" in windows 7 and it is working well, However, once we migrate to windows 8, the new processes were ...
0
votes
1answer
438 views

How does FileStream appends physically works?

I was dealing with a prepending problem and suddenly leads me to think about this question.... Maybe not only related to FileStream, I want to know how we actually appends binary into a file ...
-5
votes
3answers
598 views

How to prevent reverse engineering of a C# .NET program [closed]

I have a C# .NET program that I believe has been compromised (reverse-engineered). Is there any way to prevent this?
0
votes
1answer
599 views

Not receiving responses sent from a different subnet when my machine is on DHCP

I am building a utility to communicate with some hardware that comes with a default IP address of 10.0.0.1 and subnet mask 255.255.255.0. The hardware replies to UDP messages on the same IP and port ...
0
votes
1answer
1k views

Autostarted application in windows 8 runs behind Metro

We have an application (digital signage media player) written in c# that auto start when the user log in. the application is started by a shortcut placed in the auto start folder. On windows 8 the ...
1
vote
1answer
281 views

Active Directory 2008 R2, c#

I am using C# and trying to check if a group exists or not in active directory I am doing this string cmd = "New-Object DirectoryServices.DirectoryEntry \"LDAP://cn=" + groupname + " " + LdapDef + ...
1
vote
1answer
1k views

Open a custom remote powershell remotely

I have 2 computers. On the computer A, I have a custom module written in C# for powershell 3.0 and installed via a MSI. I also have a shortcut that open powershell with the module already loaded. I ...
-1
votes
3answers
644 views

Simulate serial printer on pc

I have an old lab device which prints it's result to a serial printer. I need to replace the serial printer with a computer. I have connected the device's 9 pin serial port to the computer's serial ...
1
vote
1answer
3k views

Why does explorer restart automatically when I kill it with Process.Kill?

If I kill explorer.exe like this: private static void KillExplorer() { var processes = Process.GetProcessesByName("explorer"); Console.Write("Killing Explorer... "); foreach (var process ...
3
votes
1answer
3k views

TrueCrypt drive letter not available

With c# or a batch file I mount a trueCrypt volume located at A:\volumeTrueCrypt.tc With c# I do: static void Main(string[] args) { var p = Process.Start( fileName:@"C:\Program ...
1
vote
1answer
241 views

How to open a document multiple times in VS2012?

I would like to know if it is possible to open a source file multiple times in VS2012 Express? For example I would like to open a UserControl in two views (Code/Design) in two tabs to e.g. put each ...
-1
votes
3answers
1k views

Sending mail application sends mail to Junk email folder

I have a console application that attaches files from a folder on the server and mails it to myself. This works well, but it always seems to put the mails in the Junk email folder. Can anyone tell me ...