Click here to Skip to main content
15,908,843 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Draw shape on the basis of some point Pin
dan!sh 2-Nov-08 22:59
professional dan!sh 2-Nov-08 22:59 
GeneralRe: Draw shape on the basis of some point Pin
sunil goyalG3-Nov-08 0:53
sunil goyalG3-Nov-08 0:53 
GeneralRe: Draw shape on the basis of some point Pin
dan!sh 3-Nov-08 7:31
professional dan!sh 3-Nov-08 7:31 
QuestionRelation setting Pin
niwre the newbie2-Nov-08 18:07
niwre the newbie2-Nov-08 18:07 
Questionusing files Pin
revath2-Nov-08 17:58
revath2-Nov-08 17:58 
AnswerRe: using files Pin
Ashfield2-Nov-08 20:27
Ashfield2-Nov-08 20:27 
AnswerRe: using files Pin
Steven J Jowett2-Nov-08 23:22
Steven J Jowett2-Nov-08 23:22 
QuestionMe.Location Pin
User 54091902-Nov-08 11:15
User 54091902-Nov-08 11:15 
I'm trying to make this application appear in the bottom right of the screen no matter what resolution the screen is at so I created this code.
Dim Width1 As Integer = Screen.PrimaryScreen.Bounds.Width
Dim Height1 As Integer = Screen.PrimaryScreen.Bounds.Height
Dim X As Integer = Me.Location.X
Dim Y As Integer = Me.Location.Y
X = (Width1 - Me.Width)
Y = (Height1 - Me.Height)

Which runs when a button is clicked however, whenever the button is clicked nothing happens so I changed the X and Y on the bottom two lines to Textbox1.Text = (Width1- Me.Width) and Textbox2.Text = (Height1 - Me.Height) and the textboxes showed the correct numbers.
What is wrong with my code? I know it deals with the Me.Location.X and Me.Location.Y but am unsure why. Thanks for your help in advance.

modified 8-Sep-21 21:01pm.

AnswerRe: Me.Location Pin
Dave Kreskowiak2-Nov-08 11:26
mveDave Kreskowiak2-Nov-08 11:26 
AnswerRe: Me.Location Pin
Luc Pattyn2-Nov-08 12:16
sitebuilderLuc Pattyn2-Nov-08 12:16 
QuestionNeed Help to Create DSN in Installer Class [modified] Pin
Saseendran Kombath1-Nov-08 7:51
Saseendran Kombath1-Nov-08 7:51 
AnswerRe: Need Help to Create DSN in Installer Class Pin
Dave Kreskowiak1-Nov-08 11:48
mveDave Kreskowiak1-Nov-08 11:48 
GeneralRe: Need Help to Create DSN in Installer Class Pin
Saseendran Kombath1-Nov-08 15:16
Saseendran Kombath1-Nov-08 15:16 
GeneralRe: Need Help to Create DSN in Installer Class Pin
Dave Kreskowiak1-Nov-08 15:29
mveDave Kreskowiak1-Nov-08 15:29 
GeneralRe: Need Help to Create DSN in Installer Class Pin
Saseendran Kombath1-Nov-08 17:05
Saseendran Kombath1-Nov-08 17:05 
GeneralRe: Need Help to Create DSN in Installer Class Pin
Saseendran Kombath2-Nov-08 6:42
Saseendran Kombath2-Nov-08 6:42 
QuestionCreate .CAB file using Winzip Pin
~Khatri Mitesh~1-Nov-08 4:45
~Khatri Mitesh~1-Nov-08 4:45 
AnswerRe: Create .CAB file using Winzip Pin
Dave Kreskowiak1-Nov-08 14:17
mveDave Kreskowiak1-Nov-08 14:17 
AnswerRe: Create .CAB file using Winzip Pin
Thomas Stockwell3-Nov-08 1:50
professionalThomas Stockwell3-Nov-08 1:50 
AnswerRe: Create .CAB file using Winzip Pin
Jon_Boy3-Nov-08 2:45
Jon_Boy3-Nov-08 2:45 
GeneralRe: Create .CAB file using Winzip Pin
~Khatri Mitesh~5-Nov-08 23:11
~Khatri Mitesh~5-Nov-08 23:11 
QuestionHow to change pixel size for an image Pin
Vineet Swami1-Nov-08 3:20
Vineet Swami1-Nov-08 3:20 
AnswerRe: How to change pixel size for an image Pin
Guffa1-Nov-08 6:11
Guffa1-Nov-08 6:11 
GeneralRe: How to change pixel size for an image [modified] Pin
Luc Pattyn1-Nov-08 6:35
sitebuilderLuc Pattyn1-Nov-08 6:35 
QuestionTransfer data from one database to another Pin
pank@12341-Nov-08 3:07
pank@12341-Nov-08 3:07 

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.