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

How to sort PDF files in a directory in numerical order by its name in c# [migrated]

Here's what I have tried: var vv = new DirectoryInfo(@"C:\Image").GetFileSystemInfos("*.bmp").OrderBy(fs=>int.Parse(fs.Name.Split('_')[1].Substring(0, fs.Name.Split('_')[1].Length - ...
-1
votes
0answers
18 views

Why card reader stops reading card after 3 or 4 cards process?

I'm working for an intelligent card solution company which is providing intelligent ID cards for different companies. I have developed the application which processes the card data (MOC, Activating, ...
0
votes
0answers
15 views

how to change button click event using code [migrated]

need some help what is wrong in this code protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Button1.ID = "Button4"; ...
0
votes
1answer
26 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
28 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
34 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 ...
0
votes
0answers
7 views

How to add an empty entry to Tar/Gzip archive [migrated]

i want to add an empty entry to my archive, but i have a problem with it. this is my code: using (var outStream = File.Create("d:\\Gzip.gz")) using (var gzoStream = new ...
1
vote
1answer
30 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 ...
0
votes
0answers
26 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 ...
5
votes
3answers
35k 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
60 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
427 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
72 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
92 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
9 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 ...
-1
votes
1answer
88 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
446 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
34 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
54 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
42 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
32 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
84 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
68 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
28 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
45 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
36 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
12k 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
52 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 ...
2
votes
1answer
396 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
17 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
91 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
26 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
48 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
46 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
63 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
201 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 ...
0
votes
0answers
32 views

Rules for accessing perf counters in perfmon?

I wrote a suite of powershell scripts using the .NET API to create, connect, and write to performance counters in perfmon. The whole setup is kind of complicated and probably not relevant to this ...
-2
votes
1answer
242 views

Deleting temp files via C# [closed]

Am trying to delete the temp files via C#. But it throws system.UnauthorizedAccessException. File.Delete(Path.GetTempPath()); How can i fix that issue
-1
votes
1answer
89 views

Upgrading windows 8.1 to windows 10

I am upgrading my PC to windows 10. I have multiple Microsoft products installed on my PC such as Visual studio 2012 pro , Visual studio pro 2013 , Microsoft SQL server 2014 and Microsoft office ...
1
vote
1answer
365 views

C# program sending email, always marked “Suspected Spam” by Gmail

I wrote a simple email program for a client. It sends an email. Just one. No bulk operation here. Yet, every email is marked as "Suspected Spam" by Gmail. I read that there is a statistical ...
1
vote
1answer
3k views

Downloading Themes for GUI in windows application?

Is it possible to download from the net or customize the GUI, or form of a windows application made in Visual Studio? I have tried to make the form better to look at, but i want cool or casual look ...
27
votes
5answers
40k 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
122 views

Start applications via windows task scheduler

I have a C# console application which starts the some of windows desktop applications say for example notepad, Skype. I have created a basic task in windows task scheduler and then gave when i log on ...
0
votes
0answers
26 views

How long does NAT keep a TCP translation field in it's table

I was wondering if I could create a TCP client on machine A and connect it to a remote host (S) and then close the connection from client side and create a TCP listener on the on the same machine ...
-1
votes
2answers
36 views

how to solve “Hyper-V is not enabled”

I am using the mobile emulator to run a UWP demo,but I get the error: the emulator requires the Hyper-V feature of Windows. Enable Hyper-V and then try running the emulator again. However, I can run ...
1
vote
0answers
124 views

Visual Studio Run Starts First Project Instead of Startup Project

In my solution, I have four projects. When I select the Release configuration and click on Run (or hit F5), it starts the first project in the solution list rather than the one I've set as the startup ...
0
votes
0answers
92 views

Microsoft Diagnostic Tool via C# remotely

I need an efficient way to execute the Microsoft Diagnostic Tool Troubleshooting Pack via C# on a remote machine. The criteria for the Troubleshooter is: Run elevated (admin). Run silent. Run ...