Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Have You Ever Seen Bowling Score Calculator That Wrote It By Visual Basic?


I would like to have code for bowling score calculator. I have seen once but it's wrote in Java and it's shown in http://public.csusm.edu/public_html/veres/
I want to write the same as that but using Visual basic program.
Thank you very much for your time.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Bowling Score Algorithm
Hey everyone...

I am attempting to write a program that calculates the score of a bowling game. I have the pinfall's stored in a 2-d array

pinfall(n,m)
-where n is the framenumber 1-10 and m is the shot number 1,2

I am having trouble writing the code to calculate the score. If there are any suggestions, please post 'em

-Mike

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.

Code:


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
Else
hr_1 = Val(hr1.Text) * Val(dt1.Text) * Val(ot1.Text) * Val(rt1.Text)
value1.Caption = hr_1
End If
End Sub

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.

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.

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

Backspace cmdBackSpc

CE cmdClearCE

C cmdClearC

MC cmdMC

7 cmdSeven

8 cmdEight

9 cmdNine

/ cmdDivide

sqrt cmdSqRoot

MR cmdMR

4 cmdFour

5 cmdFive

6 cmdSix

* cmdMultiply

% cmdPercent

MS cmdMS

1 cmdOne

2 cmdTwo

3 cmdThree

- cmdMinus

1/x cmdFraction

M+ cmdMPlus

0 cmdZero

+/- cmdPlusMinus

cmdDecimal

+ cmdPlus

= cmdEqual



Here is the code:



Option Explicit

Dim NumberClicked
Dim Value
Dim NumberVal
Dim DisplayOff
Dim DecimalValue
Dim EqualSign
Dim DecimalFlag
Dim Percentage
Dim LastInput
Dim Previous
Dim ReadoutValue
Dim EqualTo
Dim Key
Dim Ready
Dim MaxLength

'Initialization routine for the form.
'Set all variables to initial values.

Sub Form_Load()

DecimalFlag = False
LastInput = "NONE"
lblDisplay = Format("0")

End Sub

'Click event procedure for the number Zero ( 0 ) button.

Sub cmdZero_Click()

If Value <= 4 Then
EqualSign = EqualSign + 1

End If

If NumberClicked = 1 Then
lblDisplay = ""
NumberClicked = 0

End If

If Val(lblDisplay) > 0 Or Val(lblDisplay) < 0 Or DecimalValue = Then
lblDisplay = lblDisplay + "0"

Else
lblDisplay = "0"
NumberClicked = 1

End If

If DisplayOff = 0 Then
lblDisplay.SetFocus

End If

End Sub

'Click event procedure for the number One ( 1 ) button.

Sub cmdOne_Click()

lblDisplay = lblDisplay + "1"

If DisplayOff = "0" Then
lblDisplay.SetFocus

End If

End Sub

'Click event procedure for the number Two ( 2 ) button.

Sub cmdTwo_Click()

lblDisplay = lblDisplay + "2"

If DisplayOff = "0" Then
lblDisplay.SetFocus

End If

End Sub

'Click event procedure for the number Three ( 3 ) button.

Sub cmdThree_Click()

lblDisplay = lblDisplay + "3"

If DisplayOff = "0" Then
lblDisplay.SetFocus

End If

End Sub

'Click event procedure

Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of

Dim oWord as new word.application
Dim oDoc as new word.document

fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.

What Can I do?

How Do I Run A Program I Made In Visual Basic On A Computer Without Visual Basic?
I created a program in Visual Basic and I was curious at what I needed to do to be able to install or use this program on a computer without Visual Basic. Any help would be great! Thanks in advance.

Extracting Visual Basic Source Code From Visual Basic EXE
hi everyone,

Well actually the problem in my case is that i had mad an EXE in VB6 around a week ago and had stored the EXE and th source code in two diferent folders. By mistake somebody ha deleted the source code folder. I wanted to make some changes i the EXE code and Now i have only the EXE folder to deal with.

Is there any method by which i can extract the Visual Basic cod from the VB EXE. Is there any application or software which ca help me in this? Do give me the hyperlink for downloading th EXE for the extraction if possible.

Please let me know at the earliest.

Thanks in advance.

Ankit

