ພັນລາວ.ຄອມ
ຊອກຫາ:
ຊອກຫາແບບລະອຽດ
  ກະທູ້ມາໃໝ່   ຫມວດ   ເທັກໂນໂ... » ບັນຫາຄອມ    

Forum
ເວັບບອດພັນລາວ
ເວັບບອດພັນລາວ ເປັນກະດານສົນທະນາສຳລັບສະມາຊິກພັນລາວທຸກທ່ານ ທ່ານສາມາດຕັ້ງກະທູ້ເພື່ອສອບຖາມ ສະແດງ ແລະຂໍຄຳເຫັນຈະສະມາຊິກຄົນອື່ນ ໆ ຕະຫຼອດຈົນເຖິງການສົນທະນາທົ່ວ ໆ ໄປໄດ້ໃນເວັບບອດແຫ່ງນີ້. ຫາກຕ້ອງການແຈ້ງກະທູ້ຜິດກົດລະບຽບ ໃຫ້ໂພສໄດ້ທີ່ http://punlao.com/webboard/topic/3/index/288147/
ເທັກໂນໂລຢີ ແລະຄອມພິວເຕີ » ບັນຫາຄອມ » ວອນຊ່ວຍແດ່ ອາຈານຄອມພິວເຕີ້ທັງຫຼາຍ:

໓ ກະທູ້
໕ ໂພສ
ມືໃໝ່ຮຽນໃຊ້ເວັບບອດ
ວອນຊ່ວຍແດ່ ອາຈານຄອມພິວເຕີ້ທັງຫຼາຍ: ໃຊ້ VC,VB,java ຫຼືວ່າ c ກ່າໄດ້ເພື່ອຂຽນໂປຼແກຣມ: Chat room software and development: Basic requirements can be completed group chat, private chat, send and display real-time chat messages, complete the friends list; further requirements with facial expressions, attachments, chat messages encrypted transmission, blacklist, etc. Design Tip - learn communication programming Socket interface programming, using TCP or UDP connection to complete the information transmission, the use of multi-threaded server-side technology to achieve a number of TCP connection establishment
ຖ້າທ່ານຜູ່ໃດທີ່ເຄີຍຂຽນຫຼືວ່າມີໂຄ໊ດຢູ່ແລ້ວກ່າຂໍສົ່ງໃຫ້ຂ້ອຍແດ່ເດີ້


໕໕ ກະທູ້
໔໓໕໒ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ບໍ່ຮູ້ຊ້ຳວ່າແມ່ນຫຍັງ
ມາເປີດສົດ

ນັກສຶກສາ ປັນຍາຊົນ ຄົນແຫ່ງສະຕະວັດທີ 21
ເຫັນແກ່ຕົວສຸດໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆໆ

໒໒ ກະທູ້
໑໓໖໑ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ummm

ສຸລາ ບໍ່ໄດ້ເຮັດໃຫ້ໃຜເປັນວິລະບູຣຸດ ແຕ່ວ່າ ວິລະບູຣຸດກໍ່ຂາດສຸຣາບໍ່ໄດ້

໔໒ ກະທູ້
໒໖໐໑ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້


໑໖ ກະທູ້
໑໘໗ ໂພສ
ນັກການກະທູ້
ເປັນໂຄດຂອງ AjaxPHP ເອົາໃປສືກສາ ແລະ ປັບປ່ຽນໄດ້ຕາມສະບາຍ......

AjaxPHPChat1.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/
?>
<html>
<head>
<title>Mr poulim intharsan Ajax Tutorial</title>
<script language="JavaScript">
var HttPRequest = false;

function doCallAjax() {
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}

if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}

var url = 'AjaxPHPChat2.php';
var pmeters = "tName=" + encodeURI( document.getElementById("txtName").value) +
"&tMessage=" + encodeURI( document.getElementById("txtMessage").value );

HttPRequest.open('POST',url,true);

HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);


HttPRequest.onreadystatechange = function()
{

if(HttPRequest.readyState == 3) // Loading Request
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}

