15,913,669 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13818142 (Top 31 by date)
Member 13818142
15-Nov-18 0:50am
View
I dont have App Manifest Designer in my tool dot know how to get it
Member 13818142
14-Nov-18 4:37am
View
Thank you, but i am unable to understand what was there in the link its showing as we need to assign certificate manually, but i am not having the link which was shown i am using vs2010
Member 13818142
5-Sep-18 2:53am
View
@Griff I am getting the out put with values its a silly mistake i made , but now if i enter 2 values whileprinting the data i am getting only the last value printed
suppose i enter 2 employee ids 501 and 502 while i am printing i am getting only 502
Member 13818142
5-Sep-18 2:49am
View
Thank you sir, i got it but getting the same value which i entered last. not getting all the employee id's enetred.
Member 13818142
5-Sep-18 2:43am
View
Thank you sir for your solution but i need to do it using get and set methods,
Member 13818142
5-Sep-18 2:41am
View
@orginal griff thanks for solution but i am not able to print employee details i am getting value as zero and null .please suggest
Member 13818142
5-Sep-18 2:17am
View
I am entering employee details in console.. so i want to read data what i have entered in console and want to prepare a list and dipslay all the details again
Example: my o/p in console
Enter employee id :501
enter employee name : XXXXXX
Enter employee id :502
enter employee name : XXXXXX
Enter employee id :503
enter employee name : XXXXXX
This way i have entered 3 employee details so i want to read those details and display in a list likethis
Employee ids:501,502,503..
empoyee names:xxxx
Member 13818142
5-Sep-18 2:17am
View
Deleted
I am entering employee details in console.. so i want to read data what i have entered in console and want to prepare a list and dipslay all the details again
Example: my o/p in console
Enter employee id :501
enter employee name : XXXXXX
Enter employee id :502
enter employee name : XXXXXX
Enter employee id :503
enter employee name : XXXXXX
This way i have entered 3 employee details so i want to read those details and display in a list likethis
Employee ids:501,502,503..
empoyee names:xxxx
Member 13818142
5-Sep-18 2:16am
View
I am entering employee details in console.. so i want to read data what i have entered in console and want to prepare a list and dipslay all the details again
Example: my o/p in console
Enter employee id :501
enter employee name : XXXXXX
Enter employee id :502
enter employee name : XXXXXX
Enter employee id :503
enter employee name : XXXXXX
This way i have entered 3 employee details so i want to read those details and display in a list likethis
Employee ids:501,502,503..
empoyee names:xxxx
Member 13818142
5-Sep-18 2:08am
View
.i have written below code using get and set methods to enter employee Details, now if i enter more than two employee details i want to display them in a list ... how can i display values which was enterred in console in a list
class Employee
{
public string Empname = "";
public int EMPID = 0;
//public void print()
//{
// Console.WriteLine("\n Employee Id is " + EMPID);
// Console.WriteLine("\n Employee Name is " + Empname);
//}
//Declare Employee ID
public int EmployeeID
{
get;
set;
}
//Declare Employee Name
public string EmployeeName
{
get;
set;
}
Console.WriteLine(Employee);
}
class Program
{
public static void Main()
{
Employee e = new Employee();// create object with employee
for (int i = 0; i<2; i++)
{
Console.WriteLine("Enter Employee ID", e.EmployeeID);
Console.ReadLine();
Console.WriteLine("Enter Employee name", e.EmployeeName);
Console.ReadLine();
string line = Console.ReadLine();
if (line == "exit")
{
break;
}
}
Console.WriteLine("Employee ID :" + e.EMPID + '\t' + "Employee Name :" + e.Empname);
Console.ReadLine();
}
}
//public class Book
//{
// public string BookName { get; set; } = string.Empty;
// public string Author { get; set; } = string.Empty;
// public string ISBN { get; set; } = string.Empty;
//}
}
Member 13818142
25-May-18 5:26am
View
i hve done with checking the single checkbox but i need to select all files at a time..
Member 13818142
24-May-18 8:15am
View
Hi, i have written below code to open a certain folder , but i can open only the folder not the subfolder how can i opn with subfolder.
void BtnopenEncfolderClick(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo() {
FileName = SelectedPath,UseShellExecute = true,Verb = "open" });
}
Member 13818142
24-May-18 5:43am
View
sir in my above code i used target path to save encrypted files, i need to open that specified path only from using file dialog or folder browser instead of that path i am getting default project path, my aim is to get path where files are saved. how can i get it
Member 13818142
24-May-18 5:19am
View
i have written like this from above sourcefile i need to get,.
Member 13818142
24-May-18 4:29am
View
@OrginalGriff sorry its not uploading i am saving a encrypted file in a certain folder in local drive,so i need to open that folder after completing my encryption.how cani do that..
f (CheckBoxRowCounter > 0) {
for (int i = 0; i < dataGridView1.RowCount; i++) {
try {
if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value)) {
string SourceFilePath = dataGridView1.Rows[i].Cells[1].Value.ToString();
string FileName = new System.IO.FileInfo(SourceFilePath).Name;
Encryption.AES a= new AES();
string TargetFilePath = subFolder + @"\" + FileName+".enc";
FileInfo file1 = new FileInfo(SourceFilePath);
a.EncryptFile(SourceFilePath, TargetFilePath + file1.Extension.ToString(), Hidkey[0, 1].ToString());
File.Delete(SourceFilePath);
}
} catch (Exception e2) {
MessageBox.Show(e2.Message);
}
}
MessageBox.Show("Selected Files Encrypted");
FillGridView();
var fbd = new FolderBrowserDialog();
if(fbd.ShowDialog() == DialogResult.OK)
{
//File.Copy(remote_address, localPath);
}
Member 13818142
22-May-18 23:36pm
View
@Richard Thanks it worked...
Member 13818142
22-May-18 8:33am
View
I have already assigned ftp address and details as public and declared in btnupload,in db i have just declared ftp address as 192... with out updating it to ftp:// so how can i combine this ftp:// to the above code.
Member 13818142
22-May-18 8:29am
View
Its not to download a file need to upload encrypted file to ftp
Member 13818142
18-May-18 2:14am
View
@Jones thanks for your suggestions, i have written this to read the file.
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load("data.xml"); and i have an ip address in that xml file i need to get data from that ip addreess , i have written above code to display values by declaring path as public, but now i used it in xml and from that file i need to get data, if i do any chnages in xml by default it should appear in code.how can i get data using xml file
Member 13818142
18-May-18 1:48am
View
I have written xml file in note pad and saved it in a debug folder. so how can i read them Path.GetDirectoryName(Application.ExecutablePath); i used this to read but i am not getting the xml file what i have save.
Member 13818142
17-May-18 6:12am
View
I need to get files from a specified folder how can i get from a specified folde(i.e E/folder1) when i click get files i need to get files of that folder in datagridvew
Member 13818142
17-May-18 1:30am
View
Deleted
thank you sir , i have tried this it exceutes with out any error, but i need to call these functions under buttonupload click function in the below program.
if (CheckBoxRowCounter > 0)
{
// String folderPath = folderBrowserDlg.SelectedPath;
for (int i = 0; i < dataGridView1.RowCount; i++)
{
if (Convert.ToBoolean(dataGridView1.Rows[i].Cells[0].Value))
{
string SourceFilePath = dataGridView1.Rows[i].Cells[1].Value.ToString();
string FileName = new System.IO.FileInfo(SourceFilePath).Name;
Encrypt_and_decrypt.AES a = new AES();
string TargetFilePath = _SelectedPath + @"\" + FileName;
FileInfo file1=new FileInfo(SourceFilePath);
a.EncryptFile(SourceFilePath,"D:\\test"+file1.Extension.ToString(),Hidkey[0,1].ToString());
//upload
need to call upload function
//Move upload
need to call move function
}
}
Member 13818142
17-May-18 0:36am
View
Deleted
i converted it into public string upload where i need to get the values in the code where i need toupdate. i have tried writing return upload(..) but it is not taking
Member 13818142
15-May-18 8:50am
View
this way i created date directory to a sub dirctory
Member 13818142
15-May-18 7:43am
View
@orginalGriff i used E drive to save the files the required date folder was created and i can move the files.i have written below code.
String Todaysdate = DateTime.Now.ToString("dd-MMM-yyyy");
string datefolder = Path.Combine(subFolder,Todaysdate);
if(!Directory.Exists(datefolder))
{
Directory.CreateDirectory(datefolder);
}
string sourcePath = firstFolder;
string targetPath = datefolder; }
string sourcePath = firstFolder;
string targetPath = datefolder;
string sourceFile = System.IO.Path.Combine(sourcePath, FileName);
string destFile = System.IO.Path.Combine(targetPath, FileName)
Member 13818142
15-May-18 7:17am
View
yes i have done like this c:/folder1/subfolder1/11-05-2018 i have done till folder path i need to create one more directory with date when i upload file every time i need to create current date directory. can you suggest
Member 13818142
11-May-18 0:54am
View
I have already written a code for encrypting files i am calling them in the button click, what actually i need is when i click on button i will be selecting(checking) some files in grid view, the selected files need to be encrypted and move to a folder in local system.
Member 13818142
9-May-18 3:19am
View
the same way when i upload i need to write a code for a file and then that file should be encrypted any idea.
Member 13818142
9-May-18 3:18am
View
@Rick thanks for your reply error got resolved it was just a simple mistake, i am taking correct ftp username and pwd, sorry for trouble..
Member 13818142
9-May-18 2:36am
View
sorry sir i have complied above code but unable to display files in ftp server not sure where to change the code searched examples but i am not sure where to change please suggest, my loop is getting terminated after clientuploadfile(...)statment
Member 13818142
8-May-18 23:30pm
View
Hi i am getting error as The name 'ftpRequest' does not exist in the current context what should i do
Show More