Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Msflexgrid Click Event


In the program I am working on I have an MSflexgrid and when the grid is clicked on I show another form with a second flexgrid if the row,col click on is not empty I break down the amount in second flexgrid. see below

'Code in VwEmpHst form grdSumm_Click event below

If grdSumm.TextMatrix(grdSumm.Row, grdSumm.Col) = "" Then
MsgBox " To see a break down of hours Click on Amount in hours column" _
& "After retrieving Employee data"
Exit Sub
End If

VwEmpAbstime.Show 1

A couple questions I have are. Can I pass varibles from the calling form to the VwEmpAbsTime form? If so How? I thought I would be able to do something like VwEmpAbstime(EmpID).show The syntax doesn't cause any error but when I try to pick them up in the load event it ie Private Sub Form_Load(EmpID05 As String) I get an error that says Procedure declaration does not match description of event or procedure having the same name.

Also I would like know how I can use use this command grdSumm.TextMatrix(grdSumm.Row, grdSumm.Col) = ... to see what which cell was clicked on.

As always I appreciate everyones help and patients with with me since I am new to VB and anxious to learn.

Thanks




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
MSFlexgrid Click Event
Hi
I am using a Flexgrid in my VB6 form.When the form loads

VB Code:
Private Sub Form_Load()rs.Open "Select * from [Interval]", cn, adOpenKeyset, adLockPessimisticMSFlexGrid1.Row = rs.RecordCountrs.MoveFirstj = 1Do While Not rs.EOFMSFlexGrid1.TextMatrix(j, 0) = rs.Fields("Interval")MSFlexGrid1.RowData(j) = rs.Fields("IntID")rs.MoveNextj = j + 1Looprs.Close  rs1.Open "Select * from Room", cn, adOpenKeyset, adLockPessimisticMSFlexGrid1.Col = rs1.RecordCountrs1.MoveFirstj = 1Do While Not rs1.EOFMSFlexGrid1.TextMatrix(0, j) = rs1.Fields("Room")MSFlexGrid1.ColData(j) = rs1.Fields("RoomID")rs1.MoveNextj = j + 1Looprs1.Closeend sub


I obtain the following Flexgrid

Interval Room1 Room2
6h-7h
7h-8h
8h-9h
9h-10
if the user clicks on any row in colum1(6h-7h,7h-8h..) I don't want to generate any event, but if he clicks on any row of Column2 OR Column3 (Room1 or Room2) I want to type "Booked" in the clicked cell and then show form1.

Also when the user clicks on Clear,i want to clear MSFlexgrid except column1(Interval) and the first row(Interval Room1 Room2)

How can I do it?
thanks

MSFlexGrid Click Event?
Hello,

I've been trying to figure out this problem for a while now and no luck so far.
Maybe you guys can help me please as i'm a VB newbie.

On my form I have two check boxes, one populates a combo box with two items the other with three items. The check boxes also switch frames on the same form with ZOrder, the frames have textboxes.

When an item is selected in the combo box my grid control(MSFlex) is filled with information from my Access mdb file.

Now here's the problem.
I want to be able to click on the rows in the grid list and input information from my mdb file in the textboxes.

Here's an example:

Select Book Number in combo books.
The MSFlex is filled with Book Numbers-Book#1,Book#2, Book#3 etc.

Now I want to click on the Book Numbers and fill the textboxes with corresponding information. Like Book 17 shows in text box txtTitle the title of Book 17.
txtAuthor is filled with the Author name of Book 17 etc....

MSFLEXGRID Click Event Problem
I Have a Form with some text boxes having data and a MSFlexGrid which displaying the same data. Now I need to to show the same data when I point on some row & If I click any row, a separate form has to be opened with the same data to edit. (No editing in the grid itself)

Regards
Rama Raju

Dbl Click Event (MSFlexGrid) Move Record To New Form.
hi,

I am developing a piece of software for a local college sports department. I am having difficulty with a function tough.

I have an MSflexgrid which is populated using a DAO data control.
it populates with the data from one of the tables in the database.

i am hoping to get it so that i can double click a record in the msflexgrid and on this event, it opens a new form and inputs the data into the necessary fields.

These fields are labels. (title, forename, surname, etc.)

any ideas?

my code is not worth displaying here.

Thanks,
Sam