if(HttPRequest.readyState == 4) // Return Request
{
document.getElementById('mySpan').innerHTML = HttPRequest.responseText;

// focus //
var el = document.getElementById('mydiv');
el.tabIndex = 32456;
el.focus();

}
}

}
</script>
</head>
<body Onload="JavaScript:doCallAjax()">
<h1>My Chat Room </h1>
<table width="566" height="315" border="1" cellpadding="2" cellspacing="2">
<tr>
<td width="575" height="291" valign="top">
<div style=width:570;height:280;overflow:auto>
<span id="mySpan"></span>
</div>
</td>
</tr>
<tr>
<td height="22" valign="top"><form action="" method="post" name="frmMain" id="frmMain">
<div align="center">
<br>
Name
<input name="txtName" type="text" id="txtName" size="5">
Message
<input name="txtMessage" type="text" id="txtMessage" size="40">
<input name="btnSend" type="button" id="btnSend" value="Send" onClick="JavaScript:doCallAjax();">
</div>
</form></td>
</tr>
</table>

</body>
</html>



AjaxPHPChat2.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/

$strName = $_POST["tName"];
$strMessage = $_POST["tMessage"];


$strFileName = "thaicreate.txt";

if($strName != "" and $strMessage != "")
{
//*** Write Text file ***//
$objFopen = fopen("data/".$strFileName, 'a');
$strText1 = "$strName say : $strMessage\\r\\n";
fwrite($objFopen, $strText1);
fclose($objFopen);
}

//*** Read Text file ***//
$objFopen = fopen("data/".$strFileName, 'r');
if ($objFopen) {
while (!feof($objFopen)) {
$file = fgets($objFopen, 4096);
echo $file."<br>";
}
fclose($objFopen);
}

echo "<div id='mydiv'></div>";
?>

ແຫຼ່ງມົ້ວສຸມຂອງຄົນ.........ຮັກ-ຄອມ.....


໔໔ ກະທູ້
໓໗໗ ໂພສ
ຊຳນານການເວັບບອດ


໔໒ ກະທູ້
໒໖໐໑ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້


໒໑ ກະທູ້
໓໙໒ ໂພສ
ຊຳນານການເວັບບອດ
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ເປັນໂຄດຂອງ AjaxPHP ເອົາໃປສືກສາ ແລະ ປັບປ່ຽນໄດ້ຕາມສະບາຍ......

AjaxPHPChat1.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/
?>


Mr poulim intharsan Ajax Tutorial

var HttPRequest = false;

function doCallAjax() {
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}

if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}

var url = 'AjaxPHPChat2.php';
var pmeters = "tName=" + encodeURI( document.getElementById("txtName").value) +
"&tMessage=" + encodeURI( document.getElementById("txtMessage").value );

HttPRequest.open('POST',url,true);

HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);


HttPRequest.onreadystatechange = function()
{

if(HttPRequest.readyState == 3) // Loading Request
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}

if(HttPRequest.readyState == 4) // Return Request
{
document.getElementById('mySpan').innerHTML = HttPRequest.responseText;

// focus //
var el = document.getElementById('mydiv');
el.tabIndex = 32456;
el.focus();

}
}

}



<h1>My Chat Room </h1>
<table width="566" height="315" border="1">
<tr>
<td width="575" height="291">
<div style=width:570;height:280;overflow:auto>
<span></span>
</div>
</td>
</tr>
<tr>
<td height="22"><form>
<div align="center">
<br>
Name
<input>
Message
<input>
<input>
</div>
</form></td>
</tr>
</table>






AjaxPHPChat2.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/

$strName = $_POST["tName"];
$strMessage = $_POST["tMessage"];


$strFileName = "thaicreate.txt";

if($strName != "" and $strMessage != "")
{
//*** Write Text file ***//
$objFopen = fopen("data/".$strFileName, 'a');
$strText1 = "$strName say : $strMessage\\\\r\\\\n";
fwrite($objFopen, $strText1);
fclose($objFopen);
}

//*** Read Text file ***//
$objFopen = fopen("data/".$strFileName, 'r');
if ($objFopen) {
while (!feof($objFopen)) {
$file = fgets($objFopen, 4096);
echo $file."<br>";
}
fclose($objFopen);
}

echo "<div></div>";
?>




ao mai tea sai hun
khein ean va
leo mun run dai br


໕ ກະທູ້
໒໗໓໒ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ມາຈອບເບິ່ງວິຊາ



໑໖ ກະທູ້
໑໘໗ ໂພສ
ນັກການກະທູ້
ອ້າງເຖິງຂໍ້ຄວາມຈາກ neda ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ເປັນໂຄດຂອງ AjaxPHP ເອົາໃປສືກສາ ແລະ ປັບປ່ຽນໄດ້ຕາມສະບາຍ......

