|
It would be nice if you can share whatever you did. We can identify your issue easily. try to post your question descriptive.
Even i suggest to post reason for doing that work. Some people may have different way of doing the same thing with less efforts.
"Sometimes Questions are so nicely formed so we attract to give them answers." I call it An Effective Question.
|
|
|
|
|
i have create a page which work like browser but when i click on link/button in website open new page it open in default browser of my computer .how i face this problem.i want open new page in my form
sumit
|
|
|
|
|
How To Deloyment project in C#
|
|
|
|
|
|
I think you'll have to supply a bit more information - we cant read your mind
what sort of project ?
how many dependencies & 3rd party libs/dlls are there ?
what is the target system - does it have the same C# runtime/framework version ?
Are you talking with a database for example
do you need to do a firewall change request for the deployment machine
(for instance)
The last time I had to do this I simply created an msi and made sure that had all the dependencies/3rd party dll's within it, copied that to the deployment machine, ran it, and off I went - but every situation varies
|
|
|
|
|
I doubt that I understood your question, but lemme give a shot:
If you ask on how to write code in C#, you are best off starting here[^]
If you are asking how written code can be deployed (e.g. how to create a setup to deploy your executable) you should read this[^]
The scariest moment is always just before the Start - Stephen King Die Frauen warten auf die Liebe, und die Männer warten auf die Frauen - Wolf Wondratschek
|
|
|
|
|
|
|
|
Seeing that your question is a bit light on detail, I will just point you at the documentation on MD5[^].
|
|
|
|
|
|
Quote: MD5 is officially "broken" and should not be used for new designs - SHA is preferred
Thanks for this information. I am not aware about that. You deserve Up vote.
|
|
|
|
|
hi,
i want to insert multi rows from datagridview to another datagridview.
my form :
- 2 datagridview : datagridview1 and datagridview 2
- 1 button
when i select one or more rows from datagridview1 and push button. it' ll pass to datagridview.
please give me a easy solution with my project.
thanks
|
|
|
|
|
|
do you have code for this solution,
thanks
|
|
|
|
|
Try writing it.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have given you links to the relevant methods and properties. Surely it is not that difficult to write it for yourself, if you aspire to be a developer.
|
|
|
|
|
hi friends,
I have search this on this net but most XML data they have used only with one attributes. My XML structure as follows and this data is in the file called "CountList.xml"
<Countries>
<Country>
<ISO>USA</ISO>
<Name>United States</Name>
</Country>
<Country>
<ISO>RUS</ISO>
<Name>Russian Federation</Name>
</Country>
<Country>
<ISO>PRC</ISO>
<Name>China</Name>
</Country>
</Countries>
How do I load above data to a combobox, have Display Member as Name and the Value Member as ISO?
Note: I don't want to use any form of LINQ!
|
|
|
|
|
Your best bet would be to create a Country class with properties Name and ISO and the use the XmlSerializer[^] class to load the file into a collection. Something like this :
XmlSerializer deserializer = new XmlSerializer(typeof(List<Country>));
using (TextReader reader = new StreamReader("yourxmlFile.xml"))
{
object obj = deserializer.Deserialize(reader);
List<Country> countries = (List<Country>)obj;
cboCountries.DataSource = countries;
cboCountries.DisplayMember = "Name";
cboCountries.ValueMember = "ISO";
}
Hope this helps
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Hi Every body.
I have a scenario in which I have to send series of commands to command prompt. I have achieved It almost using system.diagnostics.Process but when I execute my program in windows XP, it does not behave propely as it behaves in Windows 7.
I am trying to open other applications in interactive mode.Honestly I am able to do it in windows 7 but in win XP process are just started and lives in background. as soon as I close the console they begins to launch one by one. There is something missing in my code which is not letting them launch(Problem is Only in XP).
Following are the steps I'm doing in C# code.
Step #1: Opening command prompt
using (Process process = new Process())
{
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.WorkingDirectory = @"C:\";
process.StartInfo.FileName = Path.Combine(Environment.SystemDirectory, "cmd.exe");
process.StartInfo.RedirectStandardInput = true;
process.OutputDataReceived += ProcessOutputDataHandler;
process.ErrorDataReceived += ProcessErrorDataHandler;
process.Start();
process.BeginOutputReadLine();
process.BeginErrorReadLine();
}
Step 2: Giving commands one by one by using standard input.
I need you people to correct me if I am going in wrong direction.
Please help me identify the problem that who is blocking programs and why they are launching after closing console
|
|
|
|
|
Why did you wrap each Process in a using block? You're launching processes incorrectly as you're Disposing the Process object right after you create it and start the Begin...Reads!
It's only by chance that this works under Windows 7.
Create your Processes and keep them in a List<process>. Don't use a using block around them.
|
|
|
|
|
Syed Ata-Ur-Rehman wrote: I am trying to open other applications in interactive mode Then it is not necessary at all to start that command with a "cmd.exe ..." call. Just call the application you need, e.g. process.StartInfo.FileName = Winword.exe
|
|
|
|
|
Since that I have created about 15 separate libraries for the main exe, they are in the same folder as exe.
I was thinking of putting those class libraries (DLLs) into a folder called "Libraries" in the main exe folder, so that the directory will look cleaner and organized.
How can I do that so that the exe file can load libraries from "Libraries" folder?
I'm using Visual Studio 2010 Premium.
|
|
|
|
|
To load an assembly from a specified subdirectory of the application's base directory requires a modification to the configuration file.
e.g.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Libraries"/>
</assemblyBinding>
</runtime>
</configuration>
See probing element[^] at msdn.
The Assembly Fusion log viewer[^] will show all paths searched during assembly loading and is a useful tool to have running, especially if you make a mess of editing the config file. It's helped me out more than once!
Alan.
|
|
|
|
|