Double-click Event Firing Off Click Event Code?
For example:

In a listbox, I have a click event that changes a label's caption from 'Loaded' to 'Clicked' and changes the color from black to red.

I have a double-click event that shows a message box saying "I've been double-clicked."

You can re-set the label by clicking it.

When I click the listbox, the label's caption and color changes. This is what I expected.

When I double-click the listbox, the label's caption and color changes, and the message box is displayed. Why?????

Mouse Up Event Misfired In The Righ Click Event Of The Flexgrid! Help Needed
Hai,

When the user right click the first column of the MSHFlexgrid then a PopUpMenu rises, for that i coded as below. But when the user click the row header which i used to display the Serial No. there also the popupmenu rises. how to avoid this. I am using the below code to identify the First column of the grid and rise the popupmenu.
so i am getting problem. because when the user click a item in the popupmenu then i the next form is show with the value of the MshFlexgrid FirstColumns text..

Private Sub MSHFlexGrid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)

    If Button = vbRightButton And MSHFlexGrid1.MouseCol = 1 Then
        Me.PopupMenu mnuReport
    End If

End Sub

How to solve this problm. Kindly suggest your idea.

Thank you very much,
Chock.
itchocks@rediffmail.com


<HTML>
<B><font color="#008000">HAVE A NICE DAY !</font></B>
<HTML>

Does The MSFlexGrid Has Rowloaded Event Or Any Event Work Like That?
I 'd like to change date to my local date when it's show in MSFlexGrid.If i use DBGrid i can use Rowload event but MSFlexGrid doesn't have this event.Is there event of MSFlexGrid work like this Property.

Datagrid Click Event, Dbclick Event.
Hi
I have a datagrid that when I double click on a line it display all the information linked to this line in text box.  

I would like to do the same thing with the click event. So when the user click on the grid I call the even dbclick.  But the thing is that the click event doesn't seem to have selected the right line yet.  Because when I only click it display the information about the old line.

For example I'm on the line1
when I click on the line2 it display me the information of the line1.
Supposed that I still on the the line1
I dbclick on the line2, it display me the information of the line2. (as it supposed to)

I call the same procedure for both click and dbclick event.

Does somebody have any idea how I could solve it?
Thanks in advance

Checking Right Click In Click Event?
Is there any way to detect a right click in a something_click event? I'm trying to do something on both right click and left click for a menu but can't figure it out.

