I'm mainly a flash and PHP web developer. I have been trying to learn some new languages and I thought it would be good to use VB.net for my introduction to .NET. However both online and offline I find a lot of elitism going on with VB being considered an inferior language when compared to C#, Java etc.
Is VB.net really that bad a prog...
Hi folks,
I'm trying to read in a hardcoded bitmap image into a bitmap object. I keep getting the same error:
System.ArgumentException: Parameter is
not valid.
This is the code i have...
const string fakeByteData = "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUV...
Hi ,
This is a doubt regarding the material published in the
following link
"http://confluence.public.thoughtworks.org/display/CCNET/Integratio+Queues"
which tells that "The default behaviour of CruiseControl.Net is that
each project defined in the configuration is given its own integration
thread, thereby allowing differently nam...
Can a single WCF service offer multiple interfaces, and if so how would you express this in app.config?
I mean one services offering several Interfaces on one endpoint.
...
In any DBMS that's more than half-baked, there is a distinction between a read lock and an update lock. In my multi-threaded C# code, I have, to date, used the lock keyword, but today it came to me that performance in my application would be a lot better if I could make this read vs write distinction in locking; I have many threads that ...
I have a general question, and curiosity about LINQ and timeouts.
I have a live application running and I am receiving timeouts on the following code.
The following code, which is normal, and I don't see anything wrong:
private static tblUser GetUserLinq(string email, string password)
{
DataContext db = new DataCon...
It may be a beginner question but I want to know,
What is the basic difference between Remoting or WebServices?
Which one is better?
...
Hello,
When starting my application, I have a couple of classes which are required to read certain files in order to create a set of default data.
The logical place (to me) to do this is in a Shared class constructor; the idea would be to throw a class-level event if the reading of the defaults file fails. Unfortunately, this does not ...
Hey guys, a couple of us are looking for a collaborative name to work under when developing OpenSource products. The first of which will be an MVC CMS which is designed to be as usable as possible (no admin system all editing done inline).
So can you help us name the two:
OpenSource Organisation - mainly dealing with .net and mvc solu...
I am looking for a local, relational datastore for a .net application.
The datastore should ideally behave as a basic database with SQL for data retrieval and definition and transaction capability. It should not need a server and be easy to redistribute (i.e. only need a dll in the app to access a single db file).
No support for access o...
Hi,
I have a program which i should ensure that a URL exist or not, if exists in the database, i should select the ID if not i should insert it to the database.
I have a question, Is GetHashCode is a good approach to save the hash code in the database and just compare the hash codes? Can I be sure there is no exception which 2 or more ...
Hi everybody,
I need to implement a drag&drop mechanism between a C++ .NET application and a Java GUI, in both directions. Is it possible with some standard API or do I need some custom library?
...
How can i use second method instead of first?
first (web user control)
public void Remove()
{
int count = this.ListBox1.Items.Count;
for (int i = count - 1; i > -1; i--)
{
if (ListBox1.Items[i].Selected)
{
ListBox1.Items.Remove(ListBox1...
Hi
I have an XML doc:
<statuses>
<status>
</status>
<status>
</status>
</statuses>
I have parsed this into an XDocument, and want to use LINQ to select the elements into a strongly typed collection of Status classes (all status elements are simple types, either string or int).
Any ideas how I can do this?
Thanks!
...
How do I sign a file using .NET and how do I then validate that the generated key is a valid one once I read it?
My goal is to have a text file with some values and a generated key. I then want to be able to check that generated key in the file to make no one has tampered with the values in the file once I sent the file to a customer.
...
I have the following JavaScript code as a string literal:
var $Page = new function()
{
var _url= 'http://www.some.url.com';
this.Download = function()
{
window.location = _url;
}
}
Is there a way I could get the value of the _url variable from my C# code? An open source library perhaps? I did this using a Regu...
I'm trying to use an unmanaged C dll for loading image data into a C# application. The library has a fairly simple interface where you pass in a struct that contains three callbacks, one to receive the size of the image, one that receives each row of the pixels and finally one called when the load is completed. Like this (C# managed defi...
Hi,
I have a managed directx 9.0c application that fails to run on some low spec machines (ones without graphics card).
I am wondering if anyone has any suggestions with regards to the minimum directx caps to test for so that I can catch a potential failure before trying to run the application.
The directx application only displays a ...
I have a .net 3.5 application that I'm running over an intranet and as far as I know it should "just run" over a mapped drive but I get a SecurityException type "FileIOPermission" this happens when I call
File.Open(mCurrentFile, FileMode.Create, FileAccess.Write, FileShare.Read)
I can create files on the mapped drive so i do have wri...
I´ve lately been thinking about the things i´m returning from methods and I noticed that there are 4 different things i return when the method fails.
What bothers me about it, is that my code is not very consitent in this regard, so i wanted to ask about your "best practices".
So lets imagine a method that takes Foo and returns a list...