Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: CreateProcessWithLogonW and msi installer Pin
rogofreew21-Jul-08 2:51
rogofreew21-Jul-08 2:51 
QuestionAll folders from the network Pin
Jodd20-Jul-08 7:10
Jodd20-Jul-08 7:10 
AnswerRe: All folders from the network Pin
Mycroft Holmes20-Jul-08 15:15
professionalMycroft Holmes20-Jul-08 15:15 
QuestionBindingsource.find is missing the first item.! Pin
MAP Tiger20-Jul-08 6:35
MAP Tiger20-Jul-08 6:35 
Questiondataset corrupt Pin
fazeepk20-Jul-08 5:45
fazeepk20-Jul-08 5:45 
AnswerRe: dataset corrupt Pin
Guffa20-Jul-08 6:16
Guffa20-Jul-08 6:16 
AnswerRe: dataset corrupt Pin
Vimalsoft(Pty) Ltd21-Jul-08 3:54
professionalVimalsoft(Pty) Ltd21-Jul-08 3:54 
QuestionQuestion : New Row Pin
zzsoulzz20-Jul-08 5:11
zzsoulzz20-Jul-08 5:11 
Hi, i was wondering why my code did not add a new row after clicking button1 again.
Its supposed to work like :
1. key in value to "textbox1.text"
2. click button1
3. compare if against each row, if value is equal copy to datagrid2
4. further button1 clicks will add the new rows of result to datagrid2(but now it does not add the row, just overwrites the first row)

<br />
button1.click<br />
Dim dr As DataRow, drNew as DataRow<br />
Dim dt As DataTable = objDataSet.Tables(0)<br />
Dim dt2 As New DataTable<br />
<br />
dt2.Columns.Add("IC Roll")<br />
dt2.Columns.Add("F2")<br />
dt2.Columns.Add("F3")<br />
<br />
For Each dr In dt.Rows<br />
   For i As Integer = 0 To dt.Columns.Count - 1<br />
      If dr(i).ToString = TextBox1.Text Then<br />
         drNew = dt2.NewRow<br />
         drNew(0) = dr(0)<br />
         drNew(1) = dr(1)<br />
         drNew(2) = dr(2)<br />
<br />
         dt2.Rows.Add(drNew)<br />
         drNew = Nothing<br />
         Exit For<br />
      End If<br />
   Next<br />
Next<br />
<br />
DataGrid2.DataSource = dt2

AnswerRe: Question : New Row Pin
paas20-Jul-08 5:58
paas20-Jul-08 5:58 
Questionvertical line size is decreased in report Pin
sunil goyalG19-Jul-08 23:20
sunil goyalG19-Jul-08 23:20 
QuestionComboBox add issues! Pin
Dalek Dave19-Jul-08 13:05
professionalDalek Dave19-Jul-08 13:05 
AnswerRe: ComboBox add issues! Pin
Luc Pattyn19-Jul-08 13:22
sitebuilderLuc Pattyn19-Jul-08 13:22 
GeneralRe: ComboBox add issues! Pin
Dalek Dave19-Jul-08 14:02
professionalDalek Dave19-Jul-08 14:02 
GeneralRe: ComboBox add issues! Pin
Luc Pattyn19-Jul-08 14:41
sitebuilderLuc Pattyn19-Jul-08 14:41 
GeneralRe: ComboBox add issues! Pin
Dalek Dave20-Jul-08 3:04
professionalDalek Dave20-Jul-08 3:04 
GeneralRe: ComboBox add issues! Pin
jzonthemtn19-Jul-08 13:51
jzonthemtn19-Jul-08 13:51 
AnswerRe: ComboBox add issues! Pin
Member 397995021-Jul-08 0:48
Member 397995021-Jul-08 0:48 
QuestionMDI Parent with a ToolStripContainer Pin
jacobjordan19-Jul-08 8:29
jacobjordan19-Jul-08 8:29 
Questionsuggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd19-Jul-08 1:11
r_mohd19-Jul-08 1:11 
AnswerRe: suggest me way to handle piracy of my applications developed in vb.net Pin
Vimalsoft(Pty) Ltd21-Jul-08 4:27
professionalVimalsoft(Pty) Ltd21-Jul-08 4:27 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd21-Jul-08 18:52
r_mohd21-Jul-08 18:52 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
Vimalsoft(Pty) Ltd21-Jul-08 22:56
professionalVimalsoft(Pty) Ltd21-Jul-08 22:56 
GeneralRe: suggest me way to handle piracy of my applications developed in vb.net Pin
r_mohd21-Jul-08 23:35
r_mohd21-Jul-08 23:35 
Questiondelete site track from history in VB or VBA Pin
sal2118-Jul-08 11:16
sal2118-Jul-08 11:16 
RantRe: delete site track from history in VB or VBA Pin
Paul Conrad18-Jul-08 12:23
professionalPaul Conrad18-Jul-08 12: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.