عملت كود بحث للبحث في كرستيال ريبورت شغال مئة في مئة وهذا هو الكود
عملت كود بحث للبحث في كرستيال ريبورت شغال مئة في مئة وهذا هو الكود
:huh:
look this link
http://www.janinedalton.com/blog/archives/2004/looking-for-isnumeric-in-vbnet/
look this code
If Not (IsNumeric(TextBox1.Text)) Then
MessageBox.Show("A listening port must be a numeric value", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
exit sub
End If
Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & _
Application.StartupPath & "\dada1.mdb ;user id=admin;jet oledb:database password=123 ")
Dim da As New OleDbDataAdapter("SELECT * FROM a1 where id=" + TextBox1.Text, con)
Dim ds As New DataSet
da.Fill(ds, "A1")
if ds.Tables("a1").Rows.Count=0 then
MessageBox.Show("no rows", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
exit sub
End If
Dim r As New CrystalReport
r.SetDataSource(ds.Tables("a1"))
CrystalReportViewer.ReportSource = r
Public Function IsNumeric(ByVal str As String)
Dim r As Regex = New Regex(“\d+”)
Dim m As Match = r.Match(str)
If (m.Success) Then
Return True
End If
Return False
End Functionتم تعديل هذه المشاركة بواسطة KARIMSOFT في 1 مايو 2014 في 20:26
سبحانه الله وبحمده سبحانه الله العظيم
if (You Love ArabTeam2000 ) MessageBox.Show("All ArabTeam2000 Love You"); else MessageBox.Show("go to your mama"); لا شكر علي واجب
سبحانه الله وبحمده سبحانه الله العظيم
if (You Love ArabTeam2000 ) MessageBox.Show("All ArabTeam2000 Love You"); else MessageBox.Show("go to your mama"); ممكن استادنا الفاضل تشرح لنا كيف تحكم في عرض الحقول في التقرير
ممكن توضح اكثر
سبحانه الله وبحمده سبحانه الله العظيم
if (You Love ArabTeam2000 ) MessageBox.Show("All ArabTeam2000 Love You"); else MessageBox.Show("go to your mama"); قصدي كيف يمكن للمستخدم أن يختار الحقول من الفورم التي يريدها أن تظهر في التقرير
اجاب اخي محمد فؤاد علي سؤالك من قبل
سبحانه الله وبحمده سبحانه الله العظيم
if (You Love ArabTeam2000 ) MessageBox.Show("All ArabTeam2000 Love You"); else MessageBox.Show("go to your mama"); صحيح ...... ولكن لم افهم الكود
المتواجدون خلال آخر ساعة · يتحدّث كل ٣٠ ثانية
جارٍ التحقق من المتواجدين…