.net

how does one calculate the minimum _client_ size of a .net windows form?

Hi everyone I am trying to programmatically position certain controls within a form, based on the difference between the forms minimum size and its client size - this unfortunately produces different results depending on what theme the user has loaded (mostly the problem seems to be due to the fact that the title bar and form border hav...

How to make a form shrink to a smallest possible size?

How to make a form shrink to a smallest possible size Windows.Forms? There was a pack() method in Swing that woked well but if I make all the components and a form itself AutoSise = true I get a dot (one pixel dot) on the screen. ...

WinHttpRequest.5.1>>SetClientCertificate .....how to store the certificate using this method?

Wat is the subject of the certificate? Ex: my certificate is : CD090711trust.jks How to find the subject of the certificate and wat is the procedure to use this method ....... with Regards, Vicky. ...

Unable to open my C# project

I'm unable to open my project in Visual Studio 2008. It was developed in C# by my friend. It is showing the this error: "Could not find type 'LibrarySystem.ctrlSeparator'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has b...

two basic Forms authentication issue in ASP.Net

Hello everyone, I am developing on Windows Server 2008 with VSTS 2008 + C# + .Net 3.5 to develop an ASP.Net application using Forms authentication. I am learning Forms authentication from http://msdn.microsoft.com/en-us/library/aa480476.aspx I have two basic questions, I think after call method "FormsAuthentication.SetAuthCookie", th...

clr error in dll release mode

Hi, I have created one windows service, code is executing in different threading. if i use dll with release mode some times i got clr error, and my service got stopped but it seems working with debug mode dll. can u please tell me the reason behind it. ...

GenericErrorPage.htm missing

What is this page for? I have an entry in the configuration file... do this cause any harm? <customErrors mode="off" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> Is the below error fro...

Does anyone know where I might find a file based multi-way B-Tree Class for c#?

I need to implement a file based multi-way B-Tree Class for c#. There is similar functionality available for C++ and C but I want to use it in C#. It also need to be available as source code as I wish to use with some alternative .NET implementations like MonoTouch. If anyone knows of a non file based Multiway b-Tree then this could ada...

Is the below error from GenericErrorPage.htm

Is the below error looks same as from GenericErrorPage.htm? Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the applicat...

Exception Handling in SCSF

I have a SCSF application i am trying to handle most of the exceptions using Application.ThreadException += new ThreadExceptionEventHandler(new ThreadExceptionHandler().ApplicationThreadException); The event handler :- public class ThreadExceptionHandler { public void ApplicationThreadException(object sender, ThreadExcept...

Why do I get InvalidCastException from OperationContext.Current.GetCallbackChannel<>()

So as to enable aysc callbacks to the clients, I need to add the Begin/End methods to the interface that is defined as the CallbackContract on my service. (I am using a sheared contract assembly, rather than generating proxy classes) [ServiceContract(CallbackContract=typeof(IClient)] interface IEngineManager As the first step I have ...

Contents of GenericErrorPage.htm?

Could any post what the contents of GenericErrorPage.htm? ...

How do I delegate an AsyncCallback method for Control.BeginInvoke? (.NET)

Is it possible to use Control.BeginInvoke in anything other than a "fire & forget" manner? I want to change the following request to delegate a callback method so that i can do something when each of my asynchronous calls complete. this.BeginInvoke(new RefreshRulesDelegate(RefreshRules), new object[] { ctrl, ctrl.DsRules, ctrl.CptyId })...

How do I get the application's directory from my WPF application, at design time?

How do I get the application's directory from my WPF application, at design time? I need to access a resource in my application's current directory at design time, while my XAML is being displayed in the designer. I'm not able to use the solution specified in this question as at design time both System.IO.Path.GetDirectoryName(Process.Ge...

How to do non-invasive profiling of a running ASP.NET application?

Situation: ASP.NET live website that's occasionally too busy. Adding full profiling to the code will be too heavy an impact on the performance. Using performance monitor, we've quickly find a saw-teeth figure in the "bytes in all heaps" counter, which pair with the GC counters. We consider certain pieces of code as being the culprit. ...

Using ILMerge, is it possible to merge XML documentation files with the DLL ?

I know I can merge PDB with a DLL file but I'm trying to do the same with an XML documentation file. It should be possible since you don't have .xml files with .net assemblies and yet you have documentation in the IDE. Is there a way ? ...

Random Linq Query

Hi guys, how I can get a random row from a selection in my linq query? I tried: Bot bot = (from a in dc.Bot select a).OrderBy(x => Guid.NewGuid()).First(); But doesn't work, I ever get the same. ...

Error while deploying asp.net website!

Line 108: <compilers> Line 109: <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> Line 110: <providerOption name="CompilerVersion" value="v3.5"/> Line 111: <providerOption name="War...

How to identify the default audio devices from a .Net application?

Hi community, I'm a bit confused. Is there any simple way to set proper audio devices (in/out) in my VoIP .NET application w/o using of DirectX? "Proper audio devices" probably means - devices which are already set as DEFAULT in Windows. E.g. Skype (or X-Lite) selects in most cases audio devices properly. But How? Just getting of list...

Is there a .Net Reporting tool that uses Office templates?

On the application I am currently working on, we need a way for users to generate reports in Microsoft Word or Excel format (export and print). One of the requirement is that the users would create the report template using a Word or Excel template document. I've tried to google a reporting tool that uses word and excel templates for r...