I've got a WebBrowser control sitting on a Form which has an irritating 2px inset-looking border around it. It's causing my content to be clipped by 4 px on the right and bottom, and I can't figure out how to get rid of it. The control itself doesn't have any BorderStyle properties -- how does one remove the border?
See the red area in ...
Hi, I have a little problem with my simple login system.
this is the code
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
bool loginSuccessful;
bool loginRetry;
...
Hi
I am sending email using the following utility class, if receiver [email protected] is not exist or the email never reach him for one reason or another, I want my application to be notified.
It works only when the smtp client failed to connect to the smtp server, I got an exception in this case, otherwise, the only way to know if email fa...
I am using VS2010 Beta 2 to create an IIS hosted WCF service. I added a SQL Server database file to use as a simple data store and then generated some Linq to SQL classes to interact with it.
The problem I have happens when Linq to SQL tries to connect to the database. I get the following error below:
CREATE DATABASE permission denied ...
I want to run a common KeyDown even handler for all the controls available on a form.
any way I can accomplish that?
To be more clear, My intention is to detect Enter key whenever it's pressed and move the focus from the current control to the one with next TabIndex.
So, I need to know how I can accomplish that..
...
There have been some questions and answers here on stackoverflow, but no one asked if it's a good solution to run django on IIS.
Any experience is welcome, both good and bad.
...
Hi
I made an xml document by using XML Serialization.
It looks like this
<?xml version="1.0" encoding="utf-8"?>
<Course xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<courseName>Comp 1510</courseName>
<backgroundColor>#ffffff</backgroundColor>
<fontColor>#ffffff</fontColor...
Suppose I am displaying a bitmap and want to allow text to be placed on that bitmap. I can display a RichEdit or TextBox control at the location and allow the text to be typed in at a certain font/size etc... but then the user can "see" the rectangular text entry control appear and disappear upon entry/edit and the edit cancel. It also...
I have an application which consumes both a WCF service and an ADO.NET Data Service. Types are shared between the server and client using a shared class library.
When I configure the service reference for the WCF service, I can choose to use the existing types in the class library to avoid creating duplicate types in the proxy classes.
...
I'm not too familiar w/ the PIA assembly's for Office interop (Office 2007) and via .NET/C#, I need to open a workbook and save the first sheet within it as a tab delimited text file. Can someone instruct me on how to do this? Thanks!
...
I was a Adabas/Natural and Cobol mainframe programmer for 16 years ending in 2002. I have a vast amount of experience in the analysis, design, development, testing, implementation and documentation of online and batch applications. I would like to get back into software development after a 7 year hiatis raising my children.
I have b...
I'm having trouble finding any worthwhile documentation on the new version of WorkflowServiceHost that ships with .NET 4 / VS 2010 Beta 2.
The new version of the WorkflowServiceHost now lives in System.ServiceModel.Activities and has different contructors than the old, .NET 3.x version that lived in System.ServiceModel.
I want to be a...
I'm rather proud to have produced this Linq assertion on my own:
bool assert1 = (from e in A
select B.Contains<T>(e, new TComparer()))
.All(x => x == true);
bool assert2 = (from e in B
select A.Contains<T>(e, new TComparer()))
.All(x => x == true);
Assert(assert1 && assert2);...
Hi guys
I know I can log exceptions to the database using Log4Net, but I want to break up what it stores for an exception into different columns.
Does anyone know if this is available, if anyone has done this or is it just easier to log exceptions to the database manually?
Cheers
Anthony
UPDATE:
If it helps maybe use the followin...
I'm trying to lock down a registry key with some important information that must be accessible at the client machine, I do not wan't non-administrators to have access to this key. If you are an admin you'll already be able to do more damage than what I'm storing in the key.
What I'm currently looking to do is this:
//Allow access only...
I have successfully created a WCF RIA service by creating DomainService class and accessing the oracle database using ADO.NET. However creating a domainservice using ADO.NET seems to have limitations when compared to creating a domainservice using entity framework in terms of efficient sorting, paging of huge tables(more than 5 million r...
Hi. I have a 3rd party COM object I call that uses a event callback to signal it has completed its task.
obj.Start();
then sometime later it will raise an event to say it is done.
void OperationFinished()
I would like to be able to do this operation synchronously and have tried to use AutoResetEvents to handle this
e.g.
obj.Sta...
Hi
Just wondering where we can get .net framework 4 beta redistributable.
We would like to include it in our cd so we can distribute it to our clients and they need to install it from the cd and not from web as it is not necessary to have internet for our application.
Any suggestions will be appreciated.
Thanks
Navin
...
Hi
Just wondering if it is too early to migrate to .net fw beta 2.
We have a wpf app which uses graphics such as images, shapes and also flash in it intensively.
Just wondering how others experiences have been.
Thanks
N
...
Hello everybody!
I have a windows service, which is configured to send emails in a predefined schedule. The schedule works with System.Timers.Timer and every time the Timer_Elapsed is raised I call Timer.Stop(), send emails (each time about 1500 emails), calculate the amount of time the next tick will be raised and start the timer (call...