Click here to Skip to main content
15,901,122 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
priya_p23315-Feb-07 21:39
priya_p23315-Feb-07 21:39 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
7prince16-Feb-07 5:27
7prince16-Feb-07 5:27 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
TwoFaced16-Feb-07 7:04
TwoFaced16-Feb-07 7:04 
Questionnewby on VB.net older on programming Pin
NMachado15-Feb-07 15:11
NMachado15-Feb-07 15:11 
AnswerRe: newby on VB.net older on programming Pin
Christian Graus15-Feb-07 17:57
protectorChristian Graus15-Feb-07 17:57 
AnswerRe: newby on VB.net older on programming [modified] Pin
Ricky Dean15-Feb-07 22:28
Ricky Dean15-Feb-07 22:28 
AnswerRe: newby on VB.net older on programming Pin
NMachado17-Feb-07 4:58
NMachado17-Feb-07 4:58 
Questionproblems with extracting selection from databound comboboxes Pin
rctriplane15-Feb-07 14:30
rctriplane15-Feb-07 14:30 
Sniff | :^) Question I am using vb.net 2005. There is a form called login that has a data bound combobox. I am trying to pass that combobox back to my data tier, and extract the users selection using a query. i am unable to get the selected text from the combobox, however the textboxes login and logout work fine. i am able to update my access table once(with a blank for the combobox's value which is a primary key in the table)
I am un able to get the users selection from the combobox.
this is my data tier
Public Sub addLogIn(ByRef RefBindingSource As BindingSource, ByRef RefLogin As TextBox, ByRef RefLogOut As TextBox, ByRef RefPassword As TextBox, ByRef RefcboSalesRepsID As ComboBox)
MyAccountReceivableLogTableAdapter.InsertQueryComboBox(RefcboSalesRepsID.SelectedText, RefLogin.Text, RefLogOut.Text)
End Sub

and this is my form login:

Private Sub frmLogIn_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
MyLogDataSet = MyLogTableData.GetLogTableDataSet() ' a method in data tier, returns a data set
With MyBindingSource
.DataSource = Me.MyLogDataSet
.DataMember = "logtable"
.Sort = "sales rep id"
End With
With Me
With .cboSalesRepsIdLogInTab
.DisplayMember = "sales rep id"
.ValueMember = "sales rep id"
.DataSource = Me.MyBindingSource
.DataBindings.Add("text", MyBindingSource, "sales rep id", False, DataSourceUpdateMode.Never)
.SelectedIndex = 0
End With
.txtLogInInTab.DataBindings.Add("text", MyBindingSource, "log in", False, DataSourceUpdateMode.Never)
.txtLogOutInTab.DataBindings.Add("text", MyBindingSource, "log out", False, DataSourceUpdateMode.Never)
End With
Catch ex As Exception
End Try
End Sub
here is the calling method:
Private Sub btnPassWord_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPassWord.Click
Try
MessageBox.Show(cboSalesRepsIdLogInTab.SelectedText)
MyLogin.addLogIn(MyBindingSource, txtLogInInTab, txtLogOutInTab, txtPassWord, cboSalesRepsID)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
AnswerRe: problems with extracting selection from databound comboboxes Pin
priya_p23315-Feb-07 18:13
priya_p23315-Feb-07 18:13 
GeneralRe: problems with extracting selection from databound comboboxes Pin
rctriplane16-Feb-07 0:20
rctriplane16-Feb-07 0:20 
GeneralRe: problems with extracting selection from databound comboboxes Pin
rctriplane16-Feb-07 15:52
rctriplane16-Feb-07 15:52 
QuestionScreen Saver Preview in VB.NET Pin
Tom Verkaaik15-Feb-07 13:14
Tom Verkaaik15-Feb-07 13:14 
Questionobject reference Pin
jds120715-Feb-07 10:56
jds120715-Feb-07 10:56 
AnswerRe: object reference Pin
TwoFaced15-Feb-07 11:17
TwoFaced15-Feb-07 11:17 
QuestionTable named "Note" Pin
matryxxx15-Feb-07 9:11
matryxxx15-Feb-07 9:11 
AnswerRe: Table named "Note" Pin
Christian Graus15-Feb-07 9:31
protectorChristian Graus15-Feb-07 9:31 
GeneralRe: Table named "Note" Pin
matryxxx15-Feb-07 9:37
matryxxx15-Feb-07 9:37 
GeneralRe: Table named "Note" Pin
Dave Kreskowiak15-Feb-07 13:12
mveDave Kreskowiak15-Feb-07 13:12 
Questionediting attachment before sending it Pin
7prince15-Feb-07 5:35
7prince15-Feb-07 5:35 
Questionget all directories in Computer Pin
turtle101015-Feb-07 4:24
turtle101015-Feb-07 4:24 
AnswerRe: get all directories in Computer Pin
Marcus J. Smith15-Feb-07 4:29
professionalMarcus J. Smith15-Feb-07 4:29 
AnswerRe: get all directories in Computer Pin
Colin Angus Mackay15-Feb-07 4:34
Colin Angus Mackay15-Feb-07 4:34 
GeneralRe: get all directories in Computer Pin
turtle101015-Feb-07 6:53
turtle101015-Feb-07 6:53 
GeneralRe: get all directories in Computer Pin
Dave Kreskowiak15-Feb-07 13:08
mveDave Kreskowiak15-Feb-07 13:08 
GeneralRe: get all directories in Computer Pin
Colin Angus Mackay15-Feb-07 13:43
Colin Angus Mackay15-Feb-07 13:43 

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.