Autor Beitrag
plaia
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Do 04.12.08 15:30 
So also erstmal folgendes:

Ich weiß das man erst 1000de von Tutorials durch lesen muss und sich stück für stück vorarbeiten muss bevor man etwas eigenes Programmiert..
Jedoch finde Ich, dass man viel besser lernen kann wenn man statt zu Lesen etwas selber macht..
Also habe ich mit einem Kauf bot für Nostale angefangen..
Dieser wird anzeigen was wie viel Wert ist etc.. also eigentlich was sehr simples!


Nun zu meiner Frage:

Ich habe das Design eigentlich schon fast Fertig..

user defined image

Außerdem Code:
ausblenden volle Höhe C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Projekt4
{
  /// <summary>
  /// Zusammenfassende Beschreibung für WinForm.
  /// </summary>
  public class NostaleBot : System.Windows.Forms.Form
  {
    /// <summary>
    /// Erforderliche Designer-Variable.
    /// </summary>
    private System.ComponentModel.Container components = null;
    public System.Windows.Forms.TabControl Start;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.Button button2;
    private System.Windows.Forms.Button button3;
    private System.Windows.Forms.Button button4;
    private System.Windows.Forms.Button button5;
    private System.Windows.Forms.Button button6;

    public NostaleBot()
    {
      //
      // Erforderlich für die Unterstützung des Windows-Form-Designer
      //
      InitializeComponent();

      //
      // TODO: Konstruktorcode nach dem Aufruf von InitializeComponent hinzufügen
      //
    }

    /// <summary>
    /// Ressourcen nach der Verwendung bereinigen
    /// </summary>
    protected override void Dispose(bool disposing)
    {
      if (disposing)
      {
        if (components != null)
        {
          components.Dispose();
        }
      }
      base.Dispose(disposing);
    }

    #region Vom Windows Form-Designer erzeugter Code
    /// <summary>
    /// Erforderliche Methode zur Unterstützung des Designers -
    /// ändern Sie die Methode nicht mit dem Quelltext-Editor
    /// </summary>
    private void InitializeComponent()
    {
      this.button1 = new System.Windows.Forms.Button();
      this.button2 = new System.Windows.Forms.Button();
      this.button3 = new System.Windows.Forms.Button();
      this.button4 = new System.Windows.Forms.Button();
      this.button5 = new System.Windows.Forms.Button();
      this.button6 = new System.Windows.Forms.Button();
      this.SuspendLayout();
      // 
      // button1
      // 
      this.button1.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button1.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button1.Location = new System.Drawing.Point(00);
      this.button1.Name = "button1";
      this.button1.Size = new System.Drawing.Size(10424);
      this.button1.TabIndex = 0;
      this.button1.Text = "Start";
      // 
      // button2
      // 
      this.button2.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button2.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button2.Location = new System.Drawing.Point(1040);
      this.button2.Name = "button2";
      this.button2.Size = new System.Drawing.Size(10424);
      this.button2.TabIndex = 1;
      this.button2.Text = "Settings";
      // 
      // button3
      // 
      this.button3.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button3.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button3.Location = new System.Drawing.Point(2080);
      this.button3.Name = "button3";
      this.button3.Size = new System.Drawing.Size(10424);
      this.button3.TabIndex = 2;
      this.button3.Text = "Support";
      // 
      // button4
      // 
      this.button4.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button4.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button4.Location = new System.Drawing.Point(3120);
      this.button4.Name = "button4";
      this.button4.Size = new System.Drawing.Size(10424);
      this.button4.TabIndex = 3;
      this.button4.Text = "Privat";
      // 
      // button5
      // 
      this.button5.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button5.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button5.Location = new System.Drawing.Point(4160);
      this.button5.Name = "button5";
      this.button5.Size = new System.Drawing.Size(10424);
      this.button5.TabIndex = 4;
      this.button5.Text = "Kontakt";
      // 
      // button6
      // 
      this.button6.Font = new System.Drawing.Font("Arial Black"9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.button6.ForeColor = System.Drawing.SystemColors.InactiveCaption;
      this.button6.Location = new System.Drawing.Point(5200);
      this.button6.Name = "button6";
      this.button6.Size = new System.Drawing.Size(11224);
      this.button6.TabIndex = 5;
      this.button6.Text = "Help";
      // 
      // NostaleBot
      // 
      this.AutoScale = false;
      this.AutoScaleBaseSize = new System.Drawing.Size(513);
      this.BackColor = System.Drawing.SystemColors.HighlightText;
      this.ClientSize = new System.Drawing.Size(632422);
      this.Controls.Add(this.button6);
      this.Controls.Add(this.button5);
      this.Controls.Add(this.button4);
      this.Controls.Add(this.button3);
      this.Controls.Add(this.button2);
      this.Controls.Add(this.button1);
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
      this.Name = "NostaleBot";
      this.Opacity = 0.89999997615814209;
      this.Text = "Nostale Bot by Plaia";
      this.DoubleClick += new System.EventHandler(this.NostaleBot_DoubleClick);
      this.DragDrop += new System.Windows.Forms.DragEventHandler(this.NostaleBot_DragDrop);
      this.Paint += new System.Windows.Forms.PaintEventHandler(this.NostaleBot_Paint);
      this.ResumeLayout(false);
    }
    #endregion

    /// <summary>
    /// Der Haupteintrittspunkt für die Anwendung.
    /// </summary>
    [STAThread]
    static void Main()
    {
      Application.Run(new NostaleBot());
    }

    private void NostaleBot_DoubleClick(object sender, System.EventArgs e)
    {

    }
    
    private void NostaleBot_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    {

    }
    
    private void NostaleBot_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
    {
      
    }
  }
}


Aber wie kann ich nun Angeben und an welcher Stelle welchen Befehl er dabei ausführen soll wenn er zb auf Kontakt klickt..
Und wo kann ich das so machen das wenn man zb auf Kontakt drückt genau das selbe Fenster ist und Buttons etc bleiben aber unter dem Fenster steht Bsp:

ICQ: 111-111-111
Email: test@test.de

Bitte nur bei Anfragen adden..

Wäre euch sehr dankbar..
Und bitte nicht Spammen und sagen soll mir tutorials durchlesen etc..

Moderiert von user profile iconChristian S.: Quote- durch C#-Tags ersetzt
Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 04.12.2008 um 14:49
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 04.12.08 15:47 
Ich werde sicher nichts an eine eMail-Adresse schreiben, die der deutschen Stiftung Wartentest gehört :eyecrazy: Das ist übrigens das Delphi-Forum, das C#-Forum wählst du oben rechts aus.


EDIT: Sorry, dachte das sei deine Adresse, hab nur die Hälfte gelesen :-|

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)


