ContextMenuStrip Pops Up At DesktopLocation (0, 0) Regardless Of Original Location?

Dec 31, 2009

I have never had to do so in the past. However, I used the following code:

If Me.OnRightSide And Me.OnTopSide Then
Me.ContextMenuStrip1.SetBounds(Me.DesktopLocation.X - Me.ContextMenuStrip1.Width, _
Me.DesktopLocation.Y, Me.ContextMenuStrip1.Width, Me.ContextMenuStrip1.Height)
ElseIf Me.OnRightSide And Not Me.OnTopSide Then
End If

I have also tried:

If Me.OnRightSide And Me.OnTopSide Then
Me.ContextMenuStrip1.SetBounds(700, 450, 200, 25)
ElseIf Me.OnRightSide And Not Me.OnTopSide Then
End If

why this ins't working?

View 7 Replies


ADVERTISEMENT

Button Control Move From Its Original Location

Nov 1, 2010

i made a little from control which hold 3 button controls lined, in the designer they're all lined up perfectly but when i built and ran the application the middle button shift a bit to the left and overlap the left control, someone has any idea why its happen ?

View 1 Replies

Resume Layout Of Form - Get Original Location Of Controls

May 6, 2009

i want to resume layout of form . how can i do that. every i run program. the location of controls change i want to get original location of controls.

View 5 Replies

'Open With' Pops Up When Trying To Use Program

Aug 5, 2010

i tried searching, so i hope this isn't answered and is in the right place, but i made a program in visual basic 2008 which was working completely fine when i finished it. i uploaded it online for others to download, which has also worked fine for them for several months. as of late, some users have reported that when they try to use the program, the 'open with...' window pops up because windows does not recognize the program needed to run my application. yet...it works fine on my PC, and most others (that i assume that have not redownloaded it causing this error to occur). i instruct the users to update their .NET framework in the original forum post to the latest update which was previously required for my application to work, but the issue still arises. regardless of all my searching, i haven't found a solution. or any issues that are even similar to mine. i'm a beginner programmer (only one semester in visual basic) and that was over a semester ago, so i'm hoping it is an easy fix i'm not aware of or am overlooking.

View 4 Replies

'Open With...' Pops Up When Trying To Use Program?

Mar 28, 2009

'Open with...' pops up when trying to use program

View 16 Replies

Create A Message Box That Pops Up?

Jun 14, 2009

I need to create a message box that pops up and says "I am looping, do you want me to continue" with a Yes or No option. If user answers "Yes", I need to continue the loop with another message box with the same question. If the user answers "No", stop the loop.

I have tried this over and over and I get it to the point where if I click "NO" the first time, the message box goes away. but if I click "yes" the first time, no matter how many times I click "NO", the message box will not go away.

This is What I have....

Dim intResult As Integer
intResult = MessageBox.Show("I am Looping. Do you want me to continue?", "Loop", MessageBoxButtons.YesNo)

[Code].....

View 5 Replies

MsgBox Pops Up Behind Window?

Oct 13, 2011

imbox As MsgBoxResult
If foundID.Value <> -1 Then

[code]......

View 4 Replies

Press A Button, A Textbox Pops Up?

Aug 3, 2010

I'd like to make it so that after I press a button, a textbox pops up that the user can enter comments into. I then use the text they entered and store it somewhere else. How can I add this?

View 7 Replies

Push A Button Then A Picture Pops Up

Oct 4, 2009

I was trying to make it so I push a button then a picture pops up, and I can't seem to make it work.

View 2 Replies

Programming A Dialog That Pops Up When Error Occurs?

Jul 31, 2009

As part of a review of my program on Softpedia, the Reviewer stated the following: If you call on a piece of software and it is not installed on your computer the application will pop up a nasty error message that may discourage beginners. Popping a dialog saying the reason of the error or that the software is not installed on the system would be a great fix.

View 5 Replies

Message Box Pops Up 100 Times, Depending On The Number Of Errors?

Jul 17, 2009

I have a list of 100 assets that are pulled from AS400 and shown on a gridview alongside a dropdown box with 6 possible status and a textbox.