Calculator Button &gt; Basic
hello. i just started writing VB.net and needed someones help with 1 button which is left on my calculator. this is the code below. i have 10 buttons, 0-9, aswell as equals, dot, plus, clear and backspace. i want to have a button click event for the backspace button but have no idea on how to do it

thanks for any help. sorry if the code is a bit long.




Code:
Public Class Form1
Inherits System.Windows.Forms.Form

Dim calc1 As Double
Dim calc2 As Double

#Region " Windows Form Designer generated code "

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Enablebuttons()
End Sub
Private Sub Enablebuttons()
If txtDisplay.Text = "" Then
cmdPlus.Enabled = False
cmdBkSp.Enabled = False
Else
cmdPlus.Enabled = True
cmdBkSp.Enabled = True
End If

If txtDisplay.Text.Contains(".") Then
btnDot.Enabled = False
Else
btnDot.Enabled = True
End If
End Sub
Private Sub btnZero_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnZero.Click
txtDisplay.Text = txtDisplay.Text & btnZero.Text
Enablebuttons()
End Sub

Private Sub btnOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOne.Click
txtDisplay.Text = txtDisplay.Text & btnOne.Text
Enablebuttons()
End Sub

Private Sub btnTwo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTwo.Click
txtDisplay.Text = txtDisplay.Text & btnTwo.Text
Enablebuttons()
End Sub

Private Sub btnThree_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThree.Click
txtDisplay.Text = txtDisplay.Text & btnThree.Text
Enablebuttons()
End Sub

Private Sub btnFour_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFour.Click
txtDisplay.Text = txtDisplay.Text & btnFour.Text
Enablebuttons()
End Sub

Private Sub btnFive_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFive.Click
txtDisplay.Text = txtDisplay.Text & btnFive.Text
Enablebuttons()
End Sub

Private Sub btnSix_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSix.Click
txtDisplay.Text = txtDisplay.Text & btnSix.Text
Enablebuttons()
End Sub

Private Sub btnSeven_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSeven.Click
txtDisplay.Text = txtDisplay.Text & btnSeven.Text
Enablebuttons()
End Sub

Private Sub btnEight_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEight.Click
txtDisplay.Text = txtDisplay.Text & btnEight.Text
Enablebuttons()
End Sub

Private Sub btnNine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNine.Click
txtDisplay.Text = txtDisplay.Text & btnNine.Text
Enablebuttons()
End Sub

Private Sub cmdEquals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdEquals.Click
calc2 = calc1 + (txtDisplay.Text)
txtDisplay.Text = calc2
calc1 = 0
Enablebuttons()
End Sub

Private Sub cmdPlus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPlus.Click
calc1 = calc1 + Val(txtDisplay.Text)
txtDisplay.Clear()
Enablebuttons()
End Sub

Private Sub cmdClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdClear.Click
txtDisplay.Clear()
Enablebuttons()
End Sub

Private Sub btnDot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDot.Click
txtDisplay.Text = txtDisplay.Text & btnDot.Text
Enablebuttons()
End Sub

Private Sub cmdBkSp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdBkSp.Click

*** CODE NEEDED HERE

End Sub
End Class

Making A Basic Calculator (+, -, X, /)
Hello,

I just located this site and signed up today. I'm new to VB (1 week), am in a condensed 5-week "Introduction" course.

(1) Assignment is to create a basic calculator (numbers 0-9) with four arithmetic functions (+, -, x, /).

(2) First step: I created the actual calculator form in VB (title, display box, number buttons 0-9, four arithmetic buttons, decimal point button, and equal button). Didn't think you needed to see that generic code.

(3) Second step: I created a flowchart. Would appreciate expert critiques to review it and determine if my initial logic is on track. (Assuming major tasks need to be separate functions/calls(?) exact methods TBD later, premature for me at this point)

Thank you so much for some initial direction / help / advice.

Tried sending the Visio file, didn't work (duh) ... obviously cannot insert flowchart image into a text file ... so saved image as a .jpg file. Hope it converted correctly.

~ Juanita

Basic Calculator Problem
hello.
i am experimenting with visual basic 6 to learn it. the way i learn is by experimenting myself so i am making multiple programs. i made a calculator and all words well except the addition. the code for addition is

