Page 1 of 2 12 LastLast
Results 1 to 40 of 72

Thread: Code Book for you, by you

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Lightbulb Code Book for you, by you

    I'm fairly new to VB Net (but not VB6) and i'm compiling a program (a sort of Help system) that contsins code snippets, help & advice, tutorials, ranging from the ridiculously simple (like returning the type of OS, or how to make text in a text box bold) to the extremely indepth (like file handling, or system calls).

    If anyone has ANY snippets they'd like to send I would be most greatful which will be intergrated into the VBCodebook .NET program.

    Here is the email address if you like to send anything:

    [email protected]

    Please comment them heavily as they are for everyone, including beginners. Of course, you will be credited if your snippet is used.

    VBCodebook .NET can be downloaded from the following site:

    VBCodebook .NET Website

    You never know, there could be something in there that even you never knew!

    I know there are various sites with snippets but I'm compiling something that can be downloaded and used without being online.

    Please, all contributions are welcome as without them, there is no code book.

    Thanks to everyone in advance.

    Last edited by RealNickyDude; Jan 11th, 2003 at 04:42 AM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  2. #2

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Anyone?
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  3. #3
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150

    Code Book

    G'day
    Sorry for the slow response. I think its a great idea. I have a quite a lot of functions and subs that I have developed over the years (VB3 - Vb.Net from '92-now). I need some time to rummage thru them and find what may be of benefit. eg the dreaded 'invalid use of null' error when setting controls from Data Base Fields that contain Null.

    I have one line functions called ToNum & ToStr which get rid of the error.
    to use - txt.text=ToStr(FieldName) instead of txt.text= Fieldname solves the problem - is this the sort of stuff you are after ??

    Im sure most experienced progs have their own way of solving this MS pain in the bum but it may help some newbies - I have seen posts for the same error.

    pls let me know - maybe I could email you code and you decide what you need to include rather than posting it thru the forum

    regards

    BH

  4. #4

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Yeah, that sort of thing.

    I have Karl Moore's Visual Basic .NET: The Tutorials and that has snippets of code in the back, which I though was an excellent idea and helped me a lot so I though why not compile something similar and have some sort of mailing list and perhaps send out an updated version every month / couple of months.

    I'm sure it would help a lot of people out, including myself!



    So yeah, any tricks, tips, workarounds, basically anything.

    For example, here's what I have for closing an application (which took quite a while fo figure out how, believe it or not!):

    VB Code:
    1. Dim Result As DialogResult
    2. Result = MessageBox.Show("Do you really wish to exit?", "Exit_
    3. Program", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
    4. If Result = DialogResult.Yes Then
    5.     Application.Exit()
    6. End If
    Last edited by RealNickyDude; Dec 19th, 2002 at 07:08 PM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  5. #5

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  6. #6
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Would love a copy...

    Hey when you have that code book up and running I would appreciate a copy...

    [email protected]

    thanks,

    Anjari

  7. #7

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  8. #8
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Do you want C# code too?
    Dont gain the world and lose your soul

  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    In which form do you want the code.(.proj files , .vb classes,.txt files)?

  10. #10

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Originally posted by DevGrp
    Do you want C# code too?
    Just VB .NET code.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  11. #11

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Originally posted by pirate
    In which form do you want the code.(.proj files , .vb classes,.txt files)?
    Simple text files will do nicely. Don't forget to comment them as much as possible please.

    Thanks for the interest, i've already made a start
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  12. #12

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Thanks for the snippets Pirate You're the only one to send any in!! What's wrong with you people?

    I've spoken to Karl Moore and he's allowed my to use his snippets from his book (thanks Karl )

    Doesn't anyone have any snippits / drop in code they'd like to share? Wouldn't you like to receive a code book full of these?

    Just send anything (vb .NET) you have, it would help people out no end.

    P.S: Merry Xmas to one and all!
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  13. #13
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I am eager to see that.

  14. #14
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by RealNickyDude
    Just VB .NET code.
    I am sorry to hear that it is only VB.Net code. You are seriously limiting the amount of code you could get. All of my snippets of code are in C# (and if they weren't, I re-wrote them in C# and deleted the VB.Net version of it). You should reconsider allowing C# code also.

  15. #15

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    The reason being that I only have the Standard installation of VB and that's all i'm using. Perhaps it might be an idea if you, yourself created a C# codebook.

    The first issue of the Codebook will be around Feburary (fingers crossed) and will be in pdf format. If you'd like a copy sending, then just send me your email address, i'd also appreciate a snippet of code along with your email address, no matter how trivial you think it might be!

    Wish me luck, and Merry Xmas
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  16. #16
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    PDF ?? how can one makes use of the code ? One needs to copy and paste some functions or Subs immediately in the proj.This maybe an idea.

  17. #17

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Oh yeah, never thought of that!

    I'll send it as a Word doc then. Thanks pirate.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  18. #18

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    I'll send it as a Word doc then.
    No I won't, I'll send it as .rtf
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  19. #19
    Member
    Join Date
    Nov 2002
    Posts
    61
    When shall i see the copy of VB.NET.?

    [email protected]

  20. #20

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Originally posted by ram2002
    When shall i see the copy of VB.NET.?
    I'm not sure i'm with you here? what do you mean by a 'copy of VB.NET.?' I'm just compiling a codebook of bits of code that could come in handy.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  21. #21
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    go ahead then .Does RTF means Rich Text Format??

  22. #22

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Yup, sure does

    This means that you don't have to have Word to read it, you could even create a VB project to display it

    It will be like a proper document and not just a simple text file.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  23. #23
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352
    make it like vb code editor, but with maybe a better search function and better abilities to classify the code.

  24. #24
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Cool

  25. #25

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  26. #26
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    nicky why do you have so many posts that just say ?

    also: why cant you do this for your exit program?
    If MsgBox("Are you sure you want to end the program?",vbYesNo,"End Program?") = 6 Then
    End : End If
    simple 2-liner

    also: how do you get 'visual basic code' in the post?
    if you choose not to decide you still have made a choice!

    RUSH rocks!

  27. #27

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    nicky why do you have so many posts that just say ?
    To keep it near the top for everyone to see, if I don't the post will be nudged into oblivion within 2 - 3 days and I want as many people as possible to contribute to the codebook!

    also: why cant you do this for your exit program?

    If MsgBox("Are you sure you want to end the program?",vbYesNo,"End Program?") = 6 Then
    End : End If
    Because I didn't know! This is why i'm compiling a codebook

    also: how do you get 'visual basic code' in the post?
    simply use vbcode in square brackets.
    Last edited by RealNickyDude; Dec 30th, 2002 at 11:16 AM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  28. #28

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Originally posted by MXAlPhA
    make it like vb code editor, but with maybe a better search function and better abilities to classify the code.
    I'd love too, but I don't have the foggiest idea how!

    This is the reason I'm creating a codebook in the first place, as I know next to nothing about the workings of VB .NET
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  29. #29
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Go start Nicky .I could say that was beta 1.

  30. #30
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    and you can name it "The VB.NET Cookbook!"
    if you choose not to decide you still have made a choice!

    RUSH rocks!

  31. #31
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    and you can name it "The VB.NET Cookbook!"
    if you choose not to decide you still have made a choice!

    RUSH rocks!

  32. #32

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Talking

    Ok, I'm now in the process of creating a VB .NET Codebook projects, have a look at the work in progress:



    It's quite a way off as i'm learning as I do, but hopefully, something should be up and running around FEB. If anyone has any ideas or suggestions, they'll be most welcome but remember, I know next to nothing about VB .NET but i'll try my best

    Oh, and a Happy New Year to everyone!
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  33. #33
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    What are you making the book with? what is the program that you are using in the screenshot?

    Sorry when i wrote that it was just when i woke up.
    Last edited by james14; Jan 1st, 2003 at 01:30 PM.

  34. #34

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  35. #35
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hi Nicky ,
    Is this different app version from the PDF file or are you going to attach the pdf file to this application ?
    by the way , I shoud say "Nice work , Five stars from me "

  36. #36

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    There is no pdf version, and the program has now lost the toolbar and gained a treeview! Which leads me to some treeview questions (see the TreeView Questions thread.)

    Thanks for the vote of confidence pirate
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  37. #37
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    waiting to see cute interface.
    Luck

  38. #38

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Smile

    Here you go



    Which leads me to a question about splitters (see splitter question thread.)
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  39. #39
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Thumbs up

    Outstanding !Pretty Icons.

  40. #40

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    A beta version of the VBCodebook program is now available (see VBCodebook Beta thread.)

    Please keep sending those snippets in
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

Page 1 of 2 12 LastLast

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