Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Popup, set location at runtime

Status
Not open for further replies.

rickes

Technical User
Mar 28, 2005
11
US
I want to set a forms location in the lower righthand corner to pop up and display information like how nortons antivirus 2004 and other applications display info there. I cannot get it to set the location???

here is my code...

Private sub form1_load
dim alertpop as new frmAlert
Dim SWidth as int16 = system.windows.forms.form.primaryscreen.bounds.width
Dim SHeight as int16 = system.windows.forms.form.primaryscreen.bounds.height

dim locx as int16
dim locy as int16

locx = swidth - 152
locy = sheight - 160

alertpop.location.x.equals(xloc)
alertpop.location.y.equals(yloc)
alertpop.show

end sub


the form always looks at the location properties value
x = 0
y = 0

or whatever else i change it to before i run it. how do i set the position while it is running?
TIA
JT

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top