VS 2008 Starting Position Of Form?

Jul 7, 2011

I have a "Please Wait..." form that I show when doing some long task. This works quite well. But I cannot seem to control the opening position of the form. Currently I am using:

WaitWindow.StartPosition = FormStartPosition.CenterParent
WaitWindow.Show()

and this is just being ignored. The window opens at random locations. If I change it to CenterScreen, that works! But I don't want it center screen, I want it centered on the parent. Can I manually set the location? I am using VB 2008 Express and the wait form is a plain windows form.

View 3 Replies


ADVERTISEMENT

VS 2008 Form Starting Position?

Nov 29, 2009

I am trying to set a form position before it shows but i cant get it working.Form Name: ColorCentraling.vb

I've tried: Private Sub ClickNPC_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClickNPC.Tick

[Code]...

are 2 integers which represent a number which does not need to be explained.There i've made a DIM as the form but new! I've tried settings its location but its not possible for me.I know this is possible because: I've visited many VB.NET 2008 Programs that do this

View 6 Replies

VS 2008 Starting A Form On A New Thread?

Oct 10, 2010

Ok so my main form takes around 5 seconds to load i can't make it so that my load subs are on a seperate thread because too many cross thread calls being made besides i want a splash screen anyway i want a splash screen on a seperate thread that can update status while main thread is loading this way main thread carries the load subs and invokes status label changes in the splash form which is on another thread

this is my code

Dim SPForm As SplashForm
Public Sub LoaderSub(ByVal Splashed As Boolean)
If Splashed = False Then

[Code]...

what happens is the splash form shows and so does the main form but they both lag for 5 seconds (as if they are both on main thread) how do i make it so that the splash form loads from the new thread? I thought the way i did it that's what should happen...

EDIT: also why did code wraps failed to show proper vb code?

View 10 Replies

VS 2008 Check If Form Is Loaded Before Starting Another Instance

May 19, 2009

I have a Parent form that loads a child form and I only want to allow one instance of the child form. I have this on the button to open the form. Stepping through the code with the debugger it "appears" to work OK when the form is open (I say appears because nothing changes) but when the form is closed it doesn't open as I would expect. What am I missing?

[Code]....

View 6 Replies

[2008] Form Show Position?

Mar 1, 2009

How do I when showing a form, make it randomly pop up on somewhere on the screen? Im using it for allitle game Im putting together

View 6 Replies

Setting Start Position For A New Form To Another Form's Position

Mar 24, 2010

I have two forms: Main and Options.Main can be moved around the screen (like a normal window).When the user clicks a button, the Options form opens up and the Main form HIDES.How do I set the Options form to open in the exact place that the Main form was last on the screen (to give it the effect the MAIN form never went into hidding)I was thinking to set Option form's StartPosition to Main's current position, but I don't know the syntax for that or if it's even something you can do.

View 4 Replies

VS 2008 Form Size Does Not Match With The Cursor Position?

Aug 1, 2011

I set the form's size with Me.Size = New System.Drawing.Size(500, 500). I display the mouse cursor's position when the event Form1_MouseMove fires. At the bottom right corner of the form, I read the coordinates 483,460 (instead of 500,500) I precise that the upper left corner has the coordinates 0,0.I also notice that the size of a control differs from the form's size. for example if Picbox1.height = Form1.height, then the Picbox will be bigger than the displayed Form1.

View 4 Replies

VS 2008 - Changing Mouse Position Coords Based On Form?

Oct 18, 2011

Basically I want to move my mouse to the coords that is received based on the location of a certain coloured pixel. I can get the coords of the pixel but when using them on mouse position, the mouse position is based on the entire screen rather than the form. How could I change the position coords based on the form rather than the entire screen. E.G. If a certain coloured pixel is 2,2 in a form and I put that as the mouse position, it would go outside the form but I dont want that. I want it to hover of the pixel coords

This is my
Dim bmp As Bitmap = DirectCast(PictureBox1.Image, Bitmap)
For x As Integer = 0 To bmp.Width - 1
For y As Integer = 0 To bmp.Height - 1
If bmp.GetPixel(x, y) = (Color.FromArgb(108, 90, 60)) Then
Windows.Forms.Cursor.Position =
End If
Next
Next

