Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Recensione vivo X300 Pro: è ancora lui il re della fotografia mobile, peccato per la batteria
Recensione vivo X300 Pro: è ancora lui il re della fotografia mobile, peccato per la batteria
vivo X300 Pro rappresenta un'evoluzione misurata della serie fotografica del produttore cinese, con un sistema di fotocamere migliorato, chipset Dimensity 9500 di ultima generazione e l'arrivo dell'interfaccia OriginOS 6 anche sui modelli internazionali. La scelta di limitare la batteria a 5.440mAh nel mercato europeo, rispetto ai 6.510mAh disponibili altrove, fa storcere un po' il naso
Lenovo Legion Go 2: Ryzen Z2 Extreme e OLED 8,8'' per spingere gli handheld gaming PC al massimo
Lenovo Legion Go 2: Ryzen Z2 Extreme e OLED 8,8'' per spingere gli handheld gaming PC al massimo
Lenovo Legion Go 2 è la nuova handheld PC gaming con processore AMD Ryzen Z2 Extreme (8 core Zen 5/5c, GPU RDNA 3.5 16 CU) e schermo OLED 8,8" 1920x1200 144Hz. È dotata anche di controller rimovibili TrueStrike con joystick Hall effect e una batteria da 74Wh. Rispetto al dispositivo che l'ha preceduta, migliora ergonomia e prestazioni a basse risoluzioni, ma pesa 920g e costa 1.299€ nella configurazione con 32GB RAM/1TB SSD e Z2 Extreme
AWS re:Invent 2025: inizia l'era dell'AI-as-a-Service con al centro gli agenti
AWS re:Invent 2025: inizia l'era dell'AI-as-a-Service con al centro gli agenti
A re:Invent 2025, AWS mostra un’evoluzione profonda della propria strategia: l’IA diventa una piattaforma di servizi sempre più pronta all’uso, con agenti e modelli preconfigurati che accelerano lo sviluppo, mentre il cloud resta la base imprescindibile per governare dati, complessità e lock-in in uno scenario sempre più orientato all’hybrid cloud
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 20-02-2003, 20:08   #1
Kleidemos
Bannato
 
L'Avatar di Kleidemos
 
Iscritto dal: Nov 2002
Città: PV
Messaggi: 1210
[C#]Richiamare form su altro files

Ho sto cod:
Codice:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using SiteManagerUtil;

namespace Site_Manager
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Princ : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btInsert;
		private System.Windows.Forms.Button btCancella;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Princ()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btInsert = new System.Windows.Forms.Button();
			this.btCancella = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// btInsert
			// 
			this.btInsert.Location = new System.Drawing.Point(32, 8);
			this.btInsert.Name = "btInsert";
			this.btInsert.Size = new System.Drawing.Size(104, 24);
			this.btInsert.TabIndex = 5;
			this.btInsert.Text = "Inserisci";
			this.btInsert.Click += new System.EventHandler(this.btInsert_Click);
			// 
			// btCancella
			// 
			this.btCancella.Location = new System.Drawing.Point(32, 48);
			this.btCancella.Name = "btCancella";
			this.btCancella.Size = new System.Drawing.Size(104, 24);
			this.btCancella.TabIndex = 6;
			this.btCancella.Text = "Cancella";
			// 
			// Princ
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(160, 85);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.btCancella,
																		  this.btInsert});
			this.Name = "Princ";
			this.Text = "SiteManager";
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Princ());
		}

		private void btInsert_Click(object sender, System.EventArgs e)
		{
			Site_Manager.Insert inserisci = new Site_Manager.Insert();//Richiamo il form esterno
		}
	}
}
il files esterno è:
Codice:
 
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Site_Manager
{
	/// <summary>
	/// Summary description for Insert.
	/// </summary>
	public class Insert : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label blTitolo;
		private System.Windows.Forms.Label lbIndirizzo;
		private System.Windows.Forms.TextBox txtTitolo;
		private System.Windows.Forms.TextBox txtIndirizzo;
		private System.Windows.Forms.Button btInsert;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Insert()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			Application.Run();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.blTitolo = new System.Windows.Forms.Label();
			this.lbIndirizzo = new System.Windows.Forms.Label();
			this.txtTitolo = new System.Windows.Forms.TextBox();
			this.txtIndirizzo = new System.Windows.Forms.TextBox();
			this.btInsert = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// blTitolo
			// 
			this.blTitolo.Location = new System.Drawing.Point(24, 16);
			this.blTitolo.Name = "blTitolo";
			this.blTitolo.Size = new System.Drawing.Size(56, 24);
			this.blTitolo.TabIndex = 0;
			this.blTitolo.Text = "Titolo";
			// 
			// lbIndirizzo
			// 
			this.lbIndirizzo.Location = new System.Drawing.Point(16, 48);
			this.lbIndirizzo.Name = "lbIndirizzo";
			this.lbIndirizzo.Size = new System.Drawing.Size(64, 24);
			this.lbIndirizzo.TabIndex = 1;
			this.lbIndirizzo.Text = "Indirizzo";
			// 
			// txtTitolo
			// 
			this.txtTitolo.Location = new System.Drawing.Point(72, 16);
			this.txtTitolo.Name = "txtTitolo";
			this.txtTitolo.Size = new System.Drawing.Size(120, 20);
			this.txtTitolo.TabIndex = 2;
			this.txtTitolo.Text = "";
			// 
			// txtIndirizzo
			// 
			this.txtIndirizzo.Location = new System.Drawing.Point(72, 48);
			this.txtIndirizzo.Name = "txtIndirizzo";
			this.txtIndirizzo.Size = new System.Drawing.Size(120, 20);
			this.txtIndirizzo.TabIndex = 3;
			this.txtIndirizzo.Text = "";
			// 
			// btInsert
			// 
			this.btInsert.Location = new System.Drawing.Point(72, 88);
			this.btInsert.Name = "btInsert";
			this.btInsert.TabIndex = 4;
			this.btInsert.Text = "Inserisci";
			// 
			// Insert
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(208, 125);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.btInsert,
																		  this.txtIndirizzo,
																		  this.txtTitolo,
																		  this.lbIndirizzo,
																		  this.blTitolo});
			this.Name = "Insert";
			this.Text = "Inserisci Sito";
			this.ResumeLayout(false);

		}
		#endregion
	}
	
}
Come richiamo sto form?
Kleidemos è offline   Rispondi citando il messaggio o parte di esso
Old 20-02-2003, 20:09   #2
Kleidemos
Bannato
 
