Menu That Refuses To Leave

Feb 22, 2012

I have an old app still written in VB2003 that required some changes, part of that was revamping a menu that isn't behaving.I've deleted it and it doesn't show in the designer but when I start the program there it is, and still not correct.How do I really get rid of it so I can build another one?I'd hate to have to delete the whole MainMenu, this is the 5th in line, that would be a lot of re-creating.

View 8 Replies


ADVERTISEMENT

GroupBox Refuses To Be Visible?

Jan 23, 2012

In my card game program, I have used 4 main GroupBoxes to act as dialogue boxes. Some contain additional GroupBoxes to house such things as RadioButtons, TextBoxes and CheckBoxes.Software places them when and where needed, so I usually move them apart in the Design screen to keep them all visible at once. However, with each new GroupBox I added to the program, their behaviour became increasingly vexing.In the design window, they are not allowed to overlap, or they will either partially or completely disappear. When they disappear, I have to find them with the Properties Viewer (when selected, the 4 sizing blocks appear and I can tease the drag symbol to appear).Worse, when my program is running, a GroupBox left in the Design mode in an "unfavoured location" (for lack of a better term) will refuse to appear when called.

I have single stepped past the code that positions the GroupBox and makes it visible and I have noted that the top and left positions are correct, but when I let the mouse hover over the word 'Visible' in the line "GroupBox1.Visible = True" the popup reports it as False.There is nothing I can do at run-time to make the GroupBox appear. I must return to the Design window and try moving it to a more favourable location.

View 7 Replies

EXE Completely Refuses Icon Change?

Dec 19, 2011

Okay so ive got this project iv been working on. Almost ready to get the beta on its way, last thing I needed to do is retrieve the EXE and change its icon. I found the EXE in the "bin" folder. Copied it to desktop. I went through the properties, no way to do it. Then I searched youtube, and google. Only possible way to change it I found was to use softwares. I tried Resource Hacker (ive used years back, this program was handy), but it didnt work. I replaced the default window-looking box icon with my icon, and that seemed fine. But once I saved and exit, the new file with updated icon was supposed to be created. Well it was, except just looking at the file icon I knew it didnt work. But when I right click and go to properties, that one changed. So why dosnt the MAIN icon change? In RH I seen no other icons

View 5 Replies

Form Refuses To Draw In Time

May 30, 2010

It seems that my form refuses to draw quickly enough. I am using this

[code]...

This ends with the form freezing for a moment, and then it resizes, but it's not until the end of the resize does it display properly, during the resize, their is a big black bar where the new part of the form is supposed to be.And when it's done resizing, it draws itself correctly.

View 7 Replies

Forms :: Form Refuses To Close?

Dec 4, 2009

I have a method where I am making a trial period.When the date has exceded its trialperiod the program will not close.The code looks like this:

Public Sub DemoRestrict()
If My.Settings.dteStartDate = Nothing Then
My.Settings.dteStartDate = Now

[code].....

View 2 Replies

VS 2010 Combobox Refuses To Populate?

Feb 15, 2011

In this windows forms app, I have a form with six comboboxes. Two are parents, one with a single child and the other with three children. All of these work beautifully except for one of the children. The code for each one is identical, and I've verified the query against the database a dozen times. I even have another of the children that is in the very same block of code. One works beautifully, the other one refuses to populate any data. Below is the code for the one that doesn't work. I would tell you on what line the error occurs, but it doesn't throw any errors. Try catches show nothing, and I have VS 2010 set to throw all errors, but I get nothing, just an empty combo box where there should be a list of names.

Public Class errorTracking_submit
Dim ConnectionString = "Data Source=dvmx6030MS2005_DEV1, 2755; user id =CRCUser;password=TWC5uck5;database=CRCTools;Connection Timeout=5"

[code]....

View 16 Replies

VS 2010 Project Refuses To Open On Other PCs

Mar 9, 2012

I've spent weeks working on a project. I develop on both of my computers (Desktop and Laptop) which are both equipped with VS Express 2010. The programs debug, and compile with no issues on both of my machines, even when the .exe is removed from the debug folder and placed elsewhere. However, when I try and run the program on my brother's computer, the initial form jumps up on the screen as desired. Then the program is designed to open the next form upon the click of a button. When that button is pushed, we get the following:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

[Code].....

View 8 Replies

Forms :: TrailPeriod - Program Refuses To Close

Feb 23, 2011

I have a method where I am making a trial period. When the date has exceded its trialperiod the program will not close.

The code looks like this:
Public Sub DemoRestrict()
If My.Settings.dteStartDate = Nothing Then
My.Settings.dteStartDate = Now
End If
If My.Settings.intTime = Nothing Then
[Code] .....
Why does the form not close? Is just runs to the next method in the load sequence.

View 1 Replies

VB 2005 Every Project Refuses To Compile With Same Error

Nov 7, 2009

I'm using Visual Studio 2005 (college only has 2005 so..) and I have a very important program to write for college.My problem is, every time I try to compile I get the error: "Error while trying to run project: Could not load file or assembly "Program" or one of its dependencies. The given assembly name or codebase was invalid." We're talking a very simple program - I've only been learning for a few weeks.

