Results 1 to 18 of 18

Thread: My new program

  1. #1

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Post My new program

    Hi fellow programmers

    just here with an update to my WeBrowz program. Any feedback would be greatly apreciated. Just send me a mail to *snip*

    rapidshare.de link (This is a .rar file with the published app)(402 kb)

    http://rapidshare.de/files/23800920/WeBrowz.zip.html

    ----------------------------------------------------------------------
    i have also uploaded the source files to the forum (in a zip file ) for those of you who do not open .exe files.

    cheers
    patrick
    Attached Files Attached Files
    Last edited by Gameunreal; Oct 24th, 2009 at 10:21 AM.
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    1- I had to remove lots or resources from the Resources file because they didn't exist

    2- After I first ran the App, it broke down when I tried setting my homepage/email
    VB Code:
    1. My.Computer.FileSystem.WriteAllText("c:\Program files\WeBrowz\homepage.txt", TextBox1.Text, False)
    this line threw the exception, it's easy to figure out it's an IOException (DirectoryNotFoundException)

    3- You can make the Close button default so I can press "Enter" instead of typing then going to my mouse or using Tabs

    I hope this helps you
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    I found some other design time errors (Problems):
    1- When I maximized the "Source Grabber" window the "Source Grabber" check box and "Grab 'All Code" radio button appeared in the middle of the text
    2-You could use some Source formatting in the source grabber
    3- you really don't know how to use anchors (date and time display-er also)
    4- Buttons in the "Image Grabber Tool" look totally different that any other button in the program
    5- The "Print preview" doesn't work properly (Not all page content showed up) and it's not sizable
    6- The "About" menu item must be under all other items in the Help menu (with a separator)
    7- If your "Settings" doesn't have any sub items, move it to the Extras
    8- The toolbar isn't well-formatted
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: My new program

    ComputerJy is right....all of those are errors. And you should implement the use of Try Catch functions.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  5. #5

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    hi thanks for the feedback:when you say that it broke down the first time you ran it are you talking about the first 2 images i attached?because they are meant to be there, to inform the user that he has not set a homepage.

    i am going to remove the top bar(the one with the maximise, minimize and close) from the favourites page, the upcoming history page, and the 3 tool pages.did you find any problems running the tools?

    in version 2.1 a lot of the controls have been anchored.

    if you look down, you will see 2 pictures one of the settings close button, other of the imagegrabbertool gab images button. i cant really see a difference myself

    the print preview window IS resizable: it worked fine for me, if you see it is exactly the same window you getwhen you are using internet explorer. i used something like webbrowser1.properties (not sure-->i havent got the project with me)
    Attached Images Attached Images     
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  6. #6

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    ..continuation

    abotu the problem of the settings window breaking down, well i dont really know why because:

    VB Code:
    1. Private Sub settings_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    2.         Dim fileExists As Boolean
    3.         fileExists = My.Computer.FileSystem.FileExists("c:\Program files\WeBrowz\email.txt") And My.Computer.FileSystem.FileExists("c:\Program files\WeBrowz\homepage.txt")
    4.         If fileExists = True Then
    5.             Dim fileContents1 As String
    6.             fileContents1 = My.Computer.FileSystem.ReadAllText("c:\Program files\WeBrowz\email.txt")
    7.             TextBox2.Text = fileContents1
    8.             Dim filecontents2 As String
    9.             filecontents2 = My.Computer.FileSystem.ReadAllText("c:\Program files\WeBrowz\homepage.txt")
    10.             TextBox1.Text = filecontents2
    11.         Else
    12.  
    13.             MsgBox("There is no homepage/email program file yet. Please fill one in", MsgBoxStyle.Information, "Critical Informaion")
    14.  
    15.         End If
    16.  
    17.     End Sub

    as you can see-when the settings form loads, it checks if both the email and homepage files exist, if both exist then it loads their text into the textboxes...

    also, is their any way(well i know their is i just do not now how to use it) of storing all the data of the program in a single file?


    how do you mean that my toolbar is not well formatted??

    lol gr8 thanks for your replies: as a prize you all get a free copy of the free program:WeBrowz v2.1(when it comes out) lol

    cheers
    patrick
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  7. #7

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    for the forms: favourites, the three tools, and history:
    instead of blocking the whole title bar, i will just block the close button...seems like a better idea....

    could anyone tell me how to do that please

    cheers
    patrick
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  8. #8
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    Quote Originally Posted by Gameunreal
    for the forms: favourites, the three tools, and history:
    instead of blocking the whole title bar, i will just block the close button...seems like a better idea....

    could anyone tell me how to do that please

    cheers
    patrick
    VB Code:
    1. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    2.         e.Cancel = True 'This will cancel the close, you can
    3.         'minimize the form or hide, what ever you want
    4.     End Sub
    as for your other question you can use:
    VB Code:
    1. Dim FS As New IO.FileStream("Data.ini", IO.FileMode.Append)
    I just have a little comment, about something you didn't mention, Don't use full paths when saving files, only specify file name, unless you are %100 sure, the path exists
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  9. #9

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    thanks for your quick reply

    Quote Originally Posted by ComputerJy
    VB Code:
    1. Dim FS As New IO.FileStream("Data.ini", IO.FileMode.Append)
    how exactly do i impelement this? i need to store 6 favourite addresses(possibly more in version 2.1) and homepage setting, email setting and search setting.

    sorry but... i really am not a pro at vb

    cheers
    patrick
    Last edited by Gameunreal; Jun 23rd, 2006 at 12:10 PM.
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  10. #10
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    Quote Originally Posted by Gameunreal
    thanks for your quick reply



    how exactly do i impelement this? i need to store 6 favourite addresses(possibly more in version 2.1) and homepage setting, email setting and search setting.

    sorry but... i really am not a pro at vb

    cheers
    patrick
    If you have lots of things to save, you should consider using a Database. it saves time and space.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  11. #11

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    has anybody got any tips on how to use a database?
    computerjy, i really dont have any more things to save.... so wont a single file be a good idea?
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  12. #12
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    You can use serialization, it's easy to use
    here's a code sample that might help you:
    VB Code:
    1. Imports System.Runtime.Serialization.Formatters.Binary
    2. Imports System.IO
    3. <Serializable()> Public Class Class2
    4.     Implements IDisposable
    5.     Private Favorites As ArrayList
    6.     Private HomePage As String
    7.     Private EmilAddress As String
    8.     Private SearchSettings As String
    9.     <NonSerialized()> Private Const FILE_NAME As String = "Settings.bin"
    10.     Public Sub New()
    11.         Dim Str As Stream = File.OpenRead(FILE_NAME)
    12.         Dim des As New BinaryFormatter
    13.         With CType(des.Deserialize(Str), Class2)
    14.             Me.EmilAddress = .EmilAddress
    15.             Me.Favorites = .Favorites
    16.             Me.HomePage = .HomePage
    17.             Me.SearchSettings = .SearchSettings
    18.         End With
    19.         Str.Close()
    20.     End Sub
    21.     Public Sub Dispose() Implements System.IDisposable.Dispose
    22.         Dim Str As Stream = File.OpenWrite(FILE_NAME)
    23.         Dim Ser As New BinaryFormatter
    24.         Ser.Serialize(Str, Me)
    25.         Str.Close()
    26.     End Sub
    27. End Class
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  13. #13

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    lol:im probably being annoying now... but how do i use that?
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  14. #14
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    VB Code:
    1. Private Settings As Class2
    2.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    3.         Settings = New Class2
    4.         With Settings
    5.             'Use stored values
    6.         End With
    7.     End Sub
    8.     Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    9.         Settings.Dispose()
    10.     End Sub
    You also must add some accessible properties from outside the settings class or as I call it Class2
    VB Code:
    1. Public Property Home() As String
    2.         Get
    3.             Return HomePage
    4.         End Get
    5.         Set(ByVal Value As String)
    6.             HomePage = Value
    7.         End Set
    8.     End Property
    9.     Public Property Email() As String
    10.         Get
    11.             Return EmilAddress
    12.         End Get
    13.         Set(ByVal Value As String)
    14.             EmilAddress = Value
    15.         End Set
    16.     End Property
    17.     Public Property Search() As String
    18.         Get
    19.             Return SearchSettings
    20.         End Get
    21.         Set(ByVal Value As String)
    22.             SearchSettings = Value
    23.         End Set
    24.     End Property
    25.     Public Property Favourites() As ArrayList
    26.         Get
    27.             Return Favorites
    28.         End Get
    29.         Set(ByVal Value As ArrayList)
    30.             Favorites = Value
    31.         End Set
    32.     End Property
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  15. #15

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    so i just paste all that into my form
    ???
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

  16. #16
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: My new program

    Of course not
    Class2 is a separate class, but if you want to nest it within the form...errr...you can do that no problem
    but you have to put the properties in Class2 and the Form_Load & Form_Closing in the main Form (Browser)
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  17. #17
    Hyperactive Member sheikh78's Avatar
    Join Date
    Apr 2006
    Location
    C:/
    Posts
    423

    Re: My new program

    Actually do you need to make the files? Like favorite files? I can show you a way in the application where you do not need to save the favorite files but still have favorites every time you open up the web browser. Try my web browser: http://www.freewebs.com/tegadigital/...dssoftware.htm. The Xuastegui 3.6 (weird name) is the web browser. This browser implements what I just said. It has its own favorites and it will get them from a setting at runtime. Respond back or just PM me if you want details.
    "Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
    Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!

    "Thinking of you, wherever you are
    We pray for our sorrows to end, and hope that our hearts will blend.
    Now I will step forward to realize this wish.
    And who knows, starting a new journey may not be so hard…
    Or maybe it has already begun.
    There are many worlds, but they share the same sky
    one sky, one destiny..."

  18. #18

    Thread Starter
    Addicted Member Gameunreal's Avatar
    Join Date
    Jun 2006
    Location
    gone fishing
    Posts
    249

    Re: My new program

    right sheikh ill pm you later

    cheers
    patrick
    -=PATRICK=-
    Using Visual Basic .NET 2005


    If you found a post useful then please Rate it!



    Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS
    A program is a device used to convert data into error messages.
    Programmer's Drinking Song: 99 programming bugs in the code/99 programing bugs/Fix one bug/compile it again/now there's 100 bugs in the code! (repeat until bugs==0)
    All wiyht. Rho sritched mg kegtops awound?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width