Click here to Skip to main content
15,891,033 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to make a Web Browser based on these criterias? Pin
Iftikhar Ali13-Feb-06 19:55
Iftikhar Ali13-Feb-06 19:55 
QuestionProblem migrating from VB to VB.NET Pin
drexler_kk12-Feb-06 17:38
drexler_kk12-Feb-06 17:38 
AnswerRe: Problem migrating from VB to VB.NET Pin
Dave Kreskowiak13-Feb-06 5:46
mveDave Kreskowiak13-Feb-06 5:46 
GeneralRe: Problem migrating from VB to VB.NET Pin
drexler_kk13-Feb-06 16:33
drexler_kk13-Feb-06 16:33 
QuestionNeed to print a single record from the data report Pin
Santhosh Nickson12-Feb-06 16:25
Santhosh Nickson12-Feb-06 16:25 
Questionprogramming for communications in VB6 using USB port Pin
wtfskh12-Feb-06 16:16
wtfskh12-Feb-06 16:16 
AnswerRe: programming for communications in VB6 using USB port Pin
Dave Kreskowiak13-Feb-06 5:38
mveDave Kreskowiak13-Feb-06 5:38 
Questionhow to enter txt in datagrid in another form Pin
thepityone12-Feb-06 16:10
thepityone12-Feb-06 16:10 
hello to anyone

i have a big problem about entering txt into another form which has a datagrid but i'm using another form which i get the data that can populate the datagrid in that form which has a datagrid...now i want to know that if i going to add new record in the other form to put into the other form which has the datagrid...if i click the new button it well supposed to display a black record from the datagrid so that i can also add record again ...here's my
code.....
//
Public Sub addrecord1()
Try

Dim x As Integer
Dim myconnection As New SqlConnection("Data Source=SDG_06;Initial Catalog=sample;User ID=sa;Password=sa")
Dim cmd As New SqlCommand("usp_datainsert", myconnection)
cmd.CommandType = CommandType.StoredProcedure

For x = 1 To 13
cmd.Parameters.Clear()
cmd.Parameters.Add("@name_of_the_school", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 1).ToString = tnameschool.Text 'datagridview1.Item(x, 1).ToString ='
cmd.Parameters.Add("@address", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 2).ToString = taddresschool.Text
cmd.Parameters.Add("@degree", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 3).ToString = cbodegree.Text
cmd.Parameters.Add("@from1", SqlDbType.Char, 10, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 4).ToString = tfrom.Text
cmd.Parameters.Add("@to1", SqlDbType.Char, 10, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 5).ToString = tto.Text
cmd.Parameters.Add("@please_specify", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 6) = cbograd.Text
cmd.Parameters.Add("@major_in", SqlDbType.VarChar, 50, ParameterDirection.Input).Value = Form2.DataGrid6.Item(x, 7).ToString = tmajor.Text
Form2.DataGrid6.Update()
myconnection.Open()
cmd.ExecuteNonQuery()
Next x
Catch ex As Exception
MessageBox.Show(ex.Message, "Error dito sa Addrecord1", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
End Try
///

how i'm going to renew my code
QuestionCANCEL ON GOING PROCESS Pin
aqui_i12-Feb-06 15:58
aqui_i12-Feb-06 15:58 
AnswerRe: CANCEL ON GOING PROCESS Pin
alien viper12-Feb-06 16:31
alien viper12-Feb-06 16:31 
AnswerRe: CANCEL ON GOING PROCESS Pin
patgrape12-Feb-06 16:32
patgrape12-Feb-06 16:32 
QuestionChange shared add-in project Pin
cylix200012-Feb-06 15:30
cylix200012-Feb-06 15:30 
Questionusercontrol question Pin
maytel12-Feb-06 15:16
maytel12-Feb-06 15:16 
AnswerRe: usercontrol question Pin
alien viper12-Feb-06 16:18
alien viper12-Feb-06 16:18 
GeneralRe: usercontrol question Pin
maytel12-Feb-06 19:10
maytel12-Feb-06 19:10 
Questionhow 2 convert .mdb to .cdb Pin
williamccyccyccy12-Feb-06 14:35
williamccyccyccy12-Feb-06 14:35 
QuestionsqlException was unhandle by user code! Pin
pandapatin12-Feb-06 14:32
pandapatin12-Feb-06 14:32 
AnswerRe: sqlException was unhandle by user code! Pin
Dave Kreskowiak12-Feb-06 15:13
mveDave Kreskowiak12-Feb-06 15:13 
GeneralRe: sqlException was unhandle by user code! Pin
pandapatin12-Feb-06 16:44
pandapatin12-Feb-06 16:44 
GeneralRe: sqlException was unhandle by user code! Pin
Dave Kreskowiak13-Feb-06 5:28
mveDave Kreskowiak13-Feb-06 5:28 
QuestionCompilation Error ! how to solve? Pin
pandapatin12-Feb-06 14:09
pandapatin12-Feb-06 14:09 
AnswerRe: Compilation Error ! how to solve? Pin
Dave Kreskowiak12-Feb-06 14:16
mveDave Kreskowiak12-Feb-06 14:16 
QuestionUI problem Pin
Nick_Kisialiou12-Feb-06 12:24
Nick_Kisialiou12-Feb-06 12:24 
AnswerRe: UI problem Pin
Dave Kreskowiak12-Feb-06 13:25
mveDave Kreskowiak12-Feb-06 13:25 
GeneralRe: UI problem Pin
Nick_Kisialiou12-Feb-06 13:34
Nick_Kisialiou12-Feb-06 13:34 

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.