.net

Split CSV String

How would I split the following string? test, 7535, '1,830,000', '5,000,000' The result should be test 7535 '1,830,000' '5,000,000' I try: Dim S() as string = mystring.split(",") But I get, test 7535 '1 830 000' '5 000 000' Thanks ...

Push Data to Handhelds

We developed a handheld system (WM5) deployed to 800 Engineer about a year ago. Currently the handheld polls a public web-service every 5 min's to check for new jobs, we are wanting to change this and use push technology so when there's a now job its pushed directly to the handheld bit like exchange email. Could you please advice how th...

ClickOnce deployment for solution containing several projects

I have a solution containing several projects, as well as some projects that get copied into subfolders relative to the main application. Is there any possibility to deploy this using ClickOnce? Or should i create a seperate project including references to my built files just for clickonce deployment? ...

Out of Index Error on a System.Collections.Generic.List.Add(Object)

I'm getting an Out of Index Error when adding an Object to a System.Collections.Generic.List Dim myObj As New MyObject Dim List As New List(Of MyObject) List.Add(myObj) The error message are these (translated from my system language): "Index out of Matrix indexes" "Matrix origin wasn't long enough" "Verify srcIndex, size and inferior ...

Reporting tool for Excel

Hi, We are developing a Asp.net 3.5 web application for a rather strict environment. We need to generate reports and export them to Excel. Please suggest some tool which we don't need to install into GAC. Because to install anything into GAC we have to go through many hurdles. ...

How to read a .pdf file programmatically and convert it into audio (.mp3 format)?

I want to parse a PDF file from my C# app and create an audio file off it. How would I do that ? I'm particularly looking for a good pdf to text library or a way to strip a pdf file off its text. ...

Use of the Facade pattern in .NET FCL

Does anyone know if the Facade pattern is used anywhere in the .NET FCL? Thanks Clarry ...

How to design an SMS SENDER using VB .NET

I'm new to VB .NET. I would like to design a sms sender application which could use internet connectivity to send messages to any mobile number. Should I use any messaging APIs? Where should I start? ...

An error message cannot be displayed because an optional resource assembly containing it cannot be found.

Hello, I am working on windows mobile 6, i created one application in VS 2005 using Sqlserver compact sp1.This application running on emulator fine.But when i deply my cab file on real device.i am getting this type of error:- An error message cannot be displayed because an optional resource assembly containing it cannot be fou...

Paint.NET style ToolWindow

Can anyone tell me how to make Paint.NET style ToolWindow(s)? Sorry I don't know if there is some kind of terminology to describe this better. Currently my ToolWindows take focus whenever I click on a control inside of the ToolWindow or the ToolWindow itself. This means that if I click on the ToolBar or the MenuBar in the main form of m...

Email not being sent to certain email addresses using SmtpClient

I have created a simple asp.net email form for a client, which is sending off emails using the SmtpClient class. It is very basic and works in most instances. The form is used in a number of websites but it only works intermittently. The code always works and does not throw any exceptions, it just works correctly but intermittently and ...

Does it make sense to copy an immutable type?

Does it make sense to implement a copy method on an immutable type, returning a new instance? Or should it just be the current instance? I thought the type doesn't change anyway so why copy? Like no one copies the number 5, right? ...

IEnumerable<T> evaluation and unit testing

After reading another SO thread (http://stackoverflow.com/questions/396513/should-parameters-returns-of-collections-be-ienumerablet-or-t), I am of the opinion that a unit testing 'issue' I'm having is probably related to what the thread refers to as "late evaluation". I am passing three different but related flavors IEnumerables from a ...

How to customize Auto Properties in C# 3.0

Before C# 3.0 we done like this: class SampleClass { private int field; public int Property { get { return this.field } set { this.field = value } } } Now we do this: class SampleClass { public int Property { get; set; } } (Look ma! no fields!) Now if I want to customize the Getter or the Setter, the field must be explicit...

Does CLSCompliant attribute care for older versions of .NET languages?

For instance, I read that visual basic .net didn't have operator overloads before, so wouldn't be able to use a types overloaded operators, if they aren't provided as normal methods too (Add, instead of operator+). Now that VB has this feature, would CLSCompliant attribute care if you have normal static methods like Add, Subtract instea...

[NHibernate]How can I map multiple object types to one table?

My object model represents a podcast feed, with channel data and feed items (individual podcasts). This is structured as follows: PodcastFeed ChannelData // Property on PodcastFeed ITunesChannelData // Property on ChannelData FeedItems // Property on PodcastFeed; collection of PodcastFeedItems PodcastFeedItem ITune...

How to relay dataset/datatable from Tomcat to a .NET application ?

I need to provide data to a DataTable in a .NET application from a servlet hosted in Tomcat. It seems tempting to just stream back XML the .NET application can just pupulate using DataTable.ReadXML. Is that the proper road to go down ? And not the least; are there existing Java components that can help me with this on the Tomcat side ? ...

What are the best Visual Studio extensions?

Possible Duplicate: What is your favorite Visual Studio add-in/setting? I'm wondering what are the extensions that you love or can't live without? I know for me I'm a huge fan of Resharper ($) GhostDoc (Free) Copy As HTML (Free) What other greats are out there? Mark them as free or not as well... ...

Why does compact framework WebBrowser control load pages in opera?

Hi There, I need to be able to display html files that are stored locally on device using a WebBrowser control on a windows form. I simply point the WebBrowser to page like so : ctrlBrowser.Url = new Uri("file://\\My Documents\test.html"); The pages load perfectly into control excepet for a windows mobile 6.1 device that has oper brows...

Using the Fitnesse Test Automation tool to test letters generated with StyleVision

We use Fitnesse sucessfully to test the majority of our companies application. However we have to test the letters we generate using StyleVision manually. I was wondering if anyone has an automated approach to testing letters generated using Stylevision. It does not have to be with Fitnesse but it would be great if it was. Any help woul...