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

0
votes
0answers
516 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
355 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 ...
1
vote
1answer
498 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
230 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 ...
0
votes
1answer
540 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 ...
0
votes
1answer
122 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
111 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 ...
-2
votes
2answers
253 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
221 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 ...
16
votes
2answers
3k 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 ...
1
vote
1answer
150 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
3answers
495 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
396 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
106 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 ...
1
vote
1answer
250 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
133 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
288 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 ...
-1
votes
0answers
197 views

Open source self hosted file server in .Net [closed]

I came across a website recently (http://owncloud.org/) and I was wondering if there where any similar opensource implementation in .Net so that I can host my contents on my private VPS server. ...
0
votes
1answer
171 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 ...
1
vote
1answer
866 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 ...
0
votes
2answers
430 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 ...
3
votes
1answer
652 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
1answer
562 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 ...
0
votes
1answer
670 views

Word list filtering and duplicate removing in multiple files - Tool or Program?

I've a wordlist which contains, username,phonenumber and email. It's gathered from various sources therefore in variable sizes. I need to filter the duplicate username and all things in a row. So far ...
1
vote
2answers
3k 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
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 ...
1
vote
1answer
423 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 ...
2
votes
2answers
29 views

Searching major search engines with text such as <%#

If I type '<%# vs <%"' into any of the major search engines, everything is stripped out except the 'vs'. I understand why they do this. I would just like to know if anyone knows of a way to ...
9
votes
2answers
4k 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?
4
votes
1answer
719 views

Can window snap be programmatically rotated when monitor is rotated to portrait?

My secondary monitor, which normally uses 1680x1050 resolution, is rotated (physically & through Windows) to be displayed vertically (1050x1680). Is it possible, programmatically or via ...
4
votes
1answer
631 views

Microsoft Visual C# 2010 Express error loading Silverlight

What's going on?: After selecting Silverlight Navigation with Accent Color from Online Templates in Microsoft Visual Studio C# 2010 Express, I am receiving the following error message. Error: ...
1
vote
2answers
14k 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. ...
-5
votes
3answers
481 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?
1
vote
1answer
234 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
3k 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
130 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
479 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
341 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 ...
0
votes
1answer
477 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
votes
3answers
502 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
231 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 ...
0
votes
4answers
10k views

How to obtain the Windows product id from registry from a remote machine

Would like some assistance on how to obtain the Windows product id from the registry that will work where the WIndows (Windows 2003 Server, 2008 Server) is on a Domain or Workgroup and a remote ...
0
votes
1answer
283 views

How to add an Environ Variable Path to VS command Prompt

If I open Developer Command Prompt for VS2012 using 'Run as Administrator' and then run the following will the path C:\foo get added to the list of environment variable pathways for the command ...
2
votes
2answers
4k views

Command line RDP call CMD on target machine

I need to remote into ~50 machines and run a batch file. Is there any way I can start up an RDP session and call cmd?
2
votes
2answers
2k views

C# lost local variable window from debug (f11 step by step)

I was running my code (visual studio 2010) and I accidentally closed the window that shows the state of variables step by step. I think it was called locals but I can't find it on any of the menu ...
0
votes
1answer
8k views

File does not contain a valid CIL image. [closed]

Hey guys i installed mono on my suse 12.1. When i create a file say "hello.cs" and run "$ mono hello.cs " on the terminal, i get this error: Cannot open assembly 'hello.cs': File does not contain a ...
1
vote
1answer
344 views

Removing case sensitivity [closed]

My program has a search and update function. But it will only find a match if the user types in Jane Doe not jane doe. ATM my programs retrieving user input, converting into char array and changing ...