|
Sounds like you could use a numericUpDown control instead.
|
|
|
|
|
tried it already. those take up more space than i have.
|
|
|
|
|
Hmm, well you intercept the key, increase the value, and say event handled. The caret won't move as you haven't asked it to.
Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown<br />
If (e.KeyCode = Keys.Up OrElse e.KeyCode = Keys.Down) AndAlso IsNumeric(Me.TextBox1.Text) Then<br />
Dim i As Integer = CInt(Me.TextBox1.Text)<br />
'check key again, if it is up add 1, otherwise add -1<br />
i += IIf(e.KeyCode = Keys.Up, 1, -1)<br />
Me.TextBox1.Text = i.ToString<br />
'start text selection at end of text, length 0 to move caret<br />
Me.TextBox1.SelectionStart = Me.TextBox1.Text.Length<br />
Me.TextBox1.SelectionLength = 0<br />
e.Handled = True<br />
End If<br />
<br />
End Sub
|
|
|
|
|
ah. i missed the e.handled = true part.
|
|
|
|
|
Hi all..
Im done with my coding using vb 6.0, and i would like to create an exe file that i can run my program with.
but the problem is that a message pops out telling me that the project source dose not have a binary compatibility file set.
how can i get over that problem
SS
|
|
|
|
|
Go to the Component tab of the project's properties and choose either the Project Compatibility or the No Compatibility radio button.
...Steve
|
|
|
|
|
I created a progress bar in statusbar by using the
drawitem of stausbar and fill rectangle method.
I use a loop to increase the width which eventually shows as a progress bar. But the problem is each time the statubar1.refresh is called it refreshes
and the effect is seen on the form which is not smooth enough for a smooth Progress Bar.
How can i make my progress bar smooth enough even after calling the refresh method of statusbar each time
Hi i am sumod. A beginner in VB.net
|
|
|
|
|
What do you mean by "smooth enough"? Why are you even using a loop to draw a progress bar? Are you just showing that something is happening or are you showing actual measured progress?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm wanting to read a news group with program. Just simple code that grabs the messages.
Any ideas?
|
|
|
|
|
I just noticed that google has some sort of RSS thing.
http://groups.google.com/group/ott.jobs/about
Is that easier?
|
|
|
|
|
This is probabally a lot more complex than i think, but here is what i'm trying to do:
Take a specific memory location of a program, and be able to change the integer value on a key press.
i just started from total scratch on this project yesterday, with no knowledge of anything of the sort. so far, i've been able to change the memory location values using artmoney, and i also learned that the address changes everytime i start a program. i've gotten that figured out, establishing a pointer which takes care of the changing address location. what i need to do now, is create a script or something, preferrably in vb, where upon a key press, it will change the value of that address:
e.g.)
*program starts
1. press F9
2. memory address 00000A80 changes from value 22.5 to 12.3, type float 4 bytes
if anyone could help me with some guidance your praise would not be short lived.
many many thanks in advance,
-stu
i need to know everything!
|
|
|
|
|
Have a look at two articles here on CodeProject which are about changing the behaviour of the game FreeCell coming with Windows. They do it by directly changing the memory of the game. Might be usefull for you.
|
|
|
|
|
nocopro wrote:
Take a specific memory location of a program, and be able to change the integer value on a key press.
Ummm... why? Sounds dangerous to me.
...Steve
|
|
|
|
|
i just want to be able to see if i can do it.
no, i do not hack games and programs. that takes all the fun out of games, and takes away from the effort people put into making programs.
it could be dangerous on the fact that the program might crash, but i have been able to pinpoint certain memory locations and know their exact functions and change the values in the memory location to get desired results, but i don't know how to script a program to do this function.
i need to know everything!
|
|
|
|
|
I am using Custom Collection in Windows Form to bind Datagrid. It is working fine. But now there is one condition where i need to
bind 2 custom collection into single Datagrid. The similar feature is very simple in ABP.Net but i am unable to do in VB.Net under Windows Form.
Descrition:
Suppose i have following information
Table
1. Customer Table : custid, custname,salid
2. Salary Table : salid, salary
I have 2 tables customer and salary. I have created the Customer class and Salary class for respective Customer and Salary table.
I am storing the Customer Class and Salary Class information into the Customer Collection and Salary Collection respectively.
I want to display custid, custname and salary information into the datagrid using Customer and Salary Collection .How can i do this.
Thanks well in Advance!!!!!!
Abhishake.....
|
|
|
|
|
SOME ONE CAN TECH ME?
|
|
|
|
|
What do you want to know?
The thing works like a second keyboard attached to the system. Though, there is no way to determine which one is actually doing the typing. Unless, that is, you program the scanner to prepend and/or append character combinations to the data it reads. Your code can then determine that what was just "typed" by examining the data for those characters.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
So is it need any coding to detect the barcode?
|
|
|
|
|
The barcode comes to you exactly like a bunch of keystrokes. The whole idea is to place the focus on the control getting the barcode, then scan the code.
Now, you can also enable keypreview on your form and handle the keydown event. When your form, detects the preamble character(s) that you program into the scanner, you can change the focus to the control that gets the barcode and the rest of the code will get "typed" into that field.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, Please help,
I'm in a near deadline for my project, i can't figure out how to create a user login form, i would really appreciate if someone can provide me the code or a guide for creating a typical user login form which would consist of the following items;
1)login form
2)new user registration form
3)user database to store user details for login validation purpose
I need this code in vb.net type.
Thanks
Ronnie
|
|
|
|
|
hey! I can help but in vb6.
please mail me at jayansl102@hotmail.com
|
|
|
|
|
hi may u please send me the answer too on the following email address:
mohd.dabaan@gmail.com
Thanks alot
Hamody
|
|
|
|
|
Is this an ASP.NET project ? VB.NET ? VB6 ? I'm surprised you're having trouble, and that so many other people have joined you in asking for this. What part of it is the issue ? My best guess is you want to restrict access to the rest of a site based on a username/password, to do this, your other pages need to verify a valid login, or redirect to the login page.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi christian,
This is a vb.net project and its a part of my school assignment, as you can see that i just started to learn vb.net so i'm having a hard time in this
its just a typical login form with user registration function and user database in windows application, i would appreciate if you could provide me the code, cause my deadline is next week, and i'm kinda desperate
|
|
|
|
|
It depresses me that schools are teaching VB.NET
As someone else said, this is either really easy, or really hard, depending on if you have any idea what you're doing at all. In a windows app, it's borderline trivial. Your app has two text boxes, it takes a user name and password, and then asks the database if they are valid. If not, it does not show anything else until something valid is entered. Which part of this can't you do, and is it because the project is too advanced for your course level, or because you've not done the prerequisite work ?
Does your app use the database already ? If not, a database is probably overkill just for this. You could use an XML or plain text file for this. The trick is to store the MD5 hash of the password instead of the password itself. If it DOES use a database, then I still cannot understand what part of this is confusing you. Please be more specific and I'll try to help. I also refuse to provide full code on such a trivial task, because it will defeat the purpose of your assignment.
Christian Graus - Microsoft MVP - C++
|
|
|
|