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

Visual Basic

 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 7:55
Technobizz2-Aug-06 7:55 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Stephen McGuire2-Aug-06 8:39
Stephen McGuire2-Aug-06 8:39 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 8:51
Technobizz2-Aug-06 8:51 
GeneralRe: How to fetch records from sql database in VB.Net [modified] Pin
Stephen McGuire2-Aug-06 9:46
Stephen McGuire2-Aug-06 9:46 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 9:59
Technobizz2-Aug-06 9:59 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Stephen McGuire2-Aug-06 10:32
Stephen McGuire2-Aug-06 10:32 
AnswerRe: How to fetch records from sql database in VB.Net Pin
Solly743-Aug-06 13:41
Solly743-Aug-06 13:41 
QuestionHow to make a DataGrid work the same,when a user clicks or presses keys Pin
fiaolle2-Aug-06 6:41
fiaolle2-Aug-06 6:41 
Hi I have a DataGrid with comboboxes (inherited from DataGridTextBoxColumn) and I'm woundering what methods or something runs when a user clicks in the DataGrid or ComboBox. In the comboboxes I use the KeyUp event for the user to choose an item in the combobox. When I choose an item with keys nothing happens, but when I click and choose an item in my combobox a new row appear in the DataGrid and that is what I want to happen.
Is there someway I can get the same thing to happen whether I click or press
keys in the combobox.

Here is the code for using the keys to choose an item in the comboboxes

Private Shadows Sub IntelliCmb_KeyUp(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles ColumnComboBox.KeyUp
Dim index As Integer
Dim actual As String
Dim found As String
If ((e.KeyCode = Keys.Back) Or _
(e.KeyCode = Keys.Left) Or _
(e.KeyCode = Keys.Right) Or _
(e.KeyCode = Keys.Up) Or _
(e.KeyCode = Keys.Down) Or _
(e.KeyCode = Keys.PageUp) Or _
(e.KeyCode = Keys.PageDown) Or _
(e.KeyCode = Keys.Home) Or _
(e.KeyCode = Keys.ShiftKey) Or _
(e.KeyCode = Keys.Tab) Or _
(e.KeyCode = Keys.F2) Or _
(e.KeyCode = Keys.End)) Then
Return
End If

If e.KeyCode = Keys.Enter Or e.KeyCode = Keys.Delete Then
If ColumnComboBox.Text = "" Then
mblnEditing = True
End If
Return
End If


actual = ColumnComboBox.Text
index = ColumnComboBox.FindString(actual)
If (index > -1) Then
ColumnComboBox.SelectedIndex = index
ColumnComboBox.SelectionStart = actual.Length
ColumnComboBox.SelectionLength = found.Length
If ColumnComboBox.SelectedIndex <> 0 Then
mblnEditing = True
End If


End If

Please, I need help!!!!

Fia
QuestionIdentify which row is select from list view Pin
Mekong River2-Aug-06 6:30
Mekong River2-Aug-06 6:30 
AnswerRe: Identify which row is select from list view Pin
Stephen McGuire2-Aug-06 7:06
Stephen McGuire2-Aug-06 7:06 
GeneralRe: Identify which row is select from list view Pin
Mekong River2-Aug-06 14:41
Mekong River2-Aug-06 14:41 
GeneralRe: Identify which row is select from list view Pin
Mekong River4-Aug-06 19:02
Mekong River4-Aug-06 19:02 
GeneralRe: Identify which row is select from list view Pin
Stephen McGuire5-Aug-06 3:57
Stephen McGuire5-Aug-06 3:57 
GeneralRe: Identify which row is select from list view Pin
Mekong River5-Aug-06 12:20
Mekong River5-Aug-06 12:20 
QuestionHow to create a popup window in Visual Studio 2005? Pin
frossie2-Aug-06 4:43
frossie2-Aug-06 4:43 
AnswerRe: How to create a popup window in Visual Studio 2005? Pin
Nouvand3-Aug-06 1:12
Nouvand3-Aug-06 1:12 
QuestionProblem with listing the URLs from html source code Pin
Aaron1282-Aug-06 3:38
Aaron1282-Aug-06 3:38 
AnswerRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 7:22
Stephen McGuire2-Aug-06 7:22 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 8:16
Aaron1282-Aug-06 8:16 
GeneralRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 8:45
Stephen McGuire2-Aug-06 8:45 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 8:52
Aaron1282-Aug-06 8:52 
GeneralRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 9:53
Stephen McGuire2-Aug-06 9:53 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 10:47
Aaron1282-Aug-06 10:47 
GeneralRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 11:29
Stephen McGuire2-Aug-06 11:29 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 11:31
Aaron1282-Aug-06 11:31 

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.