|
I'm currently developing a VB.NET application and I intend to completely deny users access to the database (i.e making it impossible for users of the application to see the database file e.g mydatabase.mdb) in the installation directory.
If this objective can be achieved, what database would you suggest,and how do I abstract it from the user?
lutherium - feel the weight of object-oriented programming
|
|
|
|
|
have you considered putting a password on the database?
|
|
|
|
|
Just a thought....
You can use XML files to store your data and can encrypt the XML files. After encryption, user can access the files, but will not be able to see the data.
- ashish
|
|
|
|
|
Hi,
How to create a webbrowser in VB.net including Fav, View Source ....
Thank you
|
|
|
|
|
You can add COM component, something called AxBrowser to have capabilities of browser in VB.NET.
Check if it works for you...
- ashish
|
|
|
|
|
1) We have the ChannelSecure SiteMinder agent that provides login authentication to external users of the application
2) After user logs in, an HTTP request is generated for the Redirect application that sits on the DMZ. This is a web application that implements the IHttpHandler interface. It performs URL rewriting and generates request to the AES application. It also routes the response from the AES application back to the client.
3) Now after the session times out, and the page is posted, we get a HTTP 404 Page not found error. We have a mechanism to redirect the user to an error or login page if the session times out. But in this case, it does not seem to work.
4) HOWEVER, after you get the 404 error, if you simply refresh the page, it redirects to the logout page.
5) There are exceptions being thrown and caught when the session times out.
|
|
|
|
|
hi all;
I want when I load my programme(EXE) in vb.net count how many times I load it.
THANKS;
Please replay or.send
amr_cis@yahoo.com
|
|
|
|
|
hi there,
just count the number of the execution statement is executed.
if u worry about losing the number when the application is closed, u just store this number in some where. And ur application has to load it whenever it's loaded
<< >>
|
|
|
|
|
|
everytime ur app is loaded, load the value from a file that is specified before into an counter variable and just increase the counter.
And before app is closed, write this counter into a file.
<< >>
|
|
|
|
|
but the this will low the security of the programme;
for example if I put the password and I want to change it;
AMR-CIS
|
|
|
|
|
but this will low the security of the programme;
for example if I put the password and I want to change it;
AMR-CIS
|
|
|
|
|
Wait! Are you saying that you want your program to only run a certain number of times before it breaks or locks itself?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Maintain the Count in Registry !! ie when fetch the count from the registry and closing increase the count. To Store and Retrive values from the Registry is available in the system.microsoft.win32.registry
Gopi.V
Easy Design Systems[Coimbatore], India
|
|
|
|
|
How can you write code here;
AMR-CIS
|
|
|
|
|
The following code should work:
-Make an appform with 2 textboxes: TextBox1 and TextBox2.
-Add two buttons: btnSaveSettings and btnGetSettings.
-code for btnSaveSettings: SaveMyNumber()
-code for btnGetSettings: GetMynumber()
-DONE!
-enter text in TextBox1 > press savesettings
-press get settings and the nuber you entered in TextBox1 should appear in TextBox2!
-if you restart your computer, run the app, press getsettings your saved text will be shown again.
<br />
Imports Microsoft.Win32<br />
<br />
Dim MyNumber as string<br />
Dim MainKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software", True)<br />
Dim MyKey As RegistryKey = MainKey.CreateSubKey("MyKey")<br />
<br />
Private Sub SaveMyNumber()<br />
If not TextBox1.text = "" then<br />
MyNumber = TextBox1.text<br />
MyKey.SetValue("MyValue", MyNumber)<br />
else<br />
exit sub<br />
end if<br />
End Sub<br />
<br />
Private Sub GetMyNumber()<br />
TextBox2.text = MyKey.GetValue("MyValue")<br />
End Sub<br />
Next you can check your value in the registry:
-Start > run > type "regedit" and press enter.
-open HKEY_CURRENTUSER > SoftWare > MyKey and there it is!
You just created this key.
You can delete it (MyKey) by right clicking on MyKey and select Delete, but beware!!! dont delete the wrong keys, it messes up your system!
|
|
|
|
|
yes that excatly what I want.But dont tell me to write in
text file and start to count ok I dont need this idea .ok
THANKS
AMR-CIS
|
|
|
|
|
You'll have to get VERY creative in where you hide this count. Encrypting it using a reversible algorithm is usually the first step. The next is finding a place to hide it. It usually a good idea to hide the value in multiple places, like in the Registry and in files, to make it harder to crack your protection scheme.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using vb6.0 for my application and connect to ms access 2000 database. I have 2 tables, table1 and table2. table1 is the parent and table2 is dependent on table1. for example, table1 has these columns, a1,a2,a3,a4,a5,a6,a7 and table2 has a1,a2,b1,b2,b3,b4,b5. a1 and a2 are the primary keys hence they link the two tables. the relationship is 1-many. now i have i form in vb and i want a uqery that is when i supply a parameter to search for, it has to look in both tables and display the results in 1 form but from two tables, table1 and table2. In access this is not a problem since i can create two forms based on the tables and then let the other form be a parent and the other a child, but in vb, I have no idea.
Can anyone help.
phokojoe
|
|
|
|
|
hi there,
u need to have sql query foundation.
to query from more than 2 tables, u might to use the JOINT clause
for more information, u can read from MS SQL Online book
<< >>
|
|
|
|
|
Selecting from multiple tables requires more grip on SQL.
I have simplest way which I mostly apply when I use Access for Backhand.
In access, establish relationship between tables. You might me aware.
Run Query Wizard.
Select Both tables in the query window.
In the bottom grid select desired fields form desired table.
Run the query will give you some result about selected or filtered data.
In the View Menu, Choose SQL View.
SQL Query in the standard format will appear in a textfield to copy it to any where.
This query can be used in ADO.
|
|
|
|
|
Look at the following Code:
---From here---
Private Timer_Tick(ByVal sender a System.Object,ByVal e as Eventargs) handles Timer.Tick
TickerManagement()
End Sub
---To here---
My question is how to execute this code inside a seprate thread.
|
|
|
|
|
I would suggest that first you create a class that encapsulates the code necessary to create and manage the thread, then use a System.Timer instead of a Form timer.
|
|
|
|
|
How to open a password protected database from the Server Explorer in Visual Studio .NET, when i am trying to make a connection to a password protected database, it gives the following error msg:
'Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.'
Now i have made a Workgroup information file but it still giving this error what will be the true way to make a successfull connection with a password protected database.
|
|
|
|
|
Connection strings to Access database. Taken from www.connectionstrings.com!
Standard security:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"
Workgroup (system database):
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;"
With password:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"
|
|
|
|