View 7 Replies

VS 2005 Refuses To Write To A Text File If The String Used To Be A Path

Dec 13, 2009

I've searched everywhere to find out why the heck my program is doing this, but couldn't find anything like it...? I'm making a flash card program. Part of my program takes images corresponding to other data from a certain area, chosen by the user, and moves them to another folder, for later use. I want to store the path for the image next to the other data, storing the path as a string. When no image is chosen, the variable for the path is simply "no image".

[Code]...

View 5 Replies

Chart / DataGridView Object Refuses To Update And Designer Has Random Columns

Sep 29, 2011

I have an object (ClassGPS) containing a DataTable that is exposed through the property "Satellites". My form has a bindingsource that, upon load, associates itself to a new ClassGPS object. The table has 5 columns, two of which ("PRN" and "dB") I want to chart using the new 4.0 chart tool. So the chart object's DataSource = ClassGPSBindingSource, and the DataMember = Satellites. That is all set in the designer.In ClassGPS.New(), the table is pre-loaded with 4 rows. This object is created before the form loads. When the form loads and the bindingsource is set to the created GPS object, the chart correctly updates and displays the four pre-loaded entries.On this form, I have a button that adds more entries. Tracing from the Click event, pushing the button does add the entries properly to the underlying table, and if I create a ListCHanged handler on the data source, the events are all correctly firing, but the Chart does not update to reflect the changes.

So to test, I added a Datagridview object. Just like the chart, I set its datasource to ClassGPSBindingSource, and the DataMember to Satellites. And here's where it gets weird. In the designer, the newly added DataGridView control has 4 columns in it labeled RowVersion, Row, IsNew, and IsEdit. I didn't create these columns, it does it itself. If I try to change the bindings on these columns to reflect the actual datatable names (PRN and dB) two things can happen:

1) If I hit Play (F5) to debug the program, the DataGridView looks and acts correctly inside the program and is correctly bound and updating fine as I add new data. In the designer underneath however, the changed columns have disappeared and are replaced with the original four it is creating for no apparent reason. When the debug session terminates, the columns - which just finished functioning fine in the debug session - are now gone.

2) If I hit Build, the designer destroys my columns immediately and recreates those it defaulted to.In either case, something very fishy is going on... in that the Chart, with the exact same binding settings as the datagridview, does not work but the datagridview works just fine (unless Build is hit prior to Run).Has anyone run across this? Can you reproduce it? I have bound a chart to a datatable before and it worked just fine, but it didn't have to update except when the form it was on was closed and later re-loaded.

View 9 Replies

Setting A Default "SelectedIndex" When Adding A New Record Refuses To Work?

Jul 16, 2006

I have a typical databound Form with a bound ComboBox bound on the form Load event.I have a typical BindingSource and BindingNavigator Control with an "AddNew" button.When a new record is added to the dataentry form (i.e. not the combobox) I intend the combobox to default to the first value in the list by setting...

mycombo.selectedindex = 0

I have this in the BindingNavigatorAddNewItem_Click event but it has no effect! I also tried placing mycombo.selectedindex = 0 in the BindingSource "AddingNew" event but this also has no effect. I have discovered that the "selectedindex" is somehow inexplicably changing itself back to -1 As an experiment I added a button to the form and on the click event pasted "mycombo.selectedindex = 1".I added a newrecord then clicked this button and the combobox updated as expected. But I wont this to work as I'm adding a record!Is there a particular event where I should set mycombo.selectedindex = 1 apart from the two I mentioned?

View 19 Replies

Shell - Media Player Play File Error - Refuses To Play

Sep 16, 2010

Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")

It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""

It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.

Heres my code

Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)

'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index

[CODE]...

View 2 Replies

What Files Can Leave Out

Mar 19, 2010

I'm learning VB2008 using the Express edition IDE, and would like to start using the Mercurial SCM. I have a couple of questions:

1. Should I use a single repository for all my tiny projects under C:\VB.Net\, or should I create a repository into each project [code] If using only a single repository, will Mercurial filter changes so I can see only files belonging to a given project?

2. What files/directories can I leave out of Mercury? For instance, here's what VB2008 Express created for a single-form project: [code]

3. Is it possible to avoid the empty \WindowsApplication1\ at the root of a project, so that I don't have to cd into it to find the first actual file (WindowsApplication1.sln)?

View 2 Replies

[2005] Attaching Controls (combo, Label And Textbox) To The Menu Like The Office Menu?

Mar 1, 2009

Attached is the image from an Office application, how can we emulate such?

View 6 Replies

Get Context Menu Appear In Tasktray While The Tray Appears The Menu Doesn't Right Click

Jun 6, 2011

I'm trying to get my context menu appear in my tasktray, while the tray appears the menu doesnt when i right click. Here is all my code associated with my task tray:

[Code]...

View 4 Replies

Make A Menu Item On A Menu Strip Link To Another Windows Form?

Jul 25, 2009