AjaxPHPChat1.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/
?>


Mr poulim intharsan Ajax Tutorial

var HttPRequest = false;

function doCallAjax() {
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}

if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}

var url = 'AjaxPHPChat2.php';
var pmeters = "tName=" + encodeURI( document.getElementById("txtName").value) +
"&tMessage=" + encodeURI( document.getElementById("txtMessage").value );

HttPRequest.open('POST',url,true);

HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);


HttPRequest.onreadystatechange = function()
{

if(HttPRequest.readyState == 3) // Loading Request
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}

if(HttPRequest.readyState == 4) // Return Request
{
document.getElementById('mySpan').innerHTML = HttPRequest.responseText;

// focus //
var el = document.getElementById('mydiv');
el.tabIndex = 32456;
el.focus();

}
}

}



<h1>My Chat Room </h1>
<table width="566" height="315" border="1">
<tr>
<td width="575" height="291">
<div style=width:570;height:280;overflow:auto>
<span></span>
</div>
</td>
</tr>
<tr>
<td height="22"><form>
<div align="center">
<br>
Name
<input>
Message
<input>
<input>
</div>
</form></td>
</tr>
</table>






AjaxPHPChat2.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/

$strName = $_POST["tName"];
$strMessage = $_POST["tMessage"];


$strFileName = "thaicreate.txt";

if($strName != "" and $strMessage != "")
{
//*** Write Text file ***//
$objFopen = fopen("data/".$strFileName, 'a');
$strText1 = "$strName say : $strMessage\\\\\\\\r\\\\\\\\n";
fwrite($objFopen, $strText1);
fclose($objFopen);
}

//*** Read Text file ***//
$objFopen = fopen("data/".$strFileName, 'r');
if ($objFopen) {
while (!feof($objFopen)) {
$file = fgets($objFopen, 4096);
echo $file."<br>";
}
fclose($objFopen);
}

echo "<div></div>";
?>




ao mai tea sai hun
khein ean va
leo mun run dai br



ແນ່ນອນຕ້ອງລັນໄດ້ ເພາະຂ້ອຍກໍ່ໄດ້ເອົາມາແປງເອງກັບມື........ເຈົ້າລອງລະຫວາ...ເຈົ້າຍັງຄາບ່ອນໃດທີ່ລັນບໍ່ອອກ

ແຫຼ່ງມົ້ວສຸມຂອງຄົນ.........ຮັກ-ຄອມ.....


໒໑ ກະທູ້
໓໙໒ ໂພສ
ຊຳນານການເວັບບອດ
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ neda ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ເປັນໂຄດຂອງ AjaxPHP ເອົາໃປສືກສາ ແລະ ປັບປ່ຽນໄດ້ຕາມສະບາຍ......

AjaxPHPChat1.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/
?>


Mr poulim intharsan Ajax Tutorial

var HttPRequest = false;

function doCallAjax() {
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}

if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}

var url = 'AjaxPHPChat2.php';
var pmeters = "tName=" + encodeURI( document.getElementById("txtName").value) +
"&tMessage=" + encodeURI( document.getElementById("txtMessage").value );

HttPRequest.open('POST',url,true);

HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);


HttPRequest.onreadystatechange = function()
{

if(HttPRequest.readyState == 3) // Loading Request
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}

if(HttPRequest.readyState == 4) // Return Request
{
document.getElementById('mySpan').innerHTML = HttPRequest.responseText;

// focus //
var el = document.getElementById('mydiv');
el.tabIndex = 32456;
el.focus();

}
}

}



<h1>My Chat Room </h1>
<table width="566" height="315" border="1">
<tr>
<td width="575" height="291">
<div style=width:570;height:280;overflow:auto>
<span></span>
</div>
</td>
</tr>
<tr>
<td height="22"><form>
<div align="center">
<br>
Name
<input>
Message
<input>
<input>
</div>
</form></td>
</tr>
</table>






AjaxPHPChat2.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/

$strName = $_POST["tName"];
$strMessage = $_POST["tMessage"];


$strFileName = "thaicreate.txt";

if($strName != "" and $strMessage != "")
{
//*** Write Text file ***//
$objFopen = fopen("data/".$strFileName, 'a');
$strText1 = "$strName say : $strMessage\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n";
fwrite($objFopen, $strText1);
fclose($objFopen);
}

