Neler Yeni

C# Kodlama Dilinden Anlayan bakabilirmi

Zpyhrana

80+
Katılım
15 Eylül 2020
Mesajlar
47
Dahası  
Reaksiyon skoru
4
İsim
Emre
İlgilendiği Kategoriler
Bilgisayar yazılım ve donanım. C# & Python
Instagram
benemreadam
form1.cs de düzenlediğim soldaki şekilde programı çalıştırınca sağdaki şekil gibi çıkıyor sorunu çözemedim. ( yeni başladım)
 

Ekler

  • 2.png
    2.png
    20.4 KB · Hit: 47
Katılım
25 Haziran 2024
Mesajlar
49
Dahası  
Reaksiyon skoru
17
İsim
Lolcu Basi
Element ayarlarını değiştirmişsindir arayüzden.
 

Zpyhrana

80+
Katılım
15 Eylül 2020
Mesajlar
47
Dahası  
Reaksiyon skoru
4
İsim
Emre
İlgilendiği Kategoriler
Bilgisayar yazılım ve donanım. C# & Python
Instagram
benemreadam
  • Konu Sahibi Konu Sahibi
  • #4
(form1.designer.cs)

namespace WinFormsApp2
{
partial class Form1
{
private System.ComponentModel.IContainer components = null;
private TextBox textBox1;
private TextBox textBox2;
private TextBox textBox3;
private Label label1;
private Label label2;
private Label label5;
private Label label8;
private Label label3;
private Label label4;
private Label label6;
private Button button1;
private Button button2;

protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
textBox1 = new TextBox();
textBox2 = new TextBox();
textBox3 = new TextBox();
label1 = new Label();
label2 = new Label();
label5 = new Label();
label8 = new Label();
button1 = new Button();
label3 = new Label();
label4 = new Label();
label6 = new Label();
button2 = new Button();
SuspendLayout();
//
// textBox1
//
resources.ApplyResources(textBox1, "textBox1");
textBox1.Name = "textBox1";
//
// textBox2
//
resources.ApplyResources(textBox2, "textBox2");
textBox2.Name = "textBox2";
textBox2.TextChanged += textBox2_TextChanged;
//
// textBox3
//
resources.ApplyResources(textBox3, "textBox3");
textBox3.Name = "textBox3";
textBox3.TextChanged += textBox3_TextChanged;
//
// label1
//
resources.ApplyResources(label1, "label1");
label1.Name = "label1";
//
// label2
//
resources.ApplyResources(label2, "label2");
label2.Name = "label2";
//
// label5
//
resources.ApplyResources(label5, "label5");
label5.Name = "label5";
//
// label8
//
resources.ApplyResources(label8, "label8");
label8.Name = "label8";
//
// button1
//
resources.ApplyResources(button1, "button1");
button1.BackColor = Color.Red;
button1.Name = "button1";
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
button1.MouseEnter += button1_MouseEnter;
button1.MouseLeave += button1_MouseLeave;
//
// label3
//
resources.ApplyResources(label3, "label3");
label3.Name = "label3";
//
// label4
//
resources.ApplyResources(label4, "label4");
label4.Name = "label4";
//
// label6
//
resources.ApplyResources(label6, "label6");
label6.Name = "label6";
//
// button2
//
resources.ApplyResources(button2, "button2");
button2.BackColor = Color.Orange;
button2.Name = "button2";
button2.UseVisualStyleBackColor = false;
button2.Click += button2_Click;
//
// Form1
//
BackColor = Color.FromArgb(0, 192, 192);
resources.ApplyResources(this, "$this");
Controls.Add(button2);
Controls.Add(label6);
Controls.Add(button1);
Controls.Add(label8);
Controls.Add(label1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(textBox1);
MinimizeBox = false;
Name = "Form1";
Load += Form1_Load;
ResumeLayout(false);
PerformLayout();
}
}
}
Mesaj otomatik birleştirildi:

Element ayarlarını değiştirmişsindir arayüzden.
birşeyler oldu da ne oldu çözemedim
 

Lian_GR

80+
Katılım
20 Ocak 2024
Mesajlar
267
Dahası  
Reaksiyon skoru
111
İsim
Anıl
İlgilendiği Kategoriler
Yazılım + Donanım + Apple Ürünleri + Playstation Serisi
birde şöyle dener misin ?

