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

5
votes
4answers
975 views

Shortcuts to exe on network pc ok?

I created a simple calculator in C# for work. It's just one executable file. I was thinking of putting a single copy of it on a network drive and send everyone a shortcut to it to access it. I'm new ...
1
vote
3answers
10k 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 ...
0
votes
2answers
229 views

How to choose if you want to close the command prompt window or not running a .exe or .bat file? [duplicate]

I have a program written in C#, console application. A .exe file is created and when executing the command window opens, writes the output and closes as usual. My problem is that I may need to see the ...
1
vote
1answer
126 views

Why do i get antiverus alert when use smtp & GetAsyncKeyState

I got antivirus alert tor\gen8 spy when I build here is my code : using System; using System.Windows.Forms; using System.Runtime.InteropServices; namespace reading { public partial class Form1 : ...
7
votes
1answer
223 views

Meaning of \b in .Net Regular Expressions [closed]

Microsoft has a nifty quick reference card for .Net Regular Expressions. But it seems to list \b as both matching Backspace and also matching "On word boundary". Which is it? Can \b really do both? ...
1
vote
0answers
2k views

Customize syntax highlighting in visual studio for C#

I've been unable to find within visual studio 2013, how to change the syntax highlighting color scheme for C# files. Namely, I'd want to change the color of variable names, and method names in method ...
1
vote
1answer
323 views

Using Wine to open Windows .exe

I apologize for repeating my question, but it was suggested that I ask it on this StackExchange site instead of stackoverflow: Original post: I have created a simple .NET 4.5 Entity Framework ...
0
votes
2answers
1k views

Get and reserve an available IP address from a dhcp server to use for my ip camera

I have a c# desktop app. I have an ip camera and I want to assign a static ipaddress to it. I need to be able to get a 'free/available' ip address from my dhcp server, reserve it and assign it to my ...
1
vote
0answers
668 views

stream byte arrays to a video using ffmpeg

This is what I am trying to do: I receive jpegs from an IP camera. If motion is detected I want to upload the jpeg still shot to my server. To save on bandwidth I save each jpeg to a file on my ...
0
votes
0answers
429 views

Windows Console App Fails When Run in Task Manager

I have a written a .Net console app that scans my Exchange 2007 inbox looking for specific subject text then processes the email body text. It works fine when I launch the app directly but when I set ...
0
votes
0answers
274 views

Should i be worried about high CPU usage

This may seem an odd thing to ask. I have created a C# desktop application. It runs motion detection - real time - from images supplied from an IP camera. When I look at task manager (or other such ...
0
votes
0answers
17 views

IP Forwarding on windows [duplicate]

I want to redirect incoming traffic with a specific IP destination address coming to my computer to proxy server working on this PC (C# app). I tried to accomplish it by using netsh interface ...
0
votes
1answer
28 views

how to save on existing video

I have this command : ffmpeg -f dshow -i video="screen-capture-recorder" -r 30 -t 10 E:\test01.flv and i am happy with it, but i wonder if i can make it save every 30 minutes so if the power went off ...
0
votes
1answer
369 views

remote connection to mysql

have two machine PC#1 with db mysql and appache and PC#2 with a c# form try to connect to this db here is my connection string used in PC#2: SERVER=My_public_ip;PORT=3306;DATABASE = my_test; UID = ...
1
vote
1answer
413 views

Video file created with FFmpeg too big

In my C# project I capture the screen at regular intervals (with a timer). I then have to convert the images into one video with FFmpeg, so I use this command: "-f image2 -framerate 9 -i ...
0
votes
1answer
65 views

Stop print driver from opening windows

A program I've written is being used to send shipping labels to a label printer - or, more precisely, to five printers, each on a separate driver I've set up. The throughput is one every three seconds ...
2
votes
2answers
848 views

Disable Dropbox when WiFi isn't available

I have an ultralight PC with Windows 7 that I use during my daily bus commute. Since the processor speed is limited, I'm looking for a way to disable/enable Dropbox when I'm not connected to a WiFi ...
-1
votes
1answer
48 views

How to retrieve the first argument when there is no Main()? [closed]

When the user drops a file icon on top of my application's icon, I am able to retrieve the filepath of the dropped file. It is contained in args[0]. How can I retrieve that filepath when there is no ...
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 ...
4
votes
2answers
355 views

“Stream” an app?

Is there a way to "stream" an application on windows? This might not be the right place to ask this, but, is there a way to, say, stream something like Avast from one computer to another, and then ...
1
vote
0answers
145 views

BindIPEndPointDelegate to select VPN interface on Windows

I have multiple Windows-intergated L2TP VPN connections on my server. By default, all internet traffic should be routed through my local network adapter and not through the VPN. My application should ...
1
vote
1answer
146 views

Call WPF Application during windows 7 shutdown progress

I wanna call a WPF application, that during the windows 7 shutdown progress, will copy some files from computer to the server. The WPF application will show the copy files progress with progress bar. ...
2
votes
1answer
637 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
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 ...
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
874 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
442 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
2k 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
787 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
309 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
858 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
156 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
144 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
382 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
309 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
5k 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
196 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
691 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
509 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
155 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
361 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
154 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
374 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 ...
0
votes
1answer
235 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
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 ...
0
votes
2answers
500 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
943 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
724 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
757 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
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 ...