Hi,
I'm writing an client application that has to query a URL and confirm the user is authorized to be used the client. Think of it as a very rudimentary licensing mechanism. The page on the server writes out a plain text string including some information about the user which serves as the validation. All this is done over SSL.
However...
I need a working example of the ExtractAssociatedIcon function in Shell32.dll. I cannot get it working and I am out of ideas. I need another set of eyes on the following code. When the form loads, its icon should be set to the Visual Studio icon, but all I get is the default system icon.
Imports System.Runtime.InteropServices
Public Cl...
Does anyone know how to deal with this error?
cannot convert from 'System.Guid?' to 'System.Guid'
...
As many of you know there is no copyright law in some countries. I support copyrights myself, but in Iran:
Windows Server 2008 =1$
king 2008 = 14$
MS SQL Server 2008 =50 Cents
...
How can I prevent my code being decompiled in 30 seconds. I have seen lot's of videos which learn how to decompile in 30 seconds. What is best obfuscator pr...
Howdy everyone!
I want to ask you for direction for creating a timeline slider similar to the one in Plurk.
I want to arrange my events on a timeline and make the user slide through this time line to navigate the events.
I just want to know weather I can do it using silverlight or not ? or any other feature in the .NET platform.
Than...
I was wondering if ASP.NET MVCF be used with a Postgresql database?
...
This is a problem I've had to deal with in my last project, and although I found a working solution, I wasn't too happy with it and am wondering if there would've been a better, cleaner one.
Problem:
Basically, I needed to implement a ComboBox that inserts or appends an item (selected from the drop-down list) to the textbox instead of ...
Here's what I am trying to do:
Select TextBox in designer mode.
Open advanced databinding dialog via properties panel.
What opens up is a dialog where I cannot select anything - there is a list of (TextBox) properties on the left side, each having a little "no parking" icon. The rest of the dialog is disabled. Nothing I can do but hi...
I have to connect with PHP WebService via SOAP from a .Net (C#, WPF) application. I added reference to this service, some proxies were generated.
When I invoked some function:
var client = new someAPIPortTypeClient();
XmlNode[] response = client.status(arg1, arg2);
I got response:
SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http:/...
Hi there,
By default, a property bound to a NumericUpDown is updated only when the NumericUpDown loses focus.
Is there any way I can make it being updated right away with the displayed value, e.g. when the user clicks the up or down arrow?
Thanks a lot for any hints!
...
I have a ClickOnce application that I would like to "re-brand" for multiple clients.
Is there a way, without separate deployments or branched builds, to change the start menu folder/link of the application?
Obviously once it starts and gets the settings it can rebrand everything else from there...
...
I have an application where I need to check emails as they come, however using POP3 to poll an email server is a major pain.
Ideally I'd just like to setup an email server and write a plugin for it to handle some sort of EmailReceived event, that contains all the headers and content of the e-mails received.
I'm not looking to create an...
Hi
I trying to implement synchronization algorithm in C#, without success.
Why isn't the following code thread safe?
using System;
using System.Threading;
namespace SoftwareLockTest
{
class Program
{
private static volatile bool _isLocked1 = false;
private static volatile bool _isLocked2 = false;
priva...
I have a ASP.NET website in which a user makes a request. Every request kicks off a long process that may take several minutes (worst case of 20 mins). At the end of the request a file is created for the user to download.
Currently, I have this request kick off the process asynchronously (using Async pages) but I am getting time out err...
I'm trying to write an extension method that will add the function HasFactor to the class int in C#. This works wonderfully, like so:
static class ExtendInt
{
public static bool HasFactor(this int source, int factor)
{
return (source % factor == 0);
}
}
class Program
{
static void Main()
{
int i = 5...
How can i Display selected row of Gridview data to next page in another Gridview?
For example, In listing page i want to select perticular row and take that data to another page and display over there.
I have two grid view one in 1st page
and next one in 2nd page. Now when i
select a record in 1st page gridview,
than that rec...
Hi,
I am using the below code to find all the items in a listbox using vb.net 2005. But how can remove the non searched items from the listbox after searching?
EDIT : I included the entire code
Imports System.IO
Public Class Form1
Public Sub New()
InitializeComponent()
ListBox1.SelectionMode = SelectionMode.Mu...
I am writing a BHO for IE using C#. The code I'm concerned with is this:
public class BHO : IObjectWithSite, IOleCommandTarget
{
...
public BHO()
{
MessageBox.Show("Constructor called");
}
public int SetSite(object site)
{
MessageBox.Show("SetSite called!");
if( site != null )
{
...
I have a delegate defined in my code:
public bool delegate CutoffDateDelegate( out DateTime cutoffDate );
I would like to create delegate and initialize with a lambda or anonymous function, but neither of these compiled.
CutoffDateDelegate del1 = dt => { dt = DateTime.Now; return true; }
CutoffDateDelegate del2 = delegate( out dt ) {...
I'm using Castle ActiveRecord, but wrapping it in my own persistence layer, because I want to hide this fact from application code. However, my entities all inherit from ActiveRecordBase<T>, so my choice of ORM is leaking to the application. What I especially don't like is the slew of methods this exposes off my entities.
How can I use ...