Search results for query: *

  • Users: UberDan
  • Content: Threads
  • Order by date
  1. 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...
  2. 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 = '" &...
  3. 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?
  4. 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...
  5. 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...
  6. 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...
  7. 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