.net

webinar recordings aggregator site / feeds?

Conferences are expensive, but thanks to the kind community, many of the videos are recorded and made available online afterwards. They are amazing way to learn the latest and the greatest but they are sometimes hard to find. Where do you find the latest recorded online seminars? Are there any webinar aggregator site / feeds? ...

Serializing an object to POX string, then deserialize back to Object

I am working on integrating an application in to Zendesk (zendesk.com). My problem is that their webservice accepts JSON or POX. So i have a class "Ticket" and "TicketField" that look like this: [XmlRoot(Namespace = "", ElementName = "ticket-field-entry")] public class TicketField : IXmlSerializable { public int Id; public st...

visual foxpro connection string

hello, i have to extract some data from a foxpro database. I found a sample app that extracts data from a sql server db and stores the connection string in the app.config file in the following format - <connectionStrings> <add name="test" connectionString="Data Source=localhost\SQLExpress;Initial Catalog=test;Integrated Sec...

.NET Runtime Error in Event Log, P fields

A service we have is occasionally crashing on a test PC. We are getting some information in the Event Log, a ".NET Runtime 2.0 Error" with some details. I've determined that P1 is the executable, P2 is the version, P5 is the .NET Runtime, but what are the rest of the fields (P1-P10)? ...

ODP .NET TNS:no listener

I'm currently trying to connect to an Oracle database. I can connect fine on my development machine, but when I deploy to my Win2k3 sp2 server I get the following error. Faile to open connection... Oracle.DataAccess.Client.OracleException ORA-12541: TNS:no liestener at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 err...

Overwriting Constructor of a class from outisde

So, the question is simple to aks: How can I overwrite the constructor of a class from the outside. The Problem itself is, that i have a class which is already compiled, and it already has some constructors, but those idiots of coders removed a constructor, so i am now unable to XML(de)Serialize it... So what they have done is this: The...

Continue for NullReference exception

Thanks to all. All ok. But i thought that in that way CreateInstance i can achieve transparent background in my png images. With PictureBox1 nothing works. Anyone can help? My code for transparent redraw paint e.Graphics.DrawImage(paint, x, y); Thats my code: ControlType = "WindowsFormsApplication1." + "PictureBox1"; System.Reflection...

How do I create an "unfocusable" form in C#?

I'm looking to create a form in C# that cannot accept focus, i.e. when I click a button on the form, focus is not stolen from the application that currently has the focus. See the Windows on-screen keyboard for an example of this. Note that when you click a button, the focus is not taken from the application you're currently using. How...

Is there something analogous to Qt::QueuedConnection in .NET?

In Qt, there is a nice idiom to have each object associated with a thread, so that all its event handlers will only run in that thread (unless called directly, of course). Is there anything even remotely like that in C#/.NET? If not, how would you start writing your own? Example: // threaded.h #include <QThread> #include <QDebug> #in...

Reg Ex negation

I am using .Net. I want to match last name which has charecters other than a-z, A-Z, space and single quote and len of charecters should not be between 1-40 . The string that has to be matched is a XML look like this <FirstName>SomeName</FirstName><LastName>SomeLastName</LastName><Address1>Addre1</Address1> I wrote regualr expression b...

WebForm validation in Biztalk

I point out that I'm completely a newbie about Biztalk. I have a C# application (.NET 1.1) with a simple webform. When the user submits this form, I should perform the following: the webform invokes Biztalk2002 with the value/s of one or more texfield/s Biztalk checks if the value of the field passed is correct Biztalk returns a messa...

Getting SQL Server timeout error with correct credentials, immediate rejection with (deliberately) incorrect ones

This is a baffling one. My ASP.NET 3.5 app that was working fine suddenly started getting timeout errors... System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding ...but only for requests with the correct username/password in the connection s...

For a user control with a listbox, how can I expose the selected item to a parent page?

I have a simple user control which wraps some logic around an AutoCompleteBox. This question could apply to any ItemsControl control like a dropdown or listbox though. <UserControl> <Grid Background="White"> <sdk:AutoCompleteBox Name="myACB" ItemsSource="{Binding myData}" /> </Grid> </UserControl> I want expose the Sel...

NavigationService.GoBack(); question

Hi there, When I call NavigationService.GoBack(); it doesn't reload the page. For example I have Page 1 which is my Login page, then I Navigate to Page 2 to the Settings Page. When I have saved my Settings on Page 2 I wish it to Navigate back to Page 1 and show the new settings that are displayed. Is there any call I can make where th...

How to Attach the Events of an Original Object to a Deep Copied Clone

Following up on my question yesterday to deepcopy an object with events in C# and attach the events of the original object to the Cloned copy is pretty easy, you just set the Event declaration in the Copy = the value in the original. Deep Clone when events are attached How do you do this in VB.Net? (Using .Net 2) I was hoping maybe the...

Regular expression to check for special characters except space

I want to check for special characters in a string EXCEPT spaces and delete them. Ex: input = "Oh Boy!!#$" output = "Oh Boy" Can someone help me with the regular expression to implement this in C# ...

How to fix CA2000 code analysis error on new DataTable instance

How to fix CA2000 code analysis error in following function on statement DataTable dtSummary = new DataTable("Summary");? CA2000 going off If I use using block on dtSummary and I can't use using block in below function becuase some other function is going to use return datatable from GetSummaryReportTable function. private DataTable Get...

WPF toolkit Accordion control appears to not use UI Virtualizing. Is there a way to get it to use UI Virtualizing?

I am using the WPFToolkit Accordion control with the items in the accordion defined to be a TreeView. For context, here is the relevant part of the XAML: <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True"> <layoutToolkit:Accordion DockPanel.Dock="Bottom" HorizontalAlignment="Stretch" ...

Minimize LINQ string token counter

Followup on answer to an earlier question. Is there a way to further reduce this, avoiding the external String.Split call? The goal is an associative container of {token, count}. string src = "for each character in the string, take the rest of the " + "string starting from that character " + "as a substring; count it if it s...

Improving speed of queries/processing of RegExp function with two database tables

I have a program with a function that retrieves a relatively short text string from one SQL database table ("html"), runs a number of regular expression queries on it, and then stores the output in another database table ("profiles"). "Html" has about 8 million records and "profiles" stores only the results. It is currently very slow -...