L'Avatar di Kleidemos
 
Iscritto dal: Nov 2002
Città: PV
Messaggi: 1210
libreria esterna:
Codice:
using System;
using System.Collections;

namespace SiteManagerUtil
{
	/// <summary>
	/// La classe principale
	/// </summary>
	public class SitMan 
	{
		/// <summary>
		/// Le Variabili publiche
		/// </summary>
		public System.Collections.ArrayList nome;// il nome
		public System.Collections.ArrayList indirizzo;// l'indirizzo
		public const string fine = "http://";
		///<summary>
		///Valida l'url
		///</summary>
		public string validaUrl(string url)
		{
			if(!url.StartsWith("http://"))
			{
				url = url + fine;
			}
			return url;
		}
		/// <summary>
		/// La funzione che aggiunge un sito
		/// </summary>
		/// <param name="nm">Il nome del sito</param>
		/// <param name="indir">L'indirizzo del sito</param>
		/// <returns></returns>
		public string aggiungi(string nm, string indir)
		{
			this.nome.Add(nm);
			this.indirizzo.Add(indir);
			return "";
		}
		/// <summary>
		/// La funzione che cancella un sito
		/// </summary>
		/// <param name="nm">Il nome del sito</param>
		/// <param name="indir">L'indirizzo del sito</param>
		/// <returns></returns>
		public string cancella(string nm, string indir)
		{
			this.nome.Remove(nm);
			this.indirizzo.Remove(indir);
			return "";
		}
	}//Fine SitMan

}//Fine Namespace
Kleidemos è offline   Rispondi citando il messaggio o parte di esso
Old 21-02-2003, 09:31   #3
Einstein
Senior Member
 
L'Avatar di Einstein
 
Iscritto dal: Jan 2000
Città: Provincia di Parma
Messaggi: 724
Site_Manager.Insert inserisci = new Site_Manager.Insert();
inserisci.Show();
__________________
My Pc: Case Enermax Chakra - PSU Corsair HX520 - Gigabyte P35-DS3R - Core2 Duo E6550 - 6 Gb RAM Geil PC800 - 2x WD Caviar SE 320Gb (Raid1) - Xfx GeForce 8600Gt - Master Pioneer DVR111D - Samsung SM T220 - S.O. Windows 7 Ultimate x64 SP1
My blog: http://blogs.ugidotnet.org/alby
Einstein è offline   Rispondi citando il messaggio o parte di esso
Old 21-02-2003, 09:36   #4
Kleidemos
Bannato
 
L'Avatar di Kleidemos
 
Iscritto dal: Nov 2002
Città: PV
Messaggi: 1210
Quote:
Originally posted by "Einstein"

Site_Manager.Insert inserisci = new Site_Manager.Insert();
inserisci.Show();
Ho risolto con
Codice:
	private void btInsert_Click(object sender, System.EventArgs e)
		{
			Site_Manager.Insert inserisci = new Site_Manager.Insert();
			inserisci.Visible = true;// lo setta a visibile
		}
Vuoi farmi da betatester?
Kleidemos è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


Recensione vivo X300 Pro: è ancora lui il re della fotografia mobile, peccato per la batteria Recensione vivo X300 Pro: è ancora lui il...
Lenovo Legion Go 2: Ryzen Z2 Extreme e OLED 8,8'' per spingere gli handheld gaming PC al massimo Lenovo Legion Go 2: Ryzen Z2 Extreme e OLED 8,8'...
AWS re:Invent 2025: inizia l'era dell'AI-as-a-Service con al centro gli agenti AWS re:Invent 2025: inizia l'era dell'AI-as-a-Se...
Cos'è la bolla dell'IA e perché se ne parla Cos'è la bolla dell'IA e perché se...
BOOX Palma 2 Pro in prova: l'e-reader diventa a colori, e davvero tascabile BOOX Palma 2 Pro in prova: l'e-reader diventa a ...
Landspace si prepara al secondo lancio d...
Tutti gli sconti Apple su Amazon: tornan...
Altro che entry-level: due smartwatch Am...
Roscosmos ha posticipato (ancora) il lan...
Isar Aerospace si prepara al secondo lan...
Tory Bruno è entrato in Blue Orig...
Fujifilm lancia la cartuccia per archivi...
Dreame H15 Mix: la soluzione 7-in-1 per ...
AirPods Pro 3 in forte sconto su Amazon:...
36 offerte Amazon, molte appena partite:...
2 caricatori multipli eccezionali: da 28...
OLED e 360 Hz a un prezzo senza preceden...
Roborock Q10 S5+ a un prezzo molto conve...
Upgrade PC a prezzo ridotto: le migliori...
Sono i 6 smartphone migliori su Amazon: ...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 17:48.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Served by www3v