Search results for query: *

  1. U

    Passing values to a new form...

    erm... could you possibly post an example? I'm not entirely sure how to do that...
  2. U

    Passing values to a new form...

    Ok, I'm opening up a second form using the following code: Dim frmAdd As New frmAdd frmAdd.MdiParent = Me frmAdd.Show() and I need to pass it two pieces of data which are in text boxes titled txtEnter1 and txtEnter2. Two text boxes on the new form should automatically be filled out with the...
  3. U

    Inserting data to an access database

    Ok, I'm writing a program that's meant to interact with an access database containing student information. I have a form that retrieves and displays the information using the following code: OleDbDataAdapter1.SelectCommand.CommandText = "select * from StudentTable where StudentNumber = '" &...
  4. U

    MouseHover event question

    Thanks a lot man! The multiple handles method was what I was trying to do just now before I read this, but I didn't know about the CType function. This helps tremendously.
  5. U

    Blocking access to a form

    Nevermind. Found it on page 9. :o ShowDialog it is!
  6. U

    Blocking access to a form

    I have one form. It opens a second form. How do I make it so that you can't access the first form until you close the second form?
  7. U

    MouseHover event question

    Sorry, but I'm very new to all of this. Could you possibly provide examples?
  8. U

    MouseHover event question

    Hi guys. Newbie question for ya: I'm trying to make a simple mousehover effect for a button called btnAdd which changes the background and foreground colors of the button when you move the mouse over it and then reverts back to normal when you leave it. Here's what I've got so far: Private...
  9. U

    Overloading

    It won't let me do that because the last two only differ by return types and therefore cannot overload eachother.
  10. U

    Overloading

    I was wondering if anyone could help me understand overloading a bit better. I'm trying to take the following function, which accepts a Double and returns a Double, and write an overloaded version that accepts an Integer and returns a Single. Private Function ComputeCelsius(ByVal dblFahr As...
  11. U

    Optional Arguments in Functions?

    Thanks for the suggestions. I will rename the function, however the math is not flawed. Remember your BEDMAS. Division comes before subtraction
  12. U

    Optional Arguments in Functions?

    Ok, thanks... that makes more sense. I think that's actually what he wants.
  13. U

    Optional Arguments in Functions?

    I don't quite understand how that works.
  14. U

    Couple of quick questions regarding combo boxes

    Ah, you guys took too long. Figured it all out. Thanks anyways. :D
  15. U

    Couple of quick questions regarding combo boxes

    Oh, Oh, one more thing. I have a clear button which clears all text boxes. I also want this button to put my cursor in the txtLoanAmount.text text box. Any suggestions for this? Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click...
  16. U

    Optional Arguments in Functions?

    Thanks man, this is exactly what I believe my prof is looking for. We did briefly cover overloading, but I didn't quite grasp the concept of it and what it's used for. This makes it a lot clearer.
  17. U

    Optional Arguments in Functions?

    I have two questions about the following module. a) What TYPE should I give the function? This is my first function and Option Strict is telling me that I need an 'As' clause for it. b) I want dblMonths to be an optional argument with a default value of 60. How might I go about this? Module...
  18. U

    Couple of quick questions regarding combo boxes

    Sorry for not spending more time searching the forum for these answers, but I'm in a bit of a rush. Firstly, I need the following list box to a) show all four of the decimal places even if they're 0 (so it should display 0.0200, 0.0225, 0.0250 as opposed to 0.02, 0.0225, 0.025) AND I need it to...
Back
Top