本文整理汇总了C#中System.Windows.Forms.TextBox.SendToBack方法的典型用法代码示例。如果您正苦于以下问题:C# TextBox.SendToBack方法的具体用法?C# TextBox.SendToBack怎么用?C# TextBox.SendToBack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TextBox
的用法示例。
在下文中一共展示了TextBox.SendToBack方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ListStringsWindow
public ListStringsWindow(CPWindow cpw)
{
InitializeComponent();
this.cpw = cpw;
text = new TextBox();
text.Multiline = true;
text.Location = new Point(10, 10);
text.ScrollBars = ScrollBars.Both;
text.Size = new Size(100, 100);
text.TabIndex = 1;
text.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
text.SendToBack();
this.AllowDrop = true;
text.AllowDrop = true;
this.Controls.Add(text);
saveFileDialog1.DefaultExt = "txt";
saveFileDialog1.AddExtension = true;
saveFileDialog1.Filter = "Text files (*.txt)|*.txt";
refreshWindow(true);
doResize();
}
示例2: actionPerformed
//.........这里部分代码省略.........
catch (System.Exception e)
{
SupportClass.WriteStackTrace(e, Console.Error);
}
}
else if (SupportClass.CommandManager.GetCommand(event_sender).Equals("Open from URL"))
{
try
{
//UPGRADE_TODO: Class 'java.net.URL' was converted to a 'System.Uri' which does not throw an exception if a URL specifies an unknown protocol. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1132'"
sourceImage = ImageIO.read(new System.Uri(url.Text));
}
catch (System.Exception e)
{
SupportClass.WriteStackTrace(e, Console.Error);
}
}
else
return ;
if (sourceImageLabel != null)
{
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
((System.Windows.Forms.ContainerControl) this).Controls.Remove(sourceImageLabel);
}
System.Windows.Forms.Label temp_label;
temp_label = new System.Windows.Forms.Label();
temp_label.Image = (System.Drawing.Image) sourceImage.Clone();
sourceImageLabel = temp_label;
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
((System.Windows.Forms.ContainerControl) this).Controls.Add(sourceImageLabel);
sourceImageLabel.Dock = System.Windows.Forms.DockStyle.Left;
sourceImageLabel.BringToFront();
QRCodeDecoder decoder = new QRCodeDecoder();
if (canvas != null)
{
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
((System.Windows.Forms.ContainerControl) this).Controls.Remove(canvas);
//canvas.setImage(null);
}
canvas = new J2SEDebugCanvas();
QRCodeDecoder.setCanvas(canvas);
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
((System.Windows.Forms.ContainerControl) this).Controls.Add(canvas);
canvas.Dock = System.Windows.Forms.DockStyle.Right;
canvas.BringToFront();
System.String decodedString = null;
try
{
decodedString = new String(decoder.decode(new J2SEImage(this, sourceImage)));
}
catch (DecodingFailedException e)
{
canvas.println(e.getMessage());
canvas.println("--------");
return ;
}
decodedString = ContentConverter.convert(decodedString);
canvas.println("\nDecode result:");
canvas.println(decodedString);
canvas.println("--------");
if (decodedText != null)
{
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
((System.Windows.Forms.ContainerControl) this).Controls.Remove(decodedText);
}
System.Windows.Forms.TextBox temp_TextBox;
temp_TextBox = new System.Windows.Forms.TextBox();
temp_TextBox.Multiline = true;
temp_TextBox.WordWrap = false;
temp_TextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
temp_TextBox.Text = decodedString;
decodedText = temp_TextBox;
decodedText.WordWrap = true;
//UPGRADE_ISSUE: Method 'javax.swing.JTextArea.setRows' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJTextAreasetRows_int'"
decodedText.setRows(decodedString.Length / 20 + 1);
if (decodedString.Length < 20)
{
//UPGRADE_ISSUE: Method 'javax.swing.JTextArea.setColumns' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJTextAreasetColumns_int'"
decodedText.setColumns(decodedString.Length);
}
else
{
//UPGRADE_ISSUE: Method 'javax.swing.JTextArea.setColumns' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaxswingJTextAreasetColumns_int'"
decodedText.setColumns(20);
}
//decodedText.setSize(sourceImageLabel.getSize().width,100);
//UPGRADE_TODO: Method 'javax.swing.JFrame.getContentPane' was converted to 'System.Windows.Forms.Form' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaxswingJFramegetContentPane'"
//UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent_javalangObject'"
((System.Windows.Forms.ContainerControl) this).Controls.Add(decodedText);
decodedText.Dock = System.Windows.Forms.DockStyle.Bottom;
decodedText.SendToBack();
//UPGRADE_ISSUE: Method 'java.awt.Window.pack' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtWindowpack'"
pack();
}