hi all,
I am using Application settings in my c# project to save gmail username and password. Before saving the settings I am encrypting the plain text password. When I am restarting the app retrieving them is of course without any problem but the retrieved password is encrypted. What I want is to decrypt it back before binding back t...
I have a webbrowser object on a winform that I would like to use to display a pdf.
The pdf resides on a ftp server. I have been able to show the pdf by downloading it
to the disk and pointing the webbrowser object to it (navigate), but I want to stream
it for security reasons. Has anyone been able to stream a pdf to a webbrowser that ...
There is an approach described here: http://www.c-sharpcorner.com/UploadFile/scottlysle/TimeSinceBootCS06052008055807AM/TimeSinceBootCS.aspx
However, it is not compatible with the .NET Compact Framework.
Can anyone recommend a way to obtain the time (in seconds) since the system/device was booted up that's compatible with the compact f...
Am I understanding correctly, and the database connection string for Linq to SQL is typically stored in the app.config file, in the connectionStrings section?
Are there other places it might be done, typically? Thanks!
...
I use XSL to transform a XML document into HTML in .NET.
One of the nodes in the XML has a URL that should be output as the href parameter of the a HTML tag of the HTML. When the input URL has an ampersand character (e.g. http://servers/path?par1=val1&par2=val2) the ampersand appears in the output HTML as &.
Is there any way ...
I have some UI controls that are using DataBindings.Add method, and it works if I change the specified UI property by hand, or the source object is changed outside.
But if I invoke the UI.Property = value in code, then it doesn't change the UI nor the source object that's specified for DataBindings.Add.
What am I doing wrong? Am I usin...
I've been working on a project where I need to transfer large volumes of Binary data some are Structs, enums, lists etc and some are pure binary data, I'm trying to develop a strategy for dealing with the issues when transferring the data between a 64bit compile and a 32bit compile.
Presently I mark the assembly to just target 32bit to ...
I have a physics simulation and it allows you to place area constraints, so that the bodies within will not exit that area. However if an atom goes past one of the "walls" of the area constraint it blows up the physics simulation. Why does it do this?
Update method:
if (!atom.IsStatic)
{
Vector2 force = Vector2.Zero;
bool x = fa...
Hello everyone,
I have been noticing that some software engineering jobs are asking for .NET developers, but I have never been given a definition (formal or informal) of what experience is required to be able to call yourself a .NET developer.
I have taken a couple classes where we needed to make Windows Forms every other week using Vi...
Hi,
Do you know any example of how to animate the insertion of an item on a ListBox?
The effect I was thinking of is something like:
At first we have items A and B on the ListBox.
Than a C item is inserted between A
and B.
In the effect I imagined, before C is inserted, A and B
become gradually more distant until a
C element fits in ...
Hi,
I need to do a conceptually simple thing:
Call a remote method from a WPF application to the server. But I need to share the model types with both sides.. I mean, I need to send a Person object as parameter from the client and also receive objects of the same type.
What's the best way? Is it to use WCF? Is there a better way?
Do y...
Can IL produced by C# 4.0 compiler run on CLR 2.0?
To clarify, I'm not asking about VS 2010 multi-targeting (where VS chooses the right compiler version), I want to know if csc.exe 4.0 supports multi-targeting...
...
I am using VB.Net. I have an object class called clsA(of T as clsB). Depending on what T is, I want to do different things. Let's say that clsC and clsD both inherit clsB and therefore can be used for T.
If I have an instance of clsA(of clsC), how can I get the inside type (i.e. clsC) using reflection? Solutions in C#.Net would be fi...
Is there a library method somewhere for figuring out whether a file has been encrypted with EFS? I see the Encrypt() and Decrypt() methods on FileInfo, but am looking for a way to query a file's state.
...
I am busy making some optimizations to a app of mine, what is the cleanest way to check if the app is in DEBUG or RELEASE
...
I have a listing page to display a set of products. Each item has its own well-formatted HTML description. I wanna display part of each item's description to a maximum of 200 characters excluding the html tags and html attributes.
The problem is when I cut down the html string, the return result of html string may not be well-format(may...
Here is the actual line of code I'm looking at:
ContentVersionCache cvc = ((PageBase)this.Page).cache;
I know this is a really basic question but I've just started learning C# so go easy on me :)
Cheers
Iain
...
Hi ,
I have a dataset with some 30 records in it. I want to update it to the database tables. which is the best method to update the table.
I am unable to use dataadapter.update() since i am using a procedure to populate the dataset.
is there any efficient way to update other than iterating through EACH record ...
Does anyone know of a ORM tool for .Net that will work on a database with no primary keys defined? We are running MS SQL Server 2005 by the way.
I cannot change the DB schema and add primary keys - the DB is the of our ERP system and their business logic is aware of what would make a table non-sensical.
For example, it would make se...
I am using a class called BigNumDesc that represents a number. I have a jagged array of that numbers, that represent a matrix.
I first declare this matrix the following way:
BigNumDec[][] matrix = new BigNumDec[][] {
new BigNumDec[] { 1, 2 },
new BigNumDec[] { 3, 4 }
};
Now, I have this method I want to call:
...