c# help
Verfasst: Do 8. Mai 2008, 08:21
I ha mol en froooooog:
Cha me es Form ufrüefe OHNI
??
Cha me es Form ufrüefe OHNI
- Code:
Form F = new Form();
??
https://ccf.iphpbb3.com/forum/
https://ccf.iphpbb3.com/forum/./78577552nx3548/it-stuff-f28/c-help-t336.html
Form F = new Form();hOOmer hat geschrieben:I ha mol en froooooog:
Cha me es Form ufrüefe OHNI
- Code:
Form F = new Form();
??
hOOmer hat geschrieben:wel die Form scho am laufe esch... aber i has vomene andere Form us gstarted... ond wenn is ez met "new" weder wörd starte han is zwöi mol.... ond de gets es RIIIIIIISE chaos.... =)
ond vo eim Form es Form ines anders Form öberge brengt mer ned vell... well is emene Button_cklick bruuche...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
Form1 form = null;
public Form1()
{
InitializeComponent();
form = new Form1();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
form.Show();
}
}
}
OnkelBen hat geschrieben:Denn musches halt global definiere, aso ganz zoberscht:
- Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
Form1 form = null;
public Form1()
{
InitializeComponent();
form = new Form1();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
form.Show();
}
}
}
Form1------------------------
public Form1()
{
InitializeComponent();
timer1.Start();
F2.getForm4(F4);
}
Form2------------------------
public void getForm4(Form4 F)
{
F4 = F;
}
-------------------------------