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

DoubleClick row in DataGrid Error

Here is the Code I am working with that another member posted to help me out but it is throwing an Error that I just cannot figure out.Thank You for the help!I am thinking it might have to do with the...

View Article


Image may be NSFW.
Clik here to view.

Index was out of range, must be non-negative error

I am trying to get the Print Preview of this database that shown on DataGridView like the image below: But, when I clicked the Print Preview when the database has been shown on DataGridView, I got...

View Article


Image may be NSFW.
Clik here to view.

April's TechNet Wiki C# Guru Winners announced!!

The results for March'sTechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/04/17/the-microsoft-technet-guru-awards-march-2014.aspx <- results...

View Article

UDP client: an exception has appeared when trying to start BeginReceive method

Hi. I wanna create client-server application with UDP protocol. Server works good, but not a client. If server is offline and I trying to start BeginReceive method on client - i get an exception which...

View Article

Skype Call recording and saving sound file c#

i was trying to way out to record Skype call and save it to hard disk. i got a project which does the same job but it was developed with WPF but i am developing the apps in win form. so when i try to...

View Article


Closing the file opened via StgOpenStorage

Hi,How to close the file opened via StgOpenStorage.Example        #region StgOpenStorage        [DllImport("Ole32.dll")]        static extern int StgOpenStorage([MarshalAs(UnmanagedType.LPWStr)]string...

View Article

Convert URL to .Html file and it's stored in Local

hi,i want  coding for an entered URL as converted  to  .html file and its stored into local in windows application please tell the solutionKarthikn.s

View Article

Image may be NSFW.
Clik here to view.

Running Console Application Using Task Scheduler

I have created a simple console application that is looking for "start" or "stop" arguments. I am looking to automate this through Task Scheduler. I have been able to launch the application with Task...

View Article


How to store VarBinary data into BigInteger in C#

Hi Techies,Currently I'm fetching varbinary(max) column data from sqlserver to C# and storing into byte[]. see belowbyte[]  b=(byte[])cmd.executescalar();BigInteger bint=new BigInteger(b);Now i entered...

View Article


DateTime format exception in IIS hosted Application

Hi experts,I have a website hosted on IIS 8 on windows server 2008. I have migrate this site from iis 7 windows server 2003.The website runs under .net framework 2.0 application pool.The problem is we...

View Article

Print Preview

I have print preview button on my view(aspx) and would like to have function for it using Javascript. Anyone can provide javascript codes of print preview for an MVC - ASP.net (c#)? I will appreciate...

View Article

creating picturebox,button dynamically and load picture from click event of...

hai my friends ---------------------I am creating some pictueboxes (3),buttons (3) in one function   it is creating picture boxes,buttons ok loading picture also ok   .. I needone event to write on...

View Article

How CTS can be used to communicate between two lang...is it possible to...

Hi,How CTS can be used to communicate between two lang...is it possible to communicate with java??.Set of rule is inside cls...So Wt makes CTS bigger than CLS..Please any one there to answer in simple...

View Article


SerializeObject

Hi!I'm learning C# and I'm trying to understand the SerializeObject method. I've seen an example in MSDN (URL:...

View Article

pipeline.Invoke(); throws "Thread was interrupted from a waiting state"...

I'm calling pipeline.Invoke() from a vanilla thread. The PowerShell script is empty, and Iam adding no outside objects to the environment. There are no Thread.Interrupts on the thread pipeline.Invoke()...

View Article


Populating one array with elements of another array. Exceeding the length of...

I am trying to take the elements of one array "arr", subtract them one after the other and then populate a second array "newArr" with these values.  For example I have my first array  { 300, 100, -10 }...

View Article

Duplicate 'global::Android.Runtime.ResourceDesignerAttribute'

I am getting the above error when trying to build my project.I have one file named Resource.Designer.cs and another named Resource.DesignerQT.csOne file has this in their code[assembly:...

View Article


how to update detailsview's dropdown field before item inserted?

Hi,I am using EF6.0 and .net 4.5.  Details view is bound to a EF. I have many dropdown fields and they all are bound field. I would like to change value of one of the dropdown ( say "Drp_ELIG")...

View Article

does not contain a static 'Main' method suitable for an entry point

Error1 Program 'c:\Users\Fazer\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe' does not contain a static 'Main' method suitable for an...

View Article

Pass a C# property name as a parameter to an utility class method

Is it possible to pass a property of a class to a method (outside of the class) and then retrieve that property's Description?For example:public class Foo { [Description("Tells whether something is...

View Article
Browsing all 31927 articles
Browse latest View live


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