Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

Load large nested xml file into sql server tables using Custom XMLTextReader...

Hi, i have insert a huge xml file (2 GB size) to sql server database. The xml file is nested with child elements. The data should go to 3 different tables. I searxhed on internet and arrived at...

View Article


How to copy files from one folder to another and also how to delete files...

Hi,I have never done .Net coding but this is my project for work. Can someone please help me with this?I need to create a .Net application which will have to accept 2 parameters Archive or Clean Job...

View Article


SQL View and Linq

I have a SQL View that looks like this.  I want to use this view in Visual Studio C# BUT parameterize the date field.  I can't group on that date field because there could be 20 different dates in,...

View Article

Windows Phone 7.1 shake gesture

HI,  How can I use " Shake gesture " on windows Phone 7.1, to navigate to an other pages randomly ? 

View Article

working FFT c# project

does anyone have a working c# FTT project they can email me ?

View Article


Calling Stored Procedure with C# and Entity Framework

I am trying to run a simple stored procedure using a c# application I am writing that is using Entity Framework. Here is my stored procedure:ALTER PROCEDURE [dbo].[spupdTblAlertBySiteAlert]...

View Article

IF & Else condition in C# with SQL

Dear All,  i have wrote the condition in C# with SQL. The condition is select data from table, if the ID is not found or empty in table then insert the ID into table else update the ID Qty and Insert...

View Article

MSDN C# IDictionary Example and Dictionary

Hi MSDN,With reference to MSDN C# IDictionary Example http://msdn.microsoft.com/en-us/library/s4ys34ea(v=vs.110).aspxThe IDictionary example works the same way when you replace IDictionary with...

View Article


Catch device events when device driver is not present

I have a simple console application which fires event whenever a device is plugged in to a USB port but it doesn't fires event if the device driver is not installed. Help me please.Following is my...

View Article


Trouble updating access database C#

Hi,I'm trying to update my access database using some variables from textboxes.Here is the code I am trying to use:private void InjectSqlData2() { OleDbConnection conn = new OleDbConnection();...

View Article

c# pick up EM Microelectronic

how do I program a c# program to use the computer build in antenna to pick up electrical magnetic field and to send out electrical magnetic field?  

View Article

Regarding event processing

Hi,I have a question marked belowhttp://www.codeproject.com/Articles/29674/How-To-Access-a-User-Control-from-Another-User-Con?msg=4725547#xx4725547xxAny explanation?Regards.Please remember to mark the...

View Article

How do i convert it to a hex byte array?? ......

Something like this : hex string--------E8E9EAEBEDEEEFF0F2F3F4F5F7F8F9FA  To something like this :  byte[] key...

View Article


Cannot implicitly convert type 'void' to 'string'_

public sealed partial class Page4 { public void Sum1() { int num1 = int.Parse(txtpnum1.Text); int num2 = int.Parse(txtpnum2.Text); int sum = num1 + num2; } } public sealed partial class Page4 : Page {...

View Article

Taking file from one server to another server using c sharp

Hi All,I have two servers with static IP, out of those two one is client server.I want to bring some files(.bak file) from client server to our server in my console application.private void...

View Article


Inserting records into a .xlsm excel workbook

HiI am trying to update an existing excel template using .aspx.cs file. I am using VS 2010 SP1 as the development environment. I have MS office 2010 and 2003 installed on my PC.The code below works...

View Article

How to stop a looping messagebox ?

I got a textbox in which there's a score set to 50. Whenever I press a button, I want it to minus 1 from that textbox and place it to another, so that the ending result after pressing the button one...

View Article


How to use "posdm.exe" to register a Service Object(SO)?Thanks

After I use this command to register SO, I still can not open a com device through tool "Microsoft POS Tester". Can you help me?    1.  I have used "posdm addDevice", "posdm addName".    2. Error...

View Article

Recorded MP3 file does not play from web server.

Hi,I have two mp3 audio files on my windows 2008 server, running IIS 7.5, but one file does not play correctly. File 1 (Does not play/stream from web server):I recorded a mp3 audio file "record.mp3" on...

View Article

Windows Service to run a function at specified time

I have created a windows service and i want it to call a function at specific time like say 7pm . How can i do that? Any help will be appreciated. The code is as followspublic partial class...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>