Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > .NET Framework > Forum > ช่วยแปลโค้ดนี้หน่อยน่ะค่ะ งงมากเรย PublicClass frmDebuggingInherits System.Windows.Forms.Form



 

ช่วยแปลโค้ดนี้หน่อยน่ะค่ะ งงมากเรย PublicClass frmDebuggingInherits System.Windows.Forms.Form

 



Topic : 028239



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์




PublicClass frmDebuggingInherits System.Windows.Forms.Form
#Region

" Windows Form Designer generated code "



Public Sub New()MyBase.New()'This call is required by the Windows Form Designer.
InitializeComponent()


'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.


Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)If disposing Then

If Not (components Is Nothing) Then
components.Dispose()


End If

End If


MyBase.Dispose(disposing)End Sub



Friend WithEvents txtValue As System.Windows.Forms.TextBoxFriend WithEvents btnDebug As System.Windows.Forms.Button'Required by the Windows Form Designer


Private components As System.ComponentModel.Container'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()>





Private Sub InitializeComponent()Me.txtValue = New System.Windows.Forms.TextBoxMe.btnDebug = New System.Windows.Forms.ButtonMe.SuspendLayout()'

'txtValue

'


Me.txtValue.Location = New System.Drawing.Point(24, 40)Me.txtValue.Name = "txtValue"



Me.txtValue.Size = New System.Drawing.Size(100, 20)Me.txtValue.TabIndex = 0'

'btnDebug

'


Me.btnDebug.Location = New System.Drawing.Point(152, 40)Me.btnDebug.Name = "btnDebug"



Me.btnDebug.Size = New System.Drawing.Size(75, 23)Me.btnDebug.TabIndex = 1Me.btnDebug.Text = "Debug"

'

'frmDebugging

'





Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)Me.ClientSize = New System.Drawing.Size(248, 85)Me.Controls.Add(Me.txtValue)Me.Controls.Add(Me.btnDebug)Me.Name = "frmDebugging"

Me.Text = "Test Debugging"



#End

Me.ResumeLayout(False)Me.PerformLayout()End Sub Region

'---------------------------

'Examine code from this point onwards

'TODO Put a breakpoint on the following line.


Private Sub btnDebug_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDebug.Click'call the PerformValidation sub passing in the value from the textbox
PerformValidation(txtValue.Text)


End Sub


Sub PerformValidation(ByVal strValue As String)'check if a value was passed in the string

If strValue = "" Then

'display an error if no value found
MsgBox(


"No value has been entered", MsgBoxStyle.Critical, "Error")Else

'display the passed in value if successful
MsgBox(


"The value entered was: " & strValue, MsgBoxStyle.Information, "Success")End If

End Sub


End

Private Sub frmDebugging_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadEnd Sub Class



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-06-14 01:45:44 By : yui_yui View : 1585 Reply : 3
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

จะให้แปลตรงไหนครับ ขอเป็นจุด ๆ ไปน่ะครับ






Date : 2009-06-15 13:12:33 By : webmaster
 


 

No. 2



โพสกระทู้ ( 13 )
บทความ ( 0 )



สถานะออฟไลน์


ผมก็งงมากเหมือนกันครับ เจ้าของกระทู้ต้องการ อะไร ยังไง อย่างไร ? แล้ว Code ตัวนี้ ต้องการทำสิ่งใด ?
Date : 2009-06-17 02:55:10 By : kanthalak
 

 

No. 3



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ส่วนบนๆ มันเหมือนเป็นโค็ดสร้างฟอร์ม ใส่ control ลงไป

ก็มีส่วนอีเวนต์ btnDebug_Click ส่ง txtvalue ไป sub PerformValidation เช็คว่า txtvalue มีค่าอะไรหรือเปล่า

โค๊ดที่กอปปี้มา มันเรียงบรรทัดไม่ถูกดูแล้วก็จะงงๆ
Date : 2009-06-18 19:58:45 By : dii
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยแปลโค้ดนี้หน่อยน่ะค่ะ งงมากเรย PublicClass frmDebuggingInherits System.Windows.Forms.Form
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่