Okay basically here's where I'm at.
I have a list of PropertyDescriptor objects. These describe the custom "Options" fields on my Plugins, aka:
public class MyPlugin : PluginAbstract, IPlugin
{
[PluginOption("This controls the color of blah blah blah")]
[DefaultValue(Color.Red)]
public Color TheColor { get; set; }
[PluginOption("...
Hi there, we are having values stored in Cache-Enterprise library Caching Block. The accessors of the cached item, which is a List, modify the values.
We didnt want the Cached Items to get affected.
Hence first we returned a new List(IEnumerator of the CachedItem)
This made sure accessors adding and removing items had little effect on ...
i need to change the backcolor or background image of a mdi parent in my application. i tried changing the backcolor or specifying a background image, it won't work. i also tried looping the controls in the form to get the mdiclient and change its backcolor, also zero same result.
...
Here is a table patients in MS access database, There is 20 records, I want to select first 0 10 records and after 11-20 records for pagination. How to solve this problem
...
I am developing a WCF service that receives the user's credentials in the SOAP header. These credentials are read on the server side using a MessageInspector. So far so good.
I want to set the Thread.CurrentPrincipal to a custom principal (CustomPrincipal), but when I do this from the MessageInspector, it gets overridden by the time the...
Can I delete the old rectangle which I have drawn and draw a new rectangle?
private void panel1_MouseClick(object sender, MouseEventArgs e)
{
Graphics g = this.panel1.CreateGraphics();
Pen pen = new Pen(Color.Black, 2);
g.DrawRectangle(pen, 100,100, 100, 200);
g.dispose();
}
...
How to find the depth of the xml file using powershell/xpath?
consider the below xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<title>Harry Potter</title>
<price>25.99</price>
</book>
<book>
<title>Learning XML</title>
<price>49.95</price>
</book>
</bookstore>
depth of the above xml document is 3 (bookst...
Hello,
I have a simple hit counter written in c# .net. I placed that counter to many pages using the pageviewerwebpart. What I want to do is, not only counting the hits, but also which page triggered the hit counter. So how can I retrieve the page URL with my hit counter ?
Thanks.
...
I heard that microsoft does not recommend using DataSets and DataTables in new projects. Instead it recommends using their new technologies or build own class structures. Is that true? If yes, then could someone please give me the official link. Thank you :)
...
I want my web application to return .net remoting object when somebody requests one page (or handler) with certain parameters. how to make it?
...
Lets say I have the string:
"MyNamespace.SubNameSpace.MyClassName"
How do I extract just everything after the last period, "MyClassName"
...
I'm writing a simple audio recording utility which I want also to be able to tag the resulting files with meta data. It's pretty easy to find libraries to tag MP3 files with ID3 tags, but I'm more interested in lossless codecs like WAV and possibly FLAC.
As I understand it WAVE files are really a subset of the RIFF file type which can c...
Suppose you want to throw Exception like this:
'Project with the provided ID cannot be assigned.'
and you don't want to write your custom Exception class. What predefined Exception class would you use for this?
(I'm talking about all classes inheriting from Exception)
...
Hello everyone,
I was wondering if there is a way to rename a parameter in a WCF client interface method ,just the same way I can rename methods or enumerations:
Renaming methods:
[System.Runtime.Serialization.DataMemberAttribute(Name = "intError")]
public int ErrorCode {...}
Renaming enumerations:
public enum MyEnumeration...
I have an UltraWebMenu that is attached to a SiteMap file.
One of the menu items is a solitary item with child items that I do not want to show. How do I go about hiding that submenu for that parent item on hover?
...
I am using HttpContext object implemented in HttpHandler child to download a file, when I have non-ascii characters in file name it look wiered in IE whereas it looks fine in Firefox.
below is the code:-
context.Response.ContentType = ".cs";
context.Response.AppendHeader("Content-Length", data.Length.ToString());
context.Respons...
Yesterday I asked a question about starting an application hidden on windows mobile : See Here
According to ctacke's answer I want to create my own message pump to prevent Application.Run method to show the form, but I don't know how to do that. It would be OK if you can show me an example on how to create a custom message pump in c# or...
Hello,
I was profiling my .net windows service.
I was trying to discover OutOfMemoryException and discovered that my stack size
is huge and is growing because the the number of threads keeps growing.
Each thread gets 1024 KB on Windows x64 machine. Thus when my app has 754 threads the stack size would be 772 MB. The problem for me is ...
I am writing silverlight 3 application which is working on network.
It works like client-server application. There is WinForm application for server and silverlight application for client.
I use TcpListener on server and connect from client to it with Socket.
In local network it works fine, but when I try to use it from internet it don't...
In .Net when handling numbers with unspecified locale I use:
return double.Parse(myStr, CultureInfo.InvariantCulture.NumberFormat);
Whats the equivalent in Java? java.util.Locale doesnt seem to include such a thing.
...