|
|
Thanks for the suggestion. This particular function/property doesn't necessarily have sequential numbering. It also has potentially 65535 indices. I don't really have a choice as to the structure (it's a file format of a third-party program). What I'm using in VB6 is perfect and I'm struggling with the idea that dot net can't do it. It feels like I'm going backwards porting things to dot net.
Public Property Get Field(FldNo as Long) as String
..... code
End Property
Public Property Let Field(FldNo as Long, Value as String)
..... code
End Property
This allows the calling routine to address this property just like any other property. I originally wrote it as a method but the property approach is so much more convenient to code.
CalmlyFrustrated
|
|
|
|
|
Indexors don't have to use sequential numbering, though that's probably what you saw in the example, you can do anything with the index and the value once you have them. The index doesn't even have to be number. But if you want another alternative you could declare a struct with a long and a string and have that be the Type of your property. No other options come to mind but good luck.
|
|
|
|
|
hi,
I am looking for some simple Visual Studio Projects for senior secodary students (17-18 yrs old) as part of a course in programming using Visual Studio 2005.
They have been through the IDE in painful detail and now want to get their hands dirty with some projects.....
I would really appreciate it if someone could recommend a book or set of projects which I could find/purchase/steal to assist these kids and me (of course)
Thanks in advance
|
|
|
|
|
I am 17 years old and am self-taught, i always found simple projects like timers, programs that work with math problems etc. A good one is also word processor, maybe to be worked on all together, there is a great example on codeproject that you can start with. Another good one is working with textboxes and .txt files and the steamreader and writer classes to save and retrive text from text files, quite simple but good to learn.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
I am a junior in high school, self-taught, and I just code random programs for my classes. My website: thomas.stockwell.googlepages.com has most of the programs that I have worked on, as well as some source code for some of the projects. For some fun GUI applications I would suggest a game like battleship which can be found at my website. Currently for my AP Computer Science course I am working on a chess game that is tackling graphics and logic.
A few books that I have found very insightful and fun to work with have been VB.NET Hacks and Pranks. The book covers various mathematical operations relating to fractals, custom drawing routines, windows customization, windows control customizations and I believe it has a few games in their too.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
As I am typing this, I am googling ideas that come to mind... my criteria being 1)interesting/fun 2)reasonably easy 3)lots of vb.net examples on the internet. I'm assuming you can google these topics and look through the examples, but I've included examples where I can find them from either this site or another a vb site I trust (http://www.devx.com[^]). Here's what I've got:
1)VB.net Screen Saver
Screen Saver Development[^]
2)Chat Application
Home-brew Your Own Instant Messenger App with Visual Studio .NET[^]
Extend Your Instant Messenger Application with FTP Support and Private Chat[^]
3)Tic Tac Toe
Yet Another Tic Tac Toe[^] - Lots of room for ui improvement here
4)A progression in game development from tic tac toe would be reversi/othello, but the only examples I found were in c#, but converting the c# to vb.net might make an interesting exercise for them.
Reversi in C#[^]
I would provide them with material on a simple example and turn them loose to enhance it. Let them do research with google. Give extra credit in User interface design and Innovative coding (but on coding I'd require that documentation should be written and give additional credit on the quality of the documentation as well).
Anyway all I've got for now but will keep thinking on it.
|
|
|
|
|
I firmly believe that for people to be able to program, they should write console apps first. Console or otherwise, I Think a calculator is an excellent first 'real' project.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: they should write console apps first
Yeah, but that's about as fun as a bag of dirt. Sure, it'll make them focus on coding, but these are highschool students; they're not going to become great programmers in high school... at this point I think getting those who might have an aptitude for it interested and fired up for would be best. Plenty of time to make them 'real' programmers in college, but they won't be studying programming in college if you can't give them enthusiasm now.
|
|
|
|
|
Very Valid Points
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Only if your goal is *not* to teach programming.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Funny, I basically did console programming from the age of 14 on an Apple ][, and I taught myself C++ by focusing on the console. People who learn things backwards, tend to learn bad habits and stick to them. If the point of the course is to generate people who will never be programmers, but give the school a few points for offering a tech subject, then, sure, let them play with the wizard and write bad code. Give them an A if thier program doesn't erase the hard drive. For my kids, I'd rather they learn properly, or not at all.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You c++ guys are so funny. But yes, I guess yes what I am proposing is that you can't teach real programming in a first year class in highschool. If they followed it up with second and third year classes then you could though.
It's like highschool french. The first year will, if you're lucky, will give you the vocabulary of a 2 year old, but there will be lots of discussions of french culture and the teacher will occasionally bring in french food. In most schools students are required to take a first year language class and this opens up their minds to the idea of being able to speak another language. Then there's french 2 which delves much deeper into the language, but is still a little fun. Third year french cuts out english almost entirely and it's more like sitting in a french classroom taking a grammar and writing class in french.
I mean come on if this were a serious programming class they wouldn't be teaching visual basic, but because it's more verbose I think it is a good choice for a first year class. I would start second year with console apps in c# and lay heavy into programming concepts and design patterns. Third year should be treated like a development shop. Full sdlc and larger projects, but still continue with some concept based teaching.
It also depends on if the first year class is mandantory or an elective. If it were an elective I'd start with C# and be harder on the class. I guess I had the idea it might be required to take a technology class.
|
|
|
|
|
Oh and I started programming on an atari gaming console in atari basic. My parents bought me a model that had a keyboard and let you pop in cartriges to store your programming on. I was about 10 at the time and I don't think my parents realized you could program on the thing. I went and bought a book and taught myself. Later I did macros in amipro on my dads computer. I also had a programmible calculator in highschool. If my parents had encouraged me or I had other friends who liked programming I might have done c++ but the opportunity never presented itself. I continued studying over the years with vb 4, 5, and 6 and eventually it occured to me this could be a career. By the time I went to college after the navy everything was a refresher except pointers in C++. While I was in college .net came out, I picked up a copy on my own and learned C# and vastly prefer it. I got a job right out of college doing c# and have been programming ever since. I still love studying and improving my skills.
My start in programming was quite by chance. Some of these kids will get a start in programming in this class that never would have before. It's up to them from there.
-- modified at 10:11 Sunday 27th May, 2007
|
|
|
|
|
WOOHOO! Atari BASIC!
10 PRINT "I learned all I needed to know (apart from *s) on Atari BASIC!"
20 GOTO 10
Taught myself how to code on an 800XL from '85 to about '90 I think. Then I moved on to an Amiga and learned a bit of FORTH. By '93/'94 I was on to SPARCs and C at Uni.
I think as a result of my dynamic background I've become quite language Agnostic: I hate 'em all for one reason or another
|
|
|
|
|
What area of programming are u aiming at. Is it database, games, desktop, mobile etc
|
|
|
|
|
How can I find/get all the ip addresses of workstations connected in lan including the server using vb 2005?
I do appreciate it if you could give some working code. And from that I can start modifying it to suit my needs.
I am new to vb.net programming and I need advice/help from other coders.
Thanks!
BM
|
|
|
|
|
There is no central list that is maintained. You'd have to generate a list of valid IP addresses for your network and PING each one, checking to see if the target address responds. The response can come from ANY device at that address, not just a workstation or server.
If you're new to programming, you're going to have a very difficult time with this. This isn't exactly a newbie-level project. This is more moderate to advanced.
No, I don't have any example code to post.
|
|
|
|
|
Dear expert,
I have used VB.NET with serial port to recivev data from Fire alrm. Data is same as one that printed.
I user Hyperterm to connect and it can receiv data correctly. BUT when I try to connect with VB.NET the message appear gargabe,which seems like you have delected incorrect parameter.
I have try many apps and it appear to be same. The only work is hyerterm so mu question :
Does Hypterm do any thing with input ?
How can we deal with this situation ?
in .NET, data must be converted or not ?
sanong
|
|
|
|
|
Actually Hyperterminal does nothing special other than handling properly serial communication (!).
I suggest you to check Hyperterminal serial communication settings and try to reproduce them in you application.
If the application still remains unable to communicate, post the relevant code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi Pallini,
Thank you for reply.
I am really stuggling with this behaviour. Let me tell you more details:
We have Notify NFS 640 fire alarm panel,and I am writing Simple Terminal to capture alarm data from Printer Port(from panel TX\RX\CS). Printer epson is also connected same port (split cable) and it print fine. But on the other end, I have tested my program, Microsoft's VBTerm, PowerTCP emulator, and others, all failed to obtain correct data from port. Below are samples of actual data which taken from same source but from different programs. So I am not sure what is so special with HyperTerm that it can interpret correct data and other program cannot.
Incorrect output from:VBterm,PowerTCP, and others
=======================================
SYSิลM าลSลิ 0ฒ:ด0P 05ฒ60ท
Correct output from HyperTerm
=============================
SYSTEM RESET 09:36A 052707 Sun
I am suspecting :
1. text sent from panel has encoded for printer which I dont know about
2. or other unknow issue
I welcome all recommendation.
thank you in advance,
|
|
|
|
|
Hyperterminal is using one set of COM parameters and everything else you've used is using another set. These include Baud rate, data bits, stops bits, even or odd or no parity, handshaking, ... Write down ALL the communication parameters that HyperTerminal is using and duplicate them in your code.
|
|
|
|
|
|
Hi All
I want ask you how can i use tree wiew in VB.NET to brows for folders
in specific drive(c:\,d:\,.....)
i want to view all files and i want to open them when them clicked
(i want VB.NET code to implemnt this problem in other words my problem seem like Tree of folders in windows when we select folder all it's content are open beside it and we can select any file by click on it)
|
|
|
|
|
i am not sure what you are looking for but you can use the OpenFileDialog found in VB.NET
if this is not good for you and you want to implement something like windows explorer you have to write your own code to browse files and folders and add them to the tree view.
hope this helps you
|
|
|
|