Click here to Skip to main content
15,880,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: Overriding DataGrid::OnPaint Pin
Ista4-Sep-03 3:18
Ista4-Sep-03 3:18 
GeneralNetwork Management Tools (NMT) Pin
loveprogramming2-Sep-03 16:39
loveprogramming2-Sep-03 16:39 
Questionun-editable combobox? Pin
zecodela2-Sep-03 16:29
zecodela2-Sep-03 16:29 
AnswerRe: un-editable combobox? Pin
Ista2-Sep-03 16:47
Ista2-Sep-03 16:47 
GeneralGetting the project's/executable's root path Pin
tsigo2-Sep-03 15:04
tsigo2-Sep-03 15:04 
GeneralRe: Getting the project's/executable's root path Pin
David Stone2-Sep-03 15:17
sitebuilderDavid Stone2-Sep-03 15:17 
GeneralRe: Getting the project's/executable's root path Pin
tsigo2-Sep-03 15:26
tsigo2-Sep-03 15:26 
GeneralConnection to network shares Pin
Trojan2K2-Sep-03 13:09
Trojan2K2-Sep-03 13:09 
Hi All,

I dunno if I'm being blind or a bit stupid, but this problem is bugging me now Smile | :)

Im trying to connect to a share on a server on a different domain, I know that if the user logged
on and running program has credentials for this share then it works easily simply using Directory and File from System.IO,

However I cant give the users access to the server itself so I need the program to control its own access by specifying the un/pw/domain name at time of connection , I thought this owuld be easy considering that the Framework is by definition geared towards internetworking , but I guess I may be wrong !

I can make the connection Ok if I call the 'net use' command from a diagnostics process, but I dont like this, because of timing and the potential security risk, IE if the program crashes then the user will have access to the particular network share through my computer.

THe other way I know of, is to wrap the functions of MPR.DLL and simply use WNET to make and destroy my connections ... this works fine but doesn't seem like the best solution ...

Anybody have any ideas or indeed the correct way of doing this ?

Thanks very much.
GeneralRe: Connection to network shares Pin
Mazdak2-Sep-03 20:18
Mazdak2-Sep-03 20:18 
GeneralSQLDMO Pin
yyf2-Sep-03 12:18
yyf2-Sep-03 12:18 
QuestionHow I can position a form? Pin
yyf2-Sep-03 11:19
yyf2-Sep-03 11:19 
AnswerRe: How I can position a form? Pin
yyf2-Sep-03 11:31
yyf2-Sep-03 11:31 
GeneralDatabindings Pin
yyf2-Sep-03 10:44
yyf2-Sep-03 10:44 
GeneralRe: Databindings Pin
Gilles B.2-Sep-03 12:41
sussGilles B.2-Sep-03 12:41 
GeneralRe: Databindings Pin
yyf2-Sep-03 12:59
yyf2-Sep-03 12:59 
GeneralRe: Databindings Pin
Ista2-Sep-03 16:54
Ista2-Sep-03 16:54 
GeneralDataBindings Pin
yyf2-Sep-03 10:27
yyf2-Sep-03 10:27 
GeneralRe: DataBindings Pin
Ista2-Sep-03 16:56
Ista2-Sep-03 16:56 
GeneralAuthenticating to a web site Pin
roberthanacek2-Sep-03 10:24
roberthanacek2-Sep-03 10:24 
GeneralRe: Authenticating to a web site Pin
leppie2-Sep-03 12:09
leppie2-Sep-03 12:09 
GeneralSingleCall Objects not Disposing Pin
0siris2-Sep-03 8:03
0siris2-Sep-03 8:03 
GeneralOverride the asterisk and row arrow in datagrid Pin
Ista2-Sep-03 7:02
Ista2-Sep-03 7:02 
General(Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 5:59
Frank Olorin Rizzi2-Sep-03 5:59 
GeneralRe: (Rich) Text Box and cursor position Pin
Frank Olorin Rizzi2-Sep-03 6:07
Frank Olorin Rizzi2-Sep-03 6:07 
GeneralRe: (Rich) Text Box and cursor position Pin
.gonad2-Sep-03 6:47
.gonad2-Sep-03 6:47 

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.