Given:
An asmx web service.
A 3rd party dll that contains a useful enum.
Question:
How can I expose this enum through my
web service without having to repeat
myself and re-type the enum's members
in my webservice's public class?
...
Hi,
I'm currently trying to develop a message-oriented networking framework and I'm a bit stuck on the internal mechanism.
Here are the problematic interfaces :
public interface IMessage
{
}
public class Connection
{
public void Subscribe<TMessage>(Action<TMessage> messageCallback);
public void Send<TMessage>(TMessage messag...
I am about to start a project which consumes third party web services. Because of a legacy system, I am told that I can only use Visual Studio 2005/.NET 2.0. (Though I would have preferred Visual Studio 2008 on .NET 3.5)
My understanding is that WCF was released with .NET 3.0. So is there any possibility to use WCF on Visual Studio 2005...
I've run into something odd in a .NET CF 2.0 project for Pocket PC 2003 (Visual Studio 2005). I was dealing with a System.IO.Stream object and found that the IDE wouldn't auto-complete the Dispose() method. I typed it in manually and received:
'System.IO.Stream.Dispose(bool)' is inaccessible due to its protection level
The error is...
Here's my question. What is the best way to determine what bit architecture your app is running on?
What I am looking to do: On a 64 bit server I want my app to read 64 bit datasources (stored in reg key Software\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources) and if its 32 bit I want to read 32 bit datasources, (i.e. Read from Software\OD...
I have two custom attributes defined like so:
internal class SchemaAttribute : Attribute {
internal SchemaAttribute(string schema) {
Schema = schema;
}
internal string Schema { get; private set; }
}
internal class AttributeAttribute : Attribute {
internal AttributeAttribute(string attribute) {
Attribute...
I am using a list to keep track of a number of custom Row objects as follows:
Public Rows As List(Of Row)()
Row has 2 properties, Key (a String) and Cells (an ArrayList).
I need to be able to sort each Row within Rows based on a developer defined index of the Cells ArrayList.
So for example based on the following Rows
Row1.Cells =...
Why when a control does contain value but it's set to .Enable=False that all controls become disable (that's ok) but why that the ViewState doesn't retain the data on the next post back? If I get the UserControl without modifing its Enable state, the ViewState work between post back.
How can we disable a UserControl that all its control...
Hello!
I would like to know if somebody knows free custom nice controls for .NET Compact Framework 2.0.
There are nice controls as Manila Interface SDK (http://forum.xda-developers.com/showthread.php?t=566188), Sense Interface SDK (http://forum.xda-developers.com/showthread.php?t=648906) and so on for free, but they work only on .NET ...
Is there any way to show the tooltip in Datagrid for more than 30 seconds?
example, here is my code
e.Item.Cells(7).Tooltip = e.Item.Cells(6).Text
on mousehover the tooltip will be displayed only 6 or 7 seconds, is there any way to increase the time for the tooltip?
...
I have a strange problem/bug when I have many I believe .net Applications Open at once.
I may at one point have 3 Visual Studio 2005 Projects open (big or small doesn't really matter) 2 Visual Studio 2003 Projects open & sql2005 Management Studio.
Or various combinations of either/or.
Always when I've got quite a bit open.
What hap...
hi
i have a requirement in which my form is transparent,if my mouse enters into it the form
should became visible,if my mouse leaves out of the form it becomes transparent, i have three different controls placed in my form , each controls mouse leave and mouse enter is the same that of the form . if my mouse enters into the form and en...
I'd like an easy way to display any TimeSpan as an elapsed time without using loops or custom logic
e.g.
hours : minutes : seconds
I'm sure there must be a .NET built-in or format string that applies, however I'm unable to locate it.
...
I just saw castleproject.org has released the 2.0 version of monorail in January 2010 (we are still using the 1.0RC3).
Is this version (still) compatible with .NET 2.0 (or Visual Studio 2005), and if it does will I face any problems upgrading a current web application from 1.0RC3 to 2.0?
Source code changes to monorail 2.0 and / or con...
I often have to implement some interfaces such as IEnumerable<T> in my code.
Each time, when implementing automatically, I encounter the following:
public IEnumerator<T> GetEnumerator() {
// Code here...
}
public IEnumerator GetEnumerator1() {
// Code here...
}
Though I have to implement both GetEnumerator() methods, they im...
Yeah folks i need to upgrade from .net 2.0 to 3.0 framework, for a VB.net project.
I have done this upgradation for a C#.net project in VS 2010, but I dont c the option, for it in the properties submenu of the Project Menu.
Thanks in advance
...
I'm interested in finding a way to enumerate all accessible devices on the local network, regardless of their IP address. For example, in a 192.168.1.X network, if there is a computer with a 10.0.0.X IP address plugged into the network, I want to be able to detect that rogue computer and preferrably communicate with it as well. Both co...
how can i make this NOT a loop?
{
ManagementObjectSearcher Vquery = new ManagementObjectSearcher("SELECT * FROM Win32_VideoController");
ManagementObjectCollection Vcoll = Vquery.Get();
foreach (ManagementObject mo in Vcoll)
{
System.Diagnostics.Process.St...
I'm trying to accomplish some form of redirection of messages in .NET Remoting.
As you can see in the image I would like for the client to send a message to the provider (which is the only URI that the client has to know about), which will then redirect this to host1. Here's the tricky part; the provider will keep track of which host i...
What is the best approach for sorting a generic list when one of its objects property is changed?
I have the following example to help explain what is needed.
public class Sending
{
public Sending(int id, DateTime dateSent)
{
this.Id = id;
this.DateSent = dateSent;
}
public int Id { get; set; }
publ...