User Profile

Collapse

Profile Sidebar

Collapse
tigger
tigger
Last Activity: Dec 3 '07, 04:05 PM
Joined: May 18 '07
Location: Singapore
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tigger
    replied to Form Appear
    in .NET
    It's already set to true. I've already managed to solve it. Thanks. I used oFrm.ShowDialog (Me) instead and it works....
    See more | Go to post

    Leave a comment:


  • tigger
    replied to Form Appear
    in .NET
    I tried but it doesn't work. I also put it in my Form1 but still, the textbox is not focused....
    See more | Go to post

    Leave a comment:


  • tigger
    replied to Form Appear
    in .NET
    The code works, thanks. However, i have some problem with focusing it. Even though my Form2 appears in front of my Form1, the form is grayed. I need to click on the form, then the focus is on the textbox in the form. I tried 'Form2.nameText Box.Focus()' in the load event but it doesnt work. How do i make the focus go to text box once Form2 loads?...
    See more | Go to post

    Leave a comment:


  • tigger
    started a topic Form Appear
    in .NET

    Form Appear

    Hi

    I have a form called Form1. When Form1 loads, another form, Form2, will appear. However, i want Form2 to appear in front of Form1. I tried doing the following but it doesn't seem to work. Form 2 still appear behind Form1.


    Code:
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
            Form2.Show()
            Form2.BringToFront()
    
    End Sub
    See more | Go to post

  • tigger
    replied to Storing of points
    Code:
    Audiogram.mypts.Add(New Point(104, 50))
    We want to store these lines of code (which is declared as graphic) into an array (for eg. savePoint). But we don't know to declare SavePoint as what.. Single,Double etc? Cos graphics cannot be converted into Single or Integer. 'Expression does not produce a value' error will appear....
    See more | Go to post

    Leave a comment:


  • tigger
    started a topic Storing of points

    Storing of points

    Hi

    I have a problem trying to store points. Each time plotButton is click, a point is plotted. I need to store the particular point as a variable so that it can be saved as a text file. And later on, when user open up the file again, it will automatically reads the points and plot them in place.

    Here's my code for the plotting of points.

    Code:
    Private Sub plotButton_Click(ByVal sender As System.Object, ByVal
    ...
    See more | Go to post

  • tigger
    started a topic Checkbox on database
    in .NET

    Checkbox on database

    Hi there

    I'm now using Microsoft Access and i have a column called VT. I stored it into a variable called vibrotactile.

    Code:
    vibrotactile = ds.Tables("maskingSimulator").Rows(s).Item("VT")
    The problem is the column contains checkboxes. If my VT column is not checked, it will carry out Case 1. Else, if my VT column is checked, it will carry out Case 2. How do i put it into codes? I tried...
    See more | Go to post

  • tigger
    started a topic How do i create shortcut keys for my buttons

    How do i create shortcut keys for my buttons

    Hi,
    I'm using Visual Basic 2005. I'm trying to create shortcut keys for my buttons. Currently, i have 2 buttons, presentButton and plotButton. When i press spacebar, it will perform the presentButton Click Event and when i press Enter, it will perform the plotButton Click Event. Is that possible?


    [CODE=vb]Private Sub presentButton_C lick(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles presentButton.C lick...
    See more | Go to post
    Last edited by Killer42; Sep 5 '07, 09:08 AM. Reason: Added [CODE=vb] tag

  • tigger
    started a topic Mouse hover

    Mouse hover

    Hi
    I have a label called buttonLabel. How do i display the label only when the mouse is over the button? I tried using mouse hover event and use a timer. But the label will disappear after 1 sec. But i want the label to disappear only when the mouse is not over the button. Is there a better way to do it?
    See more | Go to post

  • tigger
    started a topic Random using Database

    Random using Database

    Hi there,
    I have a problem displaying the correct random values extracted from the database. I'm using arrayRandom that stores left250 values and make it appear 90% of the time. arrayReallyRand om stores left250 values and appears 60% of the time. I have a combo box and a list of names. For eg. when i select Mark (the first name on the combo box), it will retrieve AC250L, store it as left250 and store it in arrayRandom and arrayReallyRand om....
    See more | Go to post
    Last edited by Killer42; Aug 15 '07, 08:30 AM. Reason: Added [CODE=vbnet] tag

  • tigger
    replied to Adding New Records
    Sorry for not making things clear. I have a combo box that contains 10 names. For eg. I select John's name. It will retrieve his left250 value. It will then compare this value with a variable called Count. I've managed to do this so far. However, when i add in a new name in the Access database, the name in the combo box does not appear. And when i delete John's name in the database, the name in the combo box will not be deleted. When i select John...
    See more | Go to post

    Leave a comment:


  • tigger
    started a topic Adding New Records

    Adding New Records

    Hi there,
    I can already retrieve values from database (Microsoft Access). However, when i add new records, it won't be able to retrieve. Here's my codes:

    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

    Dim con As New OleDb.OleDbConn ection
    Dim ds As New DataSet
    Dim da As New OleDb.OleDbData Adapter
    ...
    See more | Go to post

  • tigger
    replied to shifting of characters
    thanks all..

    i got the average part of the program working already.

    i just am unsure on how to locate the characters in the string.

    i've tried using the inStr function. but the inStr function only returns the first position of the character that i want. what if the character is repetitive in the string?

    for eg...

    SearchString = "XXpXXpPXPX P"
    'string to search...
    See more | Go to post

    Leave a comment:


  • tigger
    started a topic shifting of characters

    shifting of characters

    i have a string which is extracted from a text file. from that particular string, i have assigned each of the letters in that string a particular value.

    how do i know the position of each characters in a string?

    because from that string, i have to search for 4 consecutive characters which has an assigned value of more than 1.0.

    after calculating the average of the 4 characters, i have to shift to the...
    See more | Go to post

  • tigger
    started a topic Random number generator

    Random number generator

    Hi there,
    i'm using random number generator to generate random numbers between 40 to 50.

    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

    mnRandomNumber = GetRandomNumber (40, 50)

    End Sub



    Private Function GetRandomNumber (ByVal vnMinimumNumber As Integer, ByVal vnMaximumNumber As Integer)
    ...
    See more | Go to post

  • tigger
    started a topic How to retrieve all the data?

    How to retrieve all the data?

    Hi there,
    I'm having problems retrieving data from Access database using Visual basic 2005. My database is called Actual_Database and it has a few tables. One of them is called Threshold Database. I'm trying to retrieve data from Threshold Database. In that table, it has columns of AC250L, AC250R, BC250L, BC250R, AC500L etc.. When i select a name from the combo box, and click presentButton, it will show a smile if the values...
    See more | Go to post

  • tigger
    replied to Plotting Graph
    Sorry i actually posted only part of the codes. If not, it's quite long.

    [CODE=vbnet]Private Sub Audiogram_Paint (ByVal sender As Object, ByVal e As System.Windows. Forms.PaintEven tArgs) Handles Me.Paint
    If BIEMaskingMachi ne.freqTrackBar .Value = 250 Then
    If BIEMaskingMachi ne.count = -10 Then
    x = 80
    y = 50
    G.DrawLine(Blue pen, (x - 5), (y - 5), (x + 5), (y + 5)) 'drawing 'x'...
    See more | Go to post
    Last edited by Killer42; Jul 23 '07, 08:58 AM. Reason: Added [CODE=vbnet] tag

    Leave a comment:


  • tigger
    started a topic Plotting Graph

    Plotting Graph

    Hi there,
    I seem to face some problems with multiple click event. When i click plotButton, it should plot a cross. For example if user select 250Hz, it will plot a cross at 250Hz. x and y are the pixel values to draw the cross. When the user select a different frequency (eg. 500Hz) and click plotButton again, the cross for the 250Hz will disappear. So how do i make it stay? I think it has got something to do with the plotButton...
    See more | Go to post
    Last edited by Killer42; Jul 23 '07, 06:52 AM. Reason: Added [CODE=vbnet] tags, tidied up indenting.

  • tigger
    replied to Display data
    I don't face the problem anymore. Thanks a lot for your help. Appreciate it =)...
    See more | Go to post

    Leave a comment:


  • tigger
    replied to Display data
    I've already managed to solve the problem. Thanks. But i faced another problem. Each time i select a name in the combo box, it will appear twice and the previous name disappears. For example, i select John and click a button to display a value. When i go back to the combo box and want to select another name, i realized that John's name will appear twice. And the name before John will disappear....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...