I am using TransactionScopes at a high level to wrap some high level code that makes a number of connections to the database.
One of the functions I call is a generic read that is used for read only functions where a read uncommitted isolation level is needed. But in some cases it is used as part of large update operation and a read com...
Hi, I'm developing a custom HyperTerminal like application in a WinForms .Net 2.0 application. I have a multiline TextBox in a Panel in which you can interact with a hardware device.
My customer wants to have a custom Caret, a filled rectangle the size of one character space instead of the vertical line that is by default.
I know .Ne...
when i use Linq2Sql i can filter a table by using a lambda-expression in the DataLoadOptions.AssociateWith method.
i use this for filtering the used language - so i have a language table with all languages and a object table containing objects.
like:
DataLoadOptions opt = ...;
opt.AssociateWith<DB.Objects>(o => o.Language.Where(p => p...
Hi,
i have a LoginWindow with username and password to access in the software after that the user authenticated i want show in the next window(the mainWindow of the software) the name of the user authenticated in a TextBlock ...i show a code snippet of my LoginWindow:
public partial class Window1 : Window
{
public Window1...
Hi All,
I am looking for CLI specification.
Where can I find it to download?
...
This question stems from this question
Code documentation how much is too much?
One the answers was to keep your xml documentation in a separate file. I really liked that answer as when I am looking through the code the verbosity of the documentation is annoying, on the other hand that verbosity is usefull when searching for the right ...
The company I work for has taken on a support contract for a large order processing system. As part of the initial system audit I noticed that the passwords stored in the database were actually the hashcode of the password.
Essentially:
string pwd = "some pasword";
string securePwd = pwd.GetHashCode();
My question is, how secure or o...
I have a control which hosts a NumericUpDown in a ToolStripControlHost and exposes the NumericUpDown's properties. Functionally, that's fine, but when it's placed on a ToolStrip it doesn't fit visually with the other ToolStripItems.
I'd like to use the ToolStrip's existing ToolStripRenderer to draw the control in a manner similar to th...
I have used NHibernbate in few projects and now learned about few more ORMs also. I understand that, NHibernate binds Class to Datalayer dynamically during runtime using the mapping file.
My Question is , how this late binding is done ? I mean, which Methodology is used, 'Reflection' or 'DynamicMethod' ?
In case, if it uses Reflection,...
I'd like to flash the taskbar (as described here for example), but I can't P/Invoke FlashWindowEx (or anything else, for that matter) in the security context my application is running in.
Is there another way to get the taskbar to flash? If not, what are my options for getting the user's attention?
...
I'm trying to set a property on a custom web control before the control's CreateChildControls method is called. The reason being, a lot of logic is performed in there that depends on the value of the property in question. I can set the property directly with an explicit value in HTML and it is picked up in time, but that's no use to me b...
I'm absolutely new to printing in .NET. I would like to print a page that is displayed in WebBrowser control. How do I do that?
...
How should i design a login protocol to be more secure the way i have it right now is
the client connects and sends his username
the server sends the salt(always same) for the user
the client adds the salt to the password hashes it and sends it to the server
This way the password is hidden all the time but it does not stop a hacker ...
I am new to WPF programming model. I have few queries:
Does Page tag in XAML (in an XBAP application) is of type FrameworkElement?
if i have a child element lets say Frame inside a Page. I pass that frame element in a function in another assembly. Now i try to navigate back to the Page from Frame control's Parent property i am not able...
My current project creates UI by WPF at runtime. Everything works well. The only issue about it is that the global WPF template is ignored for some reason.
We created a skin that is attached to the main form and thus used by all xaml created UI elements.
My own code just dynamically creates items like this:
var textBox = new TextBox()...
I have an application that has a main form and uses an event handler to process incoming data and reflect the changes in various controls on the main form. This works fine.
I also have another form in the application. There can be multiple instances of this second form running at any given time.
What I'd like to do is have each insta...
Hi,
I have a rather simple web-service which exposes data from sql server. It will be used to synchronize data between 2 different databases (SQL Server and Lotus Notes). We're in the stage of testing the web-service and poll it with 20 req./min., the first 2 minutes it goes OK, but after the second, we're getting an exception, obviousl...
I want to write a program (in vb.net) that checks a customers configuration to make sure that they're ...
Running XP service Pack 3
Running .Net 3.0 or above.
Give them a warning if they are not running .Net 3.5 or above.
or
Running Vista Service Pack 1.
How would I do this?
There is a stackoverflow question asking how to te...
We are building a WPF app and are seeing some random and very strange behavior which seems to originate from within the BCL. We are catching an unhandled exception with the following stacktrace:
[ArgumentException],
"TimeSpan does not accept floating point Not-a-Number values."
at System.TimeSpan.Interval(Double value, Int32 scale)
...
I have implemented validation rules on a textBox in my WinForm and it works well. However it checks the validation only when I tab out of the field. I would like it to check as soon as anything is entered in the box and everytime the content changes. Also I'd like it to check validation as soon as the WinForm opens.
I remember doing th...