Menu Entries - Pick 3 And Super 7 In Main Form

Jan 23, 2009

I am new to VB, I am currently trying to make a basic Lottery application for me and a few friends. I have a couple of questions regarding that. Basically the reqs are:

1) we should be able to input for 2 lotteries (super 7 and pick 3) the amount of money spend individually. IN a separate menu Should be able to input the winning numbers for past draws, in a notepad or access.
2) Should be able to see the most picked 3 numbers in the previous draws for both the lotteries.

Question. Say I have menu entries: Lotteries- Pick 3 and Super 7. This is my main form. If I go pick 3, enter last draw numbers should it open up a new form or can I just repaint and work in the same form?

View 1 Replies


ADVERTISEMENT

Add A Menu In A Main Form From A Dll?

Jun 11, 2011

I have a main form that reference to a dll. Inside the dll is also a form that will add additional menu in the main form that calls it. How can I do that?

View 1 Replies

MDI Main Form Having Menu Strip And One Maximized Mdi Child Form?

Dec 14, 2009

The problem is that icon on the Child Form appear in front of Menu strip control on MDI form when child form is maximised.

View 2 Replies

Main Menu Doubles In Height When Re-doc A Form

Apr 18, 2012

I have a main form that is set to be an MDI Container (IsMDIContainer - True). I have a number of child forms to that parent. When I first display a child (Maximized and .Dock= DockStyle.Fill) in the MDI Window, all is fine, but if I click the maximize button to bring the child down into the MDI window, then click the maximize button again to dock it again, the size of my menu in the main form doubles. I have that main menu setting "Allow Merge = False."

View 3 Replies

VS 2008 - Link Main Window Form With Menu Strip To Set Parameter

Apr 15, 2010

I an trying to create a GUI and I have added a menu strip, under the tools section of the menu strip, I have added a settings option. I want to click settings and have it open another windows form linked to the main windows form with the menustrip in order to set certain parameters. How do I link these two boxes using the settings menu strip?

View 1 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

2008 - Populate A Menu With All Possible Colors So The User Can Pick A Color

May 17, 2010

On Form Load I populate a menu with all possible colors so they user can pick a color. However when they pick a color the forecolor of my label is not changed.

CODE:

View 1 Replies

Adding Separator Into Main Menu

Nov 12, 2009

i have a main menu and when the program and launched the contents are cleared then a few items are added before loading in all the favorite websites and such. I'm trying to find the code to inset a separator after the items i have defined are inserted.[code]

View 4 Replies

How To Build A Main Menu Screen

Jan 1, 2011

I'm a beginner VB.Net programmer using VS 2008.I'm planning a new winform project whose main form should look more or less like this:

[Code]...

The user can either choose from the Main Menu (by clicking an item) or enter the item number in the textbox. For example, if the user clicks DoSomething3 in the Main Menu (or alternatively enters 3 in the textbox), another form will be opened and hide the main form.What would be the best way to implement it?Specifically, I would like to know how I make so that choosing from the menu and entering a number in the textbox fire the same event.

View 3 Replies

Play A Mp3 On Main Menu For Game?

Apr 28, 2011

Im trying to play a mp3 on my main menu for my game however its not playing... ive tried hardcoding the file to the desktop, inserting the file into the solurtion explorer and even declaring it its own sub?I just want the file to play when the form loads up?

View 14 Replies

How To Add Recent File History (Last 3) To Main Menu

Mar 11, 2011

How to add a file history to my Main Menu. I open my windows application and select a txt file to open called "File 1". Later I open "File 2" and "File 3". I have now closed the windows application. A day later I open my windows application again. How do I view the recent files selected to my FILE menu? For example, I would expect to see "File 1", "File 2", and "File 3" under recent files. This would allow the user to easily reference the past recent files that were opened. Word and Excel have the feature and I am sure it can be done in VS2005.

View 5 Replies

Setting Parent Of Main Menu Control?

Mar 25, 2011

Any way I can set parent of the MainMenu control? I don't want to use other controls because there is no windows 7 or vista style as in picture. Other controls have just ugly blue and white color. When I add MainMenu it sets position on top of the form. I want to set MainMenu Parent to one Panel. Other controls have just ugly blue and white color.

View 8 Replies

[02/03] Login Screen Not Appearing Before Main Menu?

Jan 7, 2009

I'm creating a basic window's application where I have a login screen where the user will enter the userid/password etc. Only problem is when I try to run the application, it goes straight to the main menu.What would give the main menu precedance over the login screen?

View 5 Replies

Make A Main Menu Which Accepts User Input?

Jul 5, 2011

I'm trying to make a main menu which accepts user input and then checks inputted password for validity against passwords I hardcoded into an array. Firstly, in the for loop, only the first password index is being checked. I'd like the inputted password to be checked against EACH password inside the ValidPasswords() array.

Second, My for loop isn't doing what I want it to do. I'd like to give the user 3 chances to enter a password... If he/she exceeds 3, it tells them they've tried 3 times and exits the form. Right now, it just loops 3 times and exits without giving the user a chance to try again. If I put a return statement in, it just keeps returning and doesn't loop 3 times.

Public Class frmMain
Dim ValidPasswords() = {"1234", "2222", "8918", "9911"}
'Dim ValidPWList As New List(Of String)

