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
ADVERTISEMENT
Jun 15, 2010
How would I add a new ToolStripItem with code, which will have a Click event which uses the text from the ToolStripItem to read a file? So the ToolStripItem most somehow send it's text to the Click event.
View 2 Replies
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
Jul 17, 2009
My solution includes 9 projects, each project includes lots of forms. I want to make History menu, it's alike Windows Menu in Visual Studio. When I work in one form, it will save this form name in History Menu, so that I can reopen this Form after that, we can choose the number of Forms saved in History Menu.
View 17 Replies
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
May 23, 2012
i am trying to create a recent files list. [Code] I've looked and i don't want to use a MRU list as i want it so that it can be used on several devices, i.e. running off a memory stick.
View 11 Replies
Feb 20, 2012
I'm trying to load the most recent file from a directory, but my following code doesn't work. Am i getting something obvious terribly wrong?!
Dim myFile = Directory.GetFiles("C:UsersJoeDesktopXML Logs").OrderByDescending(Function(f) f.LastWriteTime).First()
I get two error messages:
Data type(s) of the type parameter(s) in extension method 'Public Function OrderByDescending(Of TKey)(keySelector As System.Func(Of String, TKey)) As System.Linq.IOrderedEnumerable(Of String)' defined in 'System.Linq.Enumerable' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.
And:
'LastWriteTime' is not a member of 'String'.
View 1 Replies
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
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
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
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
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
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
Mar 25, 2010
I'm using visual basic 2008 and really need help in this question ...
-I'm creating a web browser : how to stop adding pages to Internet Explorer History...
-And auto save/open Listbox (so i could use my own browsing history)
View 5 Replies
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
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
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
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
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
May 20, 2009
I want to get the safari history in VB.Net..Safari maintains its history in history.plist file.....I want to know that how to convert this file to XML format??Plz help me out from where to start.
View 1 Replies
May 20, 2009
I want to get the safari history in VB.Net..Safari maintains its history in history.plist file.I want to know that how to convert this file to XML format?
View 2 Replies
Jul 7, 2011
I am developing with a friend a webbrowser just for fun and to learn more..But we are stuck on how to do favourites and historial.Because we had put tabcontrol and when i tried saving the page on a stringcollection called favlist it gives me an error.It is the same with history. What i want to do it save favourites and history on a text file so then when i open the browser again you have them there.
View 5 Replies
Jul 18, 2011
I want to clear the history in an open file dialog, so that previous opened files won't be shown if a user clicks on the drop down arrow behind "File name". I have created an open file dialog and named it "ofd_openen".
Then I 've tried:
ofd_Openen.SafeFileNames = False
and also
ofd_Openen.FileNames.Clear()
but that doesn't work.
View 3 Replies
May 20, 2009
i want to get the safari history in VB.Net..Safari maintains its history in history.plist file.....I want to know that how to convert this file to XML format??
View 11 Replies
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
Jun 9, 2011
How can i make a program that cleans temporary internet file or history ?
View 7 Replies
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
Sep 22, 2010
I am using following code to search my computer for files with certian extensions. I currenty searching for .eml files. This code lists all files found.I need to enter 10 most current files' path to my list box.[code]...
View 1 Replies
Jul 28, 2009
My app works fine on the development machine and 3 other machines. However, some machines just show the main login box and then fail to show the main screen. There is no error message. I installed VS 2008 express on on of such machines and when i compile the project, the following errors appear:
Type 'Microsoft.Office.Interop.Access.Application' is not defined.
Type 'dao.DBEngine' is not defined.
[CODE]..........................
View 3 Replies
Jun 7, 2011
I m using vb.net with access 2007. I have field with datatype "datetime" and values in format dd/mm/yyyy e.g 8/2/2011. Now I have problem when i fire a query SELECT * FROM tbl_name WHERE tbl_name.datefield= (Select Max(tbl_name.datefield) from tbl_name)); I have some records with dates 11/1/2011 and some records with dates 8/2/2011 but I get wrong result records with date 11/1/2001 instead I want records with date 8/2/2011
View 3 Replies