suppose I want to automatically download a file from url that is located inside an authentication-required website into which I login using automated WebBrowser control based on Internet Explorer. But, once I am there and grab the link to the file, if I try to download it directly via IE6 by navigating to it, there will be the "do you wa...
The title largely sums up my question but to expand, I'm a junior software engineer, but I'm also the primary developer for a fairly large department (mostly EE's) What would learning MEF do for me as a developer as far as professional growth, and what will it add to my projec that I can't manage manually?
...
My attempt (below) fails:
<Canvas x:Key="Lock" ... />
<Canvas x:Key="Unlock" ... />
<Style x:Key="LockButtonStyle" TargetType="{x:Type Button}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsReadOnly}" Value="True">
<DataTrigger.Setters>
<Setter Property="Content" Value="{StaticResource...
I'm looking for recommedations for a .NET UDP component/library that supports async calls. It can be for .NET 2.0 or later, with our preference being that it supports 4.0. It doesn't have to be free, but of course, free is good too. :-)
I know that we could write our own, but time is limited and the budget allows for us to purchase o...
I have connection string declared in [app|web].config and assemblies (for example DAL and Reporting) that relies on this connection string. What is the best thing for you to configure such assemblies:
Use hard-coded connection string name in [app|web].config connectionStrings section to let assembly retrieve it's configuration by hard...
Hi, Where do we put the StateChanged trigger from expressionblend.codeplex.com ?
<i:Interaction.Triggers>
<sam:StateChanged Completed="True" StateName="BeforeUnloaded">
<... />
</sam:StateChanged>
</i:Interaction.Triggers>
the above code i tried gave me a compile error saying A value of type 'StateChanged' cannot be added to...
Hi all. I'm trying to get a hotkey control working in C# based on both the Control class and the msctls_hotkey32 win32 class. What I have works, though it's not perfect:
class Hotkey : TextBox
{
protected override CreateParams CreateParams
{
get
{
CreateParams parms = base....
What is the fastest way to determine if one IEnumerable contains all the elements of another IEnumerable when comparing a field/property of each element in both collections?
public class Item
{
public string Value;
public Item(string value)
{
Value = value;
}
}
//example usage
Item[] List1 = {new Item("1"),n...
My WPF application is organized as a TabControl with each tab containing a different screen.
One TabItem is bound to data that takes a little while to load. Since this TabItem represents a screen that users may only rarely use, I would like to not load the data until the user selects the tab.
How can I do this?
...
namespace WebApplication4
{
public partial class _Default : System.Web.UI.Page
{
public static bool UrlIsValid(string url)
{
bool br = false;
try
{
IPHostEntry ipHost = Dns.Resolve(url);
br = true;
}
catch (SocketException)
{
br = false;...
Consider this class:
Class Item : Inherits ItemBase
Public Sub New
AddHandler MyEvent, AddressOf MyEventHandler
End Sub
Private Sub MyEventHandler()
End Sub
Private Sub MySecondEventHandler() Handles MyBase.MyEvent
End Sub
End Class
Do I have to manually remove the handlers on destruction of thi...
Dear skilled. I’m developing an entity which allows user to copy multiple files in async manner with cancellation ability (and reporting progress as well). Obviously the process of copying runs in another thread, different from thread where CopyAsync was called.
My first implementation uses FileStream.BeginRead/BeginWrite with a buffer ...
Is there a way to check if code is executed in a TransactionScope?
Something like:
if(TransactionScope.Started|Enabled){...}
...
Using a BindingSource attached to an ObservableCollection I have a combobox displaying the items in the collection. Visual Studio automatically includes a BindingNavigator so I've enabled some features on that as well. Using the Add button to add a new item; the combobox automatically selects the new item. I assume this is because the Bi...
I have a directory that contains lots of files in a complex tree of sub-directories.
If I try to move that directory into a another directory on the same partition, that operation could theoretically take constant time - a rename operation, basically. - as long as none of the files in the source directory are in use and there are no sec...
Does the .NET's Virtual Machine compiles the CIL bytecode (and then execute the code at the lowest level - CPU assembler), or it is an interpreter (that reads the following instructions and execute them) ?
...
how will i convert the following public key to integer.
these are the RSAKeyValue:
Modulus: yf4I7PVef43rZ2NdPFA5FQFb/y/k/5Awqrwc+/VDUimthRg4C5K2P6EUhU5n2m4HUiz102LIuwsYDYuyHwG3VUbAb4zjqxiOwrSpsHfCvgOdLsb4DBrXFFGp5kMtoZrDzl84tnDlyYgy8v3o5Qp2eeQgDaau2PhYUxoco6IArHU=
Exponent:AQAB
i want to do this bcoz i want to take its xor wi...
Hello everyone,
I am using ASP.Net + .Net 3.5 + VSTS 2008 + IIS 7.0 + C# to develop a web application. I want to count how many users are online. This is my current implementation,
when Session_Start is called, I will increase # of users online by 1;
when Session_End is called, I will descrease # of users online by 1.
Two quesitons,...
Hello everyone,
I am using ASP.Net + .Net 3.5 + VSTS 2008 + IIS 7.0 + C# to develop a web application. I want to use Fiddler to debug (i.e. monitor request and response Http traffic) local traffic -- i.e. when I test web application inside VSTS 2008's built-in test ASP.Net web server. Is that feasible? If yes, how to monitor such traffi...
Hi
I am tring to use Bings Streetside.
I have searched a lot in Google but nothing.
In all post says, that I need to download Microsoft.Maps.MapControl.ExtendedModes.dll but all links are invalid. I can't download it.
These inks are incorrect too.
What can I do?
Thanks.
...