The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for VB in Topics

VB question

Hi all. I am new to Visual Basic and am wondering how one would make a VB eBook reader. PLEASE READ! i know it can be done, i just haven't found a tutorial for making one. I have virtually no experience working with VB and little experiance programming. If you know of a link to a tutorial of this nature, PLEASE tell me. Thank you.

Question by dungeon runner  

vbs scripts

Does any one know vbs scripting if so comment cause I want to learn it. (please tell me codes)

Topic by animan1    |  last reply

vbs codes

Hi ...i am still learning  codes was trying to convert this bat codes to  vbs codes but i don't know how. can any one help me? this is the example of the bat codes, i really need your help. Thanks bro..: @echo off echo Hi guy, what do you want to open? set/p "cho=>" if %cho%==facebook start facebook.bat if %cho%==yahoomail start YahooMail.bat if %cho%==youtube start youtube.bat if %cho%==blackboard start blackboard.bat if %cho%==porno start porno.bat if %cho%==hacking start hacking.bat if %cho%==gmail start gmail.bat

Question by diki83  

VBS Commands

I want to know some more vbs commands. Please don't give me links to I've read all those I mean code chunks like these dim variable 0 - ok button only 1 - ok and cancel 2 - abort, retry and ignore 3 - yes no and cancel 4 - yes and no 5 - retry and cancel TO CHANGE THE SYMBOL (RIGHT NUMBER) 16 - critical message icon 32 - warning icon 48 - warning message 64 - info message DEFAULT BUTTON 0 = vbDefaultButton1 - First button is default 256 = vbDefaultButton2 - Second button is default 512 = vbDefaultButton3 - Third button is default 768 = vbDefaultButton4 - Fourth button is default SYSTEM MODAL 4096 = System modal, alert will by on top of all aplications Set Sapi = Wscript.CreateObject("SAPI.SpVoice") Sapi.speak "text here" Sapi.speak variable set wshshell = wscript.CreateObject("") "file.bat" Wscript. sleep duration object.sendkeys "keys" name=msgbox ("Message",0+16,"Title") name=inputbox ("Message",0+16,"Title") if then else end if

Topic by Super_Nerd    |  last reply

VB help, (text files)? Answered

Hi, so basically i need to create a .txt file when i press a button but it has to be named as what i entered into textbox1.text ANY HELP GUYSSS!!!!!!!!!

Question by wizzywoo    |  last reply

Input to text file in vbs

Im getting increasingly intested in vbs and was wondering how to make an input window for example "Your password" and the "password" could be saved in a txt file stored somewhere, i have the start but dont know where to go from there!"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""WScript.Echo "Your computer is being hacked please enter your password to stop hacker"Set WshShell = WScript.CreateObject("WScript.Shell")Password = InputBox("Please type your password.")""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""Thanks

Topic by k_man    |  last reply


Does anyone know some cool things that i can do with vbscript i mean i tried to find some stuff on the net ansd i did but i want to learn more lol.

Topic by rickick    |  last reply

What is wrong with this vbs script?

