Forms :: Control The Load Location Of An App?

Mar 19, 2009

I am developing a windows app in VS2008 to be used along side ESRI�s ArcMap. Most ArcMap users will have dual monitors and I would like the user to be able to choose which monitor my app is loaded on to.

When I deploy the app using the standard install package, the app will load onto which ever monitor the user places the desktop shortcut. However, when using the ClickOnce method of deployment, the placement of the shortcut does not matter and the app always loads on the primary display monitor.

Is there a way to control where an app is loaded by code or any other method?

View 1 Replies


ADVERTISEMENT

How To Load Multiple Same Forms Location

Sep 20, 2010

Hi,

How to load multiple SAME forms location? I have no problem to load 2 different forms' location but the multiple same forms' locations.

The following code is for loading the different forms:

Private Sub Menu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.Location = My.Settings.Location
Me.Visible = True

'Usually i have multiple Form1 are opened when i close app.
Dim f1 As New Form1
f1.Location = My.Settings.test
f1.Visible = True

End Sub


Thank you for the helps!

View 4 Replies

Redirect Image Load Requests In A WebBroswer Control To A Different Location?

Nov 15, 2011

I am trying to make a html editor that allows you to preview the code as you type.

The users are able to see a live preview of the text they're typing. What I'm trying to do is get the webbrowser to load images from a different location. So, when the user changes the text in the richtextbox, the webbrowser.documenttext is changed to the text of the richtextbox and the page is loaded. But, if the code contains images, the webbrowser won't load them because there isn't any file, just the documenttext. The richtextbox is linked with the actual file itself, but I can't make it constantly write text to the actual file because that would make the save function pointless. Writing the text to another file in the same location isn't an option either, because that is too slow.

So, how can I make the webbrowser read the images from a self-selected directory?

View 1 Replies

Control The Starting Location Where On The Desktop Those Four Windows Will Appear When Load (Open) The Window?

Nov 22, 2010

I have a game that will open four windows on the desktop using VBE2008.How do I control the starting location where on the desktop those four windows will appear when I Load (Open) the Window?

View 2 Replies

Forms :: Copy A Control And Place It In Another Location?

Sep 10, 2011

Does anyone know how to copy a control (button, panel etc...) and place the control with the same click event on another part of a form while keeping the original in the same location? I have a custom user control that I created that has special features on click. If I have the control on the left side and want to drag it over to the right side I want the control duplicated, as this control can be duplicated unlimited times, and still have the same click event.

[Code]...

View 2 Replies

Forms :: Dynamically Load User Control In A Form?

Apr 26, 2011

I dynamically load a user control in a form (Form 1).

In my user control there are two things :

a Textbox (TxtBox1) and a Command Button

WHen the button is clicked, it opens a new form (Form 2) Form2.ShowDialog()

My question is, in Form 2, how can i set a value to TxtBox1 of the user control?

View 2 Replies

Forms :: UnBound DataGridView Location - Grid Must Be In The Correct Location According To The Pixel Point?

Dec 19, 2011

i am using an unbound datagridview so i can dynamiclly add rows. all that is working fine. but the grid is not is the location i have coded.. i am using the defualt form as a base then coding the unbound stuff in.. should i just create a blank class file and do everything? the only problem i am having is the grid must bees in the correct location according to the pixel point that i have given it. Right now it is placing the grid at point (0,0) no matter what point is entered on the line for location. so what am i missing??????

View 3 Replies

VS 2010 Changing Control Parent Property Changes Control Location Position?

Feb 16, 2011

I'm trying to make a program with transparent labels over pictureboxes and when I set the label Parent to the PictureBox the position of the label changes.

View 2 Replies

Load In Image / File From Location Of Program?

Sep 7, 2009

If I create an array of bitmaps, something like Dim PictureArray(10) as New Bitmap..How do I then load my pictures into the array? If I try Picture Array(1) = "("c:image.bmp") I get an error.Also, can someone remind me of how I load in an image/file from the location of my program? Do I just use ("image.bmp") or do I need to specify curdir or something?

View 15 Replies

