Click here to Skip to main content
15,886,815 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi
I'm creating a web browser for children using windows form application in visual studio 2010 in c#.

I am trying to create a parental area where parents can control some featurs for the kids, i am having trouble getting these features to work.

1. I need to make a button in the toolstrip password protected, and link to some database to validate and have some way to retrieve password if lost.
I already have access to a mysql database, but would need to know how to do this.

2. Need to be able to control the view of a button, so that in the parent area they can disable the print button.

3. The browser uses a string to only allow access to websites listed in that string, all others won't load. How would i let the user be able to access this string so they can add their own sites to list/

4. I want to add a timer control so that the parent can set a time limit for their children to play. ex after an hour the browser displays a screen saying time up and the user can't have access until parent enters password to close or allow further access, as the kid might be in the middle of a game and need to save it.. etc..

5. I have audio on the buttons in the browser, is there a way to use another button to turn off these sounds if the users wants to.

6. I have placed category buttons in a toolstrip down the left, it is quite long and requires the the users to scroll down to view them all, I have been able to add them in a panel to allow the ability of scrolling, but it doesn't look good with the scroll bars... is there a way to use buttons instead? so that they click on a big button and the menu scrolls up and down?


I am creating this for a project for my children, my programming is rather basic but I thought it would be fun and something my kids would enjoy.

I have already made the website and the the browser frame and custom buttons just need help with these features.

Thank you in advance all help is really appreciated by myself and my kids!!!
Posted
Updated 25-Apr-11 12:59pm
v2
Comments
Sergey Alexandrovich Kryukov 25-Apr-11 10:26am    
What is already done? There is nothing special about this work, you only need to do it.
Please understand: it is very unlikely, that anyone would be interested in doing this work for your.
You really will need to do it yourself and ask more specific question when you face a problem. This is how CodeProject really works.
--SA
JOAT-MON 25-Apr-11 16:39pm    
From OP:

cheers for the responses guys

@SAKryukov
I'm not asking anyone in perticular to do my work, i was just hoping maybe someone knew how to do any of the features i've still left to do

As i said i've only just really started programming, so the stuff i still need might be really easy but fo me it has slowed my progress down...

If anyone knows of tutorials on how to do any of these features that would be the best way, as i could learn from it.

I thought my questions were specific...
Sergey Alexandrovich Kryukov 25-Apr-11 16:51pm    
There is nothing special in this work to write (or find) an article about. You just need to do it. If you face any problems, you can post relevant part of your code with issue report to get some help. So far, there is simply nothing to help about...
--SA
JOAT-MON 25-Apr-11 16:57pm    
Thanks, but I don't think OP is going to see that reply since it landed in my mailbox. ;)
Sergey Alexandrovich Kryukov 25-Apr-11 17:03pm    
No, OP will see it as well, as far as I remember my past experience of such things.
--SA

What your trying to make is very trivial but I believe you lack a proper understanding of c# and accessing / using databases. Please consider putting your project on hold and read/practise more on your coding skills. Why code now and redo your whole code in future (after you've become better) since you'll have discovered how verbose/bloated it is?
I hope I haven't offended you but all am trying is to show you how to make a good browser by having more knowledge which pays off. There some very good ebooks and tutorials from the wrox site plus you can search for one called 'Head first c#' (aint from wrox but its the best one,well suited for absolute beginners in c#)
all the best.
 
Share this answer
 
Comments
sportsonpc 2-May-11 6:57am    
thank you for your advice
believe it or not, i have taken modules on c# and other programming languages
i just haven't been able to bring it all together
C#
button1_Click(object sender, EventArgs e)
{
  PassForm pf = new PassForm();
  if (pf.ShowDialog()==DialogResult.Cancel)
  return;
  if (pf.password == Properties.Settings.Default.pass)
  {
    // do events
  }
  else
  {
    // MessageBox.Show("Error Performing Requested Operation","KiddieBrowser 1.0",0,MessageBoxIcon.Error);
  }
}
 
Share this answer
 
Comments
sportsonpc 2-May-11 6:56am    
thank you for your solution
will this work to connect to a mysql database?
Points 1 and 2.
What you are trying to do here is a classic case of role management. Microsoft helpfully provide role management capabilities with .NET from version 2 on, and you can use these features in Windows Forms as well as ASP.NET applications. You need to search for the following things:

MySQL Membership Provider
MySQL Role Provider
Windows Forms Membership and Role Provider (to find out how to add role and membership capabilities to your app)

You also need to read up on what these providers do.

Point 3.
This is a trickier one because you are going to have to intercept navigation requests. It's not enough to just block links from an address bar; what about if a page they can get to provides a link to a site that's not on the list? Plus, how are you handling the mapping in these sites? Are you allowing access to all the site? Specific folders? Specific pages? Take a look in your web browser settings and see how the browser providers implement this feature - it should give you more of an idea on how to do what you want.

Point 4.
Fairly straight forward - create a background thread and have it sleep for that period of time. On waking up, it will display the page. Note, if the user exits the session, you must remember to close that thread.

Point 5.
You're probably going to be better creating an options dialog. It sounds like you've got a fair few options going on there.
 
Share this answer
 
Comments
sportsonpc 2-May-11 6:55am    
thank you for your solutions
the string i am using to filter the sites allows access to the whole domain
since some websites use content form other sites i have had to manually go through
the site and add those domains.. probably not the best option but it does work for a small scale project

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900