Mr.M 89 Future Programmers

If your question has been answered don't forget to mark it as Solved.

Mr.M 89 Future Programmers

Well if you are not intending to change your mind to use TreeView, or Tab then I believe you can use Minimalist's idea but what I could suggest is that you can create the text files and put them on your project Resources name as each topic then you can search them on startup and for each found file create a menu button the same way you want it and you can place a control on the body of the form that you will use to display the texts on the selected topic file.

Note that you will have to create the buttons on startup if the texts files will be updated at a later stage or if there won't be any updates meaning new files that will be added via download then you can manually create the buttons and only assign the names you can also hard code the file location if that is the case but if it will add text files later you need to automate it because you don't know what will be the name of those future files.

ddanbe commented: Good plan. +15
Mr.M 89 Future Programmers

Ow sorry about that the error says "ObjectCollection" meaning one of you control collection's I think its your ComboBox's Collection items is using the reserved name so try putting one by one and test to see which collection item is reserved.

Mr.M 89 Future Programmers

Well by the look at that snap shoot it indicate that the word "Collection" is already reserved so you can't use that if you want to continue with it you can do like "cCollection" just like the word "Name" is reserved on a database so to use it I normally do like this "nName"

Mr.M 89 Future Programmers

I personally think Visual Basic is a bit easy to learn and understand once you know the basics because VB.NET is kinder similar to english because to write a code let's say for instance you want to display a HELLO WORLD message then as you know you want to display a HELLO WORLD you simply call the tool that you want it to display the message and instruct it to do so by calling lblDisplay.Text = "HELLO WORLD" which is in english or easy to understand if you understand english and have a basics of VB.NET

Mr.M 89 Future Programmers

@ddanbe what I think is the problem here is the he is using a timer and a timer's interval is in its default values which result in it to execute more then one time, I noticed this when I've applied a Stop call below the MgsBox so that it will display the message and stop but it displayed more then one message before stopping so what I did was that I adjusted the interval to give it enough time to fire perform the task because when you give the timer enough time to pass it can read codes correctly and fire events in a correct way.

The smaller interval value is supplied the more repetition of events. The higher the values the less repetition of events.

Mr.M 89 Future Programmers

Ok I've just tested this and got the solution,
Firstly start by increasing the timer interval to "1000" then
Secondly add the Stop call to your code as I've told you on my first post and debug. To play around with this change the interval to 500 and it will open your app twice but when increasing the interval 2x then the timer read once code and stop.

 If TimeOfDay = "08:30:00 AM" Then
 MsgBox("Testing")
 Timer1.Stop()
 End If

Remember to adjust the timers interval on timer properties to 1000.
Hope this answer the question.

Mr.M 89 Future Programmers

Remember if your question is answered you must mark it answered.

Mr.M 89 Future Programmers

No you can name the text file any name you want but inside write for instance if the user chooses theme 1 then you can write any thing in text file that will indicate that the user has chosen this them so I made an example that you write a text theme1 then you can have an if statement checking which theme the user has choose like this

 Dim MyTheme As String
 MyTheme = My.Resources.MyTextFile.ToString ' Not 100% sure with this line I will verify it when I'm home.
 If MyTheme = "theme1" Then
 ' Load the pictures that represent the 1st theme here.
 Else
 If MyTheme = "theme2" Then
 ' Load the pictures that represent the 2nd theme here
 ...
 ...
 And so on

The pictures that represents the themes can be loaded as resources.

Hope this enlighten you on this.

Mr.M 89 Future Programmers

Hi Dw community

I don't know whether it me or, but there is something a bit wrong that keep on happening so I think we should remember that we were all a students once and if we didn't work harder and put much effort in practicing code we wouldn't know what we know today.

My point is based to those of us who are now posting only to get high points. I've seen quite a number of post of a new members whom seem to have no knowledge of VB.NET programming and have assignments to do whom just post the questions as is from question paper I believe the rule of this forum state it clear that a poster should show initial work and state clearly the problem in most cases it could be an error so that the community can help in solving that error but not the doing other peoples home work so that the thread will be marked answered and get extra points.

Let's us not do this to gain extra points but let's do it to help others too learn not spoon feeding them, because they won't learn, if a question is requesting us to do the home work that's clearly shows that the OP has no knowledge of programming so instead of us doing their homework let's rather point them to Introduction guides that we find it most useful so that they learn too. This comes after I saw a thread and the OP doesn't …

Deep Modi commented: i agree, +4
Mr.M 89 Future Programmers

Lol ow I'm sorry english ey. Thanks

Mr.M 89 Future Programmers

I will check it tomorrow because that when I will be able to get access to a computer with an internet connection then I will post back my findings

<M/> commented: Then... what are you using to write that message? +0
Mr.M 89 Future Programmers

Mmm once I get access to a computer with an internet I will try to trace the post voting buttons so that I can confirm my suggestion that can be done because I've thought of something but first I need to find out how the current post voting buttons are made. I will post back with my findings.

Mr.M 89 Future Programmers

Hi DW

I know I'm nothing but a member of this greatest community, but I would like to point out some of the thing I've experienced I won't talk for everyone because I maybe the only one experiencing it.

1) Can you guys please find a way to separate the two buttons which is 'Mark thread solved' and 'Stop watching this thread' I personally find it hard to select on as they are combined 'I think you will see this if you are using a BlackBerry to select one of these buttons.

2) The code formatting panel is not visible at all I'm not sure if it is visible to other mobile phones but on BlackBerry it is not visible.

3) The vote post up or down they are visible but can't be selected.

I'm not trying to make you change your style or anything just letting you know of these issues.

I didn't know where or how could I get hold of the Dani development team, I know someone knows will see this post and forward the message to the right people.

I thank you.

Mr.M 89 Future Programmers

Well your question is not straight you just need to understand first how hacking is done and also understand the structure of the computer, you sound like you don't even know what you are talking about, the hacker can hack a system in many different ways, you can try to close the ports but if the system is not secured enough the hacker can crack it and reopen the port because you don't know how to put strong security and there is no one who will write that code for you, I suggest you do your research in advance before attempting to create this.

Mr.M 89 Future Programmers

Thank you so much it first didn't work then I created a new project then tested from it and it runned I think it was confused on the project that I was using because I've added and removed this jar file on it so I think it was confused or maybe it was the xml code that I deleted containing this jar file name after I deleted it from the folder and when I debugged it by that time it gave me an error that the file is missing but because I've removed the file manually I then deleted the line that was producing the error which was containing the file name, thank you again will mark this thread solved now thank you. ;-)

Mr.M 89 Future Programmers

Hey peps

I've just used this code to block a website

Imports System.IO
Public Class Form1
    Dim path As String
    Dim sw As StreamWriter
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        path = "C:\Windows\System32\drivers\etc\hosts"
        sw = New StreamWriter(path, True)
        Dim Block As String = "\n 127.0.0.1 www.youporn.com"
        sw.Write(Block)
        sw.Close()
        MsgBox("Site has been registered to system to be blocked", MsgBoxStyle.Information, Application.ProductName)
    End Sub
End Class

how can I read the hosts file and remove the address that I've just registered because I can not delete the Host file like this.

  My.Computer.FileSystem.DeleteFile("C:\Windows\System32\drivers\etc\hosts")

I want to read it inside and only remove the name I've just entered without interfearing with other names writen inside this file.