//*** Read Text file ***//
$objFopen = fopen("data/".$strFileName, 'r');
if ($objFopen) {
while (!feof($objFopen)) {
$file = fgets($objFopen, 4096);
echo $file."<br>";
}
fclose($objFopen);
}

echo "<div></div>";
?>




ao mai tea sai hun
khein ean va
leo mun run dai br



ແນ່ນອນຕ້ອງລັນໄດ້ ເພາະຂ້ອຍກໍ່ໄດ້ເອົາມາແປງເອງກັບມື........ເຈົ້າລອງລະຫວາ...ເຈົ້າຍັງຄາບ່ອນໃດທີ່ລັນບໍ່ອອກ



koi y br dai long tea jao va ao ma peng kub mue ka nar si dai la na koi zuea mue jao


໑໖ ກະທູ້
໑໘໗ ໂພສ
ນັກການກະທູ້
ອ້າງເຖິງຂໍ້ຄວາມຈາກ neda ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ neda ຂຽນວ່າ...
ອ້າງເຖິງຂໍ້ຄວາມຈາກ poulim ຂຽນວ່າ...
ເປັນໂຄດຂອງ AjaxPHP ເອົາໃປສືກສາ ແລະ ປັບປ່ຽນໄດ້ຕາມສະບາຍ......

AjaxPHPChat1.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/
?>


Mr poulim intharsan Ajax Tutorial

var HttPRequest = false;

function doCallAjax() {
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}

if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}

var url = 'AjaxPHPChat2.php';
var pmeters = "tName=" + encodeURI( document.getElementById("txtName").value) +
"&tMessage=" + encodeURI( document.getElementById("txtMessage").value );

HttPRequest.open('POST',url,true);

HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);


HttPRequest.onreadystatechange = function()
{

if(HttPRequest.readyState == 3) // Loading Request
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}

if(HttPRequest.readyState == 4) // Return Request
{
document.getElementById('mySpan').innerHTML = HttPRequest.responseText;

// focus //
var el = document.getElementById('mydiv');
el.tabIndex = 32456;
el.focus();

}
}

}



<h1>My Chat Room </h1>
<table width="566" height="315" border="1">
<tr>
<td width="575" height="291">
<div style=width:570;height:280;overflow:auto>
<span></span>
</div>
</td>
</tr>
<tr>
<td height="22"><form>
<div align="center">
<br>
Name
<input>
Message
<input>
<input>
</div>
</form></td>
</tr>
</table>






AjaxPHPChat2.php

<?php
/*** By Weerachai Nukitram ***/
/*** http://www.ThaiCreate.Com ***/

$strName = $_POST["tName"];
$strMessage = $_POST["tMessage"];


$strFileName = "thaicreate.txt";

if($strName != "" and $strMessage != "")
{
//*** Write Text file ***//
$objFopen = fopen("data/".$strFileName, 'a');
$strText1 = "$strName say : $strMessage\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n";
fwrite($objFopen, $strText1);
fclose($objFopen);
}

//*** Read Text file ***//
$objFopen = fopen("data/".$strFileName, 'r');
if ($objFopen) {
while (!feof($objFopen)) {
$file = fgets($objFopen, 4096);
echo $file."<br>";
}
fclose($objFopen);
}

echo "<div></div>";
?>




ao mai tea sai hun
khein ean va
leo mun run dai br



ແນ່ນອນຕ້ອງລັນໄດ້ ເພາະຂ້ອຍກໍ່ໄດ້ເອົາມາແປງເອງກັບມື........ເຈົ້າລອງລະຫວາ...ເຈົ້າຍັງຄາບ່ອນໃດທີ່ລັນບໍ່ອອກ



koi y br dai long tea jao va ao ma peng kub mue ka nar si dai la na koi zuea mue jao



ຫລືວ່າເຈົ້າບໍ່ເຂົ້າໃຈບ່ອນໃດຂອງ code ແຖວທີທໍ່ໃດເບາະ...ຖາມມາລະຂ້າພະເຈົ້າສິຕອບໃຫ້

ແຫຼ່ງມົ້ວສຸມຂອງຄົນ.........ຮັກ-ຄອມ.....


໓ ກະທູ້
໕ ໂພສ
ມືໃໝ່ຮຽນໃຊ້ເວັບບອດ
khorb jai laiy2 t dai aow code ma hai kh...tae t yark dai nun br maen code PHP yark dai code JAVA or VC++ or C


