|
-
Dec 18th, 2002, 10:42 AM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 19th, 2002, 05:53 AM
#2
Thread Starter
Hyperactive Member
-
Dec 19th, 2002, 06:34 AM
#3
Addicted Member
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
-
Dec 19th, 2002, 08:19 AM
#4
Thread Starter
Hyperactive Member
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:
Dim Result As DialogResult
Result = MessageBox.Show("Do you really wish to exit?", "Exit_
Program", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
Application.Exit()
End If
Last edited by RealNickyDude; Dec 19th, 2002 at 07:08 PM.
-
Dec 20th, 2002, 04:57 AM
#5
Thread Starter
Hyperactive Member
-
Dec 20th, 2002, 05:01 AM
#6
Hyperactive Member
Would love a copy...
Hey when you have that code book up and running I would appreciate a copy...
[email protected]
thanks,
Anjari
-
Dec 21st, 2002, 04:19 AM
#7
Thread Starter
Hyperactive Member
-
Dec 21st, 2002, 11:04 AM
#8
Frenzied Member
Dont gain the world and lose your soul
-
Dec 21st, 2002, 12:15 PM
#9
Sleep mode
In which form do you want the code.(.proj files , .vb classes,.txt files)?
-
Dec 21st, 2002, 07:10 PM
#10
Thread Starter
Hyperactive Member
Originally posted by DevGrp
Do you want C# code too?
Just VB .NET code.
-
Dec 21st, 2002, 07:12 PM
#11
Thread Starter
Hyperactive Member
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
-
Dec 24th, 2002, 12:08 PM
#12
Thread Starter
Hyperactive Member
-
Dec 24th, 2002, 07:10 PM
#13
Sleep mode
I am eager to see that.
-
Dec 24th, 2002, 07:44 PM
#14
PowerPoster
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.
-
Dec 25th, 2002, 07:32 AM
#15
Thread Starter
Hyperactive Member
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
-
Dec 25th, 2002, 09:10 AM
#16
Sleep mode
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.
-
Dec 25th, 2002, 07:21 PM
#17
Thread Starter
Hyperactive Member
Oh yeah, never thought of that!
I'll send it as a Word doc then. Thanks pirate.
-
Dec 26th, 2002, 06:47 AM
#18
Thread Starter
Hyperactive Member
I'll send it as a Word doc then.
No I won't, I'll send it as .rtf
-
Dec 26th, 2002, 08:37 AM
#19
Member
When shall i see the copy of VB.NET.?
[email protected]
-
Dec 26th, 2002, 12:23 PM
#20
Thread Starter
Hyperactive Member
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.
-
Dec 26th, 2002, 03:09 PM
#21
Sleep mode
go ahead then .Does RTF means Rich Text Format??
-
Dec 26th, 2002, 03:31 PM
#22
Thread Starter
Hyperactive Member
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.
-
Dec 26th, 2002, 09:41 PM
#23
Hyperactive Member
make it like vb code editor, but with maybe a better search function and better abilities to classify the code.
-
Dec 27th, 2002, 04:47 AM
#24
-
Dec 30th, 2002, 04:44 AM
#25
Thread Starter
Hyperactive Member
-
Dec 30th, 2002, 10:31 AM
#26
Lively Member
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!
-
Dec 30th, 2002, 10:59 AM
#27
Thread Starter
Hyperactive Member
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.
-
Dec 30th, 2002, 11:15 AM
#28
Thread Starter
Hyperactive Member
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
-
Dec 30th, 2002, 12:50 PM
#29
Sleep mode
Go start Nicky .I could say that was beta 1.
-
Dec 30th, 2002, 01:14 PM
#30
Lively Member
and you can name it "The VB.NET Cookbook!"
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Dec 30th, 2002, 01:22 PM
#31
Lively Member
and you can name it "The VB.NET Cookbook!"
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Jan 1st, 2003, 06:54 AM
#32
Thread Starter
Hyperactive Member
-
Jan 1st, 2003, 11:55 AM
#33
Addicted Member
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.
-
Jan 1st, 2003, 01:24 PM
#34
Thread Starter
Hyperactive Member
-
Jan 1st, 2003, 04:54 PM
#35
Sleep mode
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 "
-
Jan 1st, 2003, 05:30 PM
#36
Thread Starter
Hyperactive Member
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
-
Jan 1st, 2003, 05:33 PM
#37
Sleep mode
waiting to see cute interface.
Luck
-
Jan 1st, 2003, 05:53 PM
#38
Thread Starter
Hyperactive Member
-
Jan 1st, 2003, 06:09 PM
#39
Sleep mode
Outstanding !Pretty Icons.
-
Jan 2nd, 2003, 02:35 PM
#40
Thread Starter
Hyperactive Member
A beta version of the VBCodebook program is now available (see VBCodebook Beta thread.)
Please keep sending those snippets in
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|