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
12 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 ...
-2
votes
0answers
10 views

getting creation date and last access date of a text file using c# [migrated]

I am trying to extract the creation time and last access time of a text file using .Net.I wrote the following code using System; using System.Collections.Generic; using System.Linq; using ...
0
votes
0answers
13 views

cannot print from the application on another computer [closed]

I wrote an application in C# that executes a print command. It worked fine on both my computer and my customer's computer. Now, the application on my customer's computer won't execute the print ...
-1
votes
0answers
9 views

Conditional object creation [migrated]

Ok, clearly I am lost in .NET, as it is not what I usually code in. I am trying to create an array of objects during the parsing of a config file, so they can be processed as quickly and efficiently ...
0
votes
0answers
16 views

How build hotspot network and monitor with software on server?

I would like to build a hotspot network. I will have several hotspot locations which are connected to a main office. In my main office I would like have server that checks the connection requests from ...
0
votes
0answers
22 views

Can UPnP handle 1000+ devices with multiple services running on each device?

Good morning, We were going to use UPnP for our network discovery. In order to be able to use this protocol, we need to be able to handle discovery of 1,000 devices on a network. As a maximum, the ...
-1
votes
0answers
16 views

block diagram drawing in word document by coding in c#

I want to draw process Block diagram in Microsoft word document by coding in c#. I am tried drawing in tables and using shapes which contain text box. But those methods are difficult to implement and ...
0
votes
0answers
31 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
0answers
46 views

Visual studio C# Excel object library

I have a program that runs perfectly on my PC, I'm using a Windows 8 with 2013 Office. My program is using Excel. Now the program has to function on a Win7/Office2010 combination. Can I just ...
0
votes
1answer
23 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
40 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
48 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 ...
1
vote
0answers
22 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 : ...
-1
votes
0answers
38 views

Linking C# code with windows log in password (SAM)

I have this small code like eye spy. The code should execute at Windows start up. If a user types wrong password the webcam should take a snapshot. I have done the webcam part, now I need to link my ...
0
votes
0answers
37 views

How to make a database for C# in Visual Studio 2013

I have already gone to http://msdn.microsoft.com/en-us/library/ms233763.aspx and tried to follow the directions but it said to click on the service based database template when adding the new item to ...
0
votes
0answers
16 views

ovftool library usage in standalone app

I am trying to create an application which will deploy VM on vSphere, right now I am using PowerCLI with ovftool, but sometimes I have deploy from computer which do not have PowerCLI neither ovftool ...
0
votes
1answer
32 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 ...
-1
votes
1answer
39 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 ...
0
votes
1answer
324 views

Visual Studio Express Edition 2013, 30 days free trial period completed

I was using the free edition of visual studio 2013 express edition and it got expired today. I tried to sign in and wanted to make a full use of it but I couldn't. I entered my hotmail address to sign ...
1
vote
0answers
37 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
39 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
232 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 ...
0
votes
0answers
109 views

A socket operation was attempted to an unreachable host error

I'm developing a program in C# that uses a UDP multicast system. My Multicast group it's using 224.0.0.1 address to communicate. In all Windows 8 machines it is working fine. However, in a Win 7 64x ...
0
votes
0answers
40 views

Auto place brackets after methods in Visual Studio 2012

Is there any way to make VS place round brackets after a function/method and position the cursor between them?
1
vote
0answers
21 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
285 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
238 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
508 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 ...
0
votes
0answers
163 views

How to programmatically take frequent snapshots of a remote computer's desktop?

I have a situation with 2 computers, connected over LAN with a 100Mb/s switch. I need to be able to "record" the screen of the "main" computer (1200*1600 pixels) on the other. I mean - I want to save ...
0
votes
1answer
200 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
151 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
545 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
0answers
89 views

boot graphical application straight from linux bootup (without verbose boot messages and desktop)

Is it possible to boot from minimum linux core(linux/android) to an application (preferably created in interchangeable platform languages such as c# - mono / gtk / java / c) without any verbose linux ...
0
votes
0answers
91 views

executing an UDF function in excel file from c# code

I have a customized Excel User Defined Functions (udf) that gets data from a database to the Excel Sheet. when I execute this function (=getData(A1,B1)) from a c# code to get data on an excel file, it ...
0
votes
1answer
81 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
87 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
244 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
128 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
157 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
111 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
0answers
104 views

Detect what trueCrypt volumes are mounted

How can I know what trueCrypt volumes are mounted on a computer? Note I already know what files can be mounted. In other words the only volumes that can be mounted are: C:\Vol1.tc, C:\Vol2.tc and ...
0
votes
1answer
225 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
53 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 ...
0
votes
1answer
31 views

Navigate to a virtual member from an overriden member in the derived type

Using visual studio, in the editor window, I am able to navigate from the usage of a member to the line and file where it is declared by pressing F12 while the cursor is over that member by or right ...
1
vote
1answer
176 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
92 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
117 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 ...
15
votes
2answers
2k 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 ...
5
votes
2answers
860 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?