Load Form2 On Top Of Form1 Everytime No Matter Location?

May 25, 2009

How can i get form2 to to load exactly center of form1 or a location within the form when i get form2 to show, no matter the location of form1.[code]...

View 10 Replies

Location - Get The Nearest Control To A Control Of Choice?

May 14, 2010

Is there an easy way to get the nearest control to a control of choice? I have a picture box and some other moving controls. I want to delete the nearest control to my picture box. So I have to get the position of all controls and delete that with the Location nearest to the Location of my picture box. I'm not sure about how to do that the best way.

View 2 Replies

How To Set Tip Forms Location

Mar 18, 2011

I have a project in vb.net (2008) .net 3.5 in which I have a mainform (Not a MdiParent) and I created another form I want to use as a tip form. I'm trying to set the tip forms location to the lower right of the mainform no matter what the size of the mainform's height and width.

I tried this :
TipForm.Location = New Point(Me.Width - TipForm.Width, Me.Height - Me.RibbonControl.Height - Me.statusbar.Height * 1.5 - TipForm.Height)

View 7 Replies

Forms :: How To Change Location Of Panel

Mar 7, 2009

i want the panel to center itself evertime i change the size of the window. how do i do it? panel1.location.x=form1.location.x doesent work.

View 1 Replies

Forms :: Unable To 'Call' From Another Location

May 13, 2009

I have a form which has a button and a toolbar.

The button has code which works and deletes a record in a database:

=======================================
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click

[code]....

I can put similar code into the toolbar button just changing the Button5_Click to the name of the toolbar button but I thought it would be better if I 'called' the already written code.

I changed the Private Sub Button5_Click etc. to Public Sub Button5_Click then in the Toolbar button click event I put 'call Sub Button5_Click()'

I get errors stating that ' argument not specified for parameter 'e' ' and can't progress.

I will be using this code in a few other forms so would like to 'call' possible.

View 1 Replies

Managing Modal Forms Location

Oct 3, 2010

I've got a "Loading" form which I display as a modal form when doing lengthy processes. I'm using the below to keep the form centred within the child form performing the process. However, when minimisingmaximising the "Loading" form appears before the parent making it look a little unprofessional. Anything I can do about that (Delay it appearing or attaching it in a different way)?

[Code]...

View 1 Replies

MDI Forms Location/Class-function?

Jan 8, 2009

I want to create a function (class?) that will have stored the coordinates(values) of my mdiforms, so I can call it whenever I want to dispaly the mdiforms. I want to avoid retyping again and again (in every mdi form) the above Me.Top=5 Me.Left=150 on forms load.

View 2 Replies

Save Forms Position / Location?

Aug 6, 2010

Does anyone know how can I create a function to save the forms position / location and load the previus forms position / location when next time the app is started.

View 6 Replies

VS 2008 Location Of Child Forms?

Aug 11, 2011

I have a Midi form with controls I always want to be displayed even when child forms are open. I can position the location of the child forms when the project is first opened with no issues. The problem I have is if more than 3 child forms are open and I enter the middle form one of the others is no longer visible. Me.LayoutMdi(MdiLayout.Cascade) will reorder all the forms but it starts at location(0,0). Have tried the other options available with midilayout and they all do the same thing

View 6 Replies

Vb6 Migration - .net Taking Too Much Time To Load User Control Containing Label Control Array?

Dec 22, 2011

I am upgrading user control from vb6 to vb.net.In the vb6 application I am loading 3000 labels using a label control array.In vb.net I am doing same but it's taking too much time to load.In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. Why does it take too much time in vb.net for same work?Code is given below, here Led is the label control array.

For l = 1 To 3000
Led.Load(ledCounter)
ColLed.Add(Led(ledCounter))

[code]....

View 1 Replies

Forms :: Copy Files From A Dynamic Location?

Mar 12, 2010

I'm developing an application which relies on several files to be copied over to a specific location on the users hard drive ("C: est") when they run the program for the first time, and am having a hard time wrapping my head around how to account for the fact that the original location may be in a different location for each user.

Any ideas for either getting the path where the files would be and then copying them to the desired destination?

View 1 Replies

Forms :: Determining Opening Location Of A Form?

Jul 4, 2011

I have a button on my form. When I click it, I want a form to be opened exactly on the location where the button is.

View 1 Replies

Forms :: Picturebox Flickering When Location Changed?

Aug 3, 2010

i am making an RPG game with visual basic...The character is a picture box.The problem is when i move the charactor with the arrow keys it flashes black for a milisecond. I think added animated walking where it slowely moves 32 pixels but not it goes black the whole time... what can i do sto stop it going black everytime it moves?

Old movement
If e.KeyCode = Keys.Right Then
player.Image = My.Resources.mainplayerright
moveto = New Point(playerx + 32, playery)

[code]....

That code moves the player slowely but causes a big black line to merge then just ends up teleporting the player..How can i get rid of the black flash during movement?

View 2 Replies

Forms :: Read A File Location From Textbox2?

Feb 16, 2011

I need to read a file location from textbox2 and replace it with file from textbox 1 at button click but I'm a beginner when it comes to system command calls

View 6 Replies

Forms :: Save The Location Of The Object And Redraw?

Feb 12, 2011

I have developed an application where i am drawing line using the mouse like a pen (it can be of any shape) i want to save the location of the object and redraw it later using the drawn location saved on any xml or text file. Instead of saving the edited image i want to save the location only to save the space in the sql server.

View 2 Replies

Forms :: Show Form Random Location?

May 26, 2009

im working on a little project and i need my form1 to basically spam itself in random locations...

View 5 Replies

Saving Object Location/Information On Forms?

Apr 12, 2011

I am making a program to organize grainbins in seperate yards.In this program, the grainbins need to be moved around and thier position to be saved when the program is closed. I also need to save information such as backcolour and text.I am specifically referring to GroupBoxes, OvalShapes, Textboxes, Labels, and ComboBoxes.

View 2 Replies

Coordinates - Control Relative To The FORM - "Control.Location DUH!!"

Nov 13, 2008

I have a control on a form - I need to know the coordinates of that control relative to the FORM.

Now before I get six replies saying, "Control.Location DUH!!" that only works when the control's parent IS the form. What if the control is nested inside one or more container controls?

Could I write a routine that crawls up all parent containers until I reach the form calculating each offset as I go? Sure! But this extremely crude operation seems clunky to me - What I'm looking for is something a little cleaner.

So far the closest I've been able to come is this:
Dim ClientPoint As Point = Ctrl.PointToScreen(Ctrl.Location)
Dim LocationLeft As Integer = (ClientPoint.X - Ctrl.ParentForm.Left) - Ctrl.Left
Dim LocationTop As Integer = (ClientPoint.Y - Ctrl.ParentForm.Top) - Ctrl.Top

The problem with the above code is: It does NOT take the Form's border or Titlebar into consideration... so this calculated location would be off slightly depending on what kind of border the form has.

View 3 Replies

Forms :: Beginner Text Based Game Location Handling?

Mar 18, 2009

I am just for learning purposes trying to develop a one player text based game.

I have a rich text box (GameWindow)
I have a text box (InputWindow)
I have a button (InputButton)
and a bunch of labels that aren't really important

I have two questions first is easy probably. How do i get InputWindow to respond to me hitting enter when text is in it?

[Code]...

But if i plan to have more that is only going to increase the size and code needed and im sure there is an easier way i just don't know how to do it.

View 1 Replies

Forms :: Label Create At Dynamically - Location Changed In Labels?

Oct 19, 2009

I am using Vb 2008. I have created label array in run-time(Dynamically). I have put them in Panel1.

Dim loc As Integer
loc = 5
For i = 1 To 25
NewLabelMe(i) = New Label
NewLabelMe(i).Text = "99.99"

[code].....

View 4 Replies

How To Give Location To Control T Runtime

Mar 27, 2010

I am trying to add textbox at runtime. but my problem is textbox is

added on same location but i want to add textbox at different location.

Code that i am using is :[code...]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved