Results 1 to 2 of 2

Thread: ส่งค่าระหว่าง Form ด้วย C# อธิบายหน่อยครับ

  1. #1


    ส่งค่าระหว่าง Form ด้วย C# อธิบายหน่อยครับ

    อธิบาย

    Form1
    มี textbox เพื่อรับค่า
    มี button เพื่อเรียก form2


    Form2
    มี GridView ที่แสดงข้อมูลที่ดึงจาก Database
    ในตาราง GridView มี Fieldแสดงได้ดั่งนี้ ลำดับที่, ชื่อโครงการ , เลือก

    จุดประสงค์ที่ต้องการคือดังนี้ (ปัญหา)

    เมื่อเข้าสู่ Form1
    textbox ไม่สามารถป้อนค่าได้ จะต้องคลิกที่ ปุ่ม ฺีbutton
    เพื่อลิงค์ไปยัง Form2

    Form2 ทำการโหลดข้อมูลจากDatabase มาแสดงที่ GridView เรียบร้อยแล้ว ทำการ คลิกที่ Field "เลือก" เพื่อเลือก ชื่อโครงการจากแถวนั้น พร้อมส่งชื่อโครงการนี้ไปยัง Form1 ไปเก็บแสดงที่ textbox

    ซึ่งยัง ไม่สามารถทำได้ ท่านใดพอเข้าใจ ช่วยชี้แนะด้วยนะครับ ด่วนมาก ขอบคุณครับ


    zairee_999@hotmail.com

    รสดี

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Location
    Laos
    Posts
    192


    This is what i've done...


    [hide=1]Form1.cs
    [code]

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;


    namespace WindowsApplication1
    {

Similar Threads

  1. Form Maker Pro v4.3
    By ong40600 in forum PHP,ASP,Javascript, Html
    Replies: 0
    Last Post: 20-06-2008, 06:04 PM
  2. Replies: 0
    Last Post: 31-01-2007, 05:13 PM
  3. การลบค่าใน Form (J2ME)
    By Anonymous in forum Symbian C++, J2ME, Brew,XHTML
    Replies: 1
    Last Post: 03-11-2004, 09:26 AM
  4. Form 2D to 3D
    By asylu3 in forum Game Programming & Computer Graphics
    Replies: 0
    Last Post: 11-08-2003, 12:31 AM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •