Hello.
I have a special label in my form, that should show in a tooltip some text.
The label is declared as private class in the form (nested control), and should "see" the ToolTip control of the parent form.
Here is the code. Surely, I obtains errors here, because the constructor is called before the private control addition in the ...
I have code:
public delegate int SomeDelegate(int p);
public static int Inc(int p) {
return p + 1;
}
I can cast Inc to SomeDelegate or Func<int, int>:
SomeDelegate a = Inc;
Func<int, int> b = Inc;
but I can't cast Inc to SomeDelegate and after that cast to Func<int, int> with usual way like this:
Func<int, int> c = (Func<int,...
We're looking at using ClickOnce deployment as a means of distributing our application, however, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one.
I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is to...
i want to know the internal architecture and function of the garbage collector in dotnet in detail.. can anybody help me.
...
I consider myself a reasonably experienced .NET developer but I have almost never directly used types in the System.ComponentModel namespace. (I've implemented a few custom attributes and consumed them via reflection).
In what sort of scenarios do types such as Component, Container, PropertyDescriptor, TypeDescriptor, License and TypeCo...
I need to run some code only if I'm running from within the TeamCity test launcher. What's the easiest way to detect this?
...
Hi there!
This is a relatively long post. F# has a matrix and vector type(in PowerPack not in the Core) now. This is great! Even Python's numerical computing ability is from the third part.
But the functions provided there is limited to the matrix and vector arithmetic, so to do inversion, decompositions etc. we still need to use anot...
I want to execute some code (clear up resoucrse) on termination my WinFormsApplication using Windows TaskManager. How can I do it? I am terminating my application using Process Tab of TaskManager.
...
Hello,
is there any .net library to make small app to read pdf on Windows CE ?
thanks
...
Is it possible to create an extension method on the DataContext, not on the table in the datacontext but directly on the dataContext to get dynamicly a table.
ex:
DataContext dc = new DataContext();
var test = from a in dc.myExtensionMethod(args) select a;
ps: I Already know dc.GetTAble and dc.GetTable<T>
...
I'm getting this error when trying to load a .NET app in visual studio... for some reason visual studio is having difficulty loading skmmenu which is a user control. Is this not part of visual studio? please help!
Could not load file or assembly 'skmMenu' or one of its dependencies. The system cannot find the file specified.
<%@ Regi...
The following example is clearly fictional but it resumes how validation is done on a code base I'm working with.
TypeA has two methods, with the following signatures:
public void FirstMethod(TypeB param)
public ValidationResult TryFirstMethod(TypeB param)
When FirstMethod is called it needs to perform validation on the parameter.
He...
I have a seemingly innocent code snippet, which I typed into Visual Studio 2008 Immediate Window.
? results.Join(lstDocs, Function(docID) docID)
Evaluation of lambda expressions is not valid in the debugger.
As the message says, it's not possible to call a lambda expression in the debugger.
Why is it not allowed?
...
Hello,
I'm currently designing an assembly that will be used by third parties. One of the classes has a long process of TCP connections and it informs about its process using events. For example
''# Do stuff that takes some time
RaiseEvent CompletedFirstPartEvent()
''# Do stuff that takes some time
RaiseEvent CompletedSecondPartEvent()...
Hi,
I am trying to call a webservice using WCF that uses the following encoding:
<?xml version="1.0" encoding="ISO-8859-1" ?>
I cannot change the encoding for this webservice. I have generated a wcf proxy and when I try and call the proxy, I get the following error:
FailedSystem.ServiceModel.ProtocolException:
The content type...
I know jquery/ajax in IE is a common problem. There is a lot of great advice here on stack overflow but none of it has worked for me yet.
The following code works just fine in firefox, but does not in IE:
$.ajaxSetup({ cache: false })
$.ajax({
url: 'FunDataService.asmx/' + funDataMethod,
type: 'POST', dataType: 'html', cache: false, ...
I would like to determine, from a .NET application, whether the current user (from System.Environment.UserName) is logged in to the machine physically, or via terminal services.
The use case is a startup program launcher. When I'm logging on to my development machine locally I would normally like a host of applications to be started au...
How can I set name of the worker thread in Quartz.net?
[2009-12-15 08:56:25] [DefaultQuartzScheduler_Worker-1] INFO
I wanted to see some meaningful information in the logs. I tried using JobDetail constructor, but looks like I am wrong.
var job = new JobDetail("n1", null, typeof (MyJob));
Thanks,
Vadi
...
Hi all
This is my c# code in some Dll
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
namespace LP_Misc
{
public class LP_Registery
{
LP_Registery()
{
ReadMyTestRegKey();
}
public void ReadMyTestRegKey()
{
RegistryKey r...
Install order:
Visual Studio 2008
ReSharper
Uninstall ReSharper
CodeRush with Refactor Pro
Uninstall CodeRush with Refactor Pro
Now my intellisense doesn't work. Any settings I should look at before I try a uninstall / reinstall? I'm sure there must be something buried in the Options that these plug-ins hook into or override.
...