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

Keyvalue pair problems

Hi all I have this code that adds values to a keyvalue pair. It works fine except the first keyvalue pair that returns the value of the last entry in the lexicon (see an example). How can i fix this?...

View Article


Render XLSX file using Microsoft ReportViewer

Hi Experts,I am using the following assembly to generate report in "XLS" format in C#."Microsoft.ReportViewer.WebForms.dll, v10.0.0.0" Sample code:  if(format == "Excel") { deviceInfo =...

View Article


serial port communication using c#

hello, i'm new to c#. i searched for some serial port communication programs in c# and using those i triedto config serial port. it's working but  reading same data again and again. i want to read only...

View Article

calling 32 bit exe from 64 bit app

I have a C# windows appA (exe) that is built with 'any CPU'.In the same application folder I have another C# windows appB (exe) that is built for 'x86' that I want to run as a 32 bit.I have dll's built...

View Article

Issue sending email to outlook.com email id using SmtpClient object

Hi,We have utility function to send email using SmtpClient object. This works fine to send all email ids( e.g. hotmail.com, yahoo.com, gmail.com etc) but not working for outlook.com email ids. It...

View Article


How to tell C# to create a file

Hi Guys,I need assistance in using my software. I have a simple program and i want it to create a file like a simple text document and have the data added from text boxes into the text document. Is...

View Article

Streamwriter to txt file from a text box in services

I am trying to create a WCF service that will enable me to write items (string,int,DateTime) from their respective text boxes into a text file. Also the result will return true when the input is...

View Article

Programmatically attach an embedded resource file to an e-mail message

I have no idea what I'm doing.I am attempting to programmatically attach an embedded resource file to an e-mail message. Here is the snippet:Outlook.Application outlookApp = new Outlook.Application();...

View Article


How to draw an Image from an array in C# or C++

Hi,I need to know the C# equilvalent for the below matlab code.Basically this reads from a file and creates a  X by Y matrix and call imagesc(myImage) to draw the Image.fp = fopen(filename, 'rb');a =...

View Article


Interop.WMEncoderLib.dll

I made a nice screen recorder program that records my screen & sound and saves it as a wmv file. For that purpose I referenced Interop.WMEncoderLib.dll. The program works fine in the IDE. When I...

View Article

How to Write from DataGridView to MS Access Table

I'm running the code below (I have the appropriate references, and Using statements, and stuff).  The code looks fine to me, and when I step through, I got right to the end with no errors, but the data...

View Article

PDF Saving in C# Application

I have created a word document which contain a table  This table contains an image which i hyper-linked it with a link to a sound It works fine in word But when i am trying to save it in PDF, the...

View Article

Require a HttpWebRequest with credential from cookie

Hello,I'd like to raise a question about cookie. I'd like to send a HttpWebRequest through C# code, but the url is required a credentials, I have already logged in this url from IE. Is there anyway to...

View Article


Run 2 tasks independently, when 1 of them could exist or not

Ok, this question may be simple. I have the following code:public async Task Start() { Remux(); if (TransmitEnabled && userLogged) Transmit(); }private async Task Remux() { } private async Task...

View Article

ListViewGroup Header Style

In Win7 system, using VS 2010, is there any way to change the style of ListViewGroup header?! For example: change header font color, subTitle font color... In XP system, it can be done with Win32, but...

View Article


why does the button in a user control have to be clicked twice to trigger the...

I have a simple user control and there is a button in that user control:<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs"...

View Article

Rowspan in ReportViewer Control

Hi,I have a ReportViewer Control in a aspx page.I have one column for which I need to Enable Rowspan.How do we enable Rowspan in a ReportViewer Column.

View Article


How can i cancel/puase/resume a backgroundworker and/or a recursive loop ?

Depending if i need to cancel/puase/resume also the backgroundworker or only the recursive loop.First this is the class where i have the recursive loop:public List<string> webCrawler(string...

View Article

parameters for crystal report.

In my windows application crystal report, i want to retrieve data from database by selecting aDoctor Name and two dates Start and End Dates. In form1 where I dragged a CrystalReportViewer to view the...

View Article

Consuming MSMQ at a faster speed using asp.net C# console application

I currently have a console application that has this algorithmConsume from MSMQ using PeekGet message out from MSMQ , do sql insert statementif insert is successful, get message out from MSMQ using...

View Article
Browsing all 31927 articles
Browse latest View live


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