|
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++
|
|
|
|
|
The login screen part is simple, but I'm not supplying any code. Basically you need to have a text box to enter the username and a textbox for entering the password. The password box must have the PasswordChar attribute set to mask the typed password. I'm sure the user registration details are simple enough so that they need no explanation?
In regards to the database, how much knowledge of database systems do you have? What db are you going to use to store the details? Does it need to be a db or just a file on the file system?
Without this knowledge you (respectfully) have no hope of doing this with any confidence nor us assisting you.
...Steve
|
|
|
|
|
Need to create a combo box dynimcally in a datagrid? How can this be done? How to make the combo box invisible when scrolled to the header & above in the datagrid table?
hz
|
|
|
|
|
I copied the following code from this board and it doesn't work!
<
Module Module2
Delegate Function EnumWindows_Callback(ByVal hWnd As Integer, ByVal lParam As Integer) As Integer
Public Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As EnumWindows_Callback, ByVal lParam As Integer) As Integer
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hWnd As Integer, ByVal lpString As String, ByVal cch As Integer) As Integer
'The callback routine.
Function EnumWindows_CBK(ByVal hWnd As Integer, ByVal lParam As Integer) As Integer
Dim buf As String
Dim i, length As Long
' Get the window's title.
length = GetWindowText(hWnd, buf, 255)
Title = Microsoft.VisualBasic.Left(buf, length)
' See if the title contains the target.
i = InStr(1, Title, "Table")
If i > 1 Then
' Save the hwnd and end the enumeration.
g_TableHwnd = hWnd
Return 0
Else
' Continue the enumeration.
Return 1
End If
End Function
End Module
Private Sub doScreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim ptr As Integer
ptr = 0
' Examine the window names.
g_TableHwnd = 0
EnumWindows(AddressOf EnumWindows_CBK, ptr)
If g_TableHwnd = 0 Then
MsgBox("Error finding table.")
Exit Sub
End If
'Activate table.
ActivateTable()
GetTablePosition()
ThisValue = 0
potnum = 0
cardnum = 0
stacknum = 0
' Take back the focus.
Me.Activate()
End Sub
>
I only need the handle of the application with the word "table" in its caption so I removed a few things from the original code but not anything which should have effect the the ability of the code to loop through the active applications and return thier handles as emumWindows does in my vb6 code. This code is identical to my vb6 code except for the delegate and call back functions.
What happens id that "hWnd", which is passed to the <enumwindows_cbk> function is not "0" when it gets there from the form load sub. Instead it is some 6 digit number and on each iteration it becomes some other 5 or 6 digit number. It should start at 0 and work up one at a time.
I really need this function to work. My whole project is hung up on it.
Can anybody help?
Thanks
Dick Roose
|
|
|
|
|
dick roose wrote:
What happens id that "hWnd", which is passed to the function is not "0" when it gets there from the form load sub. Instead it is some 6 digit number and on each iteration it becomes some other 5 or 6 digit number. It should start at 0 and work up one at a time.
You seem totally lost. That's what happen when you copy code without knowing what it does. A HWND is a number that signifies a window on the system, it does not run from 0 onwards, but is correctly represented by the numbers you are getting.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I need a calculator for VB.net that is small and only uses the keyboard for entering calculations and does not show buttons and has a tape form. Is this possible? Does anyone have one or code somewhere?
|
|
|
|
|
Yes it is possible. No I don;t have code. Try Googling it, you may find a hit or two.
...Steve
|
|
|
|
|