 |
|
การจัดหน้าต่างๆบน from win app ให้แสดงตามที่ต้องการ |
|
 |
|
|
 |
 |
|
Code (C#)
this.dataGridView1.Columns["CustomerID"].Visible = false;
Code (C#)
this.dataGridView1.Columns[0].Visible = false;
|
 |
 |
 |
 |
Date :
2012-05-31 17:30:24 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช้กับ vb ได้หรอครับ
นี้โค้ดผม จะเอาไปใส่ยังไงครับ
Code (VB.NET)
Public Class Form2
Private Const WM_DEVICECHANGE As Integer = &H219
Private Const DBT_DEVICEARRIVAL As Integer = &H8000
Protected Overrides Sub WndProc(ByRef m As Message)
If m.Msg = WM_DEVICECHANGE Then
If m.WParam.ToInt32() = DBT_DEVICEARRIVAL Then
Dim frmForm7 As New Form7
frmForm7.Show()
End If
End If
MyBase.WndProc(m)
End Sub
Private Sub FileToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileToolStripMenuItem.Click
End Sub
Private Sub LoadLibraryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoadLibraryToolStripMenuItem.Click
Dim frmForm4 As New Form4
frmForm4.Show()
End Sub
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
If MessageBox.Show("Exit Library Program?", "", MessageBoxButtons.YesNo) = DialogResult.Yes Then
Application.Exit()
End If
End Sub
Private Sub SaveLibraryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveLibraryToolStripMenuItem.Click
Dim frmForm3 As New Form3
frmForm3.Show()
End Sub
Private Sub RegisterNewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RegisterNewToolStripMenuItem.Click
Dim frmForm5 As New Form5
frmForm5.Show()
End Sub
Private Sub EditAcountToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditAcountToolStripMenuItem.Click
Dim frmForm6 As New Form6
frmForm6.Show()
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'MydatabaseDataSet1.libraryfile' table. You can move, or remove it, as needed.
Me.LibraryfileTableAdapter.Fill(Me.MydatabaseDataSet1.libraryfile)
txtUser.Text = Class1.str
End Sub
End Class
|
ประวัติการแก้ไข 2012-06-02 07:39:14
 |
 |
 |
 |
Date :
2012-06-02 07:21:26 |
By :
jet_program |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรงนี้มันโค้ด เมนูหน้าแรกนิ
แล้ว Library มันอยู่ฟอร์มไหน
ส่วนที่ต้องการจัดรูปแบบนะครับ ไม่ตรงเขียนโค้ดทำตามข้างล่าง
คำถาม :1ผมไม่ต้องการให้โชว์ช่องนี้ครับ
คำตอบ : คลิ๊กที่ Datagrid ของน้อง 1 ที แล้วไปที่ Properties-->RowHeadersVisble-->False
คำถาม :2ผมอยากให้มันอยู่กึ่งกลางครับ
คำตอบ :คลิ๊กที่ Datagrid ของน้อง 1 ที แล้วไปที่ Properties -->ColumnHeadersDefaultCellStyle-->Alignment-->MiddleCenter
คำถาม :3มี แทบบาร์ ครับ
คำตอบ : กรณีที่มีข้อมูลเกินกรอบ Datagrid Datagrid มันจะขึ้น Scrollbar อัตโนมัติเอง
|
 |
 |
 |
 |
Date :
2012-06-02 09:25:56 |
By :
SeedNew |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไๆม่ต้องเขียนโค้ดครับ ตั้งค่าหน้า property เอาก็ได้แล้ว
|
 |
 |
 |
 |
Date :
2012-06-02 11:23:05 |
By :
Projectsup |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
property ล้วน ๆครับ codeing ก็ทำได้ครับแต่ยุ่งยากไปอีก
|
 |
 |
 |
 |
Date :
2012-06-02 11:37:00 |
By :
BILL |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณทุกความรู้ครับ ผมไม่เคยเขียน vb เลย
ต่อไป ก็คงจะอัพโหลด ไฟล์ผ่าน FTP โอ้ยอยากจะร้องไห้
ยังไม่รูหลักการและวิธีทำเลย พี่ๆช่วยแนะนำด้วยนะครับ
|
 |
 |
 |
 |
Date :
2012-06-07 16:21:03 |
By :
jet_program |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันบอกว่า "Unable to connect to the remote server"
ไม่ Errer แต่ขึ้น alert มันคืออะไรครับ เมื่ออัพแล้วไฟล์เราจะไปอยู่ตรงไหน
|
 |
 |
 |
 |
Date :
2012-06-07 17:46:49 |
By :
jet_program |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แอดไปทางไหนครับ คุณ projectsup
[email protected]
|
 |
 |
 |
 |
Date :
2012-06-08 08:45:27 |
By :
jet_program |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|