Answer.Text = Num1 + Num2

the user enters a number into field 1 which is Num1 and field two which is Num2 but when it adds, the answer comes out wrong. for example, 2 + 3 = 23 or 5 + 5 = 55
how come? and how can i limit it so only numbers can be entered into the text boxs?

thanks in advance.

Help With Making A Calculator On Visual 5
Hello,
can ne1 help me? i am makin a calculator on visual basic 5 and it need 2 be able 2 store 60 digits and have all main functions eg + - / * = and a +/- button. I have the + button and digit buttons workin but i am havin trouble with the = button, i know it has something 2 do with STRINGS. so if ne1 can help plz do so
thanks

VB Roman Calculator Basic Help - URGENT
sorry if someone has posted about this before, but i require serious help

i have desgined a roman calculator, that converts a roman numeral into an arabic number and adds them up, i have two problems however and require help.
my first problem is that i must have a function that has a value as a parameter, so how do i pass a value through the function, at the moment i have each roman numeral button calling the function up

also another problem i have is that the roman numerals must ALL be in descending order, not even IV is allowed, i am struggling to do this, i know that the code should check the numeral before and see if it is greater than or equal to, if it were smaller value, then it could bring up a message box, however i have no clue on doing this, also i have very basic programming knowledge

so could someone pls suggest a piece of code to do this, it must not have any complicated variables, as the only statements i know are select case, if , do while, for- next, mod, div, Len() and MID, so pls only use those statements

* I have uploaded my file for you to view(zip)*, as you can see it is very basic compared to the kind of variables i have seen posted in other examples of code.

Need Code Example Of Basic Calculator - RESOLVED
Hello everybody I'm Back....
I need a code example of a basic Calculator. Anybody got a peice of code I can expand on?

Thanks in advance

Charles



Edited by - kf4iis on 4/30/2004 9:40:05 PM

Bowling
im making a bowling game its pretty cool. i need to score it though. the code is attached below. can anyone write a bowling scorer sub or function. i cant figure it out. there are some java ones but i dont know java. if anyone can at rubygarden.com there is a java one.

thanks
TCGoober

Bowling OCX
I am looking for a VB OCX that shows the ten frames for bowling, add scores, spares and strikes. I saw it once in a shareware site and cannot find it again.
Does anyone know where I can find this component? Thanks.

Is Visual Basic Script As Ubset Of Visual Basic
Hello

Is visual basic script a subset of Visual Basic code?

