Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
AnswerRe: Editing values in List? Pin
pradeep surya10-May-14 5:19
pradeep surya10-May-14 5:19 
AnswerRe: Editing values in List? Pin
Member 1044193910-May-14 6:33
professionalMember 1044193910-May-14 6:33 
AnswerRe: Editing values in List? Pin
Wes Aday10-May-14 14:08
professionalWes Aday10-May-14 14:08 
AnswerRe: Editing values in List? Pin
BillWoodruff10-May-14 13:31
professionalBillWoodruff10-May-14 13:31 
AnswerRe: Editing values in List? Pin
Emre Ataseven11-May-14 7:05
professionalEmre Ataseven11-May-14 7:05 
QuestionError : Expected class,delegate,enum, interface,or struct Pin
Member 104511519-May-14 16:02
Member 104511519-May-14 16:02 
AnswerRe: Error : Expected class,delegate,enum, interface,or struct Pin
BillWoodruff9-May-14 16:44
professionalBillWoodruff9-May-14 16:44 
QuestionError : Expected class,delegate,enum, interface,or struct Pin
Member 104511519-May-14 16:01
Member 104511519-May-14 16:01 
Hep

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.Data.SqlClient;

namespace Hastane_Randevu_Sistemi
{
public partial class Giris : Form
{
public Giris()
{
InitializeComponent();
}

private void button2_Click(object sender, EventArgs e)
{
RandevuAl frm = new RandevuAl();
frm.Show();
this.Hide();
}

private void button1_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
comboBox2.Text = "";
comboBox3.Text = "";
comboBox4.Text = "";
cmbbolum.Text = "";
}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
{
GetCountry();
}
}

private DataTable Connection(string commandType)
{
DataTable dataTable = new DataTable();
SqlConnection con = new SqlConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\vt.mdf;Integrated Security=True;Connect Timeout=30");
con.Open();
SqlCommand command = new SqlCommand(commandType);
command.Connection = con;
SqlDataAdapter dataAdapter = new SqlDataAdapter(command);
dataAdapter.Fill(dataTable);
con.Close();
return dataTable;
}

private void GetCountry()
{
DataTable dataTable = new DataTable();
dataTable = Connection("select * from IL");
comboBox1.DisplayMember = "COUNTRYNAME";
comboBox1.ValueMember = "GUID";
comboBox1.DataSource = dataTable;
}

private void GetCity(string CountryId)
{
DataTable dataTable = new DataTable();
dataTable = Connection("Select * from vt where IL ='" + CountryId + "'");
comboBox2.DisplayMember = "İlçe Adı";
comboBox2.ValueMember = "GUID";
comboBox2.DataSource = dataTable;
}

private void cboCountry_SelectionChangeCommitted(object sender, EventArgs e)
{
GetCity(comboBox1.SelectedValue.ToString());
}
}

private void Giris_Load(object sender, EventArgs e)
{


}
}
AnswerRe: Error : Expected class,delegate,enum, interface,or struct Pin
Richard MacCutchan9-May-14 21:38
mveRichard MacCutchan9-May-14 21:38 
QuestionI want to learn how to make in C# only Stock bar chart Pin
Member 107434229-May-14 11:47
Member 107434229-May-14 11:47 
AnswerRe: I want to learn how to make in C# only Stock bar chart Pin
Garth J Lancaster9-May-14 13:20
professionalGarth J Lancaster9-May-14 13:20 
GeneralRe: I want to learn how to make in C# only Stock bar chart Pin
Member 107434229-May-14 14:46
Member 107434229-May-14 14:46 
AnswerRe: I want to learn how to make in C# only Stock bar chart Pin
BillWoodruff9-May-14 16:50
professionalBillWoodruff9-May-14 16:50 
AnswerRe: I want to learn how to make in C# only Stock bar chart Pin
Emre Ataseven11-May-14 4:52
professionalEmre Ataseven11-May-14 4:52 
QuestionHaxe IAP Pin
Michelle Brodeur9-May-14 11:11
Michelle Brodeur9-May-14 11:11 
Questionhelp!! question Pin
Osama Kaiser9-May-14 6:00
Osama Kaiser9-May-14 6:00 
AnswerRe: help!! question Pin
Dave Kreskowiak9-May-14 6:12
mveDave Kreskowiak9-May-14 6:12 
GeneralRe: help!! question Pin
Osama Kaiser9-May-14 7:06
Osama Kaiser9-May-14 7:06 
GeneralRe: help!! question Pin
Eddy Vluggen9-May-14 7:11
professionalEddy Vluggen9-May-14 7:11 
GeneralRe: help!! question Pin
Osama Kaiser9-May-14 7:12
Osama Kaiser9-May-14 7:12 
GeneralRe: help!! question Pin
Dave Kreskowiak9-May-14 7:17
mveDave Kreskowiak9-May-14 7:17 
GeneralRe: help!! question Pin
Osama Kaiser9-May-14 7:19
Osama Kaiser9-May-14 7:19 
GeneralRe: help!! question Pin
Dave Kreskowiak9-May-14 15:15
mveDave Kreskowiak9-May-14 15:15 
GeneralRe: help!! question Pin
Dave Kreskowiak9-May-14 7:14
mveDave Kreskowiak9-May-14 7:14 
GeneralRe: help!! question Pin
Osama Kaiser9-May-14 7:17
Osama Kaiser9-May-14 7:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.