User Profile
Collapse
-
It's already set to true. I've already managed to solve it. Thanks. I used oFrm.ShowDialog (Me) instead and it works.... -
I tried but it doesn't work. I also put it in my Form1 but still, the textbox is not focused....Leave a comment:
-
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?...Leave a comment:
-
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 -
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....Code:Audiogram.mypts.Add(New Point(104, 50))
Leave a comment:
-
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
-
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.
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...Code:vibrotactile = ds.Tables("maskingSimulator").Rows(s).Item("VT") -
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... -
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? -
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.... -
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...Leave a comment:
-
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
... -
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...Leave a comment:
-
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... -
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)... -
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... -
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'...Leave a comment:
-
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...Last edited by Killer42; Jul 23 '07, 06:52 AM. Reason: Added [CODE=vbnet] tags, tidied up indenting. -
I don't face the problem anymore. Thanks a lot for your help. Appreciate it =)...Leave a comment:
-
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....Leave a comment:
No activity results to display
Show More
Leave a comment: