Jump to content
Xtreme .Net Talk

Mykro

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by Mykro

  1. Thanks Dan... :)
  2. Hey Dan.... Could you do me a favor and comment each line of your code..I'm a little fuzzy with it, and good commentation would help me out alot...Thanks :D
  3. I'll try your code.. In the mean time this was what I came up with.. just need to clear the text boxes before the next calculation. Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click Dim Circumference As Double Dim Area As Double Dim Diameter As Double Diameter = Val(txtDiameter.Text) 'convert to number Area = Val(txtArea.Text) 'convert to number Circumference = Val(txtCircumference.Text) 'convert to number If txtDiameter.Text <> "" Then Circumference = Math.PI * Diameter Area = 3.14 * Diameter ^ 2 / 4 ElseIf txtCircumference.Text <> "" Then Area = ((Circumference / 3.14) ^ 2) * 3.14 / 4 Diameter = Circumference / 3.14 ElseIf txtArea.Text <> "" Then Circumference = 2 * Math.Sqrt(Area / 3.14) * 3.14 Diameter = 2 * Math.Sqrt(Area / 3.14) Else MessageBox.Show("You Must Enter a Number!", "No Numeric Entry!", MessageBoxButtons.OK, MessageBoxIcon.Hand) txtDiameter.Focus() End If txtCircumference.Text = Format(Circumference, "0.00") 'format to display in txt box txtArea.Text = Format(Area, "0.00") 'format to display in txt box txtDiameter.Text = Format(Diameter, "0.00") 'format to display in txt box End Sub Private Sub frmCircle_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load txtDiameter.Focus() End Sub Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click txtDiameter.Text = "" txtCircumference.Text = "" txtArea.Text = "" txtDiameter.Focus() End Sub Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me.Close() End Sub
  4. I'm thinking of eventually developing a form wizard where I would lead user by the hand to answer questions then print out those queations to a form, like how turbotax is does it.. My question is; How do they (intuit) Get the tax forms into the program? Do they re-create all the tax forms? Do they scan the forms to be used by the program? I'd like to do something along these lines but I have no clue as to how the forms are printed.. Can an original form be scanned into the computer and then used by VB.Net ?
  5. Thanks for the code But.. It don't work.. Maybe you don't quite understand what I want to do.. instead of entering a value in txtdiameter I could put a value in txtArea instead and it will compute and put the correct answers in the other text boxes. Or put a value in txtcircumference and it will calculate for the other text boxes.
  6. I have a form with 3 text boxes.. txtDiameter.text txtCircumference.text, txtArea.text and btncompute to compute the value entered in txtDiameter that will be displayed in txtCircumference.text and txtArea.text I have a code module: Module CircGeometry Public Sub CircleGeometry(ByVal diameter As Double, ByRef Circumference As Double, _ ByRef Area As Double) Circumference = Math.PI * diameter Area = Math.PI * diameter ^ 2 / 4 End Sub End Module And here is the btnCompute click event: Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click Dim C As Double Dim A As Double Dim D As Double D = Val(txtDiameter.Text) Call CircleGeometry(D, C, A) txtCircumference.Text = Format(C, "0.00") txtArea.Text = Format(A, "0.00") End Sub End Class What I need help on is this: .. How can I code this so that no matter what text box I enter a value it is calculated in the other text boxes simutaneously.. I don't how to code this...
  7. I got it working.. Thanks For your replies :D
  8. So what else can one do with using NEW ???
  9. Reading from my VB.NET book that I have... To Display a form you must declare it. This is done by declaring a new "Instance" of the form: DIM MyForm as NEW frmExample() MyForm.ShowDialog() 'Modal Display My question is: Is frmExample the new form? Why does it say Myform.ShowDialog ? And not frmExample.ShowDialog? whats the difference? Is MyForm the new instance? Couldn't you declare it as Dim frmExample as NEW frmExample() So that it reads frmExample.ShowDialog() :confused:
  10. I'm trying to get a handle on how the NEW keyword is used in VB.NET. could someone shed some light towards this newcomer to VB.NET. Please explain in simplest terms Thanks :D
  11. I completed a small menu of items for my program, but when I run the program the menu items aren't there... They don't show up.. I'm stumped :confused:
  12. How do I add the Process Component to the tool box in VB.NET ?? :)
  13. What I'm trying to do is convert from Feet into inches, through code.. example: lets say I have 5.65' feet.. I know that I have 5' already.. so I need to convert the .65 to inches.So I multiply by 12 to get inches .65 x 12 = 7.8 " inches. I remove the 7 so now I have .8 inches. Now all I have to do is multiply by 8 to get 1/8th inches or 16 to get 1/6ths inches etc. etc.. Usually 1/8 inches is sufficient for what I need to do.. So.. 5.65 Feet converts to 5' 7 6/8" inches or 5' 7 3/4" What I can't seem to figure out is to do this in code.. I need a code guru to figure this one out.. I'm still to much of a novice at this point!.. Thanks..
  14. What are the "Major" differences between VB.net 2003 Standard, Pro, and Enterprise Architect?.. Which one is preferred for software distribution?? Thanks
  15. In VB.Net Pro 2003 When I start up a new project I get an error message saying. Microsoft Jscript Compilation Error Syntax Error /> I've attached a screen shot of the error message jscript error.zip
  16. I have the professional version 2003.. There is a file I need.. It is msdntrn.xml. It seems the one I have is corrupted..
  17. I did reinstall !! Same error comes up!
  18. HELP....! There are no contents in the file... Also when I go to start a new project and try to save it I get another message box saying: Microsoft JScript Compilation Error Syntax Error /> Any ideas Whats happened ?? :confused:
  19. I just installed VB.Net 2003 I get this error message on start up: file://C:\program files \Microsoft Visual Studio.Net 2003\Common7\IDE\html\xmlinks\1033\context.xml(0,0):XML error C00E508: An invalid Charachter was found in content. What can I do to correct this.. Uninstall and re-install??
  20. Error while trying to run project: Unable to start debugging. Access is denied. Verify that you are an administrator or a member of the 'Debugger Users' group on the machine you are trying to debug...) I don't know how all of sudden I started getting this message Any suggestions?
  21. Thanks Thanks... Both work.. I appreciate the help.. Thank You
  22. Could someone post an example for me on how this msgbox should look like? What I have won't work.. This what I've attempted so far msgbox("Hello ", txtName.text, _ "Hello from Visual Basic.NET", MsgBoxStyle.Information, "Hello User Message") Thanks
×
×
  • Create New...