|
if im being perfectly honest. Im not a great programer and it took a little while generating teh code for the cd login. Can you help just to get it right? It doesn't other me that its not the most secure, i can learn these things later on
|
|
|
|
|
So what? You can always unhide it. Just because the file is tagged Hidden, doesn't mean it's really hidden.
You'd have to put the test file somewhere else, and even then, there are simple tools out there that can watch your app and see every single file that your app touches.
Using a key in a file is useless because the file can always be copied to another machine. You're not preventing anything from running by putting a key in a file. Using your current method, all you're really doing is making your app more inconvenient to use for your users, nothing more. You're not providing any security at all.
The security has to be tied to the machine somehow, not to a file.
|
|
|
|
|
yeah i know the application i am designing this program for is for kids that don't really know a lot about computers and unhiding and hiding files, so you can see where i am coming from hopefully.
Is ther any way you could have a look at my code so you can see what the problem is and hopefully come up with a solution
Thanks for all the solutions you've given me but i'd like to stick with this due to the explanation above.
|
|
|
|
|
I'd start by scrapping what you have and replacing it with a seperate class. You main form should call this class, call it "Licensing", to ask if it is OK to run the app. The Licensing class has to do a few things to answer this question.
First, it has to check to see if the app has already been through the CDKey entry process and that a valid Key was entered. This could be a value written to the registry or to your AppSettings file.
If the value doesn't exist or it indicates that the license is not valid, this class would put up a new form, or even just an InputBox, asking for the CD key. Once the key is entered, it is compared against the first line of the serial.txt file. If they match, then you create/update the value tracking this in the Registry or your AppSettings file. If not, then Licensing doesn't change anything and returns False to say that it is not OK to run the app.
If the value is OK, then the method in your Licensing class would just return True to say that it is OK to run the app. There's no need to put up the CD Key entry form again.
You can get the first line of the file using:
Dim keyInFile As String
...
Using sr As New StreamReader(Path.Combine(Application.StartupPath), "serial.txt"))
keyInFile = fs.ReadLine()
End Using
|
|
|
|
|
You can't make this up. The good news is, this is a fair sign that no-one is going to steal his code....
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yeah, pretty much. He says he targeting the kids with the protection scheme, when it should be directed at the parents, if anyone at all.
|
|
|
|
|
Perhaps it would be easier to do things backwards. Make form2 the main form of your program, and then if the user hasn't entered the serial yet, show form1 using the .ShowDialog and don't let them close form1 until they enter the serial or exit the entire application.
Just a thought.
|
|
|
|
|
most of the application works apart from when the form reloads. I want the app to load form2 rather than having to go back on to form 1 (the serail key login)
|
|
|
|
|
Hello there,
How can i print two crystal report pages on a single paper without user intervention?
thanks,
|
|
|
|
|
Are you speaking of the capability of some printers to print 2 page images side by side on a single sheet ? If so, then you would need to configure the printer ahead of time, then send the report to that printer.
Maybe I don't understand your question.
|
|
|
|
|
You could display your own print dialog and manually code to print more than one report. But this doesn't put two reports on the same page. Are you asking for them to be on the same page or just to print two different reports at the same time?
|
|
|
|
|
No, i am not looking for how to manually display my printer to print two pages on a single page. Rather I want to Send two crystal report pages say 1-2 to my default printer as a single paper document,ie, the two pages will be put on a single page output from my application before starting the print operation. is that possible?
|
|
|
|
|
I am giving you here an ideas not test them my self, neither I know if they are aplicable or no.
#1 - In vfp reporting, there is an option to split the report into columns, where you design only the first column and when you run the report, the first column is replicated on the other columns with different data. Check if this feature exist in CR and it is suites you.
#2 - If you can convert the CR document to image, then you can put these 2 images on host (word, excel, ie) and send them to be printed on 1 paper.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Thanks Samir,
I am afraid there is such thing in CR. but I appreciate ur help. I m still waiting for someone to help on my idea
|
|
|
|
|
Commonly, this is left up to the printer driver, especially laser printers. I know HP drivers, at least, have the ability to rearrange the job so that you can print multiple pages of the document on one physical page. CrystalReports has no such option to do this itself.
|
|
|
|
|
hello there,
thank you guys over there who were giving me the idea to this question. I finally managed to solve my problem and might help also other to post here.
1.I just created two independent subreports on my main reports
2. I linked my main report parameters to subreports parameters so that when the parameter in main report receives values from the application it will pass those values to the sub reports parameters at runtime.
|
|
|
|
|
Hello Community,
i have a database that has records in it of certain dates for example : 16/10/2009
i was looking for samples on the internet & came across this :
http://www.c-sharpcorner.com/UploadFile/sd_patel/ASPNetCalendarControl11222005054337AM/Images/code37b.jpg
however this is a web application(tables), my application is windows forms application.
I wanted to ask if the "Month calendar" control that is present in the toolbox in visual studio 2008, can do the same behavior if i get the data from the database & bind the existing dates with it so that the used dates can be colored in different color then the default one so that the user can know that there is records in this date. if possible please provide some code sample or useful link.
Best regards.
share your knowledge it's one way to achieve immortality http://www.rabihtawil.com
|
|
|
|
|
Why not try that yourself?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
if you don't have a good answer or have the will to help do not spam the forum with such answers..
Share your knowledge it's one way to achieve immortality
http://www.rabihtawil.com
http://blog.rabihtawil.com
http://www.coderisland.com
|
|
|
|
|
Do not be rude to people giving you good advice!
Try it for yourself, or at least read the documentation for the control in question.
If you are too lazy to do your own research properly before asking for help, do not expect other people to help you, especially if you are going to be rude.
To quote a very good friend of mine, "You're a stranger round here, aren't you? Lets keep it that way!"
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
your friend do not know how stand up for himself so u come defend him.
i can be however i want to be, it is NOT YOUR JOB to educate me how to talk or behave.
i ask a question so either answer it or skip the thread i don't have time for your childich behaviors if you don't have REAL answers for a REAL question.
NOTE: i solved the problem via another site that has PEOPLE that are actually helping:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/735d7b98-3e47-4830-8a7e-3404294e2f87[^]
Note: if you have a problem report it to the moderator, you are only a user in this forum.
Best Regards.
LONG LIVE PAKISTAN !!
modified on Friday, October 16, 2009 9:57 AM
|
|
|
|
|
rabih.tawil wrote: i can be however i want to be, it is NOT YOUR JOB to educate me how to talk or behave.
Sadly my friend you are demonstrating your ignorance, yet again.
It is my job to advise you how to behave on this site. This is a site that is policed by its members.
Rude and abusive behaviour should not be tolerated.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
With all my respect to you personally, it does not mattar in this site if the poster do some research or not. he will got the same behaviour. insulted.
I know Rabih, he show me his question in skybe, I told him i don't know, post it a forum, I told him to post in msdn, he told me he will post in msdn and codeproject, my answer to him was, i will buy popcorn and watch you get insulted. and we make a bet on that.
He post the same question is msdn, and got response, and the answer was from 2 people post an article in codeproject.
i am not here to defend on his name, but this site is well knows as insulting people. he got 180 degree in response in 2 forum asked the same question. I guess that d@nish enjoying making fun of new comming people as most of member here (not you).
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Samir Ibrahim wrote: I guess that d@nish enjoying making fun of new comming people
The point here is that d@nish did not make fun of him. All he did is to give some very good advice. Rabih then reacted as if he had the right to get an answer that suited him. When he didn't he behaved like a spoiled brat and became rude.
All I did is point out his error.
I am pleased that he got a response that suited him, but if he had bothered to read the documentation for the control, he would have had no reason to post to any forum.
Thank you for taking the time to try to explain.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: The point here is that d@nish did not make fun of him
I still see he did. "why don't try that your self" <-- try what?
Henry Minute wrote: I am pleased that he got a response that suited him
That mean, his question has obused this forum rules and did not in msdn?
Henry Minute wrote: but if he had bothered to read the documentation for the contro
Can you please show me the msdn documentation that shows how to set a different backcolor for some cells (not all) in DateTimePicker or MonthCalendar control ?
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|