Hello,
I'm doing a vb project which contains some data in flexgrid the data in the flexgrid can change upon each and every execution . Now each data in the grid correspond to one particular icon in the form so when the user clicks on the grid i want that particular icon to start blinking .I'm not able to achieve it .Plz can someone help me out .
Thanks & regards,
11 2292
Two questions...
What version of VB are you using?
What have you tried so far? I expect a timer control would be the way to go.
Two questions...
What version of VB are you using?
What have you tried so far? I expect a timer control would be the way to go.
Thanks for having look at my question and replying.
I'm using VB 6.0 i have used timer by setting its interval as 500 but the problem is a single number in the flexgrid can correspond to more than one icon in the diagram for ex: assume that the first cell of the flexgrid contains no 6 and it may correspond to 4 icons , now when the user clicks the cell which contain 6 i want all the 4 icons to start blinking simultaneously.I have used picture box to paste the icon.
regards,
I don't know enough about your situation to make many suggestions. But if I have a form where I want to do something like blink a number of controls, what I like to do is flag them with some string in their Tag property. The timer just has to loop through the controls on the form checking their Tag and when it finds that string, do the "blinking" thing to that control. That may mean turning its visibility on/off, or changing its colours, or whatever.
See if this helps...
It makes the button flash like crazy! - Public Class Form1
-
Dim a As String = 0
-
Dim b as integer
-
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
-
If a = 0 Then
-
Button2.Visible = False
-
a = 1
-
Exit Sub
-
End If
-
If a = 1 Then
-
Button2.Visible = True
-
a = 0
-
Exit Sub
-
End If
-
End Sub
-
End Class
You use this button to stop/start it flashing.... - Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
-
If b = 2 Then
-
b = 0
-
Exit Sub
-
End If
-
If b = 0 Then
-
b = 2
-
Button2.Visible = True
-
Exit Sub
-
End If
-
End Sub
See if this helps...
sumuka, note that this is VB.Net code and won't work in VB6.
Here's a working sample written in VB6. Just load it into VB6 and run it. There's not much code, and it has comments to show what's what.
I've also included the EXE for anyone who just wants to try running it. As far as I know it's virus free and so on, but take the usual precautions, of course.
That's good Killer, think you can post the code as I don't have VB6 only VB.Net?
Thanks.
think you can post the code as i dont have vb6 only vb.net?
I did. It's in the zip file.
Here's a working sample written in VB6. Just load it into VB6 and run it. There's not much code, and it has comments to show what's what.
I've also included the EXE for anyone who just wants to try running it. As far as I know it's virus free and so on, but take the usual precautions, of course.
Thank you for your interest. The problem here is I have a flex grid whose cells contain one or the other number and when I click on the number I want the corresponding icon to blink automatically. Each and every number is connected with one or the other icon on the form.
Please help me.
Thanks in anticipation,
Sumuka.
QVeen72 1,445
Recognized Expert Top Contributor
Hi,
What is stored in FlexGrid Cell...?
Index Number of the Icons(What Character Seperates them)..?
List of Icon Names?
Can you post the Cells's TextMatrix here ..?
Regards
Veena
Thank you for your interest. The problem here is I have a flex grid ...
Sorry, but I just can't seem to understand exactly what it is you want us to help with. Can you try to go into more detail, or show us what you have tried? Just stating the situation again and again won't help, we need to know more about precisely what you have, and what you want to do with it.
For instance, in what way are the icons "connected" with the grid cells?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Fast Eddie |
last post by:
Can anyone tell me a good way to make a blinking systray icon? I want
it to alternate between two icons. I've tried toggling between two
notifyIcons and alternating the visible variable - but that...
|
by: Elad Gutman |
last post by:
Hi Everyone,
I'm facing an annoying problem and any help will be most appreciated .
.. .
I have a main application form and its icon is functioning excellent:
it appears both in the taskbar...
|
by: Sharon |
last post by:
The ErrorProvider text is also blinking together with the icon.
It’s making the reading of the error description very uncomfortable.
Is there a way to prevent the text from blinking while the...
|
by: Sharon |
last post by:
The ErrorProvider text is also blinking together with the icon.
It’s making the reading of the error description very uncomfortable.
Is there a way to prevent the text from blinking while the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |