skullrazor
Portugal@Home Member
Bem tive a testar... Pus o codigo na Form_Load assim:
Depois copiei e colei a função icon_abre_janela e a Form_Resize tal e qual como escreves.te no post... So que me da um erro 6 vezes que diz "The name 'icon' does not exist in the current context"... O que tou a fazer mal?
Cumps
Código:
[SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] [COLOR=white]Form1_Load([/COLOR][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2][COLOR=#000000] [COLOR=white]sender,[/COLOR] [/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]EventArgs[/COLOR][/SIZE][SIZE=2][COLOR=white] e)[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]icon = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] System.Windows.Forms.[/SIZE][SIZE=2][COLOR=#2b91af]NotifyIcon[/COLOR][/SIZE][SIZE=2]();[/SIZE]
[SIZE=2]icon.Visible = [/SIZE][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]icon.Icon = [/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].Icon;[/SIZE]
[SIZE=2]icon.DoubleClick += [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] System.[/SIZE][SIZE=2][COLOR=#2b91af]EventHandler[/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].icon_abre_janela);[/SIZE]
[SIZE=2]}[/SIZE]
Depois copiei e colei a função icon_abre_janela e a Form_Resize tal e qual como escreves.te no post... So que me da um erro 6 vezes que diz "The name 'icon' does not exist in the current context"... O que tou a fazer mal?
Cumps