Click here to Skip to main content
15,896,453 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionImport Excel sheet into access database using vb.net Pin
Member 39363563-Apr-08 18:51
Member 39363563-Apr-08 18:51 
GeneralRe: Import Excel sheet into access database using vb.net Pin
Dave Kreskowiak4-Apr-08 4:23
mveDave Kreskowiak4-Apr-08 4:23 
GeneralRe: Import Excel sheet into access database using vb.net Pin
Member 39363564-Apr-08 17:04
Member 39363564-Apr-08 17:04 
GeneralPerformance Question Pin
programmervb.netc++3-Apr-08 15:37
programmervb.netc++3-Apr-08 15:37 
GeneralRe: Performance Question Pin
kaddim3-Apr-08 16:21
kaddim3-Apr-08 16:21 
GeneralRe: Performance Question Pin
programmervb.netc++3-Apr-08 19:54
programmervb.netc++3-Apr-08 19:54 
GeneralRe: Performance Question Pin
darkelv3-Apr-08 20:38
darkelv3-Apr-08 20:38 
QuestionAuto select item in listbox when someone types in textbox Pin
Member 19022153-Apr-08 5:50
Member 19022153-Apr-08 5:50 
In VB6 I used to use the following to automatically select an item in a listbox when a user types in a textbox:

[Module]
Public Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, _
ByVal lParam As String) As Long

Public Const LB_SELECTSTRING = &H18C
...}

[Form]
Private Sub txtForLstAllUsers_Change()
If txtForLstAllUsers.Text <> "" Then
SendMessage lstAllUsers.hwnd, LB_SELECTSTRING, -1, txtForLstAllUsers.Text
End If
End Sub

I tried copying and pasting into a VB .Net application and I am getting the following error:
"hwnd is not a member of Systems.Windows.Forms.Listbox."
Also, I noticed there is no Change event for textboxes in .Net.

Can anyone tell me how to re-create this functionality in a .Net project?

Any help will be greatly appreciated!!
GeneralRe: Auto select item in listbox when someone types in textbox Pin
jzonthemtn3-Apr-08 14:59
jzonthemtn3-Apr-08 14:59 
GeneralRe: Auto select item in listbox when someone types in textbox Pin
Member 19022155-Apr-08 10:57
Member 19022155-Apr-08 10:57 
GeneralDelete row from Datagirdview Pin
yetrus3-Apr-08 4:52
yetrus3-Apr-08 4:52 
GeneralRe: Delete row from Datagirdview Pin
ilprincipe3-Apr-08 23:13
ilprincipe3-Apr-08 23:13 
GeneralRe: Delete row from Datagirdview Pin
MBCDC5-Apr-08 0:21
MBCDC5-Apr-08 0:21 
QuestionHow to prevent multiple user login using one account in VB Pin
kingascona3-Apr-08 4:45
professionalkingascona3-Apr-08 4:45 
GeneralRe: How to prevent multiple user login using one account in VB Pin
Dave Kreskowiak3-Apr-08 5:30
mveDave Kreskowiak3-Apr-08 5:30 
QuestionCan we search column in MS access (or in Excel) table with the header which contains spaces? [modified] Pin
ATC3-Apr-08 4:07
ATC3-Apr-08 4:07 
AnswerRe: Can we search column in MS access (or in Excel) table with the header which contains spaces? Pin
Dave Kreskowiak3-Apr-08 5:25
mveDave Kreskowiak3-Apr-08 5:25 
GeneralRe: Can we search column in MS access (or in Excel) table with the header which contains spaces? Pin
ATC3-Apr-08 8:14
ATC3-Apr-08 8:14 
Generalretrieving data from database into a combo box on VB form!!! Pin
jayalom3-Apr-08 3:50
jayalom3-Apr-08 3:50 
GeneralRe: retrieving data from database into a combo box on VB form!!! Pin
Kschuler3-Apr-08 5:08
Kschuler3-Apr-08 5:08 
GeneralRe: retrieving data from database into a combo box on VB form!!! Pin
Dave Kreskowiak3-Apr-08 5:09
mveDave Kreskowiak3-Apr-08 5:09 
Generalword macro Pin
ritu43213-Apr-08 0:10
ritu43213-Apr-08 0:10 
Questionhow to encrypt the connectionstring tag and other tag wen needed in the appconfig file Pin
lakshmichawala3-Apr-08 0:08
lakshmichawala3-Apr-08 0:08 
AnswerRe: how to encrypt the connectionstring tag and other tag wen needed in the appconfig file Pin
Dave Kreskowiak3-Apr-08 3:44
mveDave Kreskowiak3-Apr-08 3:44 
Generalread parallel port and start timer Pin
ashutosh1433422-Apr-08 23:31
ashutosh1433422-Apr-08 23: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.