View 2 Replies

VS 2008 : Finding Mouse Position In Form Coordinates To String?

Oct 3, 2009

I'm trying to figure out the mouse position on the form, how do I do that?

View 2 Replies

VS 2008 MDI Parent, Menu Item Form Shifts Position?

Jun 2, 2010

I've made a project with a menu.This menu is placed in a form which i use as a MDI Parent, and all the other forms are opend in this parent form.Everything works ok.

When I open a menu item (eg form A), the form display's correctly.But when I minimize the procject to the taskbar, and maximize it again, Form A shifted position a bit lower.

I can't figure out what's going on.

View 13 Replies

VS 2008 BindingSource.Position - Event To Fire Only Once After The Position Command

Dec 5, 2010

I am using the following code to populate data in Textbox1:

[Code]...

I have few functions assigned in TextBox1_TextChanged event. The problem i am facing is this event is fired twice, once after the Fill command and another after the Position command whereas i want the event to fire only once after the Position command. What should i do?

View 6 Replies

Starting Location For A Form?

Oct 4, 2008

I'm a bit confused when it comes to setting the start location of a form, relative to another form.I know how to set the start location for a form, however, I have a "main" form, which is behind this form. The main form will be displaying different images, labels, ect. I need the second form to display at the bottom of the main form. The main form's resolution is 800x600, and the bottom form is 800x65. I tried to set the bottom form's location to 0,535, which WOULD make it right at the bottom of the main form, but it seems that it puts it at that location relative to the user's display resolution.So basically, I just need help with getting this form to appear at the bottom of the main form. I read a bit about "containers", but am not sure exactly if they would work for this, and if they did, how exactly I would incorporate them into my situation.

View 2 Replies

Hide A Button When Starting A Form?

May 13, 2010

I need to make a button invisible at the start up of a VB form. However, when text is entered into an input textbox the button needs to become visible without a click event procedure. When the button to enter the text from the textbox into an array is clicked the button needs to become invisible again unitl more text is entered into the box, repeating the cycle. I have found related topics but they don't cover this.

View 4 Replies

Starting Form Based On Dataset?

Feb 10, 2010

I'am trying to write a program for projects management.It is based on MS SQL Express Server 2008 database.I have 2 forms.In first form I have list of projects (using DataGridView and showing all projects).So if user click on Project name cell second form will open with Project details (using text boxes and labels to show one project).I try something like this:

Public strValue as String
Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick

[code]....

View 3 Replies

Display Loading Animation While Starting Up A Form?

Dec 17, 2009

' Show Loading Screen
--> Do anything like initializing or updating UI
' Close Loading Screen

In this case I can fire (Show Loading Screen) anywhere in the form I want,
Like

Dim LoadingScreen as New LoadingScreen
LoadingScreen.ShowLoading()
' Do things

[code]....

View 1 Replies

Perform A Search Starting From The Completion Of A Form ?

Nov 19, 2009

I want to link sql server and vb.net (ADO.NET) . I'm using visual basic 2008 express edition and sql server management studio.

My problem is how to perform a search starting from the completion of a form (in vb.net ). On pressing the button search it verifies if the records are in the table (in my case FoaieParcursMasina).

SQL Server:
Step1: Create the table and insert into them the values (full DDL):
-- creating the table FoaieParcursMasina
CREATE TABLE FoaieParcursMasina

[Code]....

View 3 Replies

Starting Properties Of Objects In Winforms Form?

Jun 11, 2012

In my software course, each time we submit an assignment, we have to include a document with the starting properties of each object in a form.

E.g.

TextBox1
Location: 241, 115
Name: TextBox1
Size: 100, 20
TabIndex: 0

It's a real pain to scroll through the properties viewer and copy and paste each customised value for 30+ objects on a form... I was wondering if there'd be an easy piece of code or way about getting an (at least partially) automated printout/view of all the properties of the objects.

