Visual Basic 2005 Calculator
Hello i need the code or a link to a website that has a tutorial on how to write a basic calculator in Visual basic 2005.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Code Change From Visual Basic.net - Visual Studio 2005
I am working on a tuturial that i have for Visual basic.net ( for now )
I am working with Visual Studio 2005.
I have been working on a code to change the text color by the name put into
the text box.
Visual Basic .Net code.
Label2.ForeColor = Color.FromName(TextBox1.Text)
i get the error
Name 'Color' is not declared.
I was wondering if someone can show me how things would be in Visual Studio.
Visual Basic 2005
Does anybody know if their is a version of VB8 (2005) that doesn't have .net framework?
Help With Visual Basic 2005
in the form where the timer was placed
in its percedure i have it call my code up in the module
OK my problem is that
i have a splash form and i set the interval for 6 second(6000 (MilliSeconds))
The problem is it doisnt do Anything.
Public Function Timer11() As Object
Dim Timer1 As New Timer
Timer1.Interval = 6000
Timer1.Enabled = True
If Timer1.Interval = 6000 Then
Timer1.Enabled = False
here is where the code is being called
Private Sub Timer1_Tick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Timer1.Tick
Visual Basic 2005 Help
I was asked to develop a program using visual basic 2005 called sliding puzzle.
How to develop?
Visual Basic 6 Or 2005?
i have vb 6 and 2005 but i dont know what is it the differences?
somebody can explain me?
visual basic 2005=visual basic 6+something? or dont contain the whole vb6 command and object?
Visual Basic 2005
I have the following code and it displays the first 4 lines of data from the car.txt file just as I want. However, I have two other cars to display. I know I need to add a do/loop command but anyway I try to add it, I just get errors and no data. Please advise how those would be added so additonal vin numbers can be displayed in the Combo Box from the car.txt file. Thanks for your help. Jo Ann
Private Sub DisplayRecord()
'Read and display the next record.
Dim vinString As String
If vinStreamreader.Peek <> -1 Then
vinString = vinStreamreader.ReadLine()
Me.ComboBox1.Text = (vinString)
Me.Label4.Text = vinStreamreader.ReadLine()
Me.Label5.Text = vinStreamreader.ReadLine()
Me.Label6.Text = vinStreamreader.ReadLine()
Visual Basic 2005?
i have a question, will activex controls that work with vb 6 work with Visual Basic 2005?
also when is Visual Basic 2005 expected to be released?
Visual Basic Calculator
tring to create a calculator in vb.. but i need to know how can i skip certain empty text box, that are 0 or ""? also i want it so that when i click on calculate, it will just calculate everything at once... because right now.. if the text box is empty i have to click on calculate 2 times so i can add a 1 to that textbox and then click agian to calculate. but i want it to just skip it.
Private Sub Command1_Click()
Dim hr_1 As Variant
If hr1.Text = "" Then
hr1.Text = 1
ElseIf dt1.Text = "" Then
dt1.Text = 1
ElseIf ot1.Text = "" Then
ot1.Text = 1
ElseIf rt1.Text = "" Then
rt1.Text = 1
hr_1 = Val(hr1.Text) * Val(dt1.Text) * Val(ot1.Text) * Val(rt1.Text)
value1.Caption = hr_1
this will only be calculating in multiplycation, also as you can see i have hr_1 dim as variante, is there a float? how can i better this code.
Directsound With Visual Basic 2005???
Hello...I've made a program with Visual Basic 2005 which plays .wav files using DirectX 8 DirectSound...but I can't find a way to add effects such as Echo or Distortion to a buffer...methods for doing this in VB6 don't seem to work at all so directx4vb.com didn't help....could someone please help me with this problem?
Visual Basic 2005 Question
Hello i am using Visual Studio 2005 with Visual Basic 2005. I have written a few basic programs and published them, they work fine on my main computer but when i try to install or run them on any other of my computers it says it wants to install NET Framework 2.0. Surely i dont have todo this on every computer i want to run my software on do i?
New To Visual Basic Studio 2005
I'm new to visual basic studio. Is there anyone who could help me with a problem (which is huge for me!) but probably small for your guys.
I found out how to make a certain form open when clicking a button. Good for me!!!
But it stopped when I tried to put a combo box on a form. I have a data connected to my project. also made a dataset that would suit filling needs for combo list.
I made a custom query inside tableadapter.
Just how can I see all the data.
I Access that was easy as it could possibly be.
Thanks for your comments in advance
I'd appreciate your help very much.
A Beginner Boy In Visual Basic 2005
I'm having some problems with a listbox.I want that when the user right clicks on
the listbox to select the item that the cursor in on.I mean to obtain the same effect as left clicking on the items of the listbox.I'm learning VB for 3 months,and I think is great.Thanx!
Exporting In Visual Basic 2005
How can I save a file as an executable exe so that i can put a program on another computer and run it without having VB installed on that computer.
Visual Basic 6 & SqlServer 2005
Running 2 sql server 2005 databases. Using same program to go to both databases. 1 Database is running on a Windows XP Pro machine the other on a Win2003 Server machine. Run an update against a table on the XP machine and it works, the update against the Server 2003 machine does not update the table. ?? Are there different configurations for different OS's? What are the possibilities for what is happening? Do I have to code differently depending on the OS?
Again the same exact code is being used to run the update in both places.
Visual Basic 2005 Forms
I am currently learning Visual Basic 2005, I have experience using Access and VBA. In Access I can drag a table or form inside another form, and Access links both forms/tables. The result is that a sub-form is created, and when the primary record is changed, related records are shown on the sub-form. I tried to do this in VB 2005, but records are not sincronized (each table shows all it's records). Does anybody know how could this be done inVB2005? Thanks.
MySql And Visual Basic 2005
Hi, I am writing a program to utilize a MySql DB on another server over a tcp/ip network.
Where do I begin to look for connecting to the mysql db?
Should I use ADODB.Connection
because this will not work for me.
Visual Basic 2005 Express
Probable a dumb question, but I'm just trying to learn VB and this is driving me crazy. I'm using VB 2005 express, I've created a small windows app, after I've closed it and re-open it, I can only see the code window, I can't see the graphic respresentation of the form. (form1.vb design). How can I get that view back?
Thanks in advance!
What happens if you get scared half to death twice?
Visual Basic 2005 And SQL Search
I'm new with visual basic 2005. I have used visual basic 6 for years and can do this in 6. I'm forcing my self to use 2005. What I need to do is have a text box that I can use to input a string value to search a data grid. Can anyone give me some pointers on what to do. I've been at this for days. Please help...
Visual Basic 2005 Express.
Does it have some limitations that the purchased versions don't have?
The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge.
Need Serious Help With Visual Basic 6.0 Standard Calculator
Hi, everyone. I am a Visual Basic 6.0 newbie and I a experimenting with creating a Standard Calculator. I woul reeeeally like it to behave exactly like the Windows Calculato in that the number buttons behave the same, the display behave the same, the memory store text box behaves the same.
However, I don't want the calculation of percentage to be th same. I want it to be like this:
Suppose you want to find 40% * 200 (40 percent of 200).
I want the calculation to be like this (these are the buttons t be pressed): 40 % * 200 =
This should give the correct answer of 80
Can someone pleeease look at the code and modify it with simpl variable names and easy code to get all the functions of th calculator correct and send back the code to me.
It would be really appreciated.
The appearance of the calculator is just like the Window Standard Calculator.
Here are the Items and the Names given to the controls
Item Control Name
Display field (at the top) lblDisplay
Memory store field (top left) txtMemStore
Here is the code:
'Initialization routine for the form.
'Set all variables to initial values.
DecimalFlag = False
LastInput = "NONE"
lblDisplay = Format("0")
'Click event procedure for the number Zero ( 0 ) button.
If Value <= 4 Then
EqualSign = EqualSign + 1
If NumberClicked = 1 Then
lblDisplay = ""
NumberClicked = 0
If Val(lblDisplay) > 0 Or Val(lblDisplay) < 0 Or DecimalValue = Then
lblDisplay = lblDisplay + "0"
lblDisplay = "0"
NumberClicked = 1
If DisplayOff = 0 Then
'Click event procedure for the number One ( 1 ) button.
lblDisplay = lblDisplay + "1"
If DisplayOff = "0" Then
'Click event procedure for the number Two ( 2 ) button.
lblDisplay = lblDisplay + "2"
If DisplayOff = "0" Then
'Click event procedure for the number Three ( 3 ) button.
lblDisplay = lblDisplay + "3"
If DisplayOff = "0" Then
'Click event procedure
Switch Case In Visual Basic 2005
i do not know how to do a basic switch case in visual basic 2005?
i need help..i appreciate any type of simple switch case statement
Visual Basic 2005 Express Beta
I just downloaded the beta of VB Express 2005. I was messing around with it and I found out that some things are very irritating considering the fact that I come from a VB6 environment that I thought you all should know about.
1. Most of the names of some controls that we are accustomed to in VB6 are totally changed around and I found it hard to find some of the controls. Frames, for example, are the same thing as something like 4 different controls in VB Express 2005 that each have different names.
2. The code has changed quite a bit from VB6 which we all knew was coming considering the fact that Microsoft is aiming more towards their .NET architecture. From what I can tell by looking at the code, each form that is added to the project is declared in the code by a corresponding class. Then the sub procedure has changed from the simple ones we had in VB6. This is the way it looks in VB Express 2005:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(New System.Uri(TextBox1.Text)) End SubEnd Class
That was part of the tutorial program they had you write that did a web browser. I don't know if it's just me but I think that they tried to make Visual Studio a little too user friendly and in turn took away from the ease of learning the language because if I have to re-learn VB because of all the new APIs they put in there to make it user friendly, then I quit programming VB. If someone would care to share their feelings on the matter or whatever, post back.
Shortcuts For Visual Basic 2005 Express
I tried messing with the code below to create shortcuts but Visual Basic 2005 Express doesnt recognize anything in red so if someone could help with this I would be much appreciated. Is it different for vb 2k5 express? I am not sure how each version differs as I am new to vb.
Dim VBD As IWshRuntimeLibray.IWshURLShortcut_Class
Dim VBExe As IWshRuntimeLibrary.IwshShortcut_Class
Dim VBPath As String
VBD = MyShell.CreateShortcut _
(MyShell.SpecialFolders("AllUsersDesktop") & _
VBD.TargetPath = "www.pinnaclepublishing.com/vbd"
VBPath = _
"C:Program FilesMicrosoft Visual StudioVB98VB6.EXE"
VBExe = MyShell.CreateShortcut _
VBExe.TargetPath = VBPath
How To Do Visual Basic 2005 Ascii Convert?
I need some help...
I'm using Visual Basic 2005..
I now doing an application that will
Receive 2Byte Hex data.. and show in textBox..
But recently i found that my textBox cannot show Hex!! :'(
I need to take Received Hex data and change it to Ascii then put it into textBox..
So that when we display at the textBox.. the textBox will show the Hex..
Please help me..
SQL Express 2005 Replication Via Visual Basic
Is there a way where you can programmatically (via visual basic) replicate two or more SQL Express databases located on multiple computers without the need of SQL Server 2005 acting as a publisher. From what i understand this is a limitation in SQL Express.
Right now i have SQL Express installed on 2 machines. I am able via vb to communicate with each database, read and write data between databases but cannot seem to figure out how to perform a simple replication.
How Do I Add My Access Database To A Visual Basic 2005
May be I am asking the wrong question so please be patient with me I am a newbee at this database lark!
I have created a form in visual Basic 2005 as a windows application project and would like this to replace the switchboard in my access datbase.
1. can this be done
2. If so how do i go about inputing the code.
3. If I create a button on the visual formis the coding the same as with access switchboard forms buttons.
The other problem is when I create the application using the wizard in visual 2005 will it hide the database from the user, because all I want them to see is the switchboard to appear as if just a program on it's own.
Any help on this project much appreicated.
Logging Into A Webpage Through Visual Basic 2005 Webbrowser
Im trying to make a webclient for a particular site. I want to store the login information so it logs into the site when the form loads. for this i need to write the information from a storage space (not sure what i'm going to use, be it database or text file) into a textbox within a browser (the default browser created by visual basic 2005 express edition, webbrowser1). I just don't know how to focus an specific textbox within a webpage to allow the login. The username textbox on the page is called "user_name" but i don't know how to copy the text into it. i have tried using "user_name.webbrowser1.a number of different commands (e.g. text) = username" but the "variable" user_name needs declaring. any help would be greatly appreciated. Thanks in advance
An Introduction To Programming Using Microsoft Visual Basic 2005
Hi there, I'm a computer engineering teacher for a grade 10 class in a school in Ontario, Canada. I am currently using the book called "An Introduction to Programming Using Microsoft Visual Basic 2005" (Author: Beth Brown) to teach my class with. Grade 10 course for computer engineering is for beginners and people who are still new to VB or have limited knowledge of VB.
My question and request is if anyone has the answers or codes(or know a source to) the excercise questions in the book. I need this for my class and for myself in the future for classes in following semesters.
If anyone knows this book, I'd appreciate the help.
Can Visual Basic 6.0 Use SourceSafe 2005's Web Service Capabilities?
I installed Visual SourceSafe 2005 on my machine and it works fine with my Visual Basic 6.0 as far as regular LAN integration is concerned. I wanted to know if there was any way for Visual Basic 6.0 to make use of the remote check-in/check-out capabilities in SourceSafe 2005. From reading the documentation it seems to me that the service is not actually accessed from within SourceSafe but rather from within Visual Studio 2005. Is there any way I can open up a SourceSafe 2005 database over the internet through SourceSafe 2005? If it is limited to access only via VS 2005 then I am not quite sure how I could grab my VB 6 files...
I was not really sure where else to post this so if it is in the wrong place let me know and I will post in the proper forum.
Need Help In Microsoft Visual Basic 2005 Express Beta 2!
i am making a program and i am wondering how to make the scrollbar scroll down in a program. i also want to know how you get data to save in a program when a user of the program types it in, after it stops running.(so that when you open it againg, it is still there.)
Good Resources/Books For Visual Basic 2005
Hi, I am a newbie for Visual Studio 2005, I never use Visual Basic before. I am trying to create a simple database driven application. If any one could help to me find a good online resources or good book for Visual basic 2005 that will be a great help for me.
I am trying to do these simple tasks
Connect to MS Access Database
Run a SQL Queries (Query parameters need to be change dynamically)
Search database using user inputs
Generate simple reports for resulting data
If possible create a excel file using resulting data
Thanks in advance
How To Connect To Access Database Progranetically In Visual Basic 2005
In visual basic 6, i used
public conn as ADODB.connection
and other codes to connect and access database.
But, i dont find how to use ADO.net to connect and access data from access database in a way that i can create sql in runtime and execute like i used to do in VB
where rs is an object of recordset and conn is object of connection under ADODB, and sql is string.
Please, anyone help me. I am stuck with this problem
Visual Basic 2005 Express (executing Proprietary Scanner Application)
Anybody Help please?
I have built a VB 2005 Express project which I would like to code an event to launch a scanner (TWAIN device) software/application upon demand (i.e. PanasonicUserUtility.exe). I've invested in Viscom's ScannerActiveX which offers easy "drag and drop" of an actual prefabricated form design and code. It provides a quick and easy way to capture image from all the TWAIN compliant scanners and webcam devices (and Export & Print BMP, GIF, JPG, PNG, TIF, PDF files) at a click of the mouse. "Great!" you say? NO. My problem is that this prefabricated control panel form for the devices does not behave with my users scanning devices & software (HP Director for example).
Bottom line: Is there any event code ya'll can share so that my user might click a toolbox object (button) and it launches a specified .exe utility? (Such as: open "C:PanasonicUserUtily.exe" as...)
ANY VISUAL BASIC VERSION
Warren aka: hewey71
Opening A Form In Microsoft Visual Basic 2005 Express Edition
I've been using VB in Access, but have just started using VB 2005 a couple of days ago, so I'm pretty much a newbie
I have searched the other threads in the forum, but cant seem to be able to use the following code
neither can i use the following code
I'm sure that this is pretty elementary, but I'd really appreciate some help.
Thanks in advance!
Visual Basic 2005 Express (executing Proprietary Scanner Application)
I have built a VB 2005 Express project which I would like to code
an event to launch my scanner (TWAIN device)
software/application upon demand (ie PanasonicUserUtility.exe).
I've invested in Viscom's ScannerActiveX which offers easy "drag
and drop" of an actual prefabricated form design and code. It
provides a quick and easy way to capture image from all the
TWAIN compliant scanners and webcam devices (and Export,
Printing BMP, GIF, JPG, PNG, TIF, PDF files)at a click of the
mouse. "Great!" you say? NO.
My problem is that this prefabricated control panel for the
devices does not behave with my users scanning software (HP
Director for example).
Bottom line: Is there any event code ya'll can share so that I
might click a toolbox object and it launches a specified .exe
utility? (ANY VISUAL BASIC VERSION)
Warren in Atlanta
Save/Load Rich Text In/from Image Field (for Visual Basic 2005)
I want to save the content of a rich text box (also containing images) to an image field in MS SQL Server 2005 and also load this data back to a rich text box via ADO.NET.
(It is no problem to save/load the data to a file but this solution is not sufficient.)
Thanks for any help!!!
Visual Basic 2005 &"express&" / Properties Stuck!
I get the properties window stuck on Procedure attributes of the control I click, rather than it's properties... Maybe it's just something about VB ever since the first .NET version that I don't get... Please help!
I don't know if this beta error, but I doubt it, because it happens all the time and would be a too obvious bug not to be fixed...
Free VB Express:
Edited by - WillKoh on 2/17/2005 1:53:18 AM
Visual Studio 2005 BUG
I installed VS 2005 and i tried to create a new project but it didnt work I got an error :
(Exception from HRESULT: 0x8007007B)
As I looked for it in google i found that i causes because of "&" character in the path of project. That was true my username has "&" character in its and path was for ex: C:Documents and SettingsX & Y.....
I defined the project and templates directories as another path which doesnt have a "&" in it. But it still doesnt work
Do you know this problem and how can I solve it?
Visual Studio 6.0 & 2005
can visual studio 6.0 and visual studio 2005 exist on the same pc. I just received my VS2005 and I am hesitant in installing it.
Visual Studio 2005
I have an AAS degree as a Programmer/Analyst that I received about 2 1/2 years ago but I never went out and pursued that career because the job market was next to nothing and I was already making pretty good money at the time. I have been programming Databases like mad for the past year (for my own enjoyment) and I am thinking about changing jobs.
So this leads to a couple of questions.
I am pretty green in the programming lingo. I am using Visual Studio 6.0 Professional and I am wondering if it is pretty much outdated. Should I go out and buy Visual Studio 2005, and if so, should I be getting the standard or pro edition? What are the differences between these two editions? I basically want to do database programming with VB, C#, and maybe C++ using the jet engine. Plus I want to be able to use all of the components that are offered in 6.0 Professional.
Plus, what exactly is .NET and what is the difference between Visual Studio .NET and the other versions?
I appreciate any response but please keep it pretty basic. Everything looks like a sales pitch on the Microsoft website so I would like to hear from some experienced people.
Visual Studio 2005
Hi, I would like to know does MS Visual Studio 2005 can be use to develop a web based application by VB.Net? I only saw it could be write by asp.Net, but have no idea for vb.Net.
Pls help this newbies to solve her problem. thanks.