Click here to Skip to main content
15,911,711 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCompile Error (Visual Basic 6) Someone help!!! Pin
anthoy17-Dec-07 18:06
anthoy17-Dec-07 18:06 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:28
professionalVimalsoft(Pty) Ltd17-Dec-07 20:28 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
anthoy17-Dec-07 20:47
anthoy17-Dec-07 20:47 
GeneralRe: Compile Error (Visual Basic 6) Someone help!!! Pin
CPallini18-Dec-07 0:11
mveCPallini18-Dec-07 0:11 
Questionhow to display database data in datagridview Pin
dspandian17-Dec-07 17:39
dspandian17-Dec-07 17:39 
AnswerRe: how to display database data in datagridview Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:38
professionalVimalsoft(Pty) Ltd17-Dec-07 20:38 
QuestionHow can i add system colors with corresponding colorname in combo box using Vb.net Pin
Deepthy.P.M17-Dec-07 17:28
Deepthy.P.M17-Dec-07 17:28 
QuestionHow to Add Text in textbox into datagrid? Pin
Eunice (VB junior)17-Dec-07 16:48
Eunice (VB junior)17-Dec-07 16:48 
Hi ,
I'm trying to add the text in textbox into a datagrid. But i failed to add it into datagrid.
After i click 'Add' button, nothing appear in the datagrid.
Can anyone guide me to solve the problem? Thanks in advanced.

Here is my codes:
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Add.Click
Try

Dim dgBarCode As New DataGridTableStyle

Dim HBarCode As New DataGridTextBoxColumn
HBarCode.MappingName = Me.txtHBarCode.Text
HBarCode.HeaderText = "HBarCode"
HBarCode.Width = 50
dgBarCode.GridColumnStyles.Add(HBarCode)

Dim EMIBarCode As New DataGridTextBoxColumn
EMIBarCode.MappingName = Me.txtEMIBarCode.Text
EMIBarCode.HeaderText = "EMIBarCode"
EMIBarCode.Width = 50
dgBarCode.GridColumnStyles.Add(EMIBarCode)

Me.dgResult.TableStyles.Add(dgBarCode)


Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

End Sub
Thanks, Eunice
AnswerRe: How to Add Text in textbox into datagrid? Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:14
professionalVimalsoft(Pty) Ltd17-Dec-07 20:14 
GeneralRe: How to Add Text in textbox into datagrid? Pin
Eunice (VB junior)17-Dec-07 21:03
Eunice (VB junior)17-Dec-07 21:03 
GeneralUBS or Parallel Port Pin
meki_211817-Dec-07 14:38
meki_211817-Dec-07 14:38 
GeneralRe: UBS or Parallel Port Pin
Christian Graus17-Dec-07 15:16
protectorChristian Graus17-Dec-07 15:16 
GeneralRe: UBS or Parallel Port Pin
meki_211817-Dec-07 15:51
meki_211817-Dec-07 15:51 
GeneralRe: USB or Parallel Port Pin
Luc Pattyn17-Dec-07 15:42
sitebuilderLuc Pattyn17-Dec-07 15:42 
GeneralRe: USB or Parallel Port Pin
meki_211817-Dec-07 15:58
meki_211817-Dec-07 15:58 
GeneralRe: USB or Parallel Port Pin
CKnig17-Dec-07 22:53
CKnig17-Dec-07 22:53 
GeneralRe: USB or Parallel Port Pin
Luc Pattyn17-Dec-07 23:55
sitebuilderLuc Pattyn17-Dec-07 23:55 
GeneralRe: USB or Parallel Port Pin
meki_211825-Dec-07 5:55
meki_211825-Dec-07 5:55 
GeneralRe: USB or Parallel Port Pin
Luc Pattyn26-Dec-07 8:28
sitebuilderLuc Pattyn26-Dec-07 8:28 
GeneralRe: USB or Parallel Port Pin
meki_211827-Dec-07 19:22
meki_211827-Dec-07 19:22 
GeneralRe: USB or Parallel Port Pin
Luc Pattyn28-Dec-07 2:39
sitebuilderLuc Pattyn28-Dec-07 2:39 
GeneralRe: USB or Parallel Port Pin
meki_211828-Dec-07 7:05
meki_211828-Dec-07 7:05 
GeneralRe: USB or Parallel Port Pin
Luc Pattyn28-Dec-07 7:31
sitebuilderLuc Pattyn28-Dec-07 7:31 
GeneralRe: USB or Parallel Port Pin
meki_21183-Jan-08 17:18
meki_21183-Jan-08 17:18 
GeneralRe: USB or Parallel Port [modified] Pin
Luc Pattyn4-Jan-08 1:23
sitebuilderLuc Pattyn4-Jan-08 1:23 

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.