How do I make a menu item on a menu strip link to another windows form (like a menu item that links to an about page already created in the project). I know that every coder knows how to do this, but i've read most of the instructions in the world for Visual Basic coding, but can't find ANYTHING I know coding fairly well, so I can modify it, but I can't create it my self.

View 4 Replies

Menu Strip Has Disappeared But The Menu Items Are Still Showing In Properties List?

Oct 6, 2011

I have combed these forums and the 'net and can't find an answer to my specific problem. My menu strip disappeared (after deleting a small secondary form within my project). I therefore created a new strip and while recreating the menu items realized that the original menu items are still present, showing in my properties list. I have checked my design file as well and the original menu strip is definitely gone but the original menu items are there. I don't have many items so I would have no problem just deleting the original ones but I can't see them to delete them! I have checked and they are all set to visible. I have also moved everything on my form to see if it is behind anything else.

View 4 Replies

Open A Form From A Menu, Closing It, And Reopening It From The Menu Doesnt Work?

Jun 22, 2010

This is going to be hard to explain but oh well.I have a form with a menu. When I hit option one, it opens another form (form2) inside that same form (mdiparent). When I hit X on form2, then try to open it again from the original form with a menu thru the menu, It says it cant access a disposed object. Here is the code: Form1:

[Code]...

View 1 Replies

VS 2005 Menu To Auto-scroll Like Internet Explorer Does In The Favourites Menu When The Mouse Is Over The Arrow

Oct 11, 2009

I have a list of all the fonts on a users system under a Font menu item. I would like to be able to use the scroll wheel to be able to scroll through these items like you can with a combo box.

[Code]...

View 17 Replies

Clone The Menu Items And Then Bound It To Form Context Menu?

Nov 26, 2009

Suppose I have ToolStripMenuItem mnuOrderOptions that contains the three drop down items. I want to copy all the items are their respective event handlers to Contextmenu on button click & then bound that context menu with the form.

Private Sub AToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AToolStripMenuItem.Click
MsgBox("A")
End Sub[code]....

how to clone the menu items and then bound it to form context menu.

View 3 Replies

Context Menu Affects Main Menu Drop Down Location

Jul 13, 2010

I open a context menu by right clicking it.

It stays open when the cursor leaves it.

I click a main menu item.

The drop down opens at the top left of the screen.

Not under the main menu item I clicked.

I want to search the Internet but can't guess what key words to use.

View 2 Replies

Dynamic Sql Menu - Create A Menu Based On Items In My MS SQL Database

Aug 23, 2011

I am wanting to create a menu based on items in my MS SQL database i have 3 tables

FormTbl

FormID - Int Eg (1)

FormName - nvarchar(50) Eg (Form1)

[CODE]...................

I can get the form names to be populated in to the menu and can open it my question is how do i set where the menu items will be placed. Eg File with FormHierarch 0 will be the very first one. Exit with FormHierarch 0.1 will be the very first one under File

Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim menu As New MenuStrip()
Dim dst As DataTable = User.MenuItems(Me.ToolStripStatusLabel1.Text)

[CODE].....................................

View 2 Replies

Get A Context Menu With Any Number Of Names In The Menu Created At Runtime

Jan 18, 2010

I have a blank form and when the use right clicks on the form, they get a context menu with any number of names in the menu. This changes depending on the situation. I can get the context menu to add/remove the list of names but when I click on one of the choices and it goes to my routine (from addhandler) I can't find the property that tells me what they clicked on...

[Code]...

View 1 Replies

Show Context Menu On Drop Down Menu Item Right Click?

Jun 22, 2009

i want to show context menu on drop down menu item right click...As an example,Suppose we add bookmark in mozilla & when we right click on that item..context menu is showing

Code:
Private Sub MenuAddToFavorites_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MenuAddToFavorites.MouseDown
If e.Button = Windows.Forms.MouseButtons.Right Then

[Code]......

View 5 Replies

Leave A Control With Code?

Jul 21, 2011

Is there a way to leave a control in code without explicitly going to the next control? For example, I want to[code]...

View 5 Replies

Leave A Space Between Two Columns ?

Feb 10, 2009

I want to know how can I leave a space between two columns, so that the entry into the second column start in a given position.

This my code see it:

CODE:

View 1 Replies

Leave All Info In 3 Arrays?

Jul 14, 2011

It's usually happend that I have some arrays with same length. For example name(), surname(), age() Is it the best way to leave all info in 3 arrays or it possible ( better ) to concatenate somehow?

View 5 Replies

Leave Blank And Add To Dtgridview?

Nov 16, 2009

All about datagridview,i entry the data from textbox to dtgridview the format is DATE normally ,if the textbox have a date that dtgridview can accept but when i leave blank and add to dtgridview..the message error""could'not store<> field".

My question is it possible make conversion from date to string??What code to put at the textbox or in cell_formating??what i try is..

if dgv.row(e.rowIndex).cell("dateRec").value="" then
e.value=""
e.formattedapplied=true
end if

View 20 Replies

Leave The Cells On Enter?

Feb 20, 2010

[code].....

View 1 Replies







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