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 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.
...
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.
...
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...
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...
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.
...
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...
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 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...
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...
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 ...
Could any post what the contents of GenericErrorPage.htm?
...
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? 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...
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.
...
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 ?
...
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.
...
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...
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...
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...