I have a whole bunch of string that are supposed to represent MIME types. However, some of these string have bad/invalid MIME types. Is there a way in the .NET framework to get a list of valid MIME types?
...
How can I click a Button in one form and update text in a TextBox in another form?
...
I have a large regular expression and I've turned on IgnorePatternWhitespace so I can make it more readable. My problem is that I want to match a literal space character. What's the best way to do that?
An example:
Regex myRegex = new Regex(@"
(?> <table[^>]*> ) # Find a table
(?> .*?<tr> ) # Find the first row
(?> .*?<th> ) # ...
I need to create a flexible (and preferably dynamic) scoring engine, much like a credit scoring or premium calculating system. Does anyone with practical experience of creating a scoring engine have any advice, examples or suggested patterns?
I already know about:
Rete Algorithm
FICO
The open source rules engines listed here
Thanks...
say I display a datatable on a datagridview, then the user sorts it, and selects a row... I want to do something with the original datatable to the same row... but the row indexes in the datagridview and datatable are now out of sync. How should I be doing this?
...
I have a application that generates a couple of different mails. These mails are currently build up using a string builder that generates a HTML based string that is the mail content.
This approach is getting messy. The code is objects mixed with HTML, etc, etc. What I'd like is to have a template similar to the one used in for example ...
I would like to take a string representation of a set and parse it. Does anybody know of any pre-existing libraries?
I can write the regular expression to match these patterns, but it doesn't seem to me to be a very efficient method of doing things. Also some edge cases will allow certain strings to pass which shouldn't, and I'm probabl...
I need to store an array of flags in a string. I was looking at using BitArray, but noticed that there is no built-in method to write to/read from a char[] or int[] or something. I can write this code easily enough, but I'd prefer to use a built-in method if there is one out there.
So are there built-in .NET methods that handle this?
...
List(Of T) stores data indexed by integer
Dictionary(Of String, T) stores data indexed via string
Is there a type or generic or specialized something that would let me access an array of T by either an index or name?
...
What is the proper way to set the Company Name and Application Name in a ClickOnce Application?
I have a set of projects in a solution called RecordNavigator.
The GUI project is called RecordNavigator.Gui
When I publish the app - I want the Start menu to have a folder called Tyndall Software and the application shortcut to be called ...
I have a textbox on a Windows Forms UserControl that I am trying to update the contents of from elsewhere in my solution.
I am dynamically adding the UserControl to my form, and I have a static Instance property on the UserControl so that I can access it from a referencing library.
I have excluded double-lock checking here for brevity....
I'm trying to embed a pdf viewer in a WinForms Control in such a way that I can display the pdf to the user within the context of my application. I also need to prevent the user from copying text, printing, or saving a copy (sensitive data).
Thus far I've tried using a WebBrowser to host the Acrobat Reader activex control. This gets m...
How to programmatically control multiple browsers (aXWebBrowser control), from a single winforms app process, targeting the same remote website, but each browser living in its own session scope with the remote site?
Goals
- Build an application which automates use of a website. The goal is for the application to do the work of up to 5...
Hi, I am working on a simple FOSS VB.net program that operates mostly in one window( http://code.google.com/p/slotshuffle/ link if anyone would like to help review the code or or wants to see for reference).
I have searched online for ways to notify users of an updated version, and most of them involve changing the method of deployment...
Is there a "for Dummies" guide to subreports? I am having a hell of a time trying to figure out how to get this working. All of the guides I have found seem to summarize how to set it up, but I can never get it quite working properly.
What I want to do is print a master record and all included child records. I have a view setup for both...
In C#, the result of Math.Round(2.5) is 2.
It is supposed to be 3, isn't it? Is this a C# bug or something?
Thanks!
...
I have a windows forms application on a client machine. I am trying to log in via telnet, shut it down, update some files, and restart it.
Using cmd on the client machine and typing in MyApp.exe works great to start it. But if I do this in the telnet window something odd happens: The application starts in as far as it is now in the pr...
I would like to have a configuration section like the following:
<mycollection>
<add name="myelement" type="class, assembly" var1="value" var2="value" />
<add name="myelement2" type="class2, assembly" var1="value" var3="value" var4="value" />
</mycollection>
The idea being that the actual ConfigurationElement created is defined by t...
What I'm looking for is functionality similar to Google desktop. When you hit Ctrl twice rapidly, a little search box pops up.
I've tried using a fairly heavy keyboard hook class that I found somewhere, but that kept giving meunpredictable results (ie first time it would work, then I'd press Ctrl once, and it would raise the key presse...
Hi,
I am trying to fix an ASP.NET application that is also written is VB and uses session variables to store the information from the logging page. In Firefox, the application runs just fine, but in IE (I am using IE 8), when I summit the logging credentials, the session variables become empty (takes me back to the logging page).
The ...