Zuletzt bearbeitet von GTA-Place am Do 04.12.08 15:50, insgesamt 1-mal bearbeitet
plaia Threadstarter
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Do 04.12.08 15:49 
Ne mal ganz erlich kannste pls helfen?
Das mit dem Kontakt war ja nurn Beispiel^^

Könnte ein Mod pls den Thread in die passende abteilung verschieben?
plaia Threadstarter
Hält's aus hier
Beiträge: 3



BeitragVerfasst: So 07.12.08 01:27 
Ich meine ihr macht das doch Ständig kann mir des keiner Erklären?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 07.12.08 01:44 
Ich denke, Du hast Dir eine Menge "Helfer" damit vergrault, dass Du keine Tutorials lesen willst. Ein Forum ersetzt weder Tutorials noch Bücher. Man kann nicht jedes Grundlagendetail in Foren durcharbeiten. Zumindest nicht sinnvoll. Und Du kannst Dir auch nicht alles nur per "learning by doing" beibringen. Du steigst auch nicht ein ein Auto und bringst Dir das Fahren per Learning by Doing bei.

Insofern solltest Du Dir wirklich mal etwas wie das Suche bei Google OPENBOOK C# und Suche bei Google OPENBOOK VISUAL C# anschauen. In Ersterem findes Du aucuh was über Ereignisse, das ist das, was Du bei Deinem Problem brauchst.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".