Home › Forums › Computers / Electronics / Online › CR Techies: Visual Basic
- This topic has 16 replies, 7 voices, and was last updated 12 years, 5 months ago by dash™.
-
AuthorPosts
-
July 2, 2012 10:13 pm at 10:13 pm #603966ChortkovParticipant
Does anybody here have any experience with Visual Basic programming? I have learnt the basics, but i was wondering if anybody wants to share code snippets here.
I have basically worked out the code, but not how to implement it powerfully – i can make programs like calculators, word processors, spell checkers and the like, but nothing that will link with the external computer. For example – using the Visual Basic GUI to create a taskbar button, or to change the wording on the ‘Start’ button at the bottom-left corner of the screen. Does anybody know how to import system information into the program?
And also, although this is really basic, can somebody teach me the Do…Loop..Until command sequence?
July 2, 2012 10:48 pm at 10:48 pm #885525jbaldy22Membertry w3schools they are a very good resource and will have all the answers you need – personally unsure as to why you are learning visual basic and not java.
July 2, 2012 10:55 pm at 10:55 pm #885526ChortkovParticipantIs Java a Graphic User Interface (GUI)? Is it code or can you actually design the program yourself by drawing up the buttons and text boxes, and simply filling in the code yourself?
Also, I found the program on my computer (the visual basic 6 interface), and i just started on it. VBA is also useful for macros in any Microsoft Office program.
What are the pros and cons of Java? What are the pros and cons of VB?
July 2, 2012 11:50 pm at 11:50 pm #885527ItcheSrulikMemberPros of Java: It’s a powerful cross-platform programming language that is similar to C++ but easier to learn
Cons: you can’t do low-level systems stuff with it. Some things are counterintuitive and hard to learn
Pros of VB: You can start writing complex GUI programs as soon as you start learning
Cons: You can’t do anything serious beyond macros.
July 3, 2012 2:37 am at 2:37 am #885528pcozMembermamash ah shaygetz – I used to work for a corporate running approx $150m printing business on a VB app
July 3, 2012 12:28 pm at 12:28 pm #885529HaLeiViParticipantUsing VB you can start with VB.NET, and build pretty advanced applications. However, you still can’t do low level programming.
July 3, 2012 11:08 pm at 11:08 pm #885530pcozMemberIt is incredibly unlikely that the shoel wants to do low level programming that would not be possible in VB.net
July 4, 2012 1:03 pm at 1:03 pm #885531ChortkovParticipantRPT: Does anybody know how to access information on VB from a different source on the computer? [E.g. to get the Username of the current logged on user, or to work out the Version of WIndows, or anything tiny like that]
July 5, 2012 5:03 am at 5:03 am #885532pcozMemberAll these things are pretty much command line utilities that are included in a standard windows install. You could call the exe’s from within the VB app, there are probably fancier ways of doing this though.
Maybe have a look for command line utilities that will give you the info you need and then figure out how to call them
July 5, 2012 5:32 am at 5:32 am #885533jbaldy22Memberyou could just use a simple shell command if thats what you are looking for
July 5, 2012 10:42 am at 10:42 am #8855342scentsParticipantSome of our systems are written in VB, the Pro is that anyone with just a little programing knowledge can right away see how the software is constructed.
in reality, almost anything can be done with any language, you would just need a different approach.
July 5, 2012 12:37 pm at 12:37 pm #885535ChortkovParticipantCan somebody like give me an example? A sample code line?
July 6, 2012 2:01 am at 2:01 am #885536pcozMemberlook for SystemInformation.UserName on msdn
July 16, 2012 7:22 pm at 7:22 pm #8855372scentsParticipantA great book, Sam Teach yourself programming in 24 hours.
July 17, 2012 2:07 am at 2:07 am #885538HaLeiViParticipant2scents, one thing I tried to do and found no work-around for, is to recover data. There is just no way to access the hard drive raw.
July 17, 2012 2:23 am at 2:23 am #885539pcozMemberTry python
July 17, 2012 10:48 pm at 10:48 pm #885541dash™Participant2scents, one thing I tried to do and found no work-around for, is to recover data. There is just no way to access the hard drive raw.
This isn’t an VB issue, in VB you can make any API call including those involving RawDisk and it will work if you run it on older versions of Windows. The problem is that any User Mode program has limited access to RawDisk regardless of group membership.
-
AuthorPosts
- You must be logged in to reply to this topic.