private void InitializeComponent()
{
// Initialize the components
textBox1 = new TextBox();
textBox2 = new TextBox();
textBox3 = new TextBox();
label1 = new Label();
label2 = new Label();
label5 = new Label();
label8 = new Label();
button1 = new Button();
label3 = new Label();
label4 = new Label();
label6 = new Label();
button2 = new Button();

// Set properties for textBox1
textBox1.Location = new Point(20, 20); // Adjust the position as needed
textBox1.Size = new Size(200, 20); // Adjust the size as needed
textBox1.Name = "textBox1";

// Set properties for textBox2
textBox2.Location = new Point(20, 60); // Adjust the position as needed
textBox2.Size = new Size(200, 20); // Adjust the size as needed
textBox2.Name = "textBox2";
textBox2.TextChanged += textBox2_TextChanged;

// Set properties for textBox3
textBox3.Location = new Point(20, 100); // Adjust the position as needed
textBox3.Size = new Size(200, 20); // Adjust the size as needed
textBox3.Name = "textBox3";
textBox3.TextChanged += textBox3_TextChanged;

// Set properties for label1
label1.Location = new Point(230, 20); // Adjust the position as needed
label1.Size = new Size(100, 20); // Adjust the size as needed
label1.Name = "label1";
label1.Text = "Label 1"; // Adjust the text as needed

// Set properties for label2
label2.Location = new Point(230, 60); // Adjust the position as needed
label2.Size = new Size(100, 20); // Adjust the size as needed
label2.Name = "label2";
label2.Text = "Label 2"; // Adjust the text as needed

// Set properties for label5
label5.Location = new Point(230, 100); // Adjust the position as needed
label5.Size = new Size(100, 20); // Adjust the size as needed
label5.Name = "label5";
label5.Text = "Label 5"; // Adjust the text as needed

// Set properties for label8
label8.Location = new Point(230, 140); // Adjust the position as needed
label8.Size = new Size(100, 20); // Adjust the size as needed
label8.Name = "label8";
label8.Text = "Label 8"; // Adjust the text as needed

// Set properties for button1
button1.Location = new Point(20, 140); // Adjust the position as needed
button1.Size = new Size(200, 30); // Adjust the size as needed
button1.Name = "button1";
button1.Text = "Button 1"; // Adjust the text as needed
button1.BackColor = Color.Red;
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
button1.MouseEnter += button1_MouseEnter;
button1.MouseLeave += button1_MouseLeave;

// Set properties for label3
label3.Location = new Point(230, 180); // Adjust the position as needed
label3.Size = new Size(100, 20); // Adjust the size as needed
label3.Name = "label3";
label3.Text = "Label 3"; // Adjust the text as needed

// Set properties for label4
label4.Location = new Point(230, 220); // Adjust the position as needed
label4.Size = new Size(100, 20); // Adjust the size as needed
label4.Name = "label4";
label4.Text = "Label 4"; // Adjust the text as needed

// Set properties for label6
label6.Location = new Point(230, 260); // Adjust the position as needed
label6.Size = new Size(100, 20); // Adjust the size as needed
label6.Name = "label6";
label6.Text = "Label 6"; // Adjust the text as needed

// Set properties for button2
button2.Location = new Point(20, 180); // Adjust the position as needed
button2.Size = new Size(200, 30); // Adjust the size as needed
button2.Name = "button2";
button2.Text = "Button 2"; // Adjust the text as needed
button2.BackColor = Color.Orange;
button2.UseVisualStyleBackColor = false;
button2.Click += button2_Click;

// Set properties for Form1
BackColor = Color.FromArgb(0, 192, 192);
ClientSize = new Size(400, 300); // Adjust the size as needed
Controls.Add(button2);
Controls.Add(label6);
Controls.Add(button1);
Controls.Add(label8);
Controls.Add(label1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(textBox1);
MinimizeBox = false;
Name = "Form1";
Load += Form1_Load;
ResumeLayout(false);
PerformLayout();
}
 

Zpyhrana

80+
Katılım
15 Eylül 2020
Mesajlar
47
Dahası  
Reaksiyon skoru
4
İsim
Emre
İlgilendiği Kategoriler
Bilgisayar yazılım ve donanım. C# & Python
Instagram
benemreadam
  • Konu Sahibi Konu Sahibi
  • #6
birde şöyle dener misin ?

private void InitializeComponent()
{
// Initialize the components
textBox1 = new TextBox();
textBox2 = new TextBox();
textBox3 = new TextBox();
label1 = new Label();
label2 = new Label();
label5 = new Label();
label8 = new Label();
button1 = new Button();
label3 = new Label();
label4 = new Label();
label6 = new Label();
button2 = new Button();

// Set properties for textBox1
textBox1.Location = new Point(20, 20); // Adjust the position as needed
textBox1.Size = new Size(200, 20); // Adjust the size as needed
textBox1.Name = "textBox1";

// Set properties for textBox2
textBox2.Location = new Point(20, 60); // Adjust the position as needed
textBox2.Size = new Size(200, 20); // Adjust the size as needed
textBox2.Name = "textBox2";
textBox2.TextChanged += textBox2_TextChanged;

// Set properties for textBox3
textBox3.Location = new Point(20, 100); // Adjust the position as needed
textBox3.Size = new Size(200, 20); // Adjust the size as needed
textBox3.Name = "textBox3";
textBox3.TextChanged += textBox3_TextChanged;

// Set properties for label1
label1.Location = new Point(230, 20); // Adjust the position as needed
label1.Size = new Size(100, 20); // Adjust the size as needed
label1.Name = "label1";
label1.Text = "Label 1"; // Adjust the text as needed

// Set properties for label2
label2.Location = new Point(230, 60); // Adjust the position as needed
label2.Size = new Size(100, 20); // Adjust the size as needed
label2.Name = "label2";
label2.Text = "Label 2"; // Adjust the text as needed

// Set properties for label5
label5.Location = new Point(230, 100); // Adjust the position as needed
label5.Size = new Size(100, 20); // Adjust the size as needed
label5.Name = "label5";
label5.Text = "Label 5"; // Adjust the text as needed

// Set properties for label8
label8.Location = new Point(230, 140); // Adjust the position as needed
label8.Size = new Size(100, 20); // Adjust the size as needed
label8.Name = "label8";
label8.Text = "Label 8"; // Adjust the text as needed

// Set properties for button1
button1.Location = new Point(20, 140); // Adjust the position as needed
button1.Size = new Size(200, 30); // Adjust the size as needed
button1.Name = "button1";
button1.Text = "Button 1"; // Adjust the text as needed
button1.BackColor = Color.Red;
button1.UseVisualStyleBackColor = false;
button1.Click += button1_Click;
button1.MouseEnter += button1_MouseEnter;
button1.MouseLeave += button1_MouseLeave;

// Set properties for label3
label3.Location = new Point(230, 180); // Adjust the position as needed
label3.Size = new Size(100, 20); // Adjust the size as needed
label3.Name = "label3";
label3.Text = "Label 3"; // Adjust the text as needed

// Set properties for label4
label4.Location = new Point(230, 220); // Adjust the position as needed
label4.Size = new Size(100, 20); // Adjust the size as needed
label4.Name = "label4";
label4.Text = "Label 4"; // Adjust the text as needed

// Set properties for label6
label6.Location = new Point(230, 260); // Adjust the position as needed
label6.Size = new Size(100, 20); // Adjust the size as needed
label6.Name = "label6";
label6.Text = "Label 6"; // Adjust the text as needed

// Set properties for button2
button2.Location = new Point(20, 180); // Adjust the position as needed
button2.Size = new Size(200, 30); // Adjust the size as needed
button2.Name = "button2";
button2.Text = "Button 2"; // Adjust the text as needed
button2.BackColor = Color.Orange;
button2.UseVisualStyleBackColor = false;
button2.Click += button2_Click;

// Set properties for Form1
BackColor = Color.FromArgb(0, 192, 192);
ClientSize = new Size(400, 300); // Adjust the size as needed
Controls.Add(button2);
Controls.Add(label6);
Controls.Add(button1);
Controls.Add(label8);
Controls.Add(label1);
Controls.Add(label5);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(textBox3);
Controls.Add(textBox2);
Controls.Add(textBox1);
MinimizeBox = false;
Name = "Form1";
Load += Form1_Load;
ResumeLayout(false);
PerformLayout();
}
sonuç = 131 errors :DD
Mesaj otomatik birleştirildi:

sonuç = 131 errors :DD
düzenledim kodu şimdi tekrar düzen yapıcam ve bakıcam
Mesaj otomatik birleştirildi:

sonuç = 131 errors :DD
Mesaj otomatik birleştirildi:


düzenledim kodu şimdi tekrar düzen yapıcam ve bakıcam
sorun şurda: yerlerini değiştirince sapıtıyor
 

Lian_GR

80+
Katılım
20 Ocak 2024
Mesajlar
267
Dahası  
Reaksiyon skoru
111
İsim
Anıl
İlgilendiği Kategoriler
Yazılım + Donanım + Apple Ürünleri + Playstation Serisi
sonuç = 131 errors :DD
Mesaj otomatik birleştirildi:


düzenledim kodu şimdi tekrar düzen yapıcam ve bakıcam
Mesaj otomatik birleştirildi:


sorun şurda: yerlerini değiştirince sapıtıyor
hangi IDE'yi kullanıyorsun ?
 

_AhmeT_-

80+ Bronze
Katılım
20 Mayıs 2023
Mesajlar
1,700
Dahası  
Reaksiyon skoru
488
İsim
Ahmet
form1.cs de düzenlediğim soldaki şekilde programı çalıştırınca sağdaki şekil gibi çıkıyor sorunu çözemedim. ( yeni başladım)
eğer kodun da hata varsa yeni bi şey eklediğinde doğru çalışmıyor eski design ı açıyor adlara veya if lere bi bak
 

kupır

80+
Katılım
12 Şubat 2023
Mesajlar
383
Dahası  
Reaksiyon skoru
221
İsim
Mustafa SAĞDIÇ
Steam
mstfsgdc
Twitter
sagdic
Discord
mstfsgdc
Kodlarla hiçbir alakası yok, window resize olarak araştırabilirsin form yapısıyla alakası var.
 

_AhmeT_-

80+ Bronze
Katılım
20 Mayıs 2023
Mesajlar
1,700
Dahası  
Reaksiyon skoru
488
İsim
Ahmet
Kodlarla hiçbir alakası yok, window resize olarak araştırabilirsin form yapısıyla alakası var.
örn textbox 1 e göre kod yazdıysa orda o yoksa hata verir eski yi gösterir
 
Yeni mesajlar Yeni Konu Aç      

SON KONULAR

Forum istatistikleri

Konular
940,485
Mesajlar
8,557,202
Üyeler
147,889
Son üye
mstafavardar
Top Bottom