|
Thanks for your help! It works great if I use the following:
<br />
ProcessStartInfo psi = new ProcessStartInfo();<br />
psi.FileName = "myConsoleApp.exe";<br />
psi.Arguments = "myArgument"; <br />
psi.WindowStyle = ProcessWindowStyle.Hidden;<br />
psi.UseShellExecute = false;<br />
psi.RedirectStandardOutput = true;<br />
Process myProcess = Process.Start(psi);<br />
StreamReader sr = myProcess.StandardOutput;<br />
MessageBox.Show("myConsoleApp wrote the following: " + sr.ReadLine());<br />
myProcess.WaitForExit();<br />
MessageBox.Show("myConsoleApp finished. Return code: " + myProcess.ExitCode);<br />
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hey Guys, I have a DataGridView which is populated, It's field are from multiple tables like below:
MaterialTable
BookName
MaterialTypeID (FK for MatrialID)
MaterialTypeTable
MatrialID
MaterialType
and I populate my DataGridView in the following form:
Selecte T1.BookName, T2.MaterialType FROM MaterialTable AS T1 INNER JOIN MaterialTypeTable AS T2
ON T1.MaterialTypeID = T2.MatrialID
Now I want to Update the Grid and as you see my DataGridView has a combo box ( actually the reall one as more than 5, and this is just a sample)
I want to know what's the best method of doing this update ?!
Thanx in Advance
Mr.K
|
|
|
|
|
Hi,
Are you trying to add a new column with a combo box? If it is them add the combobox in the ItemTemplate of the gridview control. Write down the code in the RowDataBound event of the grdiview control to bind the drop-down list with the data from the select query that you have written.
Either you love IT or leave IT...
|
|
|
|
|
|
I am pretty sure you can't do that the way you are hoping. One solution, thou messy, could be to create another form with No Border and have that hover over your other form to give the illusion of another button on the title bar.
But like I said its a bit messy and would surely be easier to create your own title bar.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
In a simple and straight forward way, it is not possible. You can do it explicitly.
Either you love IT or leave IT...
|
|
|
|
|
Bonjour,
Comment je peux parcourir un dossier dans une application sur PDA,
sachant que je n'ai pas pu utiliser "FolderBrowserDialog" the
component from the Dialogs tab of the Toolbox.
Merci
|
|
|
|
|
As much as I like France, this is an ENGLISH (yeah Ros Biff) centric site, you will get a much better response if you can use english.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
If you don't want to use the Folder or File dialogs, then you will have to 'roll your own' from the classes in the System.IO namespace.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thanks,
But how can I roll my own, from the classes in the System.IO namespace.
I'm still a beginner
|
|
|
|
|
Have a look in the Object Browser or on MSDN at the classes in there, some will obviously be very useful.
Experiment with them on a simpler task first so you get used to their methods and properties and post if you get stuck - along with the code you've tried.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
hi,
how i can get all current files openned by each running process using c#?
|
|
|
|
|
Good Day
I have a Web Application that has a setup project, now Everytime I build this Project I get the Following Error
Error 2 Could not find file 'C:\Work Development\!Class\PRODUCTION_CODE\ControlDesk\ControlDesk\o!TimeTableSetup\Release\o!Web.msi' 'The system cannot find the file specified.' C:\Work Development\!Class\PRODUCTION_CODE\ControlDesk\ControlDesk\o!TimeTableSetup\o!TimeTableSetup.vdproj o!WebSetup
Please Help
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello, please I wanted to know how I change the titles on-DATAGRIDVIEW?
Thank you very much.
|
|
|
|
|
|
I am writing in-c # deal with OLEDB..
|
|
|
|
|
I think you need to start learning from starting.
Simple way SET HeaderText Property of Column.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
Following is not working kindly give me correct syntax.
SendKeys.Send("{ALT+V}");
Thankx in advance
(Riaz)
|
|
|
|
|
Hey,
you can check this.
Try[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Please can some describe how to
programmatically populate a combo box
at runtime in a windows application
using C#?
|
|
|
|
|
Ekpezu wrote: programmatically populate a combo box
clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You could get dozens of hints in google quite easily.
Either you love IT or leave IT...
|
|
|
|
|
Hello, I do try to update my form but I can not, I would be happy if someone would give me an example of the update query.
Thank you very much.
|
|
|
|
|
here you go[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|