It is a program to add or remove printers on a local machine, and it works locally, but not when trying to run through group policy in the AD.  Btw, this is a friend's, not mine, so I can only answer so many questions.  Please help. Here is the code: PrnName = "Kyocera FS-1100 KX" Set objWshShell = WScript.CreateObject("WScript.Shell" ) 'retrieve username and computername strComputer = objWshShell.ExpandEnvironmentStrings("%COMPUTERNAME%" ) strUserName = objWshShell.ExpandEnvironmentStrings("%username%" ) strHome = objWshShell.ExpandEnvironmentStrings("%HOMEPATH%" ) strDrive = objWshShell.ExpandEnvironmentStrings("%HOMEDRIVE%" ) Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2" ) objWMIService.Security_.Privileges.AddAsString "SeLoadDriverPrivilege", True Set colInstalledPrinters = objWMIService.ExecQuery("Select * from Win32_Printer" ) Set dr = objWMIService.ExecQuery("Select * from Win32_Printer where DeviceID = 'Kyocera FS-1100 KX'" ) Set fs = CreateObject("Scripting.FileSystemObject" ) folder = strDrive & strHome if fs.FolderExists(folder) and dr.Count <> 0 then For Each objPrinter in colInstalledPrinters if objPrinter.DeviceID = PrnName then objPrinter.SetDefaultPrinter() end if Next else 'if fs.FolderExists(folder) and dr.Count = 0 then 'For Each objPrinter in colInstalledPrinters 'objPrinter.Delete_ 'Next 'end if if (fs.FolderExists(folder)) and (dr.Count = 0 or colInstalledPrinters.Count = 0) then ' Add a l'imprimante '''''''''''''''''''''''''' Set objPrinter = objWMIService.Get("Win32_Printer" ).SpawnInstance_ objPrinter.DriverName = PrnName objPrinter.PortName = "USB001" objPrinter.DeviceID = PrnName objPrinter.Location = "Imprimante installée sur la machine " & strComputer objPrinter.Comment = "Imprimante " & PrnName objPrinter.Network = False objPrinter.Put_ objPrinter.SetDefaultPrinter() end if For Each objPrinter in colInstalledPrinters if objPrinter.DeviceID = "Microsoft XPS Document Writer" or objPrinter.DeviceID = "PDF4U Adobe Creator" or objPrinter.DeviceID = "Microsoft Office Document Image Writer" then objPrinter.Delete_ end if Next ' restart spooler Set objSpoolerSvc = objWMIService.Get("Win32_Service.Name='spooler'" ) iReturn = objSpoolerSvc.StopService() iReturn = objSpoolerSvc.StartService() wscript.quit end if 'For Each User In objlocal 'If lcase(User.Name) = lcase(strUserName) Then 'Set objUser = GetObject("WinNT://" & strComputer & "/username, " & strUserName) 'msgbox User.Name & " already exists." & vbCrLf & "The password was re-set." 'WScript.Quit 'End If 'Next 'End Sub 'strCommand = "rundll32 printui.dll,PrintUIEntry /y /n Kyocera FS-1100 KX /f /r USB001" 'intResult = ("rundll32 printui.dll,PrintUIEntry /p /n Kyocera FS-1100 KX" , 0, true)

Question by geekvig    |  last reply

simulation error? Answered

Main:irin [1000,main],C.3,b0 if b0=16 then ahead if b0=18 then right if b0=19 then left ahead:high C.0,B.5 ,C.1,B.4 pause 300 goto main right: high B.5,B.4 pause 300 goto main left: high C.0,C.1 pause 300 goto main this is the code when i try to simulate it  the programming editor says variable not found can you please tell me the reason

Question by robot1398    |  last reply

All you VB Script Kiddies!

Post your scripts!!!totally script-kiddie-ish script, will it work:sub pwn()lol = msgbox ("Critical error!" ,16, "ERROR") pwn()end subpwn()

Topic by BatchMan    |  last reply

I need some VBS commands? Answered

Hello there...i need a good list of VBS commands...please explain the code and what it does...all is welcome :)

Question by fwjs28    |  last reply

whats wrong with my vbs code? Answered

Here it is:MsgBox("virus detected") MsgBox("windows will now perform system format to attempt to get rid of the virus")MsgBox("formatting system...")  MsgBox("warningram = failedhard disk = failedsystem firewall = failedplease shutdown the system and seek proffesional advice") it says terminated string constant can someone please point out my mistake?

Question by sharlston    |  last reply

How can I fix this? VBS

X =msgbox("Do you wish to restart?",4+16+4096,"Critical Errror") if VByes Then CreateObject("WScript.Shell").Run "shutdown.bat" ElseIf VBno Then CreateObject("WScript.Shell").Run "shutdown.bat" I want both the yes and no to do the same thing when pressed

Question by metalshiflet    |  last reply

VB 2008 AxWindowsMediaPlayer Control Help?

Hey everyone. If your an advanced user in Visual Basics 2008 Express Edition, I could use some help. Right now, I'm working on a video presentation program for my Home Theater PC. I'm planning on hooking up my computer to my T.V and using it as a secondary screen. I will then run an HDMI cable to my monitor, and use that as my main screen. My mouse and keyboard are wireless so it won't pose a problem. But, anyways. I'm getting off topic... I made a form with a bunch of controls on it. It has 10 textboxes for video URLs and 5 textboxes for audio URL. It has 2 AxWindowsMediaPlayers on it. One for music, the other for video. The main one (Bigger one) will be used for video, and it will also act as a control window. So, when I click play one one the textboxes, it will open the file up one both Media Players and will begin to play. I know the coding for that, its just I need to know how to control the 3rd Media Player, on a different form. So basically, the 3rd Media Player would copy the 1st media player. Any help would be much appreciated.  Thanks. 

Question by brandencota  

How to make barcode using VB.NET

I need to make a barcode in my Visual Basic .NET projects? Is there any available solutions? Can you help me with code?

Topic by ellismadison275    |  last reply

