top
logo

ចំនួនអ្នកទស្សនា

032614
Today11
Yesterday119
This Week708
This Month449
All Days32614
38.107.191.85
US


លេខទូរស័ព្ទសង្គ្រោះបន្ទាន់ មន្ទីរពេទ្យសាធារណៈនៅភ្នំពេញ
d

១. រថយន្តសាមុយ មន្ទីរពេទ្យ​កាល់ម៉ែត= 119
២. រថយន្តសង្គ្រោះ មន្ទីរពេទ្យ​រុស្ស៊ី= 023 217 764
= វិទ្យុទាក់ទង (151940)
៣. រថយន្តសង្គ្រោះ មន្ទីរពេទ្យ​ព្រះសង្ឃ= 016 909 774
៤. លេខប្រចាំការ (Hot Line) គ្រុនផ្ដាសាយ A(H1N1)= 012 488 981
= 012 836 868

Programming
Using Khmer Unicode and Save Image to SQL Server in VB 2008 បោះពុម្ភ  សារអេឡិចត្រូនិច
សរសេរដោយ Setha IECH   
អង្គារ, 04 ឧសភា 2010 13:14

'Please attach the database to your SQL Server 2000 Database first.

Public pubCnn As New OleDb.OleDbConnection
Public strCnn As String = "Provider=SQLOLEDB.1; Data Source=.; " & _
                                    
" Initial Catalog=SCHOOLSTAT; User ID=sa; Password=;"

-----------------------------------------

-----------------------------------------

'insert data to table
Dim cmd As New OleDb.OleDbCommand
Dim arrImage As Byte()
Dim myMS As New
IO.MemoryStream
Dim strImage As String = ""

If Not IsNothing(Me.picPhoto.Image) Then
    
Me.picPhoto.Image.Save(myMS, Me.picPhoto.Image.RawFormat)
     arrImage = myMS.GetBuffer
     strImage =
"?"
Else
    
arrImage = Nothing
    
strImage = "NULL"
End If

--------------

cmd.Connection = pubCnn

If Me.id = 0 Then
     
id = GetSchoolID()
      cmd.CommandText =
"INSERT INTO school(id, schoolcode, name" & _
                                     
",provinceid,phone,type, photo) " & _
                                     
" VALUES(" & id & "," & SQLString(Me.txtSchoolCode.Text) & _
                                     
"," & SQLString(Me.txtSchoolName.Text) & _
                                      
"," & prID & "," & _
                                      SQLString(
Me.txtPhone.Text) & "," & schtype & _
                                     
"," & strImage & ")"

If strImage <> "NULL" Then
      
Dim cmdPar As New OleDb.OleDbParameter
       cmdPar = cmd.Parameters.Add(
"?"
, OleDb.OleDbType.Binary)
       cmdPar.Value = arrImage
End If



----------------------------

Download Source Code and Database Here

 
Using Graphics in Turbo C++ : Draw Bike បោះពុម្ភ  សារអេឡិចត្រូនិច
សរសេរដោយ Setha IECH   
សុក្រ, 30 មេសា 2010 11:33

#include <graphics.h>
#include <dos.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <alloc.h>

void drawbike(void);
void movebike();
void *bike;

void main()
{
    int gd=2,gm=4;
    initgraph(&gd,&gm,"c:\\tc\\bgi");
    drawbike();|
    movebike();
    getch();
    closegraph();
}

void drawbike(void)
{
     circle(50,100,25); circle(150,100,25);
     line(50,100,80,85); line(80,85,134,85);
     line(77,82,95,100); line(130,80,150,100);
     line(128,80,113,82); line(128,80,116,78);
     line(72,81,89,81); line(73,82,90,82);
     circle(95,100,5); line(92,105,98,95);
     line(91,105,93,105); line(97,95,99,95);
     line(95,100,136,87);
     bike=malloc(imagesize(25,75,175,125));
     if(bike==NULL){
        closegraph();
        printf("\nFailed to allocate memory for bike image.\n");
        exit(1);
     }
     getimage(25,75,175,125,bike);
}

void movebike()
{
     int i;
     for (i=0;i<getmaxx()-200;i+=6){
         putimage(25+i,75,bike,XOR_PUT);
         putimage(25+6+i,75,bike,COPY_PUT);
         delay(50);
     }
}

