Context menu
Hi In C# windows form application, I want to add item to context menu so that I can check or uncheck that item in context menu. Is it possible? ...
Hi In C# windows form application, I want to add item to context menu so that I can check or uncheck that item in context menu. Is it possible? ...
I've got an object that has a type property. When the type is set to Int64, and I try and pull the type info later, I get System.Nullable. Here's the type Info {Name = "Nullable`1" FullName = "System.Nullable`1[[System.Int64, mscorlib, Version=2.0.0.0]]"} How do I get to the System.Int64 type of this? ...
Hello, Here are the steps I take to create a package shipped to the end users: Use visual studio 2005 Build the project (which is library DLL written in C#), both in debug and release mode. I run doxygen and create documentation I create a folder structure where I put my dll documentation and some release notes zip it ship it the ...
We have a program that reads in a stream of input and writes it to the database. There is no user input. This program is currently running in parallel on both the development and the production server, with the same data as input, writing to different output servers. On the development server everything is fine; around 30-odd pooled co...
I'm using ODP.Net version 11.1.0 to insert data into a database, and I'm seeing a memory leak. If I comment out the code below, it goes away. This code is called thousands of times in my application, and I can watch # of bytes in all heaps grow steadily as it runs. cmdStr contains an insert statement that inserts into a table with 375...
Is there a control I can use to display a short message that contains minor html formatting (eg one or more links). I'd prefer not to use the WebBrowser control (suggested here) as it's a bit heavy for what I want, so any other suggestions welcome. If a user does click a link from my message I want it to be opened in their default brow...
We're monitoring usage statistics of a network interface using NetworkInterface.GetIPv4Statistics() in .NET 2.0. This isn't reporting correct statistics for connections over which VPN traffic is being tunneled. Instead - in the case of the Cisco VPN client - the usage is just attributed to a new network interface that just looks like an ...
There is a limit of 1 meg for objects in memcached. Whats the best way to store objects larger than this? I'm using the Enyim .Net client. ...
I am building a form with winforms - and should add a view and editable time span value. Which controls works best for this ? A normal edit control shows the value correctly -> but it's not really nice for changing values the normal date time picker doesn't work the masked edit control doesn't have got any standard mask for this Doe...
I have an XDocument object. I want to query for elements with a particular name at any depth using LINQ. When I use Descendants("element_name"), I only get elements that are direct children of the current level. What I'm looking for is the equivalent of "//element_name" in XPath...should I just use XPath, or is there a way to do it us...
I was wondering if anyone here knows an efficient way to cast an integer to a byte[4]? I'm trying to write an int into MemoryStream, and this thing wants me to give it bytes ...
Hello there, does anyone know any good (as in native (not wrapping any external .exe etc), supported, documented and maintained) .Net library that allows me to transform single page .pdf files (1.4, non pdf/a) to .svg files? Google spits out a gazillion results, but none of them are really promising from a real-life experience perspect...
What is the correct pattern or method for developing a Silverlight application (which is the Silverlight project and Web Application in a single solution)? I mean, how do you add the Service Reference if the localhost port number will be constantly changing? Thanks. ...
With new features in .NET 3.5 (such as var, Lambda, linq, etc), and more on its way, we can conclude that C# not only statically typed language, but also Dynamically typed ? Why or Why not? Edit#1 As many posters below claim, .net 4.0 will add the dynamical type-ness to the language. Will this slow down the language? With every re...
We are looking into using an ORM and I wanted some opinions/comparisons The basic criteria we have for an ORM is: Easy to use/configure(short learning curve), flexible, the ability to abstract it away, easy to maintain Here is a list of what ORM we are looking at and what our initial impressions are Open Access - seems really ...
I know also that ASP.NET when published can be precompiled I know that .NET applications are compiled to MSIL that are easily reverted to any .NET language through tools like Red Gate's .NET Reflector. I want to develop and deliver an ASP.NET site where the buyer will host the site and but cannot have access to the code. There is any...
I know I can do something like the following code to dynamically create a client endpoint connection in WCF: BasicHttpBinding basic = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); basic.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm; EndpointAddress serviceAddress = new ...
Is there any class, library or some piece of code which will help me to upload files with HTTPWebrequest? Edit 2: I do not want to upload to a WebDAV folder or something like that. I want to simulate a browser, so just like you upload your avatar to a forum or upload a file via form in a web application. Upload to a form which uses a ...
important; I'm really looking for a StructureMap answer here. Please don't say how to do it with Windsor, Spring, Unity, or any of the others. I'm playing with StructureMap for IoC - and basically my aim is to have a "default" profile that defines the core types, and a number of named profiles that override/extend this. I think that pro...
I have a certificate generated via MakeCert. I want to use this certificate for WCF message security using PeerTrust. How can I programmatically install the certificate into the "trusted people" local machine certificate store using c# or .NET? I have a CER file, but can also create a PFX. ...