Click here to Skip to main content
15,899,007 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: hi Pin
Ajay.k_Singh18-Dec-07 19:10
Ajay.k_Singh18-Dec-07 19:10 
GeneralRe: hi Pin
MohammadAmiry18-Dec-07 19:25
MohammadAmiry18-Dec-07 19:25 
Generalpicture box Pin
BOREC18-Dec-07 15:48
BOREC18-Dec-07 15:48 
GeneralRe: picture box Pin
Luc Pattyn18-Dec-07 16:14
sitebuilderLuc Pattyn18-Dec-07 16:14 
General... Pin
BOREC18-Dec-07 20:07
BOREC18-Dec-07 20:07 
GeneralRe: ... Pin
Luc Pattyn19-Dec-07 5:10
sitebuilderLuc Pattyn19-Dec-07 5:10 
Questionwhat is this? Pin
hassanasp18-Dec-07 12:49
hassanasp18-Dec-07 12:49 
AnswerRe: what is this? Pin
Colin Angus Mackay18-Dec-07 13:03
Colin Angus Mackay18-Dec-07 13:03 
hassanasp wrote:
com.Parameters.AddWithValue("@School_NameAr", Me.textBox1.Text)
com.Parameters.AddWithValue("@School_NameEn", Me.textBox2.Text)
com.Parameters.AddWithValue("@School_Edara ", Me.textBox3.Text)
com.Parameters.AddWithValue("@School_Address", Me.textBox4)
com.Parameters.AddWithValue("@School_City", Me.textBox5)
com.Parameters.AddWithValue("@School_Nation ", Me.textBox6.Text)
com.Parameters.AddWithValue("@School_Phone", CType(Me.textBox7.Text, Integer))
com.Parameters.AddWithValue("@School_Fax", CType(Me.textBox8.Text, Integer))
com.Parameters.AddWithValue("@School_Email", Me.textBox9.Text)
'com.Parameters.AddWithValue("@School_City", Me.textBox8.Text)
com.Parameters.AddWithValue("@School_Country", Me.textBox10.Text)
com.Parameters.AddWithValue("@School_Abbrev", Me.textBox11.Text)
com.Parameters.AddWithValue("@School_FirstYear", Me.textBox12.Text)


I've bolded two lines above. You will notice that the lines in bold are missing something that the other lines have. That is the .Text property.

And, by the way, naming your text boxes as textBox1, textBox2, etc. won't win you any friends. Please give them better names because the person that comes after you to maintain your code will curse you for it. And if you end up having to maintain the code you'll end up cursing yourself.


Upcoming FREE developer events:
* Developer Day Scotland

My website | blog


GeneralDock/float tab pages Pin
cstrader23218-Dec-07 11:01
cstrader23218-Dec-07 11:01 
QuestionLooping through database columns [modified] Pin
craigmg7818-Dec-07 5:55
craigmg7818-Dec-07 5:55 
GeneralRe: Looping through database columns Pin
nishkarsh_k18-Dec-07 18:31
nishkarsh_k18-Dec-07 18:31 
GeneralRe: Looping through database columns Pin
craigmg7819-Dec-07 5:27
craigmg7819-Dec-07 5:27 
GeneralWindows Service - timer tick event not firing. Pin
Steven J Jowett18-Dec-07 5:08
Steven J Jowett18-Dec-07 5:08 
GeneralRe: Windows Service - timer tick event not firing. Pin
m@u18-Dec-07 5:57
m@u18-Dec-07 5:57 
GeneralRe: Windows Service - timer tick event not firing. Pin
DigiOz Multimedia18-Dec-07 15:39
DigiOz Multimedia18-Dec-07 15:39 
QuestionMy break point not working properly Pin
poonams18-Dec-07 1:58
poonams18-Dec-07 1:58 
GeneralRe: My break point not working properly Pin
John_Adams18-Dec-07 11:25
John_Adams18-Dec-07 11:25 
GeneralRe: My break point not working properly Pin
Nilesh Hapse18-Dec-07 19:14
Nilesh Hapse18-Dec-07 19:14 
GeneralRe: My break point not working properly Pin
poonams19-Dec-07 1:37
poonams19-Dec-07 1:37 
GeneralImage Class in vb.net 2005 Pin
VB 8.018-Dec-07 1:24
VB 8.018-Dec-07 1:24 
GeneralRe: Image Class in vb.net 2005 Pin
C1AllenS18-Dec-07 3:57
C1AllenS18-Dec-07 3:57 
GeneralRe: Image Class in vb.net 2005 Pin
VB 8.018-Dec-07 18:10
VB 8.018-Dec-07 18:10 
Generalbutton.preformclick Pin
break_day18-Dec-07 0:50
break_day18-Dec-07 0:50 
GeneralRe: button.preformclick Pin
CPallini18-Dec-07 1:07
mveCPallini18-Dec-07 1:07 
GeneralRe: button.preformclick Pin
Luc Pattyn18-Dec-07 3:50
sitebuilderLuc Pattyn18-Dec-07 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.