|
Search this site, or even google and there are tons of examples. If you're 'really new' then perhaps it's too soon to worry about databases, the world is filling with people who can make a pretty form in VB, and will never be programmers.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: the world is filling with people who can make a pretty form in VB, and will never be programmers.
Very true
|
|
|
|
|
I am certainly not going to damper your spirits and tell you not to strive for what you want. Look under the system.data namespace in MSDN library. This is the namespace where you can do all kinds of data manipulations using databases. There is something called an oledb provider. There for it should be system.data.oledb This is the only way you can access the Microsoft access database engine.
You can use something like this
'OleDbConnection object used for connecting to a database
Private _ConnectionObj As New OleDbConnection()
'OleDbCommand object used for executing a command
Private _Command As OleDbCommand
_connectionObj.ConnectionString = [Shared].ConnectionString
_ConnectionObj.Open()
_Command = New OleDbCommand("Select * From Registrants", _ConnectionObj)
Where you see [Shared].ConnectionString, this is the string you should pass in
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Visual Studio Projects\AnnualMeetingRegistration\Database\Registrants.mdb;User Id=admin;Password=;
Normally, you would want to store you connection string in the app.config file, but don't do that right now. Just use the string example I showed you. As you get more experienced, you will find better methodologies of programming.
Then you open the connection object and pass the connection object to the command object. After, you have finished close the connection object. If you decide to use a data reader you will have to close that as well.
Here is an excellent website for connection strings. http://www.connectionstrings.com/[^]
I hope this helps,
Tyquaun
|
|
|
|
|
Can message boxes ( pop up boxes) be used within ASP.net forms?
The info I found visual studio says they are SYSTEM.OBJECTS , I tried inherits SYSTEM.OBJECTS but still get a not declared message
Is this something that can only be used in Windows forms? Is there something similar for ASP or VB classes?
Thanks
|
|
|
|
|
You will have to use javascript alert function.
Mike Lasseter
|
|
|
|
|
|
hi,
First of all a screenshot
http://img131.imageshack.us/img131/5797/problemiovg8.png[^]
i am using the DLL from this artical (http://www.codeproject.com/csharp/minememoryreader.asp[^]) To read memory from a rollercoaster game, to get lateral and acceleration Gs, these values are in the form of a double.
in a memory scanner i have froze one of the values to "0.1" for testing purposes but when i read the memory address from VB.NET it reads it as "154153153153153153185630003217311321963" !!!
i am very confused about this, is there anyone here that has a clue?
also, does anyone know of other DLLs that can do the same job?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
RichTextBox1.Clear()
' Choose process
Dim myProcesses As System.Diagnostics.Process() =
System.Diagnostics.Process.GetProcessesByName("NoLimitsSimulator")
'Load it to memory reader
mem.ReadProcess = myProcesses(0)
'open it
mem.OpenProcess()
'decs
Dim out As Int32
Dim current
Dim memory() As Byte
'new pointer
Dim loc As IntPtr
loc = "5581752"
'Read The Memory
memory = mem.ReadProcessMemory(loc, 16, out)
'Return Value
'these al like this because i was experimenting!
RichTextBox1.Text = RichTextBox1.Text & memory(0)
RichTextBox1.Text = RichTextBox1.Text & memory(1)
RichTextBox1.Text = RichTextBox1.Text & memory(2)
RichTextBox1.Text = RichTextBox1.Text & memory(3)
RichTextBox1.Text = RichTextBox1.Text & memory(4)
RichTextBox1.Text = RichTextBox1.Text & memory(5)
RichTextBox1.Text = RichTextBox1.Text & memory(6)
RichTextBox1.Text = RichTextBox1.Text & memory(7)
RichTextBox1.Text = RichTextBox1.Text & memory(8)
RichTextBox1.Text = RichTextBox1.Text & memory(9)
RichTextBox1.Text = RichTextBox1.Text & memory(10)
RichTextBox1.Text = RichTextBox1.Text & memory(11)
RichTextBox1.Text = RichTextBox1.Text & memory(12)
RichTextBox1.Text = RichTextBox1.Text & memory(13)
RichTextBox1.Text = RichTextBox1.Text & memory(14)
RichTextBox1.Text = RichTextBox1.Text & memory(15)
End Sub
it also happens when i read only 8 bytes
-- modified at 18:10 Sunday 30th July, 2006
Thanks, Terence
|
|
|
|
|
Why the quotes around the number - that makes it a string...
loc = "5581752"
loc = New IntPtr(5581752)
|
|
|
|
|
I changed it to that and it still does same
Thanks, Terence
|
|
|
|
|
sorry for double post,
ok.. it seems to read 4 byte numbers ok (not doubles) but when it goes over 255/256 (dont know wich) it rolls over to 100 o 0100 !! so i dont know what this is doing.. but is it just chucking it out in a different format?
Thanks, Terence
|
|
|
|
|
I m developing a Searching project in VB.NET 2003.
I want that after installing this project on machine, when user click the program to run, first It should ask for the Installation CD Then run the project, like it happens in Game CDs. I want to do this for the Piracy reasons. How can I do this, Kindly help me
Regards.
Ali Raza Rizvi
|
|
|
|
|
Anyone know how we can access the pixel value and compare whether it is black (let's say I want to know what is the series of pixel location which forms a star outline, and usually outline are black, pls correct me if Im wrong) and store the pixel column and row value in an array? How to do this?
Please help.Thanks.
|
|
|
|
|
Please help, i cant find anything to do with direct draw or any fast graphics rendering in vb.net. In c++ it is easy. Can someone please point me in the right direction?
There are 10 types of people in this world, those who understand binary and those who don't!
|
|
|
|
|
|
i want to know how can i make application to drop to it icon file and give me messege in path of droped file
syriast
|
|
|
|
|
please iwait an answer answer me
|
|
|
|
|
How Do I make some items appear transparent or semi transparent without affecting the form as a whole.
Posted by The ANZAC
|
|
|
|
|
Dear All,
i want to put pages code behind in separated dll which i will install in GAC and use it in my application that contain only UI controls , i successfully add the dll in GAC but i don't know how to use it in asp.net pages as my code behind
Thanks
yomna
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Greetings everyone! i'm a junior programmer of VBNET.. I don't have an SQL Server and im still not into hard coding SQL... so i'm using MS access as my database..
The problem is, i like to set a password on my database..let's say 'depedsys.mdb' is my database file.. but if i set a password in it.. can't access it on VBNET.. Im using the Microsoft JET Oledb 4.0 Provider..
Anyone can help me out with this? Thanks in advance..
-Kai
Kai Studios
-- modified at 0:28 Sunday 30th July, 2006
Kai Studios
|
|
|
|
|
Specify the user name "admin" and the password in the connection string. Example:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\somepath\mydb.mdb;User Id=admin;Password=whatever"
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the answer.. but the user id and password pertains to a SQL server... i think.. i've tried that b4.. and the password isn't the password of the access database..
-Kai
|
|
|
|
|
Why do you think so? That connection string is not for SQL Server, it's for Access.
---
b { font-weight: normal; }
|
|
|
|
|
i have tried it b4 and it's really not for access, in the first place setting password to an access database does not require username..and if u use the password with the username, it will juz prompt an invalid password.. it's alright, thanks anyway : )
|
|
|
|
|
Try this for your connection string:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\path\myDB.mdb;Jet OLEDB:Database Password=myPassword"
If the database is located in the application folder, you could use:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\myDB.mdb;Jet OLEDB:Database Password=myPassword"
Steve
|
|
|
|