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
21 views

Search through a large text file and get the line numbers which the text is found [closed]

I need to be able to search through a text file and need the output the line number which the email address I searched it for is on. I've experience a few recent data breaches and I need to: check ...
-1
votes
0answers
27 views

C# Detect global Keyboard Hook [migrated]

Its incredibly easy to write Key-loggers in many languages. It makes me a litter nervous because these small, unknown viruses wont get detected by most(read: all) antivirus'. I'm curious how to ...
-1
votes
0answers
9 views

Namespace + String [migrated]

I want to combine a namespace and a string so that I can animate the background of a Form. for (int f = 0; f <= 10; f++) { BackgroundImage = Properties.Resources._(f.ToString); System....
-2
votes
1answer
24 views

Please Help. Converting 24 bit image to 8 bit [closed]

How can convert an 24 bit jpeg image to 8 bit jpeg in vb.net? help please.i keep getting a 24 bit image when i save.
0
votes
1answer
155 views

How to create thumbnail of any file format in asp.net?

I am trying to create thumbnail of .docx, .excel, .pdf etc many format. I have problem how to create thumbnail of dynamic content in web form of asp.net.
2
votes
0answers
32 views

How do you open a C# project in VB, using Visual Studio, so VB and C# programmers can both work on the same project?

It was a promise at the start of .NET, almost 20 years ago. We were supposed to be able to work on the same project as a team, not matter which language we used. The initial attempt was so bad, due ...
0
votes
1answer
23 views

How to make self extractor exe without close and cancel button using 7 zip?

I want to make a self extractor exe using 7zip. I dont want close and cancel button in the extracting window. I am able to make extractor but its without the progress dialog. command: COPY /Y /B ...
-1
votes
0answers
18 views

How to display the OC (actual) CPU frequency in c#

I want to do the get the actual frequency of the processor, but when I try to take it from WMI and Win32 Processoralways returns to the default clock, even if I take the MaxClockSpeed. Actually I ...
1
vote
1answer
18 views

Visual Studio 2013 missing Call Hierarchy

I want to open the Call Hierarchy of a property or method using C#. According to this I should just right-click on a Property and call the operation. But I do not have it in my context-menu I also ...
0
votes
0answers
30 views

Windows PowerShell version 3.0 doesn't support installation of an exe

I am trying to install an exe using C# code (.net framework 4.5) and PowerShell script in remote machine. The remote machine's OS is Windows 7 and its PowerShell version is 3. The exe has been moved ...
0
votes
2answers
1k views

How to set output of FFmpeg to output of a video card instead of a file? Is this possible?

I have an UltraStudio-SDI video card and I can capture with this command: ffmpeg -f dshow -video_size 720x576 -framerate 60 -i video="Decklink Video Capture":audio="Decklink Audio Capture" -r 30 -...
0
votes
0answers
24 views

C# released project : project.exe doesn't do anything

I have a Console Application C# project, it runs fine in Debug mode, and I released it. The .exe file it created located in bin\release doesn't seem to work, it just changes my cursor to an arrow and ...
0
votes
2answers
46 views

Cant open corrupted .cs file

So my computer crashed while Visual Studio 2012 was on and my .cs file got corrupted. In Notepad++ there are just many 'NUL' words in black font and in simple notepad just white spaces, file had taken ...
0
votes
0answers
11 views

Could this shell extension program have corrupted anything(even temporarily) now that i've run it?

I am not sure where if anywhere, to post this question. I was reading an article recommended on a Stackoverflow answer, it suggested a series of article including http://www.codeproject.com/...
0
votes
0answers
52 views

Integrating IM applications with outlook 2013, user's presence not enabled in Contact Card

I have implemented the IM Client (32 bits) for Outlook 2013 (64 bits) as per article "https://msdn.microsoft.com/en-us/library/office/jj900715.aspx?f=255&MSPPError=-2147217396". I have implemented ...
27
votes
5answers
41k views

How do I add formatted code to a Microsoft Word document?

I need to write a document in MS-Word 2007 that contains a lot of examples of VB.NET and C# code. What is the best way of getting the code to look reasonable in the document? What styles etc do ...
0
votes
1answer
44 views

What happens if I map a drive multiple times?

I have a drive mapping function called MapDrive which takes the necessary information to map a network drive (path, drive letter, user/pass). What happens if my code calls this function multiple times ...
0
votes
0answers
33 views

Server in Visual Studio 2015 Enterprise Edition

How do I set up a server in Visual Studio 2015 Enterprise Edition where I can deploy my C# applications on to that server? Like how Netbeans has a Glassfish server.
0
votes
0answers
68 views

Command prompt begins running .exe files but then stops working

I've been attempting to run some easy hello world programs on my command prompt in c++ and c# but after I compile them and attempt to run the .exe files the command jumps a line like it's going to ...
1
vote
1answer
66 views

Centralized management of app.config parts for self-hosted .NET services

What will be the best way to handle these scenarios, if they are not one-time, but regular: Self-hosted services on a quite a bunch of machines are needed to be repointed to different database in a ...
6
votes
3answers
40k 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. ...
0
votes
1answer
272 views

Connect database in another computer

I cannot connect the database in another PC. I already disabled the firewall and followed the instruction in another forum. Should I install software or third party software to connect the database ...
2
votes
2answers
432 views

Recover Visual C# 2010 Project [duplicate]

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
2answers
1k 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 ...
1
vote
1answer
168 views

How to search for C# source code files in Windows File Explorer?

I'm trying to find some lost C# source code files on an old external drive. I believe the file extension for C# source files is .cs. When I enter in the search file *.cs and begin searching, I find ...
0
votes
0answers
140 views

Host “my ip” is not allowed to connect to this MySQL server

I have hosted my MySQL database on https://www.000webhost.com/ . I tried connecting the same using C# code , but getting error like Host "my ip" is not allowed to connect to this MySQL server . Please ...
0
votes
0answers
15 views

Issues with Viewing Markup in Visual Studio Development Environment

I have inherited a project from previous developers who left me zero documentation, and I am trying to figure out what is going on with the code in the projects I am reviewing. The projects are ASP....
-1
votes
1answer
212 views

C# console Application with DB

i have c# program connected to SQL server and it is working very good but when i am trying to install this program in other PC it doesn't work unless SQL installed the data base is very simple .. i ...
1
vote
1answer
2k views

What is .NET Multi-Targeting Pack?

Installing Visual Studio installs bunch of .Net packages called .NET x Targeting Pack .NET x Multi-Targeting Pack .NET x Multi-Targeting Pack (ENU) Where "x" is stand for the .Net version number ...
0
votes
1answer
72 views

Mounting VHD, but not to a drive letter

Can I mount VHD so I can access it from my app, but not as a drive letter. I need to access some files from my app (C# apps), but don't want it to be visible in Windows Explorer.
0
votes
0answers
126 views

Access BitLocker drive from within .NET C# Application?

Can I open a password protected drive just from withing my .NET C# app? I need to unlock & access files from app, but not visible from Windows Explorer. I need some encrypted app only virtual ...
0
votes
1answer
90 views

How to export each Excel sheet to each page on PDF?

I want to export specified Excel sheet to specified page on PDF. For example, Sheet1 from Excel to Page1 on PDF. Sheet2 from Excel to Page2 on PDF...so on. I know how to export whole Excel book to PDF ...
0
votes
0answers
50 views

How to post only selected checkboxes to Controller? MVC

How can I post only selected checkboxes value to Controller in MVC? I've a list of checkboxes which generating with foreach, here is code: @foreach(var item in Model) { <input type="checkbox" ...
0
votes
3answers
103 views

How to access SQL Configuration Manager

Upon checking the programs installed on my machine, it says that I have SQL Server 2014 installed. However I can't access the Configuration Manager in the "All apps" of the start menu to make a ...
-2
votes
1answer
89 views

Visual Studio 2015 Setup.exe [closed]

I'm a very novice user of Visual Studio 2015 but I created my first windows form application recently. I published the application to a thumb drive and I can install it on my co-workers mac's that run ...
0
votes
0answers
30 views

Install Windows 8 update on Windows 10

I am creating a program in C# that uses Novation Launchpads, which are MIDI devices. Therefore I am using the functions midiInNumDevs and midiOutNumDevs and I am trying to make the program ...
2
votes
1answer
67 views

Standard Bar code device

I have a library system project and I'd like to ask if there is a standard bar code device for all books (new and old ones). thanks for any helpful answers.
0
votes
1answer
41 views

installed Software Version [closed]

I am developing software which is distributed through setup (Create with old Visual Studio 2003) and which is AutoUpdated through an AutoUpdate I created. This AutoUpdate replaces new files, updates ...
1
vote
2answers
15k 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, ...
1
vote
1answer
67 views

Different structure when I copy text from PDF

When I copy and paste text from PDF, it shows different than it appears in the original. For example: In the original is "Hi my name is Victor and I am 23 years old". When I copy and paste the text:...
2
votes
1answer
418 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
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 ...
0
votes
0answers
26 views

Connect two applications/devices through web service

I want to send commands from one application (e.g. running on mobile device) to another application (e.g. running on embedded device) which is located in a different network. I don't want to use VPN ...
0
votes
0answers
136 views

how can I redirect my network traffic through tor network

I have made a app that will send data to a server but due to confidentiality of the data of my clients , it needs to be anonymous so I thought of using TOR network and I know TOR doesn't work with ...
0
votes
0answers
40 views

Is there any way to connect to a gsm modem wirelessly with c#?

Is there any way to connect to a gsm modem wirelessly with c#? I mean without using a USB cable, with WiFi or Bluetooth so I can manage SMS and calls from my application.
0
votes
0answers
63 views

MSSQLLocalDB first connection has long delay

Using LocalDB before VS 2015 has always been fine, no delay whatsoever, however after upgrading to 2015 it now takes an awfully long time to connect to a database running from a .mdf file. My process ...
-2
votes
1answer
54 views

What is a good tool to navigate large C# code base [closed]

I am working on a large c# code base. I would like to know what is a good tool for code navigation? e.g. find out which class inherits a particular interface? where does this method get called? ...
1
vote
1answer
82 views

Windows 8: Launch application on logoff

I created an application (.NET Windows Forms) which shall be launched after a user presses the "Logoff" key in Windows 8. I created a gpo in my domain environment which works in Windows 7. However, ...
0
votes
4answers
6k views

Is there a way to get a new registry recognized without rebooting?

Is there a way to get a new registry recognized without rebooting? I'm adding HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLinkedConnections
1
vote
1answer
242 views

Running C# files out of Google Drive

I like to be able to code on both my laptop and desktop (both with Win 10), therefore I have Google Drive to sync my files between the two. My first issue was that the user folder on both computers ...