[Code]......

View 1 Replies

Booking Details Arent Being Shown In The Main Menu Screen?

May 26, 2011

im writing a room booking application, and after i've entered all the details for a booking, which looks like this;

'Declare Variables
Dim sUser As String
Dim sRoom As String[code].....

and now the problem is, its not working , its all going through ok and im not getting any run time errors. But the booking details arent being shown in the main menu screen.

View 11 Replies

Swapping User Controls - Closing Main Menu Screen?

Feb 19, 2010

I have a project (Written in Visual Basic, using Visual Studio 2005) which has several user controls. I have had no problem setting it up where you click a button and it load a user control, but I cannot get it to remove the control that is currently open. For example The program opens on a starts screen, which has the choices, Control1, Control2, and exit. When you click Control1 button it should open up a screen to display an inventory. It does this just fine, but it does not close the main menu screen.

Here is the code for the initial startup of the project:
Public Class Form4
Public Sub Form4Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim CtrlMain As New ControlMain()
With CtrlMain
.Location = New Point(0, 0
[Code] .....

View 7 Replies

String Search Listbox Entries To Avoid Duplicate Entries In VB 2008?

Nov 29, 2009

I have a program where you have three entries, CD name, artist, price and it goes into a listbox and .txt file when closing. I have to have a message box if you enter the same CD name. I have a code to open the .txt file and compare strings but I need to change it to compare only the CD name and not all three entries. Is there a way to do my string compare against my listbox without opening the .txt file?? The program loads the listbox from the .txt file when opening. Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click' adds CD information to the list box

' declare variables
Dim strName As String
Dim strArtist As String
Dim strPrice As String

[code].....

View 4 Replies

VS 2005 Pick Up All Datagrids In A Form?

Feb 18, 2010

I have lots of datagrids on one form. However, the datagrid controls are all on different tabpages and tablelayoutpanels.

How can i programmatically "pick" up all the datagrid in one form, even though they are child controls of other controls?

[Code]...

View 1 Replies

Modify Table Entries Based On Other Entries?

Jun 22, 2010

I want to set a certain column to true or false automatically based on what value another column has entered. I managed to get this working by myself using the 'SQL Pane' in VB and testing it by using execute sql but I don't know what to do now. I assumed that I could just save it and it would work from there but that's not the case, it dissapears from the SQL Pane if I close the project (even though it worked fine when I ran the project the first time), so where do I put it/what do I do with it in order to get this to work?

View 1 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

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

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

Trap Mouse In Form - Force The User To Pick One Of These Buttons?

Jun 26, 2009

I want to create a simple form with 2 buttons, one to end the program and one to log the user off, I have done this successfully and have everything looking and working as it should. However, I want to force the user to pick one of these buttons before using the machine, my idea was to trap the mouse in the form so the only thing the user can do is select a button. My question is how can I do this?

View 7 Replies

Mdi Child Form Order - Move The New Form Behind The Main Form While It Loads

Aug 5, 2010

i have my main child form open. then i show the new form:

[Code]...

but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?

View 12 Replies

C# - Super Minimalist Plugin For MS Project: Where To Get Started

Jul 11, 2010

I was wondering if you could point me in the right direction as far as developing a super simple plugin for MS Project (both 2007, which uses the old style ribbon, and 2010 which uses the new ribbon). What I need to implement: create an executable that installs a new button, with a specific icon, in some per-determined section of the ribbon
when the user presses the button MS project needs to save a file in a specific format and location and then call a batch file.

that's it - pretty basic, right? Turns out, I know nothing about this space - so apologies in advance for how trivial this may be. Note: I'm not tied to a specific language - whatever is simpler / faster will do. BTW, does anyone sell components like this one? I don't necessarily need to code this if there's decent stuff out there for sale.

View 1 Replies

Get Super Large File Or Folder Icons?

May 3, 2010

I'm trying to load folder and file icons, but they're too small to display for large surfaces.

Here is my current (working) code that gets an icon too small:

[Code]...

View 1 Replies

Super Fast Export From Datagridview1 To Csv/xlsx/xls?

Feb 26, 2010

I've tried absolutely everything and i've searched for a while on here too datagridview1 object on my form however it has appro 130,000 records and i need to export them to the following .. csv / xls / xlsxI've tried several pieces of code and searched for at least a day trying to find something suitable and quick enough to export all records.

View 9 Replies

Added A Full Main Menu To Game And A Full Splash Screen

Apr 29, 2011

I have made quite a nice and tidy little game. Its based around space invaders and works quite well. however because i have finished my college project almost 2 weeks ahead of the assignments release date, my tutor has asked me to tweak my project and make it better.So far i have added a full main menu to the game and a full splash screen. I would like to add in a section for recorded high scores but have no idea how to attempt this at all.

View 3 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies

Detail Bound Form Updates Main List Form, But Does Not Update Data

Jan 29, 2010

I have a main form with datagridview containing a list of contacts:

VB
Public Class Form1
Private Db As New DataClasses1DataContext
Private Sub Form1_Load

[Code]....

After saving, I get the correct message ("Saved"), and the DataGridView in the first form gets updated in real time.

But... when I take look at the data (or close and reopen the forms) the data in the database (SQL server) have not changed! What happens!

View 4 Replies







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