/* private void Treeview_Load() // 트리뷰에 들어갈 데이터베이스를 로드한다. { treeView1.Nodes.Clear(); SQLiteCommand cmdDataBase = new SQLiteCommand("select DISTINCT line from factory where layout_name='" + this.comboBox1.Text + "';", cn); cn.Open(); SQLiteDataReader dr = cmdDataBase.ExecuteReader(); try { while (dr.Read()) { String temp; int count = 0; TreeNode node = new TreeNode(dr["line"].ToString()); temp = ..
string query = "select * from customer_tab";MySqlCommand cmd; cmd = new MySqlCommand(query, conn); MySqlDataAdapter da = new MySqlDataAdapter(cmd);DataTable table = new DataTable("myTable");da.Fill(table); foreach (DataRow row in table.Rows){ for (int i = 0; i < row.ItemArray.Length; i++) { comboBox1.Items.Add(row.ItemArray[1].ToString()); }} MySqlConnection myConn = new MySqlConnection("datasou..
namespace Fetch{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //MySqlConnection conn = new MySqlConnection(""); private MySqlConnection myConn = new MySqlConnection("datasource=localhost;port=3306;username=root;password=1234"); private void button1_Click(object sender, EventArgs e) { MySqlDataAdapter mdf = new MySqlDataAdapter("select * from wdata_mdb.connect_his..
foreach (Form c in this.MdiChildren){ c.Close();}
private void button_pdf_Click(object sender, EventArgs e) { Document doc = new Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35); PdfWriter wri = PdfWriter.GetInstance(doc, new FileStream("Test.pdf", FileMode.Create)); doc.Open(); PdfPTable table = new PdfPTable(dataGridView1.Columns.Count); // 한글출력하는 부분 //////////////////////////////////////////////////// // string batangttf = System.IO..
[C#] //Select the second Tab Page this.tabControl.SelectedTab = this.tabPage2 or //Select Second Tab this.tabControl.SelectedIndex= 1; [VB.NET] 'Select the second Tab Page Me.tabControl.SelectedTab = Me.tabPage2 or 'Select Second Tab Me.tabControl.SelectedIndex= 1
콤보박스를 마우스 클릭하면 바로 mysql 에 있는 값 불러오기 private void comboBox_weld_mat4_MouseClick(object sender, MouseEventArgs e) { this.comboBox_weld_mat4.Items.Clear(); cb_query.comboBox_Query("select * from tcm_data.mat4_name order by name asc ;", "name", this.comboBox_weld_mat4, 1); } private void comboBox_weld_mat3_MouseClick(object sender, MouseEventArgs e) { this.comboBox_weld_mat3.Items.Clear(); cb_query...
private void Treeview_Load() { treeView1.Nodes.Clear(); ImageList imgList = new ImageList(); imgList.Images.Add(Bitmap.FromFile("red.png")); imgList.Images.Add(Bitmap.FromFile("green.png")); imgList.Images.Add(Bitmap.FromFile("grey.png")); treeView1.ImageList = imgList; MySqlConnection myConn = new MySqlConnection("datasource=localhost;port=3306;username=root;password=1234"); MySqlDataAdapter my..
윈도우10에서 파이썬 설치하는 방법 1. 구글에서 파이썬을 검색합니다. 그리고 파이썬 웹사이트로 들어가요. 2. 파이썬을 다운로드 받습니다. 3. 운영체제에 따라 윈도우, 맥OS를 다운받을수 있습니다. 4. 파이썬을 설치합니다. 5. Install버튼을 누르기 전에 Add Python 3.7 to PATH를 해줍니다. 귀찮은 경로를 자동으로 추가해줍니다. 6. 설치 진행 7. 설치가 완료되면 실행해봅니다. 돋보기에서 python를 타이핑 하면 다음과 같이 나옵니다. 8. IDLE python를 선택하면 다음과 같이 나옵니다. 9. print("hello world")를 입력합니다. 파이썬 설치 동영상 https://youtu.be/Vd7R3LAGffs
파이썬이란? What is python? Multi-Paradigm Programming languageInterpreted languageSupports dynamic data typeIndependent from platformsFocused on development timeSimple and easy grammarHigh-level internal object data typesAutomatic memory managementIt's free (open source) 왜 파이썬을 배우는가? Why learn python?Fun-to-use "Scripting language"Object-orientd, imperative, functional programming and procedural sty..
파이썬 Numpy 튜토리얼 초급 1 - 소개 + 설치 numpy What is NumPy1. The fundamental library needed for scientific computing with Python is called NumPy.파이썬으로 과학 컴퓨팅에 필요한 기본 라이브러리는 NumPy입니다. 2. NumPy is a Python library for array-oriented computhing.NumPy는 배열 중심의 계산을위한 Python 라이브러리입니다. 3. This Open Source library contains:이 오픈 소스 라이브러리에는 다음이 포함됩니다. a powerful N-dimensional array objectadvanced array slicing meth..
C# TrackPopup 처리(마우스 우클릭시 메뉴처리) using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms; namespace TrackPopup{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_MouseClick(object sender, MouseEventArgs ..
Drag select multiple controls C# 마우스 드래그해서 여러개 콘트롤 선택하기 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Drawing.Drawing2D; namespace DragSelectMultipleControls{ public partial class Form1 : Form { public Form1() { InitializeComp..