Click Event Executing On More Than Just A Click!
Morning all.  On my form today I have a checkbox that can enable or disable a combo box.  For this I am using the Click event of the checkbox then an If statement to check its own state and enable/disable the combo.  I have a problem however - this check box is also toggled by another event (it's reading data from a recordset) and this also seems to trigger the Click event!  I only want the event to trigger if the user actually clicks it with the mouse - I have tried MouseUp and Down... Any ideas?

Lostfocus Event After Click Event
If you use the accelerator for triggering a command button click while focus is on textbox, the command button click goes through first before the text box lostfocus. However if you actually click on the Command button the text box lost focus happens before the command button click which is the right sequence.
How to get the sequence right in the first case?
One way is to do a setfocus in the command button click to itself and issue a DoEvents. But I want to avoid DoEvents since that could lead to triggering of other unexpected events.
Thanks in advance.

Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,

I am designing one ActiveX Control with a lot of sub forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development control
with the help of these events.
I am not able to access the events (defined in the user control at design
time) of the activex control from the sub form of the activeX control.
Can anybody tell me how to do that.

Thnx in advance,

Naveen !!!!!

Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,

I am designing one ActiveX Control with a lot of forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development controls
with the help of these events.
I am not able to access the event (defined in the user control at design
time) of the activex control from the form.
Can anybody tell me how to do that.

Thnkx in advance,

Naveen !!!!!

How To Automate To Detect A Left Mouse Click Without Using The Form Mouse Click Event
hello all ,How do I automate to detect a left mouse click without using the form mouse click event ?

MSFlexGrid Right Click
Morning/Afternoon all,

I have coded a 'copy row to clipboard' function on an MSFlexgrid when you right click on it. The only problem with this is that it copies the row that is highlighted, rather than the row that you right click on. The user has to left click a row and then right click for it to work.

Does anyone know how to copy the left click functionality (row select) to the right button as well?

MSflexgrid Click
Hi
I have an MSFlexgrid that contains 10 columns,upon clicking on a cell a messagebox appears,but if the user clicks on a cell whose column name is "Service" i don't want the messagebox to appear.
how can I do it?
thanks

Msflexgrid Click
I know that the code below with give me column and row info but how do I get information from header. The header is filled from a db with field named PersonName and PersonID.


VB Code:
MsgBox "Row: " & MSFlexGrid1.Row & " Col: " & MSFlexGrid1.Col

Click Outside Msflexgrid
I have this msflexgrid about 800 X 600 with variable row numbers, with events on cell clicks. What happends, when the rows are less then 10, there's some background showing which on click behaves like clicking on the last row, closest column. Is there a way to intercept that? Thanks

Click On MSFlexGrid…
I am using database by DAO with access and show data on texts and MSFlexGrid and i want when i click on any cell of MSFlexGrid, show that data i Clicked on the text .How can I do that?

i hope my question is clear.

thanks

MSFlexGrid &amp; Right Click
How do I select a cell in a MSFlexGrid using a right click

MSflexgrid Click
On Form1 I have a MSflexgrid and text boxes that the user enters the info into. What I need is a click event for the flexgrid so when the record is clicked it will display that record in the text boxes.

Thanks

JO

MSFlexgrid Right-click
Does anyone know, how to make flexgrid react like Excels ?

If not several cells selected
Make a selection on the clicked Cell and display popupmenu
Else
display popupmenu

Thanks

/bno

What Event Is This On The Msflexgrid?
Have you noticed in Excel, you can drag the mouse across a column of numbers and the total of the numbers will appear at the bottom right of the excel page?

YOu can also drag across a column of cells in the MSFlexgrid, but I don't know how to show a total. It isn't mouse down, because that would only show the first cell (I think) and the one in excel updates as the mouse moves over each new cell, so it must be some sort of mousemove event or cell select event.

has anybody done this before?

Thanks

Wengang

MSFlexGrid Click Where There Is No Data
When my grid is half full I need to check whether the area of the grid that the user clicks on contains rows of data or not - any ideas? The grid may contain any number of rows depending on contents of database.

Msflexgrid Click Events
how can i make only certain cells of msflexgrid clickable and certain ones not?
And can i make the click event of the msflexgrid do different things..ie, could i pass the column number to click event?

Code:
Private Sub MSFlexGrid1_Click(msflexgrid1.textmatrix(lastrow,3))'allrows and certain column
'do something
End Sub

Private Sub MSFlexGrid1_Click(msflexgrid1.textmatrix(lastrow,4))'allrows and certain column
'do something
End Sub

Mouse Click In MSFlexGrid
Hello All,

My program lists different data in rows of a FlexGrid. I can access further data by selection the row I want to look at and then use a Command Button click event.

How can I copy this event by using a , say, Double Click on my mouse?

Rgds

Tarablue

Double Click Msflexgrid
Is there a way to sense a double Right click in msflexgrid?

DblClick And Click On MSFlexGrid
I guess I am just missing it. I want a single click to be able to select a cell. I want a double click to call the "OK" command button. What am I doing wrong?


VB Code:
Private Sub Option_Select_Material_DblClick(Index As Integer)    Call cmd_Select_Material_OK_ClickEnd Sub Private Sub Select_Material_Grid_Click()    cmd_Select_Material_Apply.Enabled = TrueEnd Sub

Double Click On MSFlexgrid
hi..I have question regarding with MSFlexgrid. How to make (Coding) if user double clicks the selected grid in MSFlexgrid then it shows another form.

Thanks in advance

MSFlexgrid Right Click (Resolved)
I have a MSFlexgrid and want to allow users to right click on a row and get a menu with some options on it.

So how do I :
1. Get a row to become highlighted when it is right clicked
2. Display a menu with some options

Fake A Click On MSFlexGrid
How can I "fake" a click on an MSFlexGrid via code so I can fire some other code?

Thanks!

Right-Click MSFlexGrid To Populate
I would like to be able to right-click on my MSFlexGrid and have the word "Bubba" appear in the cell I right-clicked in.

Any ideas on how to accomplish this?

Thanks,

MsFlexgrid ... Click On Title
When I click on the Title Row of a Gid

MSGrid.click gives me .ROW as to row where Cursor Last been

e.g .. I click on Title

debug

Row = 8

and I want to do soemthing else when I am in rows 1 to
.Rows

Can anybody tell me how to capture that I click on title row

Thanks in Advanc

Peter

MSFlexGrid Header Click
My app is using MSFlexGrid, the user adds data to fill the grid. There is an edit function, that allows the user to select a record from the grid to edit. This takes the selected record and puts the data back in the entry textboxes to allow editing. That works fine, the user can also doubleclick the record, that works fine. The problem is if the user clicks on one of the headers, the first record is always selected to edit, even if another record is highlighted. How can I either disable the headers from the click, or how can I select the correct record?

Thanks in advance.
Murray1840

Right Click Menus Fom Msflexgrid
Hi, proabbly a simple one but the vbhelp file only contains dhtml stuff for right click menus, not much use to me.

I have a msflexgrid I want to be able to right click on it and select to make a new entry or edit the current entry if one exists.

I've got everything else sorted aside from how to show a right click menu and set the itmes in the menu and thier associated actions, ie open add item form or open edit item form.

any help would be most appreciated.

Cheers

Mike

MSFlexGrid Mouse Click
:confused:
I have an MSFlexGrid which allows the user to enter text in the cells, apart from the 1st row where I put the titles. I am using MSFlexGrid_EnterCell, MSFlexGrid_LeaveCell and txtCellEditor_KeyPress events.
Currently, the user can enter text and use the tab and return keys easily. My problem is that when clicking the mouse, nothing happens. How can I make it work? I tried to add MouseDown event and also MSFlexGrid_click event but neither has worked. On another version, I used GotFocus, LostFocus and KeyPress events and the mouse click worked ok but not the tab or return keys. It seems that they are mutually exclusive.
Can anyone help me please? All I want to allow in this grid navigation are the tab key, return key and the mouse click.
Most of my code shows below:

Private Sub Titles()
'Fill in the column titles.
Dim column As Integer
Dim columnname As Integer

MSFlexGrid1.Row = 0 'titles are only required at the top row
For column = 0 To (MSFlexGrid1.Cols - 1)

columnname = (column + 1)
With MSFlexGrid1
.Col = column
.TextStyle = flexTextFlat
.CellBackColor = RGB(10, 160, 280)
.CellFontSize = 9
'Place textbox over the current cell.
txtCellEditor.Visible = False
txtCellEditor.Top = .Top + .CellTop
txtCellEditor.Left = .Left + .CellLeft
txtCellEditor.Width = .CellWidth
txtCellEditor.Height = .CellHeight
'Assign cell contents to textbox
txtCellEditor.Text = "Location Code " & columnname

End With
'Move focus to textbox
txtCellEditor.Visible = True
'Disables edit of the title cells.
MSFlexGrid1.Enabled = False
Next column

' The following If-End if statement moves the focus to the next cell after the titles row.

If column = MSFlexGrid1.Cols Then
MSFlexGrid1.Row = 1
MSFlexGrid1.Col = 0
MSFlexGrid1.Visible = True
End If

End Sub

Sub MSFlexGrid1_EnterCell()
'Make sure the user doesn't attempt to edit the fixed cells
If (MSFlexGrid1.MouseRow = 0 Or MSFlexGrid1.Row = 0) Then
txtCellEditor.Visible = False
Exit Sub
End If
'Clear contents of current cell.
txtCellEditor.BackColor = RGB(255, 255, 255)
txtCellEditor.Text = ""
'Place textbox over the current cell.
txtCellEditor.Visible = False
With MSFlexGrid1
txtCellEditor.Top = .Top + .CellTop
txtCellEditor.Left = .Left + .CellLeft
txtCellEditor.Width = .CellWidth
txtCellEditor.Height = .CellHeight
'Assign cell contents to textbox
txtCellEditor.Text = .Text
End With
'Move focus to textbox
txtCellEditor.Visible = True
End Sub

Sub MSFlexGrid1_LeaveCell()
MSFlexGrid1.Text = txtCellEditor.Text
End Sub


Private Sub txtcelleditor_keypress(keyascii As Integer)
Dim SRow, SCol As Integer

Select Case keyascii
Case 13 'this is the Enter Key
With MSFlexGrid1
.Text = ""
SRow = .Row + 1
SCol = .ColSel
If SRow = .Rows Then
SRow = 1
If SCol < (.Cols - .FixedCols - 1) Then
SCol = SCol + 1
Else
SCol = 0
End If
End If
.Row = SRow
.Col = SCol
.RowSel = SRow
.ColSel = SCol
txtCellEditor.Text = .Text
txtCellEditor.Visible = True
txtCellEditor.SetFocus
keyascii = 0
End With
Case 9 'this is the Tab key
With MSFlexGrid1
.Text = ""
SCol = .Col + 1
SRow = .RowSel
If SCol = .Cols Then
SCol = 0
If SRow < (.Rows - .FixedRows - 1) Then
SRow = SRow + 1
Else
SRow = 1
End If
End If
.Row = SRow
.Col = SCol
.RowSel = SRow
.ColSel = SCol
txtCellEditor.Text = .Text
txtCellEditor.Visible = True
txtCellEditor.SetFocus
keyascii = 0
End With
End Select

MSFlexGrid Mouse Click
:confused:
I have an MSFlexGrid which allows the user to enter text in the cells, apart from the 1st row where I put the titles. I am using MSFlexGrid_EnterCell, MSFlexGrid_LeaveCell and txtCellEditor_KeyPress events.
Currently, the user can enter text and use the tab and return keys easily. My problem is that when clicking the mouse, nothing happens. How can I make it work? I tried to add MouseDown event and also MSFlexGrid_click event but neither has worked. On another version, I used GotFocus, LostFocus and KeyPress events and the mouse click worked ok but not the tab or return keys. It seems that they are mutually exclusive.
Can anyone help me please? All I want to allow in this grid navigation are the tab key, return key and the mouse click.
Most of my code shows below:

Private Sub Titles()
'Fill in the column titles.
Dim column As Integer
Dim columnname As Integer

MSFlexGrid1.Row = 0 'titles are only required at the top row
For column = 0 To (MSFlexGrid1.Cols - 1)

columnname = (column + 1)
With MSFlexGrid1
.Col = column
.TextStyle = flexTextFlat
.CellBackColor = RGB(10, 160, 280)
.CellFontSize = 9
'Place textbox over the current cell.
txtCellEditor.Visible = False
txtCellEditor.Top = .Top + .CellTop
txtCellEditor.Left = .Left + .CellLeft
txtCellEditor.Width = .CellWidth
txtCellEditor.Height = .CellHeight
'Assign cell contents to textbox
txtCellEditor.Text = "Location Code " & columnname

End With
'Move focus to textbox
txtCellEditor.Visible = True
'Disables edit of the title cells.
MSFlexGrid1.Enabled = False
Next column

' The following If-End if statement moves the focus to the next cell after the titles row.

If column = MSFlexGrid1.Cols Then
MSFlexGrid1.Row = 1
MSFlexGrid1.Col = 0
MSFlexGrid1.Visible = True
End If

End Sub

Sub MSFlexGrid1_EnterCell()
'Make sure the user doesn't attempt to edit the fixed cells
If (MSFlexGrid1.MouseRow = 0 Or MSFlexGrid1.Row = 0) Then
txtCellEditor.Visible = False
Exit Sub
End If
'Clear contents of current cell.
txtCellEditor.BackColor = RGB(255, 255, 255)
txtCellEditor.Text = ""
'Place textbox over the current cell.
txtCellEditor.Visible = False
With MSFlexGrid1
txtCellEditor.Top = .Top + .CellTop
txtCellEditor.Left = .Left + .CellLeft
txtCellEditor.Width = .CellWidth
txtCellEditor.Height = .CellHeight
'Assign cell contents to textbox
txtCellEditor.Text = .Text
End With
'Move focus to textbox
txtCellEditor.Visible = True
End Sub

Sub MSFlexGrid1_LeaveCell()
MSFlexGrid1.Text = txtCellEditor.Text
End Sub


Private Sub txtcelleditor_keypress(keyascii As Integer)
Dim SRow, SCol As Integer

Select Case keyascii
Case 13 'this is the Enter Key
With MSFlexGrid1
.Text = ""
SRow = .Row + 1
SCol = .ColSel
If SRow = .Rows Then
SRow = 1
If SCol < (.Cols - .FixedCols - 1) Then
SCol = SCol + 1
Else
SCol = 0
End If
End If
.Row = SRow
.Col = SCol
.RowSel = SRow
.ColSel = SCol
txtCellEditor.Text = .Text
txtCellEditor.Visible = True
txtCellEditor.SetFocus
keyascii = 0
End With
Case 9 'this is the Tab key
With MSFlexGrid1
.Text = ""
SCol = .Col + 1
SRow = .RowSel
If SCol = .Cols Then
SCol = 0
If SRow < (.Rows - .FixedRows - 1) Then
SRow = SRow + 1
Else
SRow = 1
End If
End If
.Row = SRow
.Col = SCol
.RowSel = SRow
.ColSel = SCol
txtCellEditor.Text = .Text
txtCellEditor.Visible = True
txtCellEditor.SetFocus
keyascii = 0
End With
End Select

KeyDown Event For MSFlexGrid
I have created a program that uses MSFlexGrid. When I put a KeyDown event for it, it recognizes all of the keys that I want, but it ignores the arrow keys. It doesn't even trigger the keydown event. It does change the cell that is in focus on the flexgrid... so I know that it sees the keys. I figure that it uses the arrow keys to move around in the flexgrid... I want to do my own moving up and down with the arrow keys.
When arrow up key is pressed, I want the program to call the MSFlexGrid_Click() event. Same with the arrow down key.
Does anyone know the way to do this?

MSFlexgrid Scrollbar Event?
Hi all,

I currently have got a MSFlexgrid but I want to know if it's possible to detect when the user clicks on the scrollbar? Any events?

Regards,
Brendon

MsFlexGrid KeyDown Event
Does anyone know how to detect/intercept Page Up & Page Down keystrokes on an msFlexGrid?

Tnx,

MSFlexGrid: Resize Event?
Hi,
when the user resizes a row of an MSFlexGrid - is there a way to make an application react on this resize? I tried out various mouse
events, but they are obviously not fired, when row heights are being changed.
Any ideas?
Regards,
Robert

Click Event
Greetings:

I'm fairly new to VB and I would like some help with the following:

I have 3 combo boxes on a form. Only one is visible at form load.
I want to display one of the others depending on what is clicked in the first combo box. I dont seem to get the click event, in other words how do I determine that there was a click on combo box 1?

Thanks for your input

Click Event
Can someone tell me how to detect if the user has click on a label?

Right-click Event
How do i access a right-click event? I want something to happen when i right-click a label.

Right Click Event
I have a flexgrid which displays a bunch of data. I would like the users to be able to sort on the column they click on. Right now if the users clicks on the heading of a column a list of entries are displayed so the user can filter the items. What I would like to do is use the right click for the sorting feature. When the user right clicks on the heading then they have the option to sort ascending or descending.

How would I do this?

Before Click Event
Using an SS Tab (Tabbed dialog control) is there any way I can have a message box pop up before the tab actually changes?

I have tried the mouse down event but there is no way to let the program know which tab the user selected because the parameters change when tabs are not visible or the back row is selected.

All I want is a warning message to fire off. If the user clicks yes the data will be saved and the tab they clicked on will appear. If they click no then they will stay at the current tab.

Click Event
I have a listbox with an overview of all my records on a form. Next to that listbox are textboxes with all the fields of that one selected record in the listbox.

If I do a find I position my listbox and the click event is trigger, so the details for that record are displayed.

I want to do the same thing for a listview. The problem is that when I select a different record in the listbox, the click Item event is not triggered.

Can anyone tell me how to solve it?

I tried to call the click item event, but that does not work.

Click Event
Dim ctl As Control
For Each ctl In Me.Controls
..........
Next ctl

I need to launch a click event for each control, what should i do?

Click Event
Hi!
On one of my 2 forms, I use the the click event like this

lblSonglist_Click (position)

where 'position' is a variable who says which index number (of the label lblSonglist) to click. Works perfect.

I'm trying to do the same thing from another form, but can't get it right.

Mynewform.lblSonglist_click (position) does not work (invalid use of property), nor any other way I could think of.

Any ideas?

Thanks/
jon

Copyright © 2005-08 www.BigResource.com, All rights reserved