Solved

How shall i do this in vb6 ?

Posted on 2009-07-04
11
169 Views
Last Modified: 2012-05-07
can anyone write a code or  find me a code like yahoo messenger & msn messenger shows when someone come online . a window comes up from taskbar and goes after a certain interval ?
0
Comment
Question by:BILAL69
  • 3
  • 3
  • 2
11 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 400 total points
ID: 24777226
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24777923
thats quite good but isnt it possible like yahoo and msn.. like if one form is open and another message comes again then it goes again on top somethign like this :-?
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 24778123
I don't have VB6 on my machines anymore so I can't code up anything concrete for you...

...do you want the new message to replace the existing one?...or should they stack?  (I don't use messaging systems)

You can create multiple instances of Form2:
 
    Dim f2 As New Form2

Then move the Timer code into Form2 itself...  (instead of driving Form2 from within Form1)
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 2

Author Comment

by:BILAL69
ID: 24779890
thats ok but it keeps coming on the same place.. all the forms
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 400 total points
ID: 24780245
Add a variable in a Module to keep track of the number of OPEN popups and use that to adjust the position of the current popup form...
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 24842760
hmmm.

you should start here by posting the relevant code you have.
idle_mind tried to give the good method, but what is the problem you have, now?
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24860660
Actually that code is good but it shows only 1 form at a time next what i want is  It pop ups multiple forums on the top of the previous opened pop up
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 100 total points
ID: 24863155
please post the code you have.

it will need what idle_mind indicated:
>Add a variable in a Module to keep track of the number of OPEN popups and use that to adjust the position of the current popup form...

means: keep a open_popup_counter.
if top of the first form is "height of screen" - "height of form", it is actually generalized into

top of the nth form is "height of screen" - ( n * "height of form")

0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question