Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:04:43+00:00 2026-06-05T17:04:43+00:00

VB.NET Winforms Application… When a user starts typing in the search box of the

  • 0

VB.NET Winforms Application… When a user starts typing in the search box of the application it automatically populates the name list dropdown box with the valid results and sets the droppeddown value to true… Everything is working fine except the fact that the user is forced to select a value from the name list or press the esc key because without doing so the mouse cursor just disappears and you have to move the mouse all the way outside the application for it to come back and it will only do so while outside the applicaiton.. Below is the code that I am using for this and it should be noted that I am using the droppeddown value else where in the application and none of those instances have an issue its only this one… Any ideas???

     Private Sub u_lastName_Box_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles u_lastName_Box.TextChanged
    u_nameLook_Box.Items.Clear()
    Dim TenList As New List(Of tenant)
    Dim x As List(Of tenant) = db.tenants.Where(Function(f) f.last_name.Contains(u_lastName_Box.Text) AndAlso f.propertyId = selectedProperty).OrderBy(Function(f) f.last_name).ToList
    For Each _ten In x
        Dim c = _ten
        u_nameLook_Box.Items.Add(Convert.ToString(c.Occupantid) + " -- " + c.last_name + "," + c.first_name)
    Next

    RemoveHandler u_nameLook_Box.DropDown, AddressOf u_nameLook_Box_DropDown
    u_nameLook_Box.DroppedDown = True
    AddHandler u_nameLook_Box.DropDown, AddressOf u_nameLook_Box_DropDown
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:04:44+00:00Added an answer on June 5, 2026 at 5:04 pm

    I actually fixed this issue just now after thinking about it for the night.. I tried the cursor.show with no dice… I thought a little more on that and decided to set the cursor style prior to the cursor.show and it works now… My updated code is below… There is some question as to how or why the cursor style and visibilty got changed in the first place…

         Private Sub u_lastName_Box_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles u_lastName_Box.TextChanged
        u_nameLook_Box.Items.Clear()
        If Not u_lastName_Box.Text.Length < 1 Then
            Dim TenList As New List(Of tenant)
            Dim x As List(Of tenant) = db.tenants.Where(Function(f) f.last_name.Contains(u_lastName_Box.Text) AndAlso f.propertyId = selectedProperty).OrderBy(Function(f) f.last_name).ToList
            For Each _ten In x
                Dim c = _ten
                u_nameLook_Box.Items.Add(Convert.ToString(c.Occupantid) + " -- " + c.last_name + "," + c.first_name)
            Next
    
    
            RemoveHandler u_nameLook_Box.DropDown, AddressOf u_nameLook_Box_DropDown
            u_nameLook_Box.DroppedDown = True
            Me.Cursor = Cursors.Default
            Cursor.Show()
            AddHandler u_nameLook_Box.DropDown, AddressOf u_nameLook_Box_DropDown
        Else
            u_lookup_boxes_fill()
        End If
    
    End Sub 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a .NET WinForms application that needs to display a list of
A StackOverflow exception is occurring within my Winforms application (.NET v2) on a user's
I'm using VS 2005 in a VB.Net WinForms application. I have a custom User
I have written a wrapper application in .Net that starts another WinForms application with
My .NET WinForms application connects to ftp server and downloads a file. To do
Possible Duplicate: Porting VB.NET Winforms Application to C# Is there any way to convert
I have a vb.net Winforms application. I also have a compiled help file (chm)
I have a .NET WinForms application with an animated GIF in a PictureBox .
I have a .net WinForms 2.0 application that has an image library of about
I support a .NET 2.0 Winforms application that is fairly widely deployed. On rare

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.