What is the code to create a pause-able download manager in VB.NET?

I want to create a application whose function is to download a very large file from the internet. The application must be coded in such a way that the download can be paused and the rest of the file can be downloaded at a later date. There will be only one URL of the file which is to be downloaded so there will be no need of placing a text box control on the application's form. i want the code or the source files of this type of application. Can any one provide it to me ? I will be really thankful to him/her who provides it to me. Contact email :

Question by Soumya Kanti Sar    |  last reply


I am creating a game for my class at school using vb,and i am creating a game that is basically the Blackberry"Bubble Popper". There are a bunch or little balls on the form( all random colors and painted in vb) i have the game board set up and everything, i just can not figure out how to use the timer to make the game work. What i want to do is have all the balls running on one timer so that when a group of two or more balls the same color are clicked they disappear, giving the player a point for each ball popped and then the balls above must fall into the empty places. INBOX ME FOR MORE DETAILED INFO AND IF YOU HAVE QUESTIONS

Question by rickick    |  last reply

Controlling multiple Arduino pins in VB or C#? Answered

How do I control different pins of an Arduino via VB or C#. Something simple, for instance; if I created 4 buttons. Button 1 would turn ON pin 13, button 2 would turn OFF pin 13. Button 3 would turn ON pin 12 and button 4 would OFF pin 12. I know that it works via a serial port, but I can only control 1 pin. Simple stuff, but I just can't figure it out. PLEASE HELP!!!!

Question by cmcg182    |  last reply

Best Batch and vbs commands/ code chunks/ programs... library

Hey everyone who likes batch or vbs read this... Please list any programs commands or code chunks to this forum so that instructables can have a near complete code library.

Topic by Super_Nerd    |  last reply

Does anyone have any vbs mapi and tapi commands? Answered

The title pretty much says it. I wondered how to send e-mails or make phone calls through vbs. Also... are there any mapi commands for receiving e-mails?

Question by Super_Nerd    |  last reply

Is there a systematic way to use VBScript?

I want to learn how to make all of those things.

Question by PKTraceur    |  last reply

what is vbCr in vb 2010 ? And, must we add vbCr to send a string to serialport ? Answered

I want to send and receive at command to my phone using vb

Question by Rendydevara    |  last reply

Is it possible to upload a new Arduino, already compiled sketch with VB or C?

Hello everyone, so my question is: Is it possible to upload already compiled sketch with the Arduino IDE (.ini file) with a program created in VB or C?

Question by mart225    |  last reply

How to access Textbox & Command button in JAR application?

 I am new to VBS. I need to write a VBS script for accessing Textboxes & Command button in JAR application. As of now, I am able to open that application using WShell codes in VBS.

Question by Justlogin  

What else is there?

What other prgrams are "pre loaded" on my computer such as batch and vbs.  That i can make my own files with?

Question by Laserman595    |  last reply

make interface for sending text (using vb6) to a running led matrix arduino uno?

I was succed to make my running led matrix using arduino uno, now i get trouble to make interfaceng for it (sending text etc). thanks alot for your replay..

Question by faisolhanif    |  last reply VLC plugin take screen shot from the running video ?

Hello every one, I'm making a program in VB.NET that includes a VLC Plugin, according to the video running in the plugin some actions will be taken, my problem is in making a simple button that simply takes a screen shot of that video, I tried to use : , but it gives me an error and I even can't know where will that snapshot will be saved ! So please help me in this, and another question ... how can I make it record too ?

Question by Hawk-Eagle    |  last reply

Product recognition?

Hey, I have a science fair coming up and had a really good thought, however I'm not sure how I would go about doing it... So the thought is a refrigerator with product recognition abilities. Basically there will be something with basic information under a product (bottles, cans, etc.) which maybe has the expiration date and the bar-code number (maybe just the bar-code number). So in the fridge, there will be a sensor of some kind to recognize the products. Then that will be transferred to a computer so it can display a list of the things inside the refrigerator. I have a good knowledge of and basic knowledge of electronics (resistors, capacitors, transistors, SCRs etc.). I really have no idea for how this would work out, I know it's doable but not sure how.

Question by Seifpic    |  last reply

How do i connect my created device into my program?

I am creating an ultrasonic device which i want to interface into my program, how is it possible? please help me anyone..

Question by vpuato    |  last reply

Batch files?

Hey people! Just so you know, im sorta new at this whole 'computer' tech thing. I was wondering how i could learn how to write batch, VBS, HTML, and JAVAScript. Please help, thanks