If the user selects a status other than "Found" (whether it's "Not Found", "Scrapped", "Sold", "Transferred","Other"), the user cannot leave the textbox empty. They must insert a comment into the textbox. Once the user is done he clicks "Save" and if, let's say, the status is "Sold" and the textbox is empty for all assets then a Message Box pops up saying "Please fill the textbox".

The problem is, the message box pops up 100 times (or once for every asset that has the error).

1) What can I do so that the message box only appears once even when 100 assets have the error?

2) Also, when the message box appears and I click "OK" the information the user had filled up to that point gets erased.

SAVE CLICK EVENT

Protected Sub Save_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Grabar.Click
Dim comando As String = ""

[Code].....

View 4 Replies

Register 2010 Express Edition / Notification Pops Up Always

Mar 12, 2012

I am experiencing an issue with my copy of Visual Basic 2010 Express. I know my copy will run for about, 22 more days. But even when I try to register my product so it can run forever, a notification pops up always saying the same thing - "This product needs to be re-installed." What does that mean? Is my copy fine with no problem? Or do I not have a .dll file that I need to install? Please, help me so I can register my product.

View 4 Replies

Error: Msconlib Pops Up When Attempting To Delete An Image File

Oct 13, 2011

I wrote a program in vb.net long time ago. I ran into a problem when I tried to programmatically delete a file. Every once in a while, I get an error saying: Error:mscorlib The process cannot access the file. Could anyone explain to me what causes this error.

View 3 Replies

Forms :: ChildForm Pops Parent Main Tool Strip?

Oct 2, 2009

The Parent has a Tool Strip and on the tool strip is a button that when clicked loads the child, this works fine.But when I set the child form to maximize its title-bar jumps over the Parent tool strip. Pushing it down a bit. I do what this. I would like the child to be completely contained within the Parent including the Parent forms tool strip.

View 6 Replies

Whenever Run Application And Close It / It Stays In Memory / Pops Up Again After Approx 5 Mins

Dec 14, 2011

I have developed a application on vb.net platform. After installing, whenever I run the application and close it, it stays in the memory and pops up again after approx 5 mins.

View 2 Replies

Deleting Multiple Files A Confirmation Message Box Pops Up For Each File Selected

Nov 24, 2009

I have a form with a treeview and a listview. The treeview lists the folders on your system and listview shows the files in the selected folder, similar to windows explorer. I have a delete button for deleting files.

[code]...

When deleting multiple files a confirmation message box pops up for each file selected. I would like to have it come up once and ask 'Are you sure you want to send these 'x' files to the recycle bin?' where 'x' is the number of files selected.

View 1 Replies

Office Auto-mation :: Annoying Window Pops Up From Hidden Excel?

Oct 20, 2010

I have an application that opens and saves spreadsheet via interop.At start up I set

Code:
_excelApp.Visible = false;
_excelApp.DisplayAlerts = false;

[code].....

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

Substring Give Error - Says Index And Location Must Refert To A Location Withing String

Oct 22, 2011

I got a error when I run this code:

Dim btch As String
Dim LeftPart As String

[CODE]...

It says index and location must refert to a location withing string

View 1 Replies

Where To Place Database In VB Project And How To Access With C:,D: Etc Means Open Location Not Fixed Location

May 3, 2010

dim cn as oledbconnection
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:valid.mdb")

[code]......

View 4 Replies

2 Group Box Components And Both Are Same Size,font,location And Visible Is False - Both Component Cannot Locate At Same Location

Mar 13, 2012

I have 2 group box components and both are same size,font,location and visible is false. When i click button2, the groupbox1 won't appear(the group box2 is on bottom n group box1 is on top).

Example:

button1

groupbox1.visible=false

groupbox2.visible=true

button2

groupbox1.visible=true

groupbox2.visible=false

Because i want to show the different,so the location have a little different(actually both are same location). I think my code is no problem. The problem i guess is both component cannot locate at same location?

View 6 Replies

Form With A Treeview And A Listview - When Deleting Multiple Files A Confirmation Message Box Pops Up For Each File Selected

Oct 27, 2009

I have a form with a treeview and a listview. The treeview lists the folders on your system and listview shows the files in the selected folder, similar to windows explorer. I have a delete button for deleting files.

