16,012,508 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 .NET 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 sovit agarwal (Top 83 by date)
sovit agarwal
1-Dec-14 5:48am
View
Hey Jochen thanks for the help.
But the point is i am working in linux and not windows.
Anything relatd to linux will help me a great deal....
sovit agarwal
18-Nov-14 4:42am
View
Thanks Jochen!!!
sovit agarwal
11-Nov-14 6:49am
View
Thanks Jochen!!!The information was very useful!!
But could you help me any material on this...any study material or codes..
have seen this for the first time...
Thanks a lot!!!
sovit agarwal
9-Jun-14 9:14am
View
i just figured it out....what should it be then set to?
sovit agarwal
9-Jun-14 8:38am
View
No, i am using Winforms
sovit agarwal
9-Jun-14 8:25am
View
I will be saving all the tabs individually, i.e. if tabPage1 is opened currently then by clicking on SAVE only the current tab will be saved....
Next if TabPage3 is selected, then pressing SAVE button will save the contents of TabPage3 only
sovit agarwal
9-Jun-14 2:22am
View
I dont want to append the value of a textBox to the datagridview...i want both the vales separately
sovit agarwal
6-Jun-14 3:11am
View
different instances of the same type
sovit agarwal
6-Jun-14 3:09am
View
Thanks Pete!!!
One question here...My datagridview will have different values in all the tabs which will be loaded from different file locations.
Can this be accounted for?
sovit agarwal
5-Jun-14 7:21am
View
My situation is such that i need to create multiple tabpages at runtime. Each tabPage must have 3 controls (text box, button and datagridview).The datagridview is populated again at runtime from the location entered in the textbox.
So what do you suggest for this now?
sovit agarwal
5-Jun-14 5:59am
View
Thanks friend for your help but i am not using ASP. I am using WinForms...Can u help me with that?
Also i have no idea of placeholders...
sovit agarwal
5-Jun-14 5:58am
View
the XML file is created from the datagridview itself.
When i Click on a button called "SAVE as XML", the empty contents of the view are not taken into account. As a result of which during loading the entire datagridview is not generated.
So now how do i account for saving the datagridview along with the empty fields?
sovit agarwal
5-Jun-14 4:56am
View
the difficulty is i need to create the datagridview at runtime depending on the contents of the XML file . The problem again here is the XML file contains some fields missing , and so these columns are not created
sovit agarwal
5-Jun-14 2:45am
View
That is excellent but how do i select say a row value of a datagridview ?
sovit agarwal
5-Jun-14 2:38am
View
The tasks that the thread will be performing is the same , ie, every thread connects to a client machine and does the job of transferring few files from server to client. So this has to be done parallel connecting all the clients listed at the same time rather than waiting for communication to finish and then starting the other
sovit agarwal
4-Jun-14 3:40am
View
What is busyIndicator here? a variable, method, event ?
sovit agarwal
4-Jun-14 1:31am
View
Is it possible that i can, in every 1 min update the GUI with a message that the "copying is still taking place" and where should that code be written ?
sovit agarwal
3-Jun-14 10:22am
View
It wont be performing any other tasks but after the copying is done, the installation of that file will start on the machine...
sovit agarwal
3-Jun-14 7:33am
View
actually i figured out that i dont need FTP ....
sovit agarwal
2-Jun-14 11:00am
View
Because if the user is accessing the shared location for the first time, it asks for the network credentials. hence i wanted to this way
sovit agarwal
2-Jun-14 7:43am
View
Thanks for the material above but its not a web request that i need to make....
i need to download files from a shared location..
sovit agarwal
1-Jun-14 5:26am
View
Deleted
Can u please help me with an example
sovit agarwal
1-Jun-14 5:22am
View
Well i know that much but i dont know how to report the success and failure
sovit agarwal
30-May-14 8:06am
View
can u be a bit more specific and can u plz give me a code snippet for the same!!!
That would do me a world of goods.
sovit agarwal
30-May-14 6:44am
View
Initially during form setup, the datagridview,visible is set to false.
Depending on whether files are fetched or not, the datagridview.Visible is set to true and the values arepopulated in the datagridview. Buth the problem is that the datagridview needs to be updated from another class and not from the form class. How is it possible to achieve the same
sovit agarwal
30-May-14 5:20am
View
Thanks Karthik!!!
But i need to update the visibilty of the datagridview to "true" and then populate the rows at runtime. So i wanted to ask what will the method exactly contain...
sovit agarwal
30-May-14 5:08am
View
its not asp.net but its windows form...
sovit agarwal
29-May-14 7:51am
View
I am doing it on my own PC and not anyone else's machine. The software is actually stored in a shared remote location and i want to install it with an automation code with the type being Typical.
sovit agarwal
29-May-14 7:37am
View
What exactly is group policy?
m basically looking for a batch file to extract a .exe file from a remote location to a local machine
sovit agarwal
28-May-14 7:17am
View
Sometimes i am getting the error as "Child list for field Table cannot be created" and sometimes the previous values of the file and datagridview are both getting deleted and at times its working fine...
And i dont have clear idea if my dt contains all rows of the gridview
sovit agarwal
28-May-14 5:53am
View
same error.....the previous vale that was written to the file is also deleted..
sovit agarwal
28-May-14 5:53am
View
sorry bro,...but it ain't working
sovit agarwal
28-May-14 5:44am
View
Thanks....
Let me check if its working fine...
sovit agarwal
28-May-14 2:30am
View
The name and data elements are created before the island tag and not inside it...
How can i change that
sovit agarwal
28-May-14 2:28am
View
Deleted
Hi,
I tried your code but there is a slight error and i am unable to rectify it
the output is as follows
<root>
<filetransfer islandlocation="D:\Regression1\Islands" otherfilelocation="D:\Regression1">
<Port>wqfguiqaghekfjakjfa</Port>
<setup>wgwerhgrewhgerhg
<settings>rgwgewrhwgwgwgwegw
<name>AAA
sfsgsdg
<name>BBB
sgtyeyewy
<name>CCC
rhjfjgfjkgfj
<name>DDD
fgjgfjgfjgfj
<island>
<island>
<island>
<island>
The name and data elements are created before the island tag...Please help
sovit agarwal
28-May-14 2:13am
View
Thanks a lot...but how do i add the other parts of the XML to the above code
root islandLocation=""D:\Regression1\Islands"" otherFileLocation=""D:\Regression1"">
<port>" + portConfigtoBase64String + @"</port>
<setup>" + setuptoBase64String + @"
<settings>" + settingstoBase64String + @"
sovit agarwal
28-May-14 1:59am
View
The point is i need to add variable values to my XMl, i.e. the value of the nodes are stored in varibales and that i need to insert these variables in my XML as shown above
sovit agarwal
27-May-14 7:45am
View
The user is not anyone from the outside world. It's just me who is the server as well as the client.Its just that i want a hassle free installation because a uniformity needs to be maintained...
And i understand the risk of installing a software on someone else's PC without notifying that
sovit agarwal
27-May-14 7:43am
View
What about copying an entire folder from remote PC to local PC?
U just mentioned about a file in your first point//
sovit agarwal
27-May-14 7:33am
View
Hi, but this is e copy in one PC it itself...
I want it from a remote location to local PC
sovit agarwal
27-May-14 7:31am
View
Thanks Raul for the answer...
But i have question here...If the folder is not shared on the LAN cant i use the credentials to log into the system and fetch the folder ?
sovit agarwal
27-May-14 7:25am
View
The process is initiated by a server program and to maintain uniformity across my LAN i cannot ask the client to change anything in the setup. As the server will need access to the location where the software is installed.
sovit agarwal
27-May-14 1:15am
View
Actually the design isn't wrong but this is the actual ask of my project...
sovit agarwal
26-May-14 1:17am
View
Thanks for your concern guys....But you all are taking this altogether to a different horizon..please come back to the holy Earth....
Its not someone else's computer...its my own LAN with 5 computers and i need to operate this test scenario from a central server...
And now if you all may help me then it would wonderful!!!
sovit agarwal
25-May-14 15:29pm
View
can u enlighten on how is it done?
sovit agarwal
25-May-14 15:22pm
View
i need to perform some tests on the client machine for which i require to have few softwares installed. If it is not installed i need them to be installed silently
sovit agarwal
25-May-14 15:20pm
View
Well that is the requirement of my project...
sovit agarwal
25-May-14 7:23am
View
now can we discuss if its fine for you?
sovit agarwal
25-May-14 7:22am
View
agarwalsovit9@gmail.com
sovit agarwal
25-May-14 7:17am
View
email id???
discussion....cant it be done here??
sovit agarwal
25-May-14 7:14am
View
I want to serve multiple clients at the same time listed in my datagridview and transfer different files to each of them using those threads. The same threads will be used to access a location on the client machine as well
P.S. Please dont call me Sir
sovit agarwal
25-May-14 7:10am
View
and when did i say i am doing it on intranet ??
I am transferring the files over internet itself...
And i will be pleased if u may help me out with threading :)
sovit agarwal
25-May-14 7:06am
View
I have complete knowledge about TCP file transfer
What i lack is the knowledge about Threading
sovit agarwal
25-May-14 5:46am
View
Actually its an opposite process that i am following.. I want my clients to be listening on a port and the server connects to them....Its unlike the general norm where the server is listening on a port and client connects to the server
sovit agarwal
22-May-14 4:20am
View
Thanx Pineda!!!
But i know this thing....I want bit of help with the underlying code
sovit agarwal
22-May-14 3:14am
View
Thanks avinash but could you please elaborate a bit more....
The problem i am facing is that - there are different xml files with the same fields but the number of rowws in it varies. So to create a form depending on the no. of rows in xml file is a difficulty.
Could you help out with that
sovit agarwal
20-May-14 6:27am
View
I guess its happening because one object of listener class is creating the connection while another object of the same class is trying to disconnect what it has not initiated.
sovit agarwal
20-May-14 6:26am
View
NullReferenceException-Object reference not set to an instance of an object.
and it is pointing to tcpClient.GetStream().Close();
sovit agarwal
20-May-14 6:14am
View
This doesn't seem to be working in my case
sovit agarwal
20-May-14 5:58am
View
Thanks Damith !!
Can u also help me with this ...
http://www.codeproject.com/Questions/775484/How-Do-I-Disconnect-A-Server-Which-Is-In-A-Tcplist
sovit agarwal
20-May-14 5:43am
View
Hi Damith!!
Although the problem was solved but this led to another problem
The number of rows i am adding to this , that many number of columns are also getting alongside it
sovit agarwal
20-May-14 5:15am
View
Thanx Once a again mate!!!!
sovit agarwal
20-May-14 5:07am
View
Deleted
still the same error...<br>
Will your shared code also display the values added in the datagridview??
Shows InsexOutOfRangeException- Cannot find table 0.
sovit agarwal
20-May-14 3:22am
View
That was simply awesome Damith
Thanks a lot!!
sovit agarwal
20-May-14 3:04am
View
i am not using asp.
How would i do that then?
sovit agarwal
20-May-14 2:55am
View
Thats what i am saying..
I have done something incorrectly and want your help to rectify that...
Now if u could enlighten me wid some correct answers that would just be awesome
sovit agarwal
20-May-14 2:40am
View
May i know how to do that?
sovit agarwal
20-May-14 1:58am
View
Hi nayan!!
Thanks for your support but just one question...
Does "fileName" here refer to the file that i need to transfer ? Because i need to transfer 2 or more files depending on the checkbox that is selected in the datagridview and for that i need to have an array ...
sovit agarwal
7-May-14 7:19am
View
Hi Thomas!!
You mean to say that we cannot have a document opened in a new tab. But is there a possibility of doing the same in a different window altogether?
sovit agarwal
7-May-14 5:46am
View
Just like in MS Word , when we click on "OPEN" or "NEW", a document is loaded using a different thread and all the processing on that doc is carried out using that thread.
Similarly, i have a form and my application requires that whenever i click on "NEW" or "LOAD" button on the MENU bar, the "main form" should be loaded on a separate thread and all the processing that has to be carried out is to be done on that thread.
But this doesn't imply that the previous form be closed.Both the forms will run simultaneously.
sovit agarwal
30-Apr-14 8:22am
View
I dont understand the difference between the two.
But, i want is that when i click to create a new tabPage on a tabControl,the new tabPage must have the same controls as it was on the previous tab.
sovit agarwal
28-Apr-14 4:42am
View
Hi Bill!!!
Yes,the MainForm does have a TabControl and when i click on LOAD i want to open a new TabPage with Controls within that same TabControl. No new forms will be created.
sovit agarwal
24-Apr-14 4:53am
View
Thanks Johannes!!!
But may i know if there is any other way apart from using Registry to know the applications installed and their paths. The point is I have to use this code for implementing a Client Server real world application in C# and now i clearly understand that this code cannot be used for real world apps.
If you know of any other method, then do suggest!!!
Thanks again...
sovit agarwal
23-Apr-14 9:52am
View
The point is i only want those values in the array which starts with "Microsoft" and not those that ends with or contains "Microsoft" in between.
I was first trying to write it to a file and then read from the file all those values that start with "Microsft". Is it a good idea?
sovit agarwal
23-Apr-14 9:13am
View
This is what i was working on. Accomplishes a part of my work
private string[] Installed(out string[] softwarePath)
{
string SoftwareKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";
RegistryKey rk = Registry.LocalMachine.OpenSubKey(SoftwareKey);
int count = rk.SubKeyCount, i = 0;
//Declare the string to hold the list of softwares and paths
string[] Software = new string[count];
softwarePath = new string[count];
using (rk)
{
foreach (string skName in rk.GetSubKeyNames())
{
using (RegistryKey sk = rk.OpenSubKey(skName))
{
try
{
if (!(sk.GetValue("DisplayName") == null))
{
//Is the install location known?
if (sk.GetValue("InstallLocation") == null)
{
Software[i] = (string)sk.GetValue("DisplayName");
softwarePath[i] = "Install path not known\n";
i++;
}
else
{
Software[i] = (string)sk.GetValue("DisplayName");
softwarePath[i]=(string)sk.GetValue("InstallLocation");
i++;
}
}
}
catch (Exception ex)
{
//No, that exception is not getting away... :P/>
}
}
}
}
I am now able to get the list of Softwares and their paths and to store it in a file. But now i need to find some specific softwares as mentioned in the Question relating to "Microsoft" and send those softwares x with their paths to the Server.
sovit agarwal
23-Apr-14 8:31am
View
You are absolutely correct.This piece of code just checks for a particular Application and returns a value. I was just able to accomplish this much. And the further help is what i need. Your help will be greatly appreciated!!!
sovit agarwal
23-Apr-14 7:53am
View
Hi Rob!!
installed here means the applications or softwares that you install , for example Mozilla,chrome,VlC,etc
all these are the applications that you install
sovit agarwal
23-Apr-14 7:34am
View
Wes : Help with the question mentioned "Finding path of all installed software in C# having the same prefix name"
sovit agarwal
23-Apr-14 7:34am
View
Ryan please check the code added.I have added it now
sovit agarwal
22-Apr-14 8:33am
View
Thanks a lot !!!
sovit agarwal
22-Apr-14 7:47am
View
Can we like import this xml file and the window be loaded with all the data?
I guess thats not possible!!!
sovit agarwal
22-Apr-14 7:29am
View
Hi Modestas!!
Thanks for your reply...But i have one concern.
If at later point in time, if i want the same data to be populated against the fields,will it be possible that i get back the same window with same data using XML?
sovit agarwal
22-Apr-14 3:14am
View
At least you can let me know what technology to use in order to start building a GUI in Visual Studio using C# that can be deployed in different machines?
Show More