Topic by B.F.L.M    |  last reply

how do you make a picture pop up using notepad and saving it as a .vbs file?

I am trying to figure out how to make a picture pop up using notepad and saving it as a .vbs file?how do you make it pop up after this script code:dim answeranswer=MsgBox("hello",16,"hello")answer=MsgBox("how are you", 16,"hello")*selected picture*answer=MsgBox("yes", 16,"hello")using notepad and saved as a .vbs file.Your help will be greatly appreciated.

Question by salvador13    |  last reply

How do I control DC &amp; Stepper motors using my PC?

I need to control 4 DC motors (no speed control, only direction) and 1 stepper motor (again no speed control, only direction) for an engineering project of mine using a PC. I am not sure if I should use the serial or the parallel port. Also, I'm comfortable using VB. So it would be helpful if someone could help me with the interfacing circuits and the code or atleast point me to some resources! Please help!

Question by exchequer598    |  last reply

how can i let a picaxe 20m communicate with visual basic? Answered

Hello every one, i've just recieved some picaxe chips (the 20m version). I'm trying to communicate with the picaxe in visual basic but i can't get it working. I've searched quite alot on the internet and already saw this instructable . but it doesnt work for me. could any one help? (i use the axe027 download cable configured on port 2) edit: I've now asked the question on the picaxe forum

Question by selujtje    |  last reply

guitar tabbing program help? Answered

I am currently working on a program for guitar tabs. i can use excel to some degree. i am somewhat experianced in dos and visual basic.i need a way to get it to right a chord on a vertical line. then go back to the top of the next line. i need to be able to do that 32 times. so it would look something like this: |--3 that being the first 3 lines -3--|| |--2 then the program goes to -2--|| |--2 the top and types another chord -2--|| |--0 -0--|| |--1 -1--|| |--0 -0--||

Question by MrMystery96    |  last reply

how do you load a Java script Variable from a webpage into a VB program?

I would like to have the Visual Basic progam to load the user logged into Habbo via the variable habboName and make the title in the title bar (HabboName - HabbOS.)           Code: document.habboLoggedIn = true; var habboName = "Habboname"; var habboId = 25724911; var facebookUser = false; var habboReqPath = ""; var habboStaticFilePath = ""; var habboImagerUrl = "/habbo-imaging/"; var habboPartner = ""; var habboDefaultClientPopupUrl = ""; = "060fd7869028127ca5d9aa2f02167c8f4e70651d"; if (typeof HabboClient != "undefined") { HabboClient.windowName = "060fd7869028127ca5d9aa2f02167c8f4e70651d"; }  

Question by drmjj55  

Calling all VBScripters!

I am trying to create a vbs script that will use vocabulary databases to randomly choose words according to sentence structure, then using a large database (that tells what words are relevant to the random word chosen) it creates a basic sentence. With more complicated sentence structures there are more complicated. I need some other vbscripters to help. Here is how it works The program chose a statement sentence. The basic structure is noun verb Then the program choses a word Cats verb Finally using the matching database it creates a realisitic sentence Cats meowed. A more complex sentence would be article noun verb preposition pronoun noun article cat verb preposition pronoun noun article cat called preposition her kittens article cat called to her kittens The cat called to her kittens 

Topic by Super_Nerd    |  last reply

How do i identify drone camera wires?

Hi I have a small drone which was run over, but the camera survived and i'd like to re-purpose the little camera. The camera has only three wires on a connector, it has a space at the back for a micro sd card too. On the pcb where the three wireds are connected the black is marked vb-, the red is marked vb+ and the blue wire is marked P12. Obviosly vb+ & - are easy to desypher. Can anyone help me identify the P12 connection? Would this be a trigger wire of some sort and how do i connect it to actually trigger between capture picture/capture video/off? Also, is it safe to assume that if connected correctly, that this camera can work as a stand alone camera with no other interface being that it has a slot for micro sd card? Thanks in advance for any help :)

Question by GhengisKhan1981    |  last reply

Is there a way i can can control the arduino from a distance

(code and program wise) And not using the arduino's seral monitor? programs could be VB Pytham Pixilate... code ????????????

Question by Pyrotechnic-Robot    |  last reply

Help making a USB trigger, VB.NET coding, and interfacing the two in a wonderful harmony of code and circuits. Answered