໖໘ ກະທູ້
໓໓໒໐ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ເວົ້າເລື່ອງຄອມມາລະແມ່ນມັກສຸດໆເລີຍ ແຕ່ການມັກຂອງຂ້ອຍຫັ້ນພັດມີຂອບເຂດຈຳກັດ ແຮະໆໆມັກແຕ່ແນວທີ່ມັກ ແນວບໍ່ມັກກະບໍ່ຮູ້ນຳລ້ຽວ ແຮະໆໆ

ພຣະພຸດທະອົງກ່າວໄວ້ : ຫາກກິເລດເຮັດໃຫ້ເຮົາລົ້ມຫຼຽວໄດ້ສັນໃດ ທັມມະກໍ່ເຮັດໃຫ້ເຮົາເລີ່ມຕົ້ນໃໝ່ໄດ້ສັນນັ້ນ !

໓໑ ກະທູ້
໑໘໘ ໂພສ
ນັກການກະທູ້

ພື້ນຖານ ການໃຊ້ ListBox

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 ListBox
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


int IndexToSelect;
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
string ListToSelect;
IndexToSelect = listBox1.SelectedIndex;
ListToSelect = (string)listBox1.SelectedItem;
textBox1.Text = ListToSelect;
textBox1.Focus();
textBox1.SelectAll();

}


private void Form1_Load(object sender, EventArgs e)
{
listBox1.Items.Add(" VB.Net 2012 ");
listBox1.Items.Add(" Lao ");
listBox1.Items.Add(" C++ ");
listBox1.Items.Add(" C# ");
listBox1.Items.Add(" ASP ");
listBox1.Items.Add(" ");
listBox1.Items.Add(" ");
listBox1.Items.Add(" ");
labelCout.Text = listBox1.Items.Count.ToString();
}

private void buttonClearSelectIndex_Click(object sender, EventArgs e)
{
listBox1.SelectedIndex = -1;
}

private void buttonInsert_Click(object sender, EventArgs e)
{
if(textBox1.Text !="")
{
if (listBox1.FindString(textBox1.Text, -1) < 0)
{
listBox1.Items.Add(textBox1.Text);
textBox1.Text = "";
textBox1.Focus();
textBox1.SelectAll();


}
else
{
MessageBox.Show("Please ");
}
}
labelCout.Text = listBox1.Items.Count.ToString();
}

private void buttonEdit_Click(object sender, EventArgs e)
{
if(listBox1.SelectedIndex != -1)
{
listBox1.Items[listBox1.SelectedIndex] = textBox1.Text;
}
labelCout.Text = listBox1.Items.Count.ToString();

}

private void buttonDelete_Click(object sender, EventArgs e)
{
if(listBox1.SelectedIndex != -1)
{
listBox1.Items.RemoveAt(listBox1.SelectedIndex);
}
labelCout.Text = listBox1.Items.Count.ToString();


}
}
}

ພື້ນຖານ ການໃຊ້ ListBox



໘ ກະທູ້
໘໔໑ ໂພສ
ຊຳນານການເວັບບອດ


໒໘ ກະທູ້
໒໔໙໕ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ມາຈອບຝຶກວິທະຍາຍຸດ ຊືໆເດີ

ຮັກແທ້ຄືແມ່

໑໖ ກະທູ້
໑໘໗ ໂພສ
ນັກການກະທູ້
ອ້າງເຖິງຂໍ້ຄວາມຈາກ maxxxxx ຂຽນວ່າ...
khorb jai laiy2 t dai aow code ma hai kh...tae t yark dai nun br maen code PHP yark dai code JAVA or VC++ or C



ທ່ານ...ຈະເອົາ chat room ໃປພັດທະນາ ແບບໃດເອົາໃປ ໃສ່ເວບ ຫລື ໂປແກຼມ


ແຫຼ່ງມົ້ວສຸມຂອງຄົນ.........ຮັກ-ຄອມ.....


໒ ກະທູ້
໑໖໗໗ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້
ບໍ່ຮູ້ຊ້ຳ


໑໖ ກະທູ້
໑໘໗ ໂພສ
ນັກການກະທູ້
ຊັນເຂົ້າໃປສືກສາເອົາເດີ...........ຄຮີກ......

ແຫຼ່ງມົ້ວສຸມຂອງຄົນ.........ຮັກ-ຄອມ.....


໒ ກະທູ້
໑໖໗໗ ໂພສ
ສຸດຍອດແຫ່ງເຈົ້າກະທູ້