|
i need a way to make a demo software that run for a limit date
if this soulution in using registery how could i make
the registery safe because any body can access registery
and changed the value plz
ahmad
|
|
|
|
|
You really can't do much more than anyone else does, which is to hide the values in either a file, or the register. A common way to do it, is to have a couple of files called xxx.dll ( whatever ) in your app directory, and have junk in them. Just modify specific bytes in those files to store things like the date the app will expire, and the last date the app was used. You need the latter to work out if time ever goes backwards. If it does by more than an hour ( don't forget daylight savings time ), then odds are the user is playing around to kill your protection. But, don't forget about people who travel, my notebook clock goes back 18 hours regularly.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
I've tried so many methods so far. Still, I cant read a bitmap image (get the specify information of the bitmap image). Please help me to get over the problem.
Thanks alot!!!
hehe
|
|
|
|
|
What have you tried ?
Dim bm as Bitmap
bm = new Bitmap("c:\myfile.bmp")
bm = Bitmap.FromFile("c:\myfile.bmp)
What else ?
If you want to get at the bitmap bits, VB.NET is kind of useless for that, read my articles on image processing in C#, you're better off writing a C# dll to handle it. You can use GetPixel, but it's slower.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am converting Word to Html, but I am losing all my footers and headers. Is there any way to retain them?
I am using the MS Word Object 9 library.
I would really appreciate help on this as I have spent ages looking for any answer.
Kind regards,
Polly Anna
|
|
|
|
|
First, this has nothing to do with VB.NET.
Next, you'll have to convert them to sperate HTML SPAN sections yourself. There are no such things as Headers and Footers in HTML.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you so much - this is a big help.
Kind regards,
Polly
|
|
|
|
|
Hello,
I've a Textbox on my form and my locale and regional Language settings are Standard English(UK). I want to allow the Greek characters to be typed and displayed in the textbox(or rich textbox) and at the same time want to get it's KeyValue (like the ascii key value A = 65) so that certain check can be performed.
Any Help would be really appreciated?
Jon.
|
|
|
|
|
Hello all!
i want to add my custom attribute to a Control member of a form. For exmaple there is the following code line:
<myattribute()> _ Public WithEvents grdTest as DataGridView
Now, at runtime, i want to read the the information of the MyAttribute instance of the grdTest-Control but when i call GetCustomAttributes of the PropertyInfo of the grdTest control instance the resulting array has zero elements ... it seems, that the changes i made in the TestForm.Designer.vb are not compiled ...
has anyone any idea?
greets
testy
solidIT.de - under construction
Components for Microsoft .Net
audittrail, objectcomparer, deepcopy and much more ...
|
|
|
|
|
Do attributes use < and > in VB, instead of [] ?
BTW, check 'Ignore HTML tags' for those to show up in your post.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
argh!!!
thank you.... hmm ... yes: in VB you must use "<" and ">" and if you want to write it in multiple lines (like in C#) ... you must write an underscore... that is very "un-handy" (??)
<MyAttribute> _
<YourAttribute> _
Public Sub Test()
End Sub
the code line looks like:
<MyAttribute> Public WithEvents grdTest as DataGridView
solidIT.de - under construction
Components for Microsoft .Net
audittrail, objectcomparer, deepcopy and much more ...
-- modified at 10:47 Tuesday 27th March, 2007
|
|
|
|
|
hi. my question is how can i make a form in vb.net that retrieves the usernames from mysql database of the forum that i have hosted in the www.awardspace.com.
Im new in this things of databases and im building a app that shows all the usernames registered but this part is making my head spin. lol
Sorry for the bad english, im portuguese.
|
|
|
|
|
Well first you will need something to list those in, .NET 1.1 would be a DataGrid, .NET 2.0 will be a DataGridView. You need to create some type of stored procedure or parameterized query that will access the database and return a dataset of names that you will then set as the datasource to the DataGridView and can then call .DataBind .
The good thing about .NET 2.0 is that they make it much more simple that it even needs to be so people can easily create bad code and foster bad habits but if it is just a simple application that will be used internally by yourself you can probably get away with it. Any of the concepts you dont understand can easily be searched for with Google and you will get some greate articles with step by step instructions.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
the connection is my problem, i have no idea how to connect to database, the only tutorials i found in the net is how to connect to mysql database in local computer, but my database is hosted in anothet site, more especific in www.awardspace.com.
|
|
|
|
|
Ahhh, I see. Well then you will need to have access through any security on the site and probably the IP address of the database. When you are remote instead of accessing SQLServer01 you would access 999.999.999.999 or whatever the IP is. As long as you have THAT piece and you have access into the server then everything should be the same.
Just in case you need it - www.connectionstrings.com[^].
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
nice. thanks.
that help alot, now i just need to figure out to use it. lol my app is cuurently connecting to a access database but that sucks because every time the users use it the program have to upload it via FTP to the server again.
Did you have any example of how to use the connection string?
in any case thanks for the help
Cheers
|
|
|
|
|
Provider=999.999.999.999;Data Source=mydb;User Id=myUsername; Password=myPassword; What is it that you need an example of?
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
well tahnks to the help you give me in the other replys i finally has able do get it.
but now i going to have to host the database in my computer.
the awardspace server does not accept remote connections. i have no other choice but to host in my own pc. thanks for your help
|
|
|
|
|
I wonder if anyone could help me on this problem I am having.
I have an Access 2003 database and using VB.Net 2003
I have a query in Access e.g. myQuery. In this query it has a date field. I want to pass 2 parameters to this field (myDate) e.g. between 01/01/1999 and 30/01/1999.
My query in VB.Net is
"EXECUTE myQuery #01/01/1999#, #30/01/1999#"
For some strange reason it is only picking up the 01/01/1999 value.
The question is,
How can I pass 2 parameters via VB.Net to a field in Access which uses the between date function in a field.
|
|
|
|
|
The standard way to do it is to use an OleDbCommand object, supplying it with the name of the stored procedure, and a couple of OleDbParameter objects.
Dim conn As New OleDbConnection("connection string")
Dim comm As New OleDbCommand("myQuery", conn)
' DateTime takes arguments in Year, Month, Day order.
comm.Parameters.Add("@p1", OleDbType.Date).Value = New DateTime(1999, 1, 1)
comm.Parameters.Add("@p2", OleDbType.Date).Value = New DateTime(1999, 1, 30)
Dim rdr As OleDbDataReader = comm.ExecuteReader()
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for this information.
Tried it and it worked a treat.
|
|
|
|
|
hi
i want to know how notepad ms word and more similar editor applications opening a text file or wat ever it is in thier application by right click and open or right click and open with option
this i am asking because i want to make my application to open a text file on right click it
pls reply soon
with regards
Balagurunathan.B
|
|
|
|
|
you can use contextmenu in vb.net for right click option.
And add menu items for menu.
Add your code in the clickevents
Sathesh Pandian
|
|
|
|
|
i dont want that one
let us consider this scenario
if u have a c++ code
if u want to see that code u will right click on that and use open with ms word or notepad
like that i want to open
with regards
Balagurunathan.B
|
|
|
|