Few questions
Posted: September 3rd, 2006, 11:04 am
Hello,
I'm new to .Net
Before i was using php with Winbinder to create winapps
-Is phalanger speed the same if the app would hath been written in c# or VB?
- How to add items to an contextMenuStrip? I checked with creating a form in a C# App
wich shows
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.testToolStripMenuItem});
But how to do the same in phalanger as the ToolStripItem[] { } doesnt seem valid in php
- I created a form wich works but the notifyIcon doesnt show
import namespace System;
import namespace System:::Windows:::Forms;
import namespace System:::Drawing;
import namespace EQvoice;
namespace EQvoice
{
class mainForm extends Form
{
public function __construct()
{
$this->InitializeComponent();
}
private function InitializeComponent()
{
$this->notifyIcon = new NotifyIcon;
$this->SuspendLayout();
// notifyIcon
$this->notifyIcon->Icon = "EQvoice.ico";
$this->notifyIcon->Text = "notifyIcon";
$this->notifyIcon->Visible = true;
// Form
$this->ClientSize = new Size(292, 266);
$this->Name = "Form1";
$this->Text = "Form1";
$this->ResumeLayout(false);
}
}
}
Basicly i'm trying to make the mainWindow to have a systemTray icon and with a popupmenu. And the window itself to be invisible
Thnx
I'm new to .Net
Before i was using php with Winbinder to create winapps
-Is phalanger speed the same if the app would hath been written in c# or VB?
- How to add items to an contextMenuStrip? I checked with creating a form in a C# App
wich shows
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.testToolStripMenuItem});
But how to do the same in phalanger as the ToolStripItem[] { } doesnt seem valid in php
- I created a form wich works but the notifyIcon doesnt show
import namespace System;
import namespace System:::Windows:::Forms;
import namespace System:::Drawing;
import namespace EQvoice;
namespace EQvoice
{
class mainForm extends Form
{
public function __construct()
{
$this->InitializeComponent();
}
private function InitializeComponent()
{
$this->notifyIcon = new NotifyIcon;
$this->SuspendLayout();
// notifyIcon
$this->notifyIcon->Icon = "EQvoice.ico";
$this->notifyIcon->Text = "notifyIcon";
$this->notifyIcon->Visible = true;
// Form
$this->ClientSize = new Size(292, 266);
$this->Name = "Form1";
$this->Text = "Form1";
$this->ResumeLayout(false);
}
}
}
Basicly i'm trying to make the mainWindow to have a systemTray icon and with a popupmenu. And the window itself to be invisible
Thnx