The Windows Forms ComboBox control only offers partial find-as-you-type functionality - it only searches for the first letter. For example if you type "c" and "a", don't expect "California" to become selected - instead you'll land on a state starting with "a".
Somehow, perhaps through Firefox, I got used to being able to find items by t...
We are developing a rather large Windows Forms application. In several customers' computers it often crashes with OutOfMemory exception. After obtaining full memory dump of the application moments after the exception (clrdump invoked from UnhandledException handler) I analyzed it with ".NET Memory Profiler" and windbg.
The Memory Profil...
Hi,
I'm trying to redirect to external url from an action method but can't get it to work. Can anybody shed some light on my error?
public void ID(string id)
{
string url = string.Empty;
switch (id)
{
case "DB2FCB11-579F-4DA2-A68C-A6495B9BAAB5":
url = "http://www.somesite.com";
...
I have developed an "object pool" and cannot seem to do it without using Thread.Sleep() which is "bad practice" I believe.
This relates to my other question "Is there a standard way of implementing a proprietary connection pool in .net?". The idea behind the object pool is similar to the one behind the connection pool used for database ...
Let me rephrase the question...
Here's the scenario: As an insurance agent you are constantly working with multiple insurance websites. For each website I need to login and pull up a client. I am looking to automate this process.
I currently have a solution built for iMacros but that requires a download/installation.
I'm looking fo...
I need to use some of the Microsoft.SqlServer.Types library internal classes. This is a .NET dll, which is easily disassembled to the language of my choice.
So far I could copy its code to my application, but this probably makes my application legally unsuitable for distribution (I haven't read the MS Sql Server 2008 licensing agreement...
Can anyone recommend a good open-source .NET neural network library?
Thanks!
...
I am using the following MouseMove event-handler to show the text-file content as a tooltip on CheckedListBox and there is a text-file object tagged to each checkedListBoxItem.
private void checkedListBox1_MouseMove(object sender, MouseEventArgs e)
{
int itemIndex = checkedListBox1.IndexFromPoint(new Point(e.X, e.Y))...
i am instantiating my own ToolStripButton and adding it to a contextmenustrip it pops up but the text gets cut off:
string[] layouts = new string[]{"Test 1", "test 2", "test 3"}
List<ToolStripButton> items = new List<ToolStripButton>();
foreach (string layout in layouts)
{
ToolStripBu...
Hello,
I'm performing an HttpWebRequest against an IIS server.
One of the response headers is Date, which I'd like to parse.
This is its value:
"Sun, 11 Oct 2009 08:16:13 GMT"
How do I parase this string? DateTime.Parse didn't quite work out well for me.
Thanks!
...
During a setup creation process, I am planning to do the following (within a C# Script):
Read the AssemblyVersion and AssemblyFileVersion attribute values of one DLL.
Iterate all DLLs and executables in the project and apply those version to their AssemblyVersion and AssemblyFileVersion attribute values.
Question now is: How to do st...
On a windows system the registry has keys like:
HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx
for locations of dot net assembly folders other than the gac.
Does a non-win mono system have a way of retrieving these or was it just considered not important?
...
I am new to C#.I learnt that normally all threads are foreground until unless you explicitly specify it as "background" thread using IsBackGround= true .
Some doubts popped in to my mind.
1) What is the advantage of keeping a thread as background thread?
2) When executing the folowing code :
static void Main(string[] args)
...
Hi,
QUESTION 1 - What .NET classes should I be looking at to help me read / update some data in a database, but assuming I'm not using LINQ or Entity Framework. That is if you drop back to the core .net framework what are the key classes to use.
In particular something that lets me access data from table X via use of C#/object type ...
I want to add San Storage support in my application. Is there a standard protocol that I can use to communicate with all san storage devices like EMC Centera, Hitachi, NetApp or do I have to use library specific to each vendor?
In a nutshell i'd like to save data on device and read it back. I know these devices can be mounted as drives ...
I have created dll in C# 3.5 which does some memory intensive matrix calculations where matrices get created and disposed a lot. Everything works fine if dll is called from .Net app but if it is called from C++ created app memory usage just climbs until the function that uses matrices is done. I guess there is a problem with a automatic ...
I remember I stumbled upon a page once that said Microsoft has released an application that allows you to test your client applications for windows azure locally.
The application would act as mock windows azure environment and you could use local end points for connecting to it. Does anyone know which application is it or what is its na...
C#'s BinaryReader has a function that according to MSDN, reads an integer encoded as "seven bit integer", and then reads a string with the length of this integer.
Is there a clear documentation for the seven bit integer format (I have a rough understanding that the MSB or the LSB marks whether there are more bytes to read, and the rest ...
Hi folks,
I've got a simple winform. In it has a single TextBox control. In that, i've wired up the KeyPress event. Why? I'm trying to capture everything the user types in that textbox. But, when they hit return or enter, i then grab everything they've typed and send it to a command parser to do stuff.
I then display on the screen (in ...
I'm using Enterprise Library 3.1 for logging exception for some web application. All exception should be written to a single xml file (say Errors.xml) on the same server the application run. The problem that sometime in addition to Errors.xml I see files with names like this: 7b53e14b-4b92-43b5-94a0-09666f1c8c4c**ServerName**.xml where S...