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
2answers
543 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
6k 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
583 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
11k 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
615 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 ...
19
votes
3answers
10k 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
824 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 ...
3
votes
2answers
30k 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
2answers
10k 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
139 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
685 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
483 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 ...
-6
votes
3answers
750 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
725 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
340 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
2k 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
750 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
4k 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
245 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
2k 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 ...
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 ...
1
vote
1answer
13k 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 ...
3
votes
2answers
7k 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?
1
vote
1answer
565 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 ...
0
votes
1answer
424 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 ...
1
vote
2answers
2k views

What is the Difference between USb Root Hub and USB Composite Device? [closed]

I am Developing an application where I need to fetch VID and PID of all the Current USB Devices Connected to the Computer. But I am just getting VID and PID number of my Headphone that is attached to ...
0
votes
2answers
800 views

How to add hotkey to trigger a program?

I've deployed a project on client PC. Is it possible to add a shortcut key to invoke this program. How to make it minimized to the tray when it's triggered? (User can still open it by clicking the ...
0
votes
1answer
1k views

how to use custom ip address to browse a web page c#/.net [closed]

i am trying to browse web page using custom(user provided) ip address but it's not working. webBrowser1 loads web page successfully but it's not using custom ip address, it loads page with real ip ...
0
votes
1answer
296 views

options in compression with 7z

I want to create an archive, through a program I am writing in C#, and later decompress it. The archive will contain folders from completely different locations, grouped on 3 major subdivisions. ...
2
votes
6answers
12k views

How to recover my source code?

after a system crash down, one of my .cs file get lost. The size of the file is 18KB, when I tried to open it in VS2010, vs2010 auto opens it in NotePad, but the content is empty. I tried to open it ...
0
votes
1answer
696 views

Microsoft Outlook Password Protected Email Add In

I am facing an issue. I want my Microsoft Outlook email's to be password protected. I Google'd for it, came to know about "AddIn's for Outlook 2007" project. Any tutorial on how to setup a password ...
1
vote
0answers
209 views

Script for Bits Uploads - Allow clients to upload files in IIS7/IIS7.5

I need to write a script in C#\appcmd/some other script to automatically enable the checkbox for "Allow clients to upload files" under "BITS Uploads" in virtual directory configuration Thanks!
0
votes
1answer
802 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
554 views

DISABLETHEMES for application compatibility in windows 7 not working

i am porting an legacy winform application developed for xp on windows 7 ,which is currently developed using c#.net 3.5 and some third party controls which are very old but don't want to change them ...
1
vote
0answers
50 views

Can a C# Client run through a VB Server? [closed]

I was wanting to see if it is possible to make a C# application connect to a Visual Basic Server as I already have a complete engine in VB, I was just wanting to convert the Client to C# so I can make ...
4
votes
1answer
707 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: ...
0
votes
1answer
66 views

Corrupted data from terminal to Host

Ive got a terminal which sends data to a host that is wrapped with <stx> and <etx>. However when it enters the network it always has 5/6 bytes of junk data in place of the <stx> and ...
0
votes
1answer
116 views

Can't install MS VS 2008 on a computer with MS VS 2010 installed

I have Microsoft Visual Studio 2010 installed on my Windows 7. And now I need also MS Visual Studio 2008. I tried to install MS Visual Studio C# Express Edition from official site and looked like ...
0
votes
1answer
144 views

is there any word add-in that can do this?

I'm looking for a word addin that can allow the user to create a triple list of words and associations and show a line under words or phrases that have matches in the list. For example, lets say I ...
0
votes
1answer
516 views

How to install mono dev libs on Arch?

I'm trying to compile an old tomboy addin of mine on Arch, but it seems there are no mono-dev-libs. MonoDevelop failed to compile because it's missing Unix,Gdk and Gtk. I also can't find the libs in ...
2
votes
1answer
1k views

UDP Hole Punching impossible with non-well-behaved NATs?

Normally a NAT will keep the public end point of a local end point the same for all packets that are coming from it, thus making UDP hole punching easily possible. However, some NATs will map the ...
0
votes
1answer
424 views

Remove Encryption.Some of my Project files in c# have green text

Not sure where to post this but there you go I have an external disk drive I dont remember encrypting however some project files are green and when moving to another computer it does not let me. How ...
2
votes
2answers
412 views

Recover Visual C# 2010 Project

I have spent a lot of time writing a project in Microsoft Visual C# 2010 Express. While creating it i used multiple computers and opted to store the files on a external hard drive. While finishing my ...
0
votes
1answer
995 views

hyperlinks >995 characters are not clickable in Outlook 2007

In my C# app, I am sending an HTML email in which the mail body contains a hyperlink that exceeds 1000 characters. When the email is received in Outlook 2007, it appears as a link (blue & ...
0
votes
0answers
521 views

Google Earth plugin not working in Awesomium

We used Awesomium's demo browser to open this page: http://code.google.com/intl/fr/apis/earth/ The problem is that the Google Earth window is completely off of its position, in the top-left hand ...
2
votes
2answers
480 views

How to associate a SATA HBA to a Physical Disk

I am, admittedly, very new to the whole WMI "thing". This "thing" is quite overwhelming and I'm not finding an answer to the question that I have at this point. I've found the best information for ...
2
votes
3answers
2k views

How can I password protect shortcuts on the desktop? [closed]

I wish to password protect specific programs before they are executed. For instance, I have just downloaded Google Chrome, and have a shortcut for it on my desktop. I am wondering if it is possible ...