|
It is behaving as you would expect as that url is for an error page which returns an error code.
|
|
|
|
|
|
guys.... i need a live, compiled example about creating a variable in any location in the registy....
militiaware....Faris Madi
|
|
|
|
|
In VB6 or VB.NET ? I assume VB.NET, because you say win32.registry above. If so, why didn't you try google[^] ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
msdn library?
'example - store a string holding a folder location<br />
Dim backupFolder As String<br />
'ubstantiate a RegistryKey object<br />
Dim regEntry As Microsoft.Win32.RegistryKey<br />
'set it to the location we want:<br />
regEntry = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\TestApp", True)<br />
'if this is first run then it wont exist yet so create it:<br />
If regEntry Is Nothing Then<br />
regEntry = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("SOFTWARE\\TestApp")<br />
'create a subkey:<br />
regEntry.SetValue("Backup Path", Environment.GetFolderPath(Environment.SpecialFolder.Personal) & "\Backup")<br />
End If<br />
'check we have a usable value in the subkey (and that the subkey exists)<br />
If regEntry.GetValue("Backup Path").ToString = "" Or regEntry.GetValue("Backup Path").ToString = Nothing Then<br />
'set it to default path<br />
regEntry.SetValue("Backup Path", Environment.GetFolderPath(Environment.SpecialFolder.Personal) & "\Backup")<br />
End If<br />
'set backupfolder <br />
backupFolder = regEntry.GetValue("Backup Path").ToString<br />
Me.Text = "Current backup folder: " & backupFolder
Creates "HKEY_CURRENT_USE/Spftware/TestApp/Backup Path" on first run.
|
|
|
|
|
I have a textbox that the user inputs numbers into. i would like to be able to create a KeyDown event for the control that, when the user presses the UP arrow, the value raises by one. this i have accomplished. but unfortunately this does not override the action already taken (moving the cursor to the left). how to i override this?
thanks ahead of time,
stephen
|
|
|
|
|
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
|
|
|
|