Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: Pass data between two child forms Pin
musefan23-Jul-09 7:00
musefan23-Jul-09 7:00 
GeneralRe: Pass data between two child forms Pin
Saamir23-Jul-09 7:14
Saamir23-Jul-09 7:14 
GeneralRe: Pass data between two child forms Pin
Saamir23-Jul-09 7:25
Saamir23-Jul-09 7:25 
AnswerRe: Pass data between two child forms Pin
Giorgi Dalakishvili23-Jul-09 7:45
mentorGiorgi Dalakishvili23-Jul-09 7:45 
QuestionProblem with overriding minimization of Form with Wndproc Pin
ThomasManz23-Jul-09 6:16
ThomasManz23-Jul-09 6:16 
AnswerRe: Problem with overriding minimization of Form with Wndproc Pin
musefan23-Jul-09 6:57
musefan23-Jul-09 6:57 
GeneralRe: Problem with overriding minimization of Form with Wndproc Pin
ThomasManz29-Jul-09 10:09
ThomasManz29-Jul-09 10:09 
QuestionThrowing exception while Copying a file from a system to a shared location in another system Pin
cdewzrd23-Jul-09 4:35
cdewzrd23-Jul-09 4:35 
HI,
While trying to run the below code for copying a file from my system to another share folder, it returns an exception saying "Incorrect function" at the line WindowsIdentity idnt = new WindowsIdentity("domain_username", "password") in the below given code:

using System;
using System.Collections.Generic;
using System.DirectoryServices;
using System.Text;
using System.Management;
using System.Windows;
using System.Security.Principal;

namespace Authentication
{
class Program
{

AppDomain.CurrentDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy.WindowsPrincipal);
WindowsIdentity idnt = new WindowsIdentity("domain_username", "password");


WindowsImpersonationContext context = idnt.Impersonate();

System.IO.File.Copy("G:\\E-Drive\\batfiles\\java.bat", "\\\\10.200.93.93\\share\\java.bat", true);


Can any one help me out to resolve this issue?
Thanks in AdvanceSmile | :) _
AnswerRe: Throwing exception while Copying a file from a system to a shared location in another system Pin
DoctorMick23-Jul-09 5:19
DoctorMick23-Jul-09 5:19 
QuestionButtons look different with DirectX Pin
Jordanwb23-Jul-09 4:30
Jordanwb23-Jul-09 4:30 
AnswerRe: Buttons look different with DirectX Pin
Nagy Vilmos23-Jul-09 6:32
professionalNagy Vilmos23-Jul-09 6:32 
QuestionXML Deserialisation to an inherited class type based on an XML attribute Pin
Clive D. Pottinger23-Jul-09 4:17
Clive D. Pottinger23-Jul-09 4:17 
AnswerRe: XML Deserialisation to an inherited class type based on an XML attribute Pin
Muhammad Mazhar23-Jul-09 4:50
Muhammad Mazhar23-Jul-09 4:50 
GeneralRe: XML Deserialisation to an inherited class type based on an XML attribute Pin
Clive D. Pottinger23-Jul-09 5:30
Clive D. Pottinger23-Jul-09 5:30 
AnswerRe: XML Deserialisation to an inherited class type based on an XML attribute [modified] Pin
Clive D. Pottinger23-Jul-09 5:57
Clive D. Pottinger23-Jul-09 5:57 
Questionread registry value from XML file and find it into the the registry?????can anybody help me. Pin
janeeta23-Jul-09 4:07
janeeta23-Jul-09 4:07 
QuestionProcess Enumeration loop Pin
Haydn01223-Jul-09 4:06
Haydn01223-Jul-09 4:06 
AnswerRe: Process Enumeration loop Pin
DoctorMick23-Jul-09 5:23
DoctorMick23-Jul-09 5:23 
GeneralRe: Process Enumeration loop [modified] Pin
Haydn01223-Jul-09 5:29
Haydn01223-Jul-09 5:29 
QuestionDataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:12
jonhbt23-Jul-09 3:12 
AnswerRe: DataTable.Select() PRoblem PinPopular
Tom Deketelaere23-Jul-09 3:19
professionalTom Deketelaere23-Jul-09 3:19 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:25
jonhbt23-Jul-09 3:25 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:27
jonhbt23-Jul-09 3:27 
GeneralRe: DataTable.Select() PRoblem Pin
Tom Deketelaere23-Jul-09 3:40
professionalTom Deketelaere23-Jul-09 3:40 
GeneralRe: DataTable.Select() PRoblem Pin
jonhbt23-Jul-09 3:51
jonhbt23-Jul-09 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.