teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

コードの修正

2018/11/20 15:31

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -52,7 +52,7 @@
52
52
  try
53
53
  {
54
54
  //カラム名と値"
55
- string sql = "insert or replace sam(目標) VALUES('strData')";
55
+ string sql = "insert or replace sam(目標) VALUES('Text')";
56
56
 
57
57
  SQLiteCommand com = new SQLiteCommand(sql, conn);
58
58
  com.ExecuteNonQuery();
@@ -73,7 +73,8 @@
73
73
 
74
74
  private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
75
75
  {
76
-
76
+ //選択された要素の取得
77
+ string Text = comboBox2.SelectedText;
77
78
  }
78
79
 
79
80
  private void Form6_Load(object sender, EventArgs e)

3

誤字

2018/11/20 15:31

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -39,7 +39,7 @@
39
39
 
40
40
  private void button1_Click(object sender, EventArgs e)
41
41
  {
42
- Diary5 Form5 = new Diary5();
42
+ Form5 Form5 = new Form5();
43
43
  Form5.Show();
44
44
  this.Close();
45
45
  }
@@ -66,7 +66,7 @@
66
66
  conn.Close();
67
67
  }
68
68
 
69
- Diary7 Form7 = new Diary7();
69
+ Form7 Form7 = new Form7();
70
70
  Form7.Show();
71
71
  this.Close();
72
72
  }
@@ -76,7 +76,7 @@
76
76
 
77
77
  }
78
78
 
79
- private void Diary6_Load(object sender, EventArgs e)
79
+ private void Form6_Load(object sender, EventArgs e)
80
80
  {
81
81
  string[] strData = { "運動", "買い物", "早起き", "掃除" };
82
82
 

2

誤字

2018/11/19 14:25

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,7 @@
13
13
  ```c#
14
14
  namespace system
15
15
  {
16
- public partial class Diary6 : Form
16
+ public partial class Form6 : Form
17
17
  {
18
18
  private string db_file = "sample.sqlite";//使用するデータ
19
19
 

1

誤字

2018/11/19 14:23

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,7 @@
11
11
  ### 該当のソースコード
12
12
 
13
13
  ```c#
14
- namespace Diarysystem0
14
+ namespace system
15
15
  {
16
16
  public partial class Diary6 : Form
17
17
  {