Dim i As Integer
For i = 0 To lv1.SelectedItems.Count - 1
Dim csi As CShItem = lv1.SelectedItems(i).Tag

[CODE]...

When deleting multiple files a confirmation message box pops up for each file selected. I would like to have it come up once and ask 'Are you sure you want to send these 'x' files to the recycle bin?' where 'x' is the number of files selected.

View 3 Replies

Error - You Cannot Start Application <App_Name> From This Location Because It Is Already Installed From A Different Location

Dec 10, 2009

we have a user that my program works fine for.. and another that it just crashes for.. they get this error

"You cannot start application <App_Name> from this location because it is already installed from a different location."

then they run it up again and it comes up.. and then just closes..in reading some stuff online it says its a framework 2.0 sp 1 issue ?these pc's have 3.5, but my program uses all 2.0 stuff..so is this a 2.0 sp level issue ? or should I make my programs start to use framework 3.0 instead ?

View 6 Replies

VS 2008 Round E.Location To Nearest Grid Square Location?

Nov 9, 2009

I was using this old method of creating a bunch of rectangles when I need to get the location of a certain point within a grid so I could draw images on the grid. The thing is, I don't want to use rectangles, I want to be able to just round the location as if I were using rectangles. I need it to be able to round the point (66,70) to (50,50) so if you can imagine a grid and the mouse position being within that square in the grid, I need to get the location of the upper left corner of that square.

View 5 Replies

Cannot Start Application Shell From Location Because It Is Already Installed From Different Location

Jul 21, 2009

I have encounterd a problem when trying to re-enstall a program i have writen in vb 2008.I get the following message:"You cannot start application Shell from this location because it is already installed from a different location."This program is to be used on many workstation computers and i need to be able to update any changes by just reinstalling the program, no uninstalling needed first. If the program was installed from a cd first and needs to be updated from a flash disk this error will be a problem, if the update is from a cd as well then there is no problem.Is there a way to change the installation package to ignore where the program installs from and just update itself?

View 2 Replies

Change The Location Of A Label ( Middle ) To Another Location When A Key Is Pressed Down?

Jan 27, 2010

I'm currently working on a project that has a simple game . I want to change the location of a label ( middle ) to another location when a key is pressed down. But there is something wrong with the first of the If statement .I've underlined "point " because it has the error.

Private Sub Space_Navigator_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Up Then If middle.Location = [u]Point[/u](156, 655) Then middle.Location = New Point(156, 547)
End Sub

View 2 Replies

Convert .net Location Pixel To Vb 6.0 Location Format?

Apr 3, 2009

i need to developer project from vb.net to vb 6.0 and i have already project in vb.net and i have to convert in into vb 6.0 but i need same GUI format,but i get problem that is in vb.net control height and weidth is in pixel formate and there is vb 6.0 i dont know so i copy control's height and weidth or size so i got there is difference in vb 6.0 so any one have idea how to convert vb.net location pixel to vb 6.0 location format .

View 1 Replies

Copy A Picture From One Location And Paste It Into Another Location?

May 3, 2012

I'm trying to copy a picture from one location and paste it into another location however VB throws out the following error

Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)

both locations are on my local computer. So not sure what is causing the problem.

Here's the code

Module CPASU_SPC
Sub Main()
Console.Title = "MOARW Programs"

[Code]....

View 8 Replies

Make A Popup Blocker Type Message Box That Pops Up When A Popup Tries To Load A Page?

Dec 2, 2010

im trying to make a popup blocker type message box that pops up when a popup tries to load a page, and it asks The page [URL]is trying to open,open in a new tab?

(label)
No (button) Yes (button)

how would i make a menu appear when i click somwhere on the page,how would i make it recognise a picture, and be able to copy it to a location on the local drive?

View 3 Replies

VB - Pops Up A Color Picker Dialog And Let User To Change The Background Color Of The Label

Feb 15, 2012

I have a question of VB event handler and color picker. Now I have a label, and I want when user click it, it pops up a color picker dialog and let user to change the background color of the label. Not sure how to implement this, can anyone give me a direction?

View 2 Replies







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