Was thinking some sort of private sub I could past into the bottom of the program and run on load, that gets all objects, and outputs the non-default properties to a report or something?

View 1 Replies

Stop Default Form Instance From Starting?

Jan 24, 2010

well basically i created a new instance of Form1 because i do not like to use a default form instance. but of course doing so gives me 2 Form1s. is there anyway to stop the default form instance from being generated? [code]

View 11 Replies

Change Startup Position And Move A Docked Form With Parent Form?

Mar 23, 2011

well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used

Me.toplevel = false
Me.parent = form1

View 6 Replies

Application Not Starting Wit New Startup Form After Deleted The Previous Startup Form?

Nov 11, 2009

i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.

View 3 Replies

Starting To Program With VB 2008

Jan 6, 2009

I am just starting to program with Visual Basic 2008. I would consider myself at a Beginner - Intermedite level of programming with VB and looking to get better. I noticed that in other language forums on this site that there were program suggestions but didnt see one here so I thought i'd ask.

View 2 Replies

VS 2008 Starting An EXE From Within A Program

Oct 20, 2011

I have an executable (EXE) that I would like to run from within my VB.NET program. I've looked into Process.Start("[PATH][EXE]"), where PATH is the path to my executable, and EXE is the name of the executable. However this throws an error, saying "The parameter is incorrect". I've managed to avoid this error with the following

[Code]....

View 4 Replies

VS 2008 Starting CMD Hidden?

Oct 4, 2009

Shell("CommandHere")How would I make it start CMD hidden?

View 2 Replies

2008 Remote Process Starting?

Mar 8, 2010

the below code starts the correct process but the windows form never displays on the remote machine. How do I get the application to actually load.

Private Sub RunRemoteProcess()
Dim sCmd As String = "C:Program FilesInternet ExplorerIEXPLORE.EXE " & txtData.Text.Trim
' add a reference to System.Management in Solution Explorer

[code].....

View 6 Replies

Starting With VB 2008 Express Edition?

Sep 11, 2010

I like to have assistance with the VB 6 codes below; a few cheeky lines dock into positions I do not mean them to be in; sorry; I am on VB 2008 Express; a few lines have errors; adjacent to them I have described what VB 2008 reports.

[Code]...

View 8 Replies

VS 2008 Starting A Website In A New Window?

Sep 27, 2009

I am using the following code

[code]...

The arguement -new is not being passed and the window that shows the website will open if no other windows are open. However, if any other windows are open, the last opened window gets the website.I have IE6 on my system. Is there any special syntax that will open a new browser window without using one that is currently open?

View 1 Replies

VS 2008 Starting An Application After Installation

Dec 16, 2010

I have created a setup project that after the installation, starts the app that is being installed. To do that I have added an Installer class to the app I want to get started and I am using it's commited event to start the app (Process.Start("...myapp.exe").

While this works fine on XP, on Windows Vista the application gets started as a "System" user which makes some parts of the app missbehave i.e. retreiving special folders of the user etc...

This is the question: way to start myapp as the logged in user? Mind you I will not have the credentials of the users.

View 2 Replies

VS 2008 Starting Directory For FolderBrowserDialog?

Mar 19, 2009

How can i set the starting directory for a FolderBrowserDialog.showDialog() ??

View 4 Replies

VS 2008 Starting Excel By Itself - Corrupt App?

Jul 27, 2010

I�ve had a problem iwht my app for some time now. It�s very slow and above all it takes forever to startup. I�ve been adressing som issues that has to do with the database behind it.Recently I noticed that the app is starting an instance of excel, which seems to be what�s taking it so long in the starting process. The app is using access as db, and the db has some linked excelsheets. The app is also running some code in excel, but it�s starting, and terrminating, separate instances for that.The linked excelsheets are also "live-linked" to another app (third party), fetching real time data via DDE I think.

View 1 Replies

[2008] All Tabs Open When Starting?

Mar 16, 2009

I just had to rebuild a PC and saved my old project files -- hopefully I'm going to be ok with a new installation. I just opened my new install of VB2008 and clicked on a project.

[Code]...

View 3 Replies







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