Possible Duplicate:
count vs length vs size in a collection
Am I overlooking a semantic difference between "Length" and "Count", or did perhaps some implementation detail in the .NET Framework require different names for these similar concepts? Given the close attention that was paid to naming and everything else in the framewor...
Is it possible to force an interop assembly to reference a local copy of its associated COM DLL?
Here's the scenario:
I have a .NET app that references an interop assembly (Interop.OTAClient.dll), which is the interop for a COM DLL (OTAClient.dll, which is the automation API for HP Quality Center). I'm not very knowledgable on COM, but...
Hello SO-Followers,
I have a Form with a TabControl on it.
Onto the TabControl TabPages are dynamically added (FYI: It's about configuration settings for different dynamical loaded modules).
Now I would like to have a way to get the Form - and/or the TabControl on the Form - to adjust its size according to the size of the added TabPag...
I started to play with .net Facebook API on a desktop app. I would like to do a simple reader of secret group forums. Does anyone know if it's possible to retrieve it?
I found a way to post comments, but retrieving comments needs xid ad filter and I'm not even sure if it's the right API. Any suggestions welcomed.
...
I have recently taken over responsibility for a C# project that uses MailEnable to add some very basic email support between the multiple users of this bespoke software.
The previous developer had left it in a state where I could build the software and, from 2 machines, run up a multi-user session and initiate a MailEnable-driven email ...
how can my .NET application be informed that an application is about to be executed on the system ?
how can I then prevent if I want that application from executing ?
...
We use a software from another company for one of our products. A developer from that company is kinda 'old' and works in C (no offence). We work in .Net 3.5 (C#).
He asked me if it is possible, with the same source code (presumably in C, maybe C++), to create an assembly that he could compile both a managed and unmanaged version.
Ar...
My C# debugger is not working properly. It skips break points and line of codes sometimes. I have checked the configuration manager. I have even tried adding my projects to new solution files. Can someone please help me?
...
I want to provide the table name for a query as command parameters, like so:
public class Foo
{
private const String myTableName = "mytable";
public void Bar()
{
NpgsqlCommand command = new NpgsqlCommand("SELECT * from :tableName", connection);
command.Parameters.Add(new NpgsqlParameter("tableName", DbType.S...
how can i disable compiler optimization in c#??
...
I am adding some checkboxes dynamically during runtime, and I need to know whether they are checked or not when I reload them next time.
I load the checkbox values from a list stored in ViewState.
The question is: when do I save or check for the value of the the Checked?
I tried the event dispose for the check box and the place holder I ...
Hey all,
I have written a VirtualPathProvider to change how aspx pages are loaded into my ASP.Net application. As part of this process I have removed Code-Behind files and I am simply ascerting that my page inherits from a particular page class.
eg:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Namespace.PageClass" %>
If I...
Hi,
There is probably a really straightforward answer to this but I'm having difficulty finding it.
Simple, I have a TreeNode and I would like to make its visibility false. (or another way of not allowing it to be shown until required).
Edit - Another Question?
I'm confused as to how there isn't a Visible attribute but then there is ...
How to get a fully qualified path to MS Explorer in .NET?
The path will be used to launch a new instance of MS Explorer with some command line parameters.
...
Where can I find a good APR calculator function for UK business..
...
I want to add custom typed properties to a webcontrol, like for example EditRowStyle in GridView, but in a way that the property's properties can be declared in Source view in ascx/aspx. It's clear that GridView hasn't got a property like EditRowStyle-BackColor, but only EditRowStyle has. Something like this:
public class MyCustomGrid :...
I am using a certificate with my WCF service so have an encoded value in the web.Config
<identity>
<certificate encodedValue="large string!!!!!!!" />
</identity>
The value was generated by Visual studio in development using my test certificate.
Now I am deploying I want to get the encoded value for the certificate maintained by the...
I want to hide a file in c#. I know the file path and can create a FileInfo object.
How can I hide it?
...
I have a class whose constructor is defined as internal, which means I cannot instantiate it. While that may make sense, I would still like to do it once for debugging and research purposes.
Is it possible to do so with Reflection? I know I can access Private/Internal Members, but can I call an internal constructor?
Or, as the construc...
In my NUnit testfixtrues i have something along the lines of
[Test,Category("catA")]
public void test1
{
//
}
[Test,Category("catB")]
public void test2
{
//
}
[Test,Category("catA")]
[Test,Category("catB")]
public void test3
{
//
}
Now in the NUnit gui i want to be able to select catA and catB and run the tests where cat...