Solved

How shall i do this in vb6 ?

Posted on 2009-07-04
11
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
11 Comments
 
LVL 86

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 86

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 2

Author Comment

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

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 143

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 143

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

732 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