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 [on hold]

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.
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
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
44 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
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
67 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
65 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
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 ...
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
1answer
269 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 ...
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
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
211 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
0answers
138 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
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
125 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
49 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" ...
-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
40 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
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:...
0
votes
0answers
25 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
39 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
81 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
0answers
38 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
335 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
96 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 2010. ...
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 ...
1
vote
1answer
464 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 word-...
0
votes
1answer
143 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
28 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
38 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
152 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
114 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 ...
0
votes
0answers
24 views

Deskband on second monitor?

Is it possible to have a Deskband (taskbar toolbar) to be on the taskbar that is on Monitor #2? (Not the primary taskbar) I have two monitors in extending mode and the default Windows Taskbar on each ...
0
votes
0answers
37 views

How can I send a region of the screen to a TV that is connected to HDMI port ? (by FFmpeg or C# codes or etc)

I need to send a region of the screen to a TV that is connected to HDMI port. How can I do it? Is it possible by FFmpeg or other tools? (Cheap commercial or free tools)