Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionIs there any way to eliminate the text based file *****.config Pin
desanti17-Jun-16 5:07
desanti17-Jun-16 5:07 
AnswerRe: Is there any way to eliminate the text based file *****.config Pin
Dave Kreskowiak17-Jun-16 10:19
mveDave Kreskowiak17-Jun-16 10:19 
GeneralRe: Is there any way to eliminate the text based file *****.config Pin
desanti17-Jun-16 11:05
desanti17-Jun-16 11:05 
GeneralRe: Is there any way to eliminate the text based file *****.config Pin
Dave Kreskowiak17-Jun-16 11:16
mveDave Kreskowiak17-Jun-16 11:16 
GeneralRe: Is there any way to eliminate the text based file *****.config Pin
Richard Deeming17-Jun-16 12:42
mveRichard Deeming17-Jun-16 12:42 
Questionproblem to convert stringbuilder to pdf 163 data but show only 162 Pin
mrprakash16-Jun-16 19:56
professionalmrprakash16-Jun-16 19:56 
AnswerRe: problem to convert stringbuilder to pdf 163 data but show only 162 Pin
CHill6016-Jun-16 22:19
mveCHill6016-Jun-16 22:19 
Questioncopy selected row from one gridview to another in VB.net when double click Pin
kishore-201616-Jun-16 15:52
kishore-201616-Jun-16 15:52 
I have two gridview dgvsource and dgvtarget.dgvsource have filled data through datasource below is my code to fill.
VB
Private Sub populate_dgv()
       Dim conn As New SqlConnection
       Dim cmd As New SqlCommand

       conn = GetConnect()
       conn.Open()
       cmd.Connection = conn
       Try
           ' cmd.CommandText = "Select * from tbeRequest"
           cmd.CommandText = "select Request_id,Request_date,Requestor,Destination,Department from tbeRequest r where r.request_id not in(select a.request_id from tbAssign_vehicle a)"
           Dim Adpt As New SqlDataAdapter(cmd.CommandText, conn)
           Dim ds As New DataSet()
           Adpt.Fill(ds, "tbeRequest")
           dgvsource.DataSource = ds.Tables("tbeRequest")

       Catch ex As Exception
           MsgBox(ex.Message)
       End Try

   End Sub

1st gridview data is populated sucessfully.Then i have to copy selected row from 1st gridview to another gridview .Below is my code:
VB
Private Sub dgvsource_CellDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvsource.CellDoubleClick

        

        Try
            Dim i As Integer = 0
            Dim Mylist As New List(Of Integer)
            For Each row As DataGridViewRow In dgvsource.SelectedRows
                Mylist.Add(row.Index)
            Next
            Mylist.Sort()

            For Each index As Integer In Mylist
                dgvtarget.Rows(i).Cells("request_id").Value = dgvsource.Rows(index).Cells("request_id").Value
                i = i + 1
            Next
        Catch ex As Exception
        End Try
    End Sub

kindly help on this.

modified 17-Jun-16 4:20am.

Questionhow can i use one connection to upload multiple files in vb.net Pin
koriewhite16-Jun-16 4:31
koriewhite16-Jun-16 4:31 
QuestionKeep database in program folder instead of default SQL server folder. Pin
desanti14-Jun-16 7:05
desanti14-Jun-16 7:05 
AnswerRe: Keep database in program folder instead of default SQL server folder. Pin
Eddy Vluggen14-Jun-16 7:14
professionalEddy Vluggen14-Jun-16 7:14 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
desanti14-Jun-16 7:56
desanti14-Jun-16 7:56 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
Eddy Vluggen14-Jun-16 8:26
professionalEddy Vluggen14-Jun-16 8:26 
AnswerRe: Keep database in program folder instead of default SQL server folder. Pin
Dave Kreskowiak14-Jun-16 7:34
mveDave Kreskowiak14-Jun-16 7:34 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
desanti14-Jun-16 7:56
desanti14-Jun-16 7:56 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
Dave Kreskowiak14-Jun-16 8:59
mveDave Kreskowiak14-Jun-16 8:59 
AnswerRe: Keep database in program folder instead of default SQL server folder. Pin
Gerry Schmitz16-Jun-16 8:01
mveGerry Schmitz16-Jun-16 8:01 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
desanti18-Jun-16 8:12
desanti18-Jun-16 8:12 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
Gerry Schmitz18-Jun-16 8:20
mveGerry Schmitz18-Jun-16 8:20 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
desanti18-Jun-16 9:38
desanti18-Jun-16 9:38 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
Mycroft Holmes18-Jun-16 13:32
professionalMycroft Holmes18-Jun-16 13:32 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
desanti18-Jun-16 14:17
desanti18-Jun-16 14:17 
GeneralRe: Keep database in program folder instead of default SQL server folder. Pin
Mycroft Holmes18-Jun-16 16:48
professionalMycroft Holmes18-Jun-16 16:48 
QuestionUse a different dll for each project's form Pin
desanti14-Jun-16 2:50
desanti14-Jun-16 2:50 
AnswerRe: Use a different dll for each project's form Pin
Dave Kreskowiak14-Jun-16 4:21
mveDave Kreskowiak14-Jun-16 4:21 

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.