Hey fellas, got some questions for you about making a USB trigger and interfacing it with a VB.NET program. Alright, so what I've got to do here is detect when a door is opened via a sensor (I've figured out that as far as practicality goes an ultrasonic or motion sensor would be the best, but I'm also considering a simple magnetic switch for the sake of simplicity and cost), and then play an audio file. I'd REALLY REALLY REALLY like to keep as much of the coding as possible done in VB.NET, and I don't want the end result to require the user to open five different programs, I want them to open the one .exe file, and that's it. My problem here is actually getting the trigger to talk to VB.NET, I've never done any peripherals with VB.NET, so I'm pretty clueless. I don't need the trigger to respond with any data other than some sort of ping that VB.NET can pick up. I've also been thinking about using the ultrasonic/motion sensor to interface with a USB keyboard encoder, to output some obscure character, and then have VB.NET watch for that character, and react when it's pressed. The problem here is that I don't want the program to have to be the main window, I want the user to be able to have it open and not worry about it. Any help that anyone can give me with either the coding side or with the trigger side is really appreciated, thank you all in advance :)

Question by iBurn    |  last reply

Program or script to change volume...? Answered

Another question that is way out of my league (woe is me).  I need (or rather want) a program, in either Java or VBs (if there's a better one like Python or something, that would be alright too) to change the volume of a Windows computer.  It would also be a good showcase of your skills to make it able to change the volume of a specific program or application.  The way I intend to use it is as if it were a function, rather than a program. So a different script will activate it (perhaps by writing it, which in Java I don't think is possible) and then set the volume and the program to change the volume of. If that can't be achieved, could it be made to read a text file (or something else) with two lines on it; the first the program, the second the volume. If the first line says something like none, It would change the volume of the whole computer. Hopefully I've given you a good enough description to make it clear exactly what to do. Thank you in advance.

Question by Prof. Pickle    |  last reply

where can i find non-HTML vbscript tutorials?

I have been hunting for a vbs tutorial and cant find one that follows up with anything can anyone help?

Question by eoscondor    |  last reply

on press visual basic?

This seems really simple but I just cannot find out how to make a program in visual basic that presses enter after any key is pressed. thank you in advance!

Question by FastLearner    |  last reply

C voice lessons?

Hiya! I just got a new Sansa fuze for Xmas (8 gigs, Installed Rockbox, IT ROCKS!!!) and I wana start learning C. I actually already started, But I best process info when I hear it. Where can I find simple English (Russian or Hebrew also welcome) lessons of the C programming language? I have learned the basics of both C# and VB 5.0, So it don't have to be THAT easy... any help?

Question by netbus  

My second instructabel... Make your windows xp talk !

Hey, check out my 2nd instructable in this site and tell me what you think about it...\Click here...

Topic by SCRIPTmaster    |  last reply

Anyone know of a good decompiler? Answered

I was recently asked to make some mods to a program I made a few years ago, however, I can't for the life of me find my source code.  Does anyone know of a free decompiler that I can use?  I tried a few that I found on Google, but they all wanted money, and I'm not willing to spend the money. I made the program with VB express 2005, (the file I want to decompile is a .exe file obviously) and I currently use Visual Studio 2010.  (I still have my VB 2005 install disc if I need it... but I think there is no reason why I should need it) Thanks in advance!

Question by thegeeke    |  last reply

learn vbscripting

I want to learn vbscripting can somebody give me a site i know some very basic stuff

Topic by I3uckwheat    |  last reply

HTA application help

Hello fellow friends, I have an HTA (HTML application) and im trying to create a button to change the "img src". Im attemping this by using a variable, but it doesnt work heres my code so far: Sub Window_Onload a="msgbox.jpg" End Sub Sub RunScript a="test.jpg" End Sub   Thanks in advance, -animan

Question by animan1    |  last reply

Adobe Flash to Blackberry application

I haven't developed anything in years (software). Back when I used to, there was an app that converted VB code to Palm apps. Is/are there apps out there that can do this for the Blackberry? I'd specifically like to develop an app with Flash and convert it for use on the Blackberry.

Question by Sovereignty  

How would i save text in a VBScript code? Answered

So far i can create a text file with this code : set objFile= CreateObject ("Scripting.FileSystemObject") Set textfile = objFile.CreateTextFile("Results.txt") but i dont know how i would save text to that file. any help?

Question by animan1    |  last reply

VBScript Addition Problems? Answered

Hello I Have a Addition Problem In VBScript. If i use 2 Inputboxes to get to numbers (Lets say 3 and 5), there both numeric (isNumeric return "True"), but when i add them (c=a+b) and then msgbox 'c' it comes up '35' not 8. PLEASE HELP ME

Question by animan1    |  last reply