Download Source Code Here

 
Visual Basic 2008 and Microsoft Access 2003 បោះពុម្ភ  សារអេឡិចត្រូនិច
សរសេរដោយ Setha IECH   
សុក្រ, 30 មេសា 2010 10:06
បញ្ចូល ធ្វើកំណែប្រែ លុប ថ្នាក់រៀនតាមរយៈ Microsoft Visual Basic .Net 2008 ជាមួយ Microsoft Access
Add, Update, Delete Class from Microsoft Access Database Using Microsoft Visual Basic.Net 2008
  1. Create One Table in Microsoft Access name [class]
  2. Save MS-Access File as Data.mdb
  3. Copy the above file to folder project\...\bin\Debug\
  4. Create Project in Visual Basic.Net 2008


  5. pubCon = New OleDb.OleDbConnection
    pubCon.ConnectionString = "Provider=Microsoft.Jet.OleDb.4.0; " & _               
                            
    " Data Source=" & Application.StartupPath & "\Data.mdb"
    ------------------------------
    Friend Sub LoadData()       
        
    Dim da As New OleDb.OleDbDataAdapter("SELECT classcode, type, [id] " & _
                                                 " FROM [class]" & _
                                                 " ORDER BY classcode", pubCon)       
         Dim dt As New DataTable
        
    da.Fill(dt)
         
    Me.dgvData.DataSource = dt
        
    With Me.dgvData
            
    .Columns(
    "id").Visible = False

            
    .Columns(
    "classcode").HeaderText = "Class Code"

            
    .Columns(
    "type").HeaderText = "Class Type"

            
    .Columns("classcode").DefaultCellStyle.Font = New _Font("Arial", 11, _
                                                                      FontStyle.Bold)
     
             
    .Columns(
    "classcode").HeaderCell.Style.Font = New _
    Font("Arial", 11, 
                                                                      FontStyle.Bold)

             
    .Columns("classcode").Width = .Width * 0.4
             .Columns("type").Width = .Width * 0.5       
         
    End With

          dt.Dispose()

          da.Dispose()
    End Sub
    -------------------------------------
    Download Source Code Here
 
Export Data from Visual Basic .Net 2008 to Microsoft Word បោះពុម្ភ  សារអេឡិចត្រូនិច
សរសេរដោយ Setha IECH   
ព្រហស្បតិ, 29 មេសា 2010 09:14

 

Dim objWordApp As Object
Dim objWordDoc As Object

objWordApp = CreateObject("Word.Application")
objWordDoc = objWordApp.documents.add()
objWordDoc.tables.add(objWordDoc.range(0, 0), 11, 3)

With objWordDoc.tables(1)   
   
.borders.InsideLineStyle = 1
   
.borders.OutsideLineStyle = 1 

    
For i As Integer = 0 To 10
      
.rows(i + 1).cells(1).range.text = Me.dgvData.Rows(i).Cells("id").Value 
      
.rows(i + 1).cells(2).range.text = Me.dgvData.Rows(i).Cells("name").Value
      
.rows(i + 1).cells(3).range.text =
Me.dgvData.Rows(i).Cells("gender").Value
   
Next
End With

objWordApp.visible = True
objWordApp = Nothing

---------------------------- 

Download Source Code Here

 
Text to Speech in VB.Net 2008 បោះពុម្ភ
សរសេរដោយ Satya MAO   
អង្គារ, 27 មេសា 2010 16:04

មុននឹងចាប់ផ្ដើមសរសេរកូដ យើងត្រូវ Add Reference មួយដែលមានឈ្មោះថា Microsoft Speech Object Library

ដោយចុចលើ Project menu --> Add Reference --> ចុចលើ Tab COM -->  Microsoft Speech Object Library

បន្ទាប់មកទើបសរសេរកូដលើប៊ូតុង Speech:

Imports SpeechLib
Public Class Form1
----------------------------------------------------------
Private Sub ButtonSpeech_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles & _ ButtonSpeech.Click
        Dim sp As New SpVoice
        sp.Speak(TextBox1.Text, SpeechVoiceSpeakFlags.SVSFDefault)
    End Sub
End Class

 
« ចាប់ផ្តើមទៅក្រោយ12345បន្ទាប់ទៀតចប់ »

ទំព័រ 3 នៃ 5

bottom
top
bottom

ផលិតដោយ krookroo.com.