Click here to Skip to main content
15,918,268 members
Home / Discussions / C#
   

C#

 
AnswerRe: Write a 2D array of objects in range Excel C# Pin
Dave Kreskowiak12-Apr-18 7:29
mveDave Kreskowiak12-Apr-18 7:29 
QuestionValidate User Against Active Directory Pin
Kevin Marois11-Apr-18 10:23
professionalKevin Marois11-Apr-18 10:23 
AnswerRe: Validate User Against Active Directory Pin
Keviniano Gayo11-Apr-18 21:55
Keviniano Gayo11-Apr-18 21:55 
GeneralRe: Validate User Against Active Directory Pin
Kevin Marois12-Apr-18 5:47
professionalKevin Marois12-Apr-18 5:47 
GeneralRe: Validate User Against Active Directory Pin
Keviniano Gayo13-Apr-18 1:49
Keviniano Gayo13-Apr-18 1:49 
QuestionGetting a directory path if directory name is given Pin
NiKHiLMS11-Apr-18 3:17
NiKHiLMS11-Apr-18 3:17 
AnswerRe: Getting a directory path if directory name is given Pin
Richard MacCutchan11-Apr-18 3:32
mveRichard MacCutchan11-Apr-18 3:32 
GeneralRe: Getting a directory path if directory name is given Pin
NiKHiLMS11-Apr-18 21:38
NiKHiLMS11-Apr-18 21:38 
thanks for your reply.
Got the solution, but ends up with another problem "Access to the path 'D:\System Volume Information' is denied" . And i didn't find any solution to this. So instead of placing the Data_base anywhere i decided to place it in the application installation folder itself.
Now the path can be easily read by using the code in runtime

string appFileName = Environment.GetCommandLineArgs()[0];
string directory = Path.GetDirectoryName(appFileName);
MessageBox.Show(directory);
GeneralRe: Getting a directory path if directory name is given Pin
Jochen Arndt11-Apr-18 22:37
professionalJochen Arndt11-Apr-18 22:37 
GeneralRe: Getting a directory path if directory name is given Pin
NiKHiLMS11-Apr-18 22:51
NiKHiLMS11-Apr-18 22:51 
GeneralRe: Getting a directory path if directory name is given Pin
Jochen Arndt12-Apr-18 0:01
professionalJochen Arndt12-Apr-18 0:01 
AnswerRe: Getting a directory path if directory name is given Pin
MadMyche11-Apr-18 5:04
professionalMadMyche11-Apr-18 5:04 
GeneralRe: Getting a directory path if directory name is given Pin
NiKHiLMS11-Apr-18 21:39
NiKHiLMS11-Apr-18 21:39 
AnswerRe: Getting a directory path if directory name is given Pin
#realJSOP12-Apr-18 1:25
professional#realJSOP12-Apr-18 1:25 
Generalstring Pin
Baymediasoft technologies11-Apr-18 0:11
professionalBaymediasoft technologies11-Apr-18 0:11 
GeneralRe: string Pin
OriginalGriff11-Apr-18 0:26
mveOriginalGriff11-Apr-18 0:26 
GeneralRe: string Pin
Richard MacCutchan11-Apr-18 1:44
mveRichard MacCutchan11-Apr-18 1:44 
GeneralRe: string Pin
OriginalGriff11-Apr-18 1:51
mveOriginalGriff11-Apr-18 1:51 
QuestionC# Integrating With Skype Pin
Gavin Coates10-Apr-18 9:45
Gavin Coates10-Apr-18 9:45 
AnswerRe: C# Integrating With Skype Pin
Richard MacCutchan10-Apr-18 11:08
mveRichard MacCutchan10-Apr-18 11:08 
GeneralRe: C# Integrating With Skype Pin
Gavin Coates11-Apr-18 3:13
Gavin Coates11-Apr-18 3:13 
AnswerRe: C# Integrating With Skype Pin
Gerry Schmitz10-Apr-18 11:21
mveGerry Schmitz10-Apr-18 11:21 
Questionexcel udf returns only the first column name in order to display a two dimentional array Pin
Gtari Abir10-Apr-18 6:16
Gtari Abir10-Apr-18 6:16 
AnswerRe: excel udf returns only the first column name in order to display a two dimentional array Pin
Richard Andrew x6410-Apr-18 6:57
professionalRichard Andrew x6410-Apr-18 6:57 
AnswerRe: excel udf returns only the first column name in order to display a two dimentional array Pin
Luc Pattyn10-Apr-18 13:03
sitebuilderLuc Pattyn10-Apr-18 13:03 

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.