Click here to Skip to main content
15,616,898 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Array of objects in an array of objects Pin
Christian Graus11-Apr-08 1:45
protectorChristian Graus11-Apr-08 1:45 
GeneralRe: Array of objects in an array of objects - resolved Pin
Mycroft Holmes11-Apr-08 14:39
professionalMycroft Holmes11-Apr-08 14:39 
QuestionSending Extended ASCII values from serial port Pin
kranthikiran.a10-Apr-08 21:13
kranthikiran.a10-Apr-08 21:13 
GeneralRe: Sending Extended ASCII values from serial port Pin
Rajesh Anuhya10-Apr-08 21:48
professionalRajesh Anuhya10-Apr-08 21:48 
QuestionCrystal Report from SP ask Login Password Pin
bharat khandelwal10-Apr-08 19:53
bharat khandelwal10-Apr-08 19:53 
QuestionHow I can check cookies are enable or disable? Pin
Ashish Kumar Vyas10-Apr-08 19:23
Ashish Kumar Vyas10-Apr-08 19:23 
AnswerRe: How I can check cookies are enable or disable? Pin
Christian Graus10-Apr-08 20:03
protectorChristian Graus10-Apr-08 20:03 
GeneralVB.NET form location Pin
Joe Surls10-Apr-08 16:54
Joe Surls10-Apr-08 16:54 
I have a small application that I am running in the system tray using the NotifyIcon control. That functionality is working well. The form is set to Minimize initially and shown when the user clicks the tray icon. The problem is where the form displays. I want it to display in the lower right corner of the screen right above the system tray. Here is the code used to display the form:

Private Sub frmMain_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
Me.SetDesktopLocation(My.Computer.Screen.WorkingArea.Width - Me.Width, My.Computer.Screen.WorkingArea.Height - Me.Height)
End Sub

I have also tried:
Me.Left = SystemInformation.WorkingArea.Width - Me.Width
Me.Top = SystemInformation.WorkingArea.Height - Me.Height

I have tried both sets of code in both Activate and Form Load. Because of the "start minimized" nature of the app, initially both result in a Top and Left of -32000 because the form is not technically shown. At least that's my take.

It's only off by half the form the FIRST time the form is shown and then it jumps to where I want it to be from then on. I've tried to show the form, then quickly hide it but this seems ridiculous.

Does anyone have any suggestions?


Thanks, Joe
GeneralRe: VB.NET form location Pin
Christian Graus10-Apr-08 17:40
protectorChristian Graus10-Apr-08 17:40 
GeneralRe: VB.NET form location Pin
Joe Surls10-Apr-08 17:52
Joe Surls10-Apr-08 17:52 
GeneralRe: VB.NET form location Pin
Herl the Pearl10-Apr-08 23:41
Herl the Pearl10-Apr-08 23:41 
Generalweb based application Pin
shee_dee8610-Apr-08 15:58
shee_dee8610-Apr-08 15:58 
GeneralRe: web based application Pin
LloydA11110-Apr-08 17:08
LloydA11110-Apr-08 17:08 
GeneralRe: web based application Pin
Christian Graus10-Apr-08 17:30
protectorChristian Graus10-Apr-08 17:30 
GeneralVS 2005 VB - MS ACCESS 2007 - Crystal Report XI R2 "Error: Logon failed.." Please help!! [modified] Pin
vbDigger'z10-Apr-08 14:33
vbDigger'z10-Apr-08 14:33 
GeneralID3v2 tag size not sync byte Pin
clusto10-Apr-08 11:35
clusto10-Apr-08 11:35 
GeneralText Box and String Manipulation Pin
Debi 10-Apr-08 10:39
Debi 10-Apr-08 10:39 
GeneralRe: Text Box and String Manipulation Pin
Dave Kreskowiak10-Apr-08 12:37
mveDave Kreskowiak10-Apr-08 12:37 
GeneralRe: Text Box and String Manipulation Pin
Luc Pattyn10-Apr-08 12:44
sitebuilderLuc Pattyn10-Apr-08 12:44 
GeneralRefreshing the program Pin
mykingdomforanewusername10-Apr-08 7:45
mykingdomforanewusername10-Apr-08 7:45 
GeneralRe: Refreshing the program Pin
Dave Kreskowiak10-Apr-08 9:24
mveDave Kreskowiak10-Apr-08 9:24 
GeneralRe: Refreshing the program Pin
Luc Pattyn10-Apr-08 11:04
sitebuilderLuc Pattyn10-Apr-08 11:04 
Generalresponse.redirect Pin
screwfunk0110-Apr-08 7:37
screwfunk0110-Apr-08 7:37 
GeneralRe: response.redirect Pin
jzonthemtn10-Apr-08 7:43
jzonthemtn10-Apr-08 7:43 
GeneralRe: response.redirect Pin
Herl the Pearl10-Apr-08 23:44
Herl the Pearl10-Apr-08 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.