The document is a report on a Visual Programming Assignment (UAS) submitted by Andriyan Dwi P. It details two programming problems solved using C# and Windows Forms. Problem 1 involves creating patterned stars in the console or windows form. Problem 2 creates a database login system with forms for login, data entry, editing, deleting and viewing records from a MySQL database. Screenshots are included showing the outputs and database forms created.
Você provavelmente já ouviu falar de Elm e suas promessas incríveis, mas você não quer reescrever tudo do zero, nem deixar a comunidade React. E se você pudesse ter todos os benefícios de Elm, enquanto ainda usa seus componentes React, misturando JavaScript e uma linguagem mais simples e poderosa, com um excelente sistema de tipos? Venha conhecer então PureScript e a biblioteca Pux!
it is and slide contains Save to your mobile device with our new app
Don't have time to read now? Save SlideShares to read later or offline - anytime, anywhere.
dding more information (description, tags, category) makes it easier for others to find your content. The score increases as you add each item.
Você provavelmente já ouviu falar de Elm e suas promessas incríveis, mas você não quer reescrever tudo do zero, nem deixar a comunidade React. E se você pudesse ter todos os benefícios de Elm, enquanto ainda usa seus componentes React, misturando JavaScript e uma linguagem mais simples e poderosa, com um excelente sistema de tipos? Venha conhecer então PureScript e a biblioteca Pux!
it is and slide contains Save to your mobile device with our new app
Don't have time to read now? Save SlideShares to read later or offline - anytime, anywhere.
dding more information (description, tags, category) makes it easier for others to find your content. The score increases as you add each item.
Czym się różnie JMS od AMQP? Co to jest queue? Co to jest topic? Jak zlecać zadania w przyszłości używając kolejek? Jak się do tego podpiąć z Javy? Na te i inne pytania postaram się odpowiedzieć na mojej prezentacji.
4Developers: Michał Szczepanik- Kotlin - Let’s ketchup itPROIDEA
Niektóre rzeczy trzeba dobrze przyprawić żeby były lepsze ... tak samo jest z pisaniem aplikacji na Androida. Jako programiści zaczynamy mieć czasami dość Javy i chcielibyśmy się przerzucić na coś lepszego i czytelniejszego. Takim rozwiązaniem może okazać się Kotlin. O zaletach języka i o tym jak może ułatwić pracę z Androidem dowiecie się podczas tego wykładu.
O quanto você está satisfeito com o código que produz? Mais ainda: o quanto você está satisfeito como profissional? Na busca pela melhoria de nossas aplicações, caímos num grande desafio: melhorar a nós mesmos!
Numa conversa franca e descontraída, Samuel e Victor tentarão apresentar idéias sobre como você pode melhorar seu próprio trabalho e sentir orgulho do que faz.
Czym się różnie JMS od AMQP? Co to jest queue? Co to jest topic? Jak zlecać zadania w przyszłości używając kolejek? Jak się do tego podpiąć z Javy? Na te i inne pytania postaram się odpowiedzieć na mojej prezentacji.
4Developers: Michał Szczepanik- Kotlin - Let’s ketchup itPROIDEA
Niektóre rzeczy trzeba dobrze przyprawić żeby były lepsze ... tak samo jest z pisaniem aplikacji na Androida. Jako programiści zaczynamy mieć czasami dość Javy i chcielibyśmy się przerzucić na coś lepszego i czytelniejszego. Takim rozwiązaniem może okazać się Kotlin. O zaletach języka i o tym jak może ułatwić pracę z Androidem dowiecie się podczas tego wykładu.
O quanto você está satisfeito com o código que produz? Mais ainda: o quanto você está satisfeito como profissional? Na busca pela melhoria de nossas aplicações, caímos num grande desafio: melhorar a nós mesmos!
Numa conversa franca e descontraída, Samuel e Victor tentarão apresentar idéias sobre como você pode melhorar seu próprio trabalho e sentir orgulho do que faz.
Functional programming is gaining more and more popularity. I would like to present basics of functional programming, which everyone could use in daily work. I talk about functions, currying & function composition. I present utility functions, which can improve our code readability, make it more reusable and testable.
#ITsubbotnik Spring 2017: Roman Iovlev "Java edge in test automation"epamspb
Автоматизаторы старатются упростить рутинную работу ручных тестировщиков, но оказывается и работу автоматизатора можно улучшить. Сделать написание авто тестов проще, быстрее и с большим качеством.
Как этого добиться? Об этом я и хочу рассказать.
Мы поговорим про возможности Java 8, популярную библиотеку-плагин Lombok и мощный фреймворк для автоматизированного тестирования JDI.
Random speed program in CPP
This program is calculating the random speed explicitly and implementing the concept of matrix.
programminghomeworkhelp.com is the leading online solution provider for C++ Programming assignments. If you are struggling with your scoring in C++ Programming Assignments, Homework or Projects then email your requirements at info@programminghomeworkhelp.com and we will ensure excellent grades. Email your C++ assignment to info@programminghomeworkhelp.com and distress yourself from the complex C++ Programming Assignments.
Nested For Loops and Class Constants in JavaPokequesthero
Based on chapter 2 of "Building Java Programs", 3rd edition. Contains more explanations on writing nested for loops and class constants.
See a video presentation of this slideshow on my YouTube channel JavaGoddess, at https://www.youtube.com/watch?v=H1R4IE4pn1E
program list:
WAP program to show constructor overloading using static member.
WAP to implement multilevel inheritance and method overriding.
WAP to implement interface class and show use of package.
WAP to implement multilevel exception handling and create your own exception.
WAP to implement 3 threads such that 1st sleeps for 200ms, 2nd for 400ms and 3rd for 600ms.
WAP to create applet of moving banner.
WAP to make a simple calculator.
Build a client server chat application.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
1. UAS Pemrograman Visual
“C# - Database”
Oleh :
Andriyan Dwi P. (115623003)
D3 MANAJEMEN INFORMATIKA A
JURUSAN TEKNIK ELEKTRO
FAKULTAS TEKNIK
UNIVERSITAS NEGERI SURABAYA
2013
2. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
1 | P a g e
SOAL UJIAN
1. Buat aplikasi yang menghasilkan ouput di bawah ini ;
a) ******* b) *
****** **
***** ***
**** ****
*** *****
** ******
* *******
c) ******* d)* *
****** ** **
***** *** ***
**** **** ****
*** ***** *****
** ****** ******
* **************
**
***
****
*****
******
*******
2. Buat aplikasi database yang terdiri dari form Login,form input
data(tambah,edit,simpan,delete,batal) database yang digunakan : mysql, sqlserver
express, posgresql
Nb : soal no.2 semakin lengkap aplikasinya semakin baik nilainya.
3. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
2 | P a g e
No.1)
CONSOLE
a. Source code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UAS_no1
{
class a
{
static void Main(string[] args)
{
string lagi;
do
{
int a, i, j;
Console.WriteLine("Berapa Baris Bintang ?");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
for (i = a; i >= 1; i--)
{
for (j = i; j >= 1; j--)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.Write("Apakah Anda ingin lagi ?[y/t] n");
lagi = Convert.ToString(Console.ReadLine());
} while (lagi == "y" || lagi == "Y");
}
}
}
Screenshoot :
4. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
3 | P a g e
b. Source code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UAS_1b
{
class b
{
static void Main(string[] args)
{
string lagi;
do
{
int a, i, j;
Console.WriteLine("Berapa Baris Bintang ?");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
for (i = 1; i <= a; i++)
{
for (j = 1; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.Write("Apakah Anda ingin lagi ?[y/t] n");
lagi = Convert.ToString(Console.ReadLine());
} while (lagi == "y" || lagi == "Y");
}
}
}
Screenshoot :
5. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
4 | P a g e
c. Source code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UAS_1c
{
class c
{
static void Main(string[] args)
{
string lagi;
do
{
int a, i, j;
Console.WriteLine("Berapa Baris Bintang ?");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
for (i = a; i >= 1; i--)
{
for (j = i; j >= 1; j--)
{
Console.Write("*");
}
Console.WriteLine();
}
for (i = 1; i <= a; i++)
{
for (j = 1; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.Write("Apakah Anda ingin lagi ?[y/t] n");
lagi = Convert.ToString(Console.ReadLine());
} while (lagi == "y" || lagi == "Y");
}
}
}
Screenshoot :
6. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
5 | P a g e
d. Source code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UAS_1d
{
class d
{
static void Main(string[] args)
{
string lagi;
do
{
int a, i, j;
Console.WriteLine("Berapa Baris Bintang ?");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("-----------------------------");
{
int b, c, d;
d = 1; c = a - 1;
Console.Write("n");
for (i = 0; i < a * 2 - 1; i++)
{
if (i < a)
{
for (j = 0; j < a * 2 - 1; j++)
{
b = a - c;
if ((j < b) || (j >= (b + 2 * c - 1)))
{
Console.Write("*");
}
else
{
Console.Write(" ");
}
}
c = c - 1;
}
Console.WriteLine();
}
}
Console.Write("Apakah Anda ingin lagi ?[y/t] n");
lagi = Convert.ToString(Console.ReadLine());
} while (lagi == "y" || lagi == "Y");
}
}
}
7. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
6 | P a g e
Screenshoot :
WINDOWS FORM
Source code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace UAS_no1
{
public partial class UAS_1 : Form
{
public UAS_1()
{
InitializeComponent();
}
int a, i, j;
private void btnReset_Click(object sender, EventArgs e)
{
txtBaris.ResetText();
richTxtHasil.ResetText();
}
private void btnA_Click(object sender, EventArgs e)
{
a = System.Convert.ToInt32(txtBaris.Text);
for (i = a; i >= 1; i--)
{
for (j = i; j >= 1; j--)
{
richTxtHasil.AppendText("*");
}
8. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
7 | P a g e
richTxtHasil.AppendText(Environment.NewLine);
}
}
private void btnB_Click(object sender, EventArgs e)
{
a = System.Convert.ToInt32(txtBaris.Text);
for (i = 1; i <= a; i++)
{
for (j = 1; j <= i; j++)
{
richTxtHasil.AppendText("*");
}
richTxtHasil.AppendText(Environment.NewLine);
}
}
private void btnC_Click(object sender, EventArgs e)
{
a = System.Convert.ToInt32(txtBaris.Text);
for (i = a; i >= 1; i--)
{
for (j = i; j >= 1; j--)
{
richTxtHasil.AppendText("*");
}
richTxtHasil.AppendText(Environment.NewLine);
}
for (i = 1; i <= a; i++)
{
for (j = 1; j <= i; j++)
{
richTxtHasil.AppendText("*");
}
richTxtHasil.AppendText(Environment.NewLine);
}
}
private void btnD_Click(object sender, EventArgs e)
{
int b, c, d;
d = 1; c = a - 1;
a = System.Convert.ToInt32(txtBaris.Text);
Console.Write("n");
for (i = 0; i < a * 2 - 1; i++)
{
if (i < a)
{
for (j = 0; j < a * 2 - 1; j++)
{
b = a - c;
if ((j < b) || (j >= (b + 2 * c - 1)))
{
richTxtHasil.AppendText("*");
}
else
{
richTxtHasil.AppendText(" ");
9. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
8 | P a g e
}
}
c = c - 1;
}
richTxtHasil.AppendText(Environment.NewLine);
}
}
}
}
Screenshoot :
10. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
9 | P a g e
No. 2) Database : MySQL
LOGIN
Source Code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace UAS_no2
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
txtPassword.PasswordChar = '*';
txtPassword.MaxLength = 9;
}
private void btnLogin_Click(object sender, EventArgs e)
{
try
{
string myConnection =
"datasource=localhost;port=3306;username=root;password=";
11. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
10 | P a g e
MySqlConnection myConn = new MySqlConnection(myConnection);
MySqlCommand SelectCommand = new MySqlCommand("select * from
visual.login where username='" + this.txtUsername.Text + "' and password='" +
this.txtPassword.Text + "' ;", myConn);
MySqlDataReader myReader;
myConn.Open();
myReader = SelectCommand.ExecuteReader();
int count = 0;
while (myReader.Read())
{
count = count + 1;
}
if (count == 1)
{
MessageBox.Show("Username dan password Anda benar");
this.Hide();
MenuUtama f2 = new MenuUtama();
f2.ShowDialog();
}
else if (count > 1)
{
MessageBox.Show("Duplicate Username dan Password . . . Access
denied");
}
else
{
MessageBox.Show("Username dan password Anda Salah. . . Please try
again !");
myConn.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btnReset_Click(object sender, EventArgs e)
{
txtUsername.ResetText();
txtPassword.ResetText();
}
private void Login_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult dialog = MessageBox.Show("Beneran sudah selesai nie ? hhe",
"Exit", MessageBoxButtons.YesNo);
if (dialog == DialogResult.Yes)
{
Application.Exit();
}
else if (dialog == DialogResult.No)
12. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
11 | P a g e
{
e.Cancel = true;
}
}
}
}
Screenshoot :
Setelah berhasil melakukan proses login, user akan langsung masuk ke Form Menu Utama,
dimana pada form ini proses Insert, Update, Delete dan proses menampilkan data terjadi.
Menu Utama
Source Code :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using MySql.Data.MySqlClient;
13. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
12 | P a g e
namespace UAS_no2
{
public partial class MenuUtama : Form
{
public MenuUtama()
{
InitializeComponent();
fillCombo();
load_table();
Load_chart();
}
string kelamin;
void Load_chart()
{
string constring =
"datasource=localhost;port=3306;username=root;password=";
string lihat = "select * from visual.biodata;";
MySqlConnection conDatabase = new MySqlConnection(constring);
MySqlCommand cmdLihat = new MySqlCommand(lihat, conDatabase);
MySqlDataReader myReader;
try
{
conDatabase.Open();
myReader = cmdLihat.ExecuteReader();
while (myReader.Read())
{
this.chart1.Series["Umur"].Points.AddXY(myReader.GetString("fname"),
myReader.GetString("Umur"));
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
void fillCombo()
{
string constring =
"datasource=localhost;port=3306;username=root;password=";
string lihat = "select * from visual.biodata;";
MySqlConnection conDatabase = new MySqlConnection(constring);
MySqlCommand cmdLihat = new MySqlCommand(lihat, conDatabase);
MySqlDataReader myReader;
try
{
conDatabase.Open();
myReader = cmdLihat.ExecuteReader();
14. [LAPORAN UAS PEMROGRAMAN VISUAL] Kamis, 20 Juni 2013
13 | P a g e
while (myReader.Read())
{
string sNama = myReader.GetString("fname");
comboBox1.Items.Add(sNama);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
void load_table()
{
string constring =
"datasource=localhost;port=3306;username=root;password=";
string lihat = "select idbiodata as 'ID', fname as 'First Name', lname as
'Last Name', Umur, gender as 'Jenis Kelamin', tanggallahir as 'Tanggal Lahir' from
visual.biodata;";
MySqlConnection conDatabase = new MySqlConnection(constring);
MySqlCommand cmdLihat = new MySqlCommand(lihat, conDatabase);
try
{
MySqlDataAdapter sda = new MySqlDataAdapter();
sda.SelectCommand = cmdLihat;
DataTable dbdataset = new DataTable();
sda.Fill(dbdataset);
BindingSource bSource = new BindingSource();
bSource.DataSource = dbdataset;
dataGridView1.DataSource = bSource;
sda.Update(dbdataset);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btnSimpan_Click(object sender, EventArgs e)
{
byte[] imageBt= null;
FileStream fstream = new FileStream(this.txtImage_loc.Text, FileMode.Open,
FileAccess.Read);
BinaryReader br = new BinaryReader(fstream);
imageBt = br.ReadBytes((int)fstream.Length);
string constring =
"datasource=localhost;port=3306;username=root;password=";
string insert = "insert into visual.biodata
(idbiodata,fname,lname,umur,gender,tanggallahir,gambar)"+