Visual Basic Items Removed From Visual Basic.NET
A while ago (maybe up to a year) I had found a web page (probably a Microsoft MVP's home age) that had a list of about 100 things that were removed from Visual Basic in the transition to Visual Basic.NET. As it is, I would like to look at that again, but I can't seem to find it on my computer. Does anyone remember this page and/or have a copy of the link or the file that was on it. It has particular things like Debug.Print is no longer valid and MsgBox function is not supported. I've look on Microsoft's website and found a great deal of information about implementation difference, but I can't seem to locate this particular piece. If anyone could help I would appreciate it very much.

Thanks in Advnance

Nick August

Need Help With Coding Bowling Game W/Arrays And IF's
Please help. I've been trying to figure out how to get this "bowling game" project to run and I'm lost.
I've attached what I've done and hopefully you can see where I need help.

Series should = all 3 game score entries and the average is the series/3.

Thanks,
Kimbuka

High Score, Or Should I Say, Low Score
how do I make a high score thing for the guessing game I have that only shows the top 5 low number of times they guess to get the number?? thank you.

Requesting Help With Simple Bowling Scorekeeper Program
Hello vbFolks. I'm quite new at designing programs with visual basic so I'd like to enlist for some advice.

First of all, I'm a computer science student that ventured down the C++ path for a little too long and I re-specced to a VB-oriented track. Since then I've had 1 very basic class in VB programming. I've been working on a little side program for keeping bowling scores but I'm at an impasse and would like some help.

Am I able to do this by using a simple set of control arrays (say 2 text boxes and 1 label per "frame") and using them inside some kind of repetition statement?


on the form i have control arrays txtFirst(10) and txtSecond(10) for balls thrown
and lblScore(10) for the score on each frame. The user types the score for each
ball and I want it to update the Score label automatically.

I cannot figure out how to store the typed numbers to the txtFirst(i).text property at runtime. What's more is that I've had equally frustrating moments trying to do something as simple as Code: lblScore(i).Caption = Val(txtFirst(i).text) + Val(txtSecond(i).text) for the first frame on the sheet, then trying to carry forward that value for future use.

I'd appreciate some insight on the basics. TIA for the help.

Patrick




Edited by - okipatrick on 6/9/2003 9:15:41 PM

Converting High Score Table To A Low Score Table
Hi,

I have a sub which checks for the highest score and moves the name and score up or down depending on the position for example,

1. test 100
2. test1 99
3 test2 79
4.test3 10

Please can somebody help me convert it to do the opposite or suggest some new code. So the opposite would be,

1. test3 10
2. test2 79
3. test1 99
4. test 100

Many thanks in advance, the orignal code is posted below


Code:
Private Sub MoveDown()
Dim PlayerScore As String, PlayerName As String, x As Integer

PlayerScore = Int(txtaddscore.Text)
PlayerName = txtaddname.Text

If PlayerScore > intscore(9) Then 'If score is higher than lowest (Number 9) score
MsgBox "Congratulations you got a high score", vbInformation, "Top Ten"
For x = 0 To 9
If Int(PlayerScore) > intscore(x) Then
intnewpos = x 'Find highcores position
Exit For
End If
Next x
For x = 9 To intnewpos + 1 Step -1
strnames(x) = strnames(x - 1) 'move names down
intscore(x) = intscore(x - 1) 'move scores down
Next x
strnames(intnewpos) = PlayerName 'Give current name its position
intscore(intnewpos) = PlayerScore 'Give current score its position

Converting High Score Table To A Low Score Table
Hi,

I have a sub which checks for the highest score and moves the name and score up or down depending on the position for example,

1. test 100
2. test1 99
3 test2 79
4.test3 10

Please can somebody help me convert it to do the opposite or suggest some new code. So the opposite would be,

1. test3 10
2. test2 79
3. test1 99
4. test 100

Many thanks in advance, the orignal code is posted below


Code:
Private Sub MoveDown()
Dim PlayerScore As String, PlayerName As String, x As Integer

PlayerScore = Int(txtaddscore.Text)
PlayerName = txtaddname.Text

If PlayerScore > intscore(9) Then 'If score is higher than lowest (Number 9) score
MsgBox "Congratulations you got a high score", vbInformation, "Top Ten"
For x = 0 To 9
If Int(PlayerScore) > intscore(x) Then
intnewpos = x 'Find highcores position
Exit For
End If
Next x
For x = 9 To intnewpos + 1 Step -1
strnames(x) = strnames(x - 1) 'move names down
intscore(x) = intscore(x - 1) 'move scores down
Next x
strnames(intnewpos) = PlayerName 'Give current name its position
intscore(intnewpos) = PlayerScore 'Give current score its position

Fwd: How To Disable Basic Functionality Of Back Space & Delete Key In Visual Basic
<html><div style='background-color:'><DIV>
<P><BR><BR><!-- END YOUR MAIL MESSAGE BEFORE THIS LINE--><BR></P></DIV>
<P><A href="http://www.flamingtext.com/hmail.html" target=_top><IMG alt="Image by FlamingText.com" src="http://hmail.flamingtext.com/hmail/2003/07/02/ flamingtext_com_1057144048_20660.gif" border=0></A> <BR><BR>
<DIV>Try to use API's i am sure u will get ur problem</DIV></P>>Hi all
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>> can any one tell how to disable back space & delete keys in perticular
<DIV></DIV>>text box.
<DIV></DIV>>
<DIV></DIV>>thanks & regards,
<DIV></DIV>>Sridhar cs
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>*Archives: http://www.OpenITx.com/g/visualbasic-l.asp
<DIV></DIV>>*Manage Subscriptions: http://My.ITtoolbox.com
<DIV></DIV>>*Leave Group: mailto:leave-visualbasic-l@openitx.com
<DIV></DIV>>*Questions: mailto: email@removed
<DIV></DIV>>*Terms of Use: http://www.ittoolbox.com/help/termsofuse.htm
<DIV></DIV>>*Copyright (c) ITtoolbox and message author. No redistribution.
<DIV></DIV>>
<DIV></DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMTEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html>

How To Disable Basic Functionality Of Back Space & Delete Key In Visual Basic
Hi all



can any one tell how to disable back space & delete keys in perticular
text box.

thanks & regards,
Sridhar cs

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.

thank you

Difference Between Visual Basic And Visual Basic.net
visual basic and visual basic.net?
i am very new to programming, and i was wondering if someone could explain the difference between visual basic and visual basic.net. i Know this may be a silly question to ask, but if i dont i will never find out.
i am designing a system for a chinese restaurant, hopefully i hope create it in Visual basic.
if anyone can help, i would be grateful.

What Are Advantages Of Visual Basic .net Over Visual Basic 6.0?
I am thinking of installing Visual Basic.net (standard version) in place of Visual Basic 6.0. I dont know what are the disadvantages of it and I am hesitating to do that. I thought that I should ask the forum before making this decisions.

Would someone help me to know the followings.
1. If I install VB.net, and if I do programming in VB.net, will I be able to run it in Visual Basic 6.0?

2. Can I do everything that I do in Visual Basic 6 in Visual Basic .net?

3. Are there things that I can do in Visual Basic . net which can not be done in Visual Basic 6.0?

4. Would you recommend Visual Basic.net in place of Visual Basic 6.0?

Thanks in advance.

[Solved]Visual Basic &amp; Visual Basic.net
Wat is the difference between Visual Basic & Visual Basic.net?

I just dont understand.....are they 2 different programming languages? Are they related to each other?
Do they both need the Ms Visual Basic software to develop?.....
Which is more powerful & which is better for beginners?
What is there in Vb.net thats not there in VB....?
pls help me out with this...

Upgrading From Visual Basic 3 To Visual Basic 6
Has anyone upgrade a project from VB3 to VB6?

What Is The Different Between Visual Basic And Visual Basic Access?
hey!

actually i'm going to do a database to track student attendance, where the student need to scan their student ID card.

which software is suitable for me? Visual basic or Visual basic access?

actually what is the different between these two?

can anyone explain to me?

Upgrading From Visual Basic 3 To Visual Basic 6
<html><div style='background-color:'><DIV>
<P><BR><BR></P>
<DIV>
<DIV></DIV>
<P>Is it possible to upgrade a project from VB 3 to VB 6?</P></DIV>
<P>Avi Manor<BR><BR></P><BR><BR><BR></DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http: //explorer.msn.com</a><br></html>

Visual Basic 6 To Visual Basic 5 Conversion
What has to be done to the files in a VB6 project to get it to run on VB5CCE?

DLL Visual Basic 6 On EMbedded Visual Basic 3.0
Hello Friends, as I can create a DLL for embedded. or as I can have something similar to FileListBox of VB6, I want to recover the archives that are in a directory in individual.




Hola Amigos, como puedo crear una DLL para embedded.

o bien como puedo tener algo parecido a FileListBox de VB6, quiero recuperar los archivos que se encuentran en un directorio en particular.

Basic Question On Visual Basic (counting Rows)
Hi friends,
i'm a novice of VBA. I'm trying to write a sub that needs to count the rows of my sheet.
I't seeems there's no way to understand automatically how many rows/columns are used in a sheet.

Can you help me, plzs?

URGENT Help Required Basic Visual Basic Code
How do I bring up records from a list box??? this is what I have so far of my programming...


Option Explicit
Dim FileName As String

Private Sub cmdAddFileWrite_Click()
Dim Name As String
Dim Age As String
Dim DOB As String


Name = txtName.Text
DOB = txtDOB.Text
Age = txtAge.Text

Open FileName For Append As #1
Write #1, Name, DOB, Age
Close #1
txtName.Text = ""
txtDOB.Text = ""
txtAge.Text = ""
txtName.SetFocus
End Sub

Private Sub cmdDisplay_Click()
Dim DataToDisplay As String
Dim Name As String
Dim Age As String
Dim DOB As String

Open FileName For Input As #1
lstdisplay.Clear
Do While Not EOF(1)
Input #1, Name, DOB, Age
lstdisplay.AddItem Name

Loop
Close #1
End Sub

Private Sub Form_Load()
FileName = App.Path & "AddPlayer.txt"
End Sub


That is wha I have so far I mean I have a list box there where it displays the data that has been inputted, now how do I get that to link up wit a record something to do with a module?

Basic Question About Excel Macros And Visual Basic
I have a macro in Excel that takes some input on data ranges and produces charts based on the input. I want to place those charts (a number of them are generated) at a certain point in my excel worksheet. I know I can nudge it over by a certain amount but I can never tell where Excel will place them so I would like to just say "hey chart, sit here". Being able to do that in relation to cells would be great. Also, I would like to know if there is any way to resize the chart without using the percent. Once again, in realtion to cells would be great. Thanks for your help.

Apply Windows Visual Themes From Visual Basic?
I am moderately new a visual basic - i know quit a bit - but not as much as some people - was just wondering - is it possible to make a visual basic program that applies a windows visual style - if so - how?

Data Type Conversion From Visual C++ To Visual Basic
I'm trying to convert some code from Visual C++ to Visual Basic. There are some types, however, that I cannot seem to figure out what they should be. The C++ types are dpecifically WORD and DWORD. What should they be in Visual Basic? I thought DWORD is a Long, but I have no idea what a WORD would be. Specifically, I'm determining the types from the BITMAPINFOHEADER structure.

Microsoft Visual Studio 6/Visual Basic 6 Sp6 RELEASED!!!!
Microsoft released Service Pack 6 for Visual Studio 6, download the latest(and final) service pack if you have VS6/VB6 installed.

Official Page
Official Page of sp6

List of Fixes
See the fixes from sp4 and sp5

Direct Download
Click here to download it (About 62mb)



Download it, it has many fixes included!



As BrianS told me: VB6 SP6, its only 26mb and VB Runtimes sp6 its only 1.02mb


Enjoy the new service pack! It is the LAST!!!!!

Linking To DLL's Created In Visual Studio From Visual Basic
Can anyone give me some usefull tips or links on how to link to routines writen in C++ from Visual Basic

I am aware of the

Declare Function CloseHandle Lib "testdll.dll" (ByVal hObject As Long) As Long

type notation, but I am curious on what I have to do with my DLL to allow this notation to work.

Any suggestions or links would be a great help, thanks!!!

Visual Basic Development &amp; The Visual C++ Shared Objects
I having a really irritating problem. I'm developing an Add-in in Visual Basic... however, to do the development I'm doing, I require the "Visual C++ shared Objects" reference to be added to the project.

Here in lies the problem. I also need the VB command left [as in left string copy - ie. left("aaaaa", 2)] The only problem is that by adding the "Visual C++ shared Objects" reference, the LEFT command is overridden with the C++ version which returns a long (or something like that).

In the References window, I've already set "Visual C++ shared Objects" to the lowest possible priority... is there anyway to get around this arrangement?

Thanks in advance,
Bishop

How To Access Visual FoxPro Data In Visual Basic
I have a problem :(

I would like do delete a record in FoxPro data base with Visual Basic 6

I use ODBC kuhinja:

Const povezava = "Provider=MSDASQL.1; Persist Security Info=False; Data Source=kuhinja"

adott1.ConnectionString = povezava
adott2.ConnectionString = povezava

adott2.RecordSource = "SELECT sifra,grupa,naziv,nabavna,vpc " _
& "FROM izdelki "
adott2.Refresh

to view data in datagrid

I delete a record :

adott1.RecordSource = "SELECT * " _
& " FROM izdelki " _
& " WHERE sifra='" & adott2.Recordset!sifra & "'"
adott1.Refresh

Record is marked in FoxPro as deleted ( not yet PACK ) but in Visual Basic datagrid (adott2.refersh ) record is still in it.

How can i execute PACK in Visual Basic????

THX

sorry for bad english :)

Dumb Question About Visual Basic / Visual Studio...
From someone who has been programming as long as I have, this has got to be a dumb (DUH!!!) question.  But if I don't get it answered, I'm going to continue to run around in circles.  The problem stems from what appears to be a simple name change, and the fact that I only upgrade my software infrastructure here every few years, so I miss what's going on.

VB6 appears to be the last (terminating) version of Visual Basic.  There will be no VB7.  But, clearly, the language itself is not being terminated -- just called something else, or is being "assimilated" (resistance is futile) or absorbed into a larger platform, losing its identity as a stand-alone programming environment.

How does Visual Studio relate to Visual Basic?  Is the "next generation" version of Visual Basic now being called Visual Basic.NET?  Is VB.NET part of Visual Studio?  If I get Visual Studio, is VB.NET automatically part of that package?  Or is Visual Studio one thing, and VB.NET something else entirely, ordered as two separate things?  If I want to keep programming in VB (as a programming language/environment), do I now have to get Visual Studio instead?

Sorry to bother the more enlightened souls here with a DUH question -- but I gotta ask SOMEBODY...

Thanks.  You folks have been a GREAT help here.

I Want To Make An OCX By Visual Basic But Also Compatible With Visual C And Delphi If Can!
I created an OCX using Visual Basic 6.0 is there some way to make it work in another programming languages like Visual C or Delphi?

Need Help Understanding What I Wrote Please.
I got this code workign doing what i want some how. Now i need to know how laugh. Is this using the control on my form? Or is this using the controlless coding? What part of it is reuseable? Can i make this into a bas file and edit it so i can easily add new client? Also if this is controlless how would i use it with my ADODC control or vise versa? Which way is best? Thanks for all your help!!

CODEPrivate Sub lblAAddclient_Click()
On Error GoTo errr

Dim mCn As ADODB.Connection
Dim mRs As ADODB.Recordset

Set mCn = New ADODB.Connection
Set mRs = New ADODB.Recordset
mCn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:my workProgramsclients.mdb"
mRs.Open "Clients", mCn, adOpenKeyset, adLockOptimistic, adCmdTable

With mRs
    .AddNew
    .Fields("CompanyName") = Trim(txtABName)
    .Fields("FirstName") = Trim(txtAFName)
    .Fields("MiddleName") = Trim(txtAMInitial)
    .Fields("LastName") = Trim(txtALName)
    .Fields("StreetAddress") = Trim(txtAStreet)
    .Fields("City") = Trim(txtACity)
    .Fields("StateOrProvince") = Trim(txtAState)
    .Fields("PostalCode") = Trim(txtAZip)
    .Fields("HomePhone") = Trim(txtAHome)
    .Fields("WorkPhone") = Trim(txtAWork)
    .Fields("MobilePhone") = Trim(txtACell)
    .Fields("EmailAddress") = Trim(txtAEmail)
    .Fields("Birthdate") = Trim(Format(Replace(txtABDate, "/", ""), "mm/dd/yyyy"))
    .Fields("DateJoined") = Date
    .Fields("PNotes") = Trim(txtAPNotes)
    .Update
End With

mRs.Close
mCn.Close

txtABName = ""
txtAFName = ""
txtAMInitial = ""
txtALName = ""
txtAStreet = ""
txtACity = ""
txtAState = ""
txtAZip = ""
txtAHome = ""
txtAWork = ""
txtACell = ""
txtAEmail = ""
txtABDate = ""
txtAPNotes = ""


MsgBox "Client was successfully added!", , "Add Client"
Exit Sub

errr:
Call errorpop

End Sub

How To Use Ocx Wrote By Vb In C++Builder?
I have an ocx wrote by VB.
I want to use it in C++Builder,but when I import it into C++builder's ActiveX panel,it dosen't appear.
Is it c++builder dose not support VB's ocx?
Everybody know it,please help.Thanks.

Compairing Visual Basic &amp; Real Basic
The thing is, I don't have Visual Basic on my computer (I use a Mac). But I do think I have Real Basic.

I'm just asking how similar or different VB and RB are. More specifically, how much can I apply tutorials for VB to the RB environment?

Thanx

Real Basic/visual Basic? Im A Mac User, Which Is Which?
hello, i use a iMac G3, i have Real Basic and i have just found out about this Visual Basic btu what i know it just sounds like a cheap copy of Real Basic, no offence, are these programs pretty much the same?

Copyright © 2005-08 www.BigResource.com, All rights reserved