[2008] How To Make Multi Keypress
Mar 4, 2009
In vb6, making small games came with a curse, if you pressed more than one key at the same time, they would cancel out. I went around it by making a boolean array to determine which keys were up, and which were down. anyways,
View 1 Replies
ADVERTISEMENT
Aug 13, 2010
I have several multi-line textboxes that I want to lose focus (i.e. when the user presses the right arrow key) but the control wil not relinquish the focus.Simply put, I first verify if the selection start is at the end of the text, if it is, and the user presses the arrow key, it should move to the next textbox. some debug.print code placed in strategic locations indicates that the target textbox gets focus and immediately loses it and the source textbox gains focus once again. Essentially not allowing the textbox to lose focus.
Select Case
Case Keys.Right
tbRight.Focus()
[code]....
After changing the source textbox multi-line property to false, it behaves as expected. Is this a "feature" .. surely I don't have to resort to "SendKeys"
View 4 Replies
Nov 14, 2009
Im trying to make my client send the account to the server and display it on a listview but im having some trouble. I tried to send some messages and it didnt work. The Client sends the account as "CLIENTINFO" + "|c + the users account. And on the server side the server reads it and splits sends it to the select but its not displaying the Clientinfo.[code].......
View 1 Replies
Feb 10, 2010
I'm adding multi-threading facilities for the first time. I have a function that is wrapped to be run in a separated thread. This function retrieves data (text) from a combobox and it works for sure without multi-threading.
When I call it as multi-threaded, I get the following error when I try to retrieve the data from the cmobobox: Cross-thread operation not valid: Control 'cmb1stBL' accessed from a thread other than the thread it was created on.
It looks like a restriction of thread-safety... I assume that the child thread cannot read from his parent, to make sure that he doesn't change his parent data. So how can I read the data from the combobox? Should I read the comoboxbox data before calling the child thread?
View 4 Replies
Oct 6, 2010
I have an picturebox and textarea in an panel I need to scroll the picture box image on keypress down arrow.
View 1 Replies
Nov 16, 2009
I have a code keypress that automatically input a text in a particular textbox if the text i pressed match the fields.eg. when I type 32 in the ID textbox . The name of the person whos ID is 32 will be put on the name text.it works perfectly but when I use autocomplete on the textbox it will not work anymore. is their a way or can anyone tell me why it isnt working.?eres the code for the keypress
Private Sub txtSubjectCode_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubjectCode.KeyPress
If e.KeyChar = Chr(Keys.Enter) And Me.txtSubjectCode.Text <> Nothing Then
[code].....
View 2 Replies
Nov 26, 2011
I have a textbox and I only want people to be able to type in the word "ALL" and the numbers 1-6. How do I go about that? I got the number part but do I have to make a separate line for each letter in the alphabet that isn't "A" or "L"?
Private Sub monthTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles monthTextBox.KeyPress
'If (e.KeyChar <= "1" OrElse e.KeyChar <= "6") Then _
'AndAlso e.KeyChar = "ALL" Then
'e.Handled = True
[Code] .....
View 4 Replies
Aug 1, 2010
My question is how can I create an event that would catch an enter key when I am editing it. Like I would type a note and hit enter key when I finish. Because columns of the datagrid does not have events like other controls or datagrid itself. What I need is something like this:
Private Sub ColumnNote_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ColumnNote.KeyPress
End Sub
[Code]....
View 18 Replies
Mar 5, 2012
I have a code keypress that automatically input a text in a particular textbox if the text i pressed match the fields.eg. when I type 32 in the ID textbox . The name of the person whos ID is 32 will be put on the name text.it works perfectly but when I use autocomplete on the textbox it will not work anymore. is their a way or can anyone tell me why it isnt working.?
heres the code for the keypress
Private Sub txtSubjectCode_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubjectCode.KeyPress
If e.KeyChar = Chr(Keys.Enter) And Me.txtSubjectCode.Text <> Nothing Then
[code].....
View 1 Replies
Dec 5, 2011
How can I set my application in VB 2010 to do something when I press a certain key on the keyboard? I heard somethin about the Keypress Event but i'm not sure that will actually work. I want a code so that my application can do the following things: If I press either the left or the right Windows Logo key on the keyboard, I want it to make Label2 visible. I already set the Visible value on false in Mybase.Load.
View 8 Replies
Mar 5, 2012
I have a code keypress that automatically input a text in a particular textbox if the text i pressed match the fields.eg. when I type 32 in the ID textbox . The name of the person whos ID is 32 will be put on the name text.it works perfectly but when I use autocomplete on the textbox it will not work anymore. is their a way or can anyone tell me why it isnt working.?
Private Sub txtTicketPassengerNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTicketPassengerNo.KeyPress
If e.KeyChar = Chr(Keys.Enter) And Me.txtTicketPassengerNo.Text <> Nothing Then
[code].....
View 3 Replies
Jul 4, 2009
What's the code to make a form keypress event for escape? I know that "If e.KeyChar = Chr(13) Then" is for the ENTER button. What's the code for the ESCAPE button?
View 22 Replies
Jun 8, 2012
[code]'when i enter 'Q' key output(textbox1.text) = 'qQ' how Show Q only''' 'and how i can set multi shortkey output = CTRL+TAB+CAPS LOCK,and bla bla , and send to Timer1' End Sub.[code]
View 2 Replies
Jul 22, 2009
i want make picture slide show by using Picture box . who navigating with Next or Previos Button how todo?
View 2 Replies
Feb 22, 2010
I am working on a software in Visual Studio 2008 Professional, and I need to write code that will run a certain code on a keypress. I cannot find the necessary code anywhere.
View 2 Replies
Mar 10, 2009
I have finished coding a VB.Net application that has connection to SQL Express 2008 database. My question is, what steps do I have to take to make this a multi user application.
FYI:There are 3 tables in the database of which two tables contain data to be viewed by the user and one table is to insert records by the user. The former two tables will be edited by the administrator only. So there is no issue of concurrency. But the one table that is used to insert records by all users has to be dealt with.
View 11 Replies
May 11, 2011
How do I make a multi user database?
Give me the logic, how do I achieve it?
For example, what file should the database be, where should I put the database(I prefer on my server), how do I encrypt the database.
Can I make it in columns? Username column and password column? My application then finds if any username match to the username inputted by user in my UsernameTextbox.Text then see if the inputted username and the password from PasswordTextBox.Text matches.
For now I'm using the If statement for both username and password. I have to write the same code again again for new users.
View 10 Replies
Apr 11, 2009
I want to about a multiuser application that have a server and 2 or 5 client to interect with mssql thorough application. how multiple cleint connect to database in same time.
View 4 Replies
Mar 9, 2010
I don't know if is possible to make multi-form with vb.net & access.
I don't have code from now.
Actually I want to make a project, to assign a new form (one form with one table) to a new person for each time, it will be multi-form with tables, right?
How do you to make a new forms with tables?
This project is about the admin to assign the jobs to managers, so the managers will use same blank new form and to manage jobs, it is the room setting for multi-manager.
View 3 Replies
Jul 7, 2011
[code]...
now I wanna know how to make multi selection each time
View 2 Replies
Nov 28, 2009
How do i makit so textboxes only accept numbers.
how do i make multi-column listboxes
View 19 Replies
Aug 31, 2011
I'm currently experimenting with a tile based dungeon crawler type game. When the WASD keys are pressed it will move in that direction, however if the key is held down it will move incredibly fast over the tiles, which is not what I want.Instead I want the player only to be able to move one tile at a time, or after each key press. Is there any way to do this with the KeyDown event or do I have to use KeyPress to make sure it only activates after each full key down & up?
View 4 Replies
Aug 5, 2010
I need to link a image button to a pop up page with a multiline textbox for input. When the user clicks the notes image a popup page will appear with a multiline text box that allows users to enter notes. There needs to be a save button that will update the notes field in tblinventorycomponentitems if user entered text and a cancel button for if the user changes their mind. The notes image button is located in account_ customerinventory components_edit.aspx in a dataGrid with an id of "GroupDataGrid".
View 1 Replies
Dec 18, 2009
I want to make multi level side strip with some data as shown in figure below:
The first column could be labels (names) read from an array or a variable and the second column could be a value to that label read from a variable or array. The value of the last column will be assinged to the label or in the first column. for example:
Column1 (level1) Column2 (Level2) Column3 (Level3)
Area1 => Value => 5
8
Importance => 9
[Code].....
View 3 Replies
Dec 7, 2009
how to make an application with a multiple user.
language: VB
resource: Visual Studio 2008 Pro(90-day trial)
Sql express (the packages when u download the VS 2008)
scenario: i will make database located in a server (LAN) and a multiple client that can access the server database to add,modify,delete records.Im not aware that building a multi-user application database is different from a normal one user application database. T_T.i read some guide and other walkthrough on building a database but it became confusing when it doesnt my requirements. coz when i try to open my database(.mdf) to connect from other client (in another station) it says its currently in use and connot connect to it. err. @_@..
View 3 Replies
Jun 12, 2009
Currently I'm trying to make multi selection (draw shape) on the picturebox but no matter how i edit my code, it jus dn draw any square or circle when I click on my button (either circle or square).
Below are the codes that i'm currently working on:
Public Class Page_2
Public blnCircleClicked As Boolean 'Is The Circle Tool Clicked?
Public blnSquareClicked As Boolean 'Is The Square Tool Clicked?
[Code]......
View 5 Replies
Nov 12, 2011
i trying to make ping system with port using multi-threading.. but seems i got error on label.. i still wonder why suddenly label become a problem..
[Code]...
View 8 Replies
Jul 25, 2007
I am developing a VB.Net application. That application might be working on a LAN. MS Access as a backend will be used.
I have developed many single user applications, but don't know of multi user , LAN, manage DB etc. How do I make the program as Multi user on LAN. Data will be accessed at the same time. How to mange such things.
View 5 Replies
Apr 11, 2010
i m working on this application not able to figure it out i wanna move to next record when i press keyboard Right Key and Previous Record when i press Left key
View 3 Replies
Aug 8, 2011
How do I make a Multi User CHat Program in Visual Basic Express Edition? I kind of want it like (Server) and then everybody whos a client connects to the server.
View 3 Replies