class MainForm calls new Browser().getBr owserWindow() and assigns it to another JEditorPane object.
Code:
editor = new Browser().getBrowserWindow(); scrollpane = new JScrollPane(editor);
Still, i can't...
editor = new Browser().getBrowserWindow(); scrollpane = new JScrollPane(editor);
for (int i = 0, c = ds.Tables[0].Rows.Count; i < c; i++) { values1[i] = ds.Tables[0].Rows[i]["column1"].ToString(); values2[i] = ds.Tables[0].Rows[i].Field<string>("column2"); }
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String text
public class Child [U]: Form1[/U]
public class Child : Form1 { public Child() { } // change array values public void method1() { for (int i = 0; i < Program.array1.Length; i++) Program.array1[i] = Program.array1.Length - 1 - Program.array1[i]; } // print array public void printarr()
static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } #region Fields public
.BackColor = System.Drawing.Color.Transparent;
private static System.Timers.Timer aTimer; private string arg_name; public MyMessageBox(string msg, string name) { InitializeComponent(); richTextBox1.Text = msg; arg_name = name; aTimer = new System.Timers.Timer(2000); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
public MyMessageBox(string msg, string name) { InitializeComponent(); richTextBox1.Text = msg; this.ShowDialog(); if(name=="CPU") { GUI.Wait(2000); // ms this.Close(); } }
public void ShowMessage(string msg, ref PlayerStatus ps, ref GUI gui) { MyMessageBox CustomMsgBox = new MyMessageBox(msg,
public void ShowMessage(string msg, ref PlayerStatus ps, ref GUI gui) { MyMessageBox CustomMsgBox = new MyMessageBox(msg); CustomMsgBox.ShowDialog(); if(ps.PlayerName=="CPU") { gui.Wait(2000); CustomMsgBox.MyClose(); CustomMsgBox.Dispose(); } }
public void MyClose() {
Leave a comment: