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

Instantiate byte attribute

HelloI have a method that converts a string to byte array but an ArgumentException is thrown when I try to instantiate an attribute with the value returned by the method. I get this message: "Cannot...

View Article


get attachment file name in outlook addin

How to get the attachment file name and file size fromoutlook addin using c#.Brijesh Vaidya India

View Article


String int help!

I want to  be able to write "cm" or "dm"  in the same writeline, but i dont know how to do that.Example: Enter the length : 10 cmthe area is 100 cm2___________________________________________This is...

View Article

Save WritableBitmap to IsolatedStorageFileStream

Is there a simple way to save the contents of the variable WriteableBitmap to IsolatedStorageFile? I am writing a program that processes the pixels in a WriteableBitmap, and then saves the processed...

View Article

DataGridViewComboBoxColumn cell value returning null

I am trying to get a value from a DataGridViewComboBoxColumn cell that is named "Item".When I run the program and make a selection from the combobox, string itemValue always returns "";I am also...

View Article


expandoObject: property get

Hello,I would like to add a property-get to an expandoObject. The name of this property will only be known at run-time. I would like to use this property by reflexion in exactly the same way I use a...

View Article

files from ftp to local csvfile

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Net; namespace FtptoLocalConsole { class Program { static void Main(string[] args) {...

View Article

C#, "dynamic" and compile time checking

I understand the behavior of "dynamic" and think its a great concept, it has several valuable uses.However I don't see why the compiler doesn't try to do SOME type checking on uses of dynamic...

View Article


adding items to list at run time in F#

List<int> primes = new List<int>(); primes.Add(2); primes.Add(3); primes.Add(5); primes.Add(7); Can anyone help me in converting this code to F#

View Article


Why in overloading?

Hi,I implementation operator overloading in c#.I overload '>=' . why i force implementation '<= ' .  :(The comparison operators, if overloaded, must be overloaded in pairs; that is, if== is...

View Article

Run another exe, with arguments, and capture output...

Good day...I've been playing with samples and banging on my head on this, and have given in to ask for help...sighFrom my C# application, I need to run an exe that lives in the %WINDIR% directory, with...

View Article

How to process lines from a memory mapped file and then output it to a text...

Gurus!I am memory mapping a huge, 1 GB csv file, splitting it into 20 equal sized views, and then trying to process each view line by line and output the results into a text file. I have written the...

View Article

creating properties at run-time that can be observed by reflection

Hello,In the sample below is an example class with a set of four properties that I called SiO2, Al2O3, Fe2O3, CaCO3. I would like to create these four properties at run time (or more similar...

View Article


Class to return a list or single item

So I'm writing some code in c# to provision virtual machines in VMware, and i'd like to consolidate my classes/functions as much as possible. What I have noticed is there are times when I know i'm only...

View Article

Winforms - Web Service call - using system proxy settings

Hi, I have a C#/Winforms application installed at client location that is using certain web service (ASMX) calls. However, the application is throwing following proxy error and not able to contact the...

View Article


problem trying to implement a => Lambda into a Linq Query -- how to add...

One procedure calls another procedure and passes a Linq Query (below). I have a standard Linq Query that seems to work OK and uses an orderby clause. I tried to replace the working linq query with the...

View Article

Excel export to textfields in webcomponent.

Hi.I am new to programing but I try to learn by watching tutorials on the web.But now I have got stuck.I have a Project where I have a Excel sheet with 5 columns and different numbers of rows every...

View Article


Which C# project type to choose if I intend to migrate to Azure later on?

I'm starting a C# project which will use C# as the main GUI and a DLL as the calculation motor.Initially I want to create an EXE which will run on Windows computers, but my final aim would be to make a...

View Article

Vertical progress Bar and change collour c# .net4.5 framework

Hello,First things first, i hope i placed this in the good categori.So my question is , how can i make a progressbar vertical?I already found some code public class VerticalProgressBar : ProgressBar {...

View Article

How to hide button in GridView?

Hello all!Simple question as always, but i can't find question.I need to hide some Button, but it doesn't work.ASPX:<asp:ButtonField buttontype="Button" commandname="AddCustomValue" headertext=""...

View Article
Browsing all 31927 articles
Browse latest View live


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