[Mono-list] Problem with C# and TextView

3ricks0ul ing.erick.silva at outlook.com
Tue Nov 20 06:15:44 UTC 2012


Good night guys, I have the following code in C #:

protected void OnBoton3Clicked (object sender, System.EventArgs e)
	{
		ProcessStartInfo psi = new ProcessStartInfo ();
		psi.FileName = "/tmp/avax.sh";
		psi.UseShellExecute = false;
		psi.RedirectStandardOutput = true;
		
			
		psi.Arguments = "test";
		Process p = Process.Start (psi);
		string strOutput = p.StandardOutput.ReadToEnd();
		p.WaitForExit ();
		texto.Text=(strOutput);
		
	} 


Runs a script that shows me the log of an analysis to the directory / media
from Avast AV for Ubuntu, the problem is that the variable "texto" is a
label, so, the string log is too big for the label, as I can equate this
variable (strOutput) to a textview,....I have seen other situations where
people that equates the strings to textviews have problems with scrolls, I
saw an example, but I'm relatively new to this and do not understand much, I
have suffered enough to achieve this short piece of code




--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-with-C-and-TextView-tp4657455.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list