473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

is it possible to open a textfile1.txt through the menu strip?

18
i have a menu strip on my form and i am creating log in ID's and PW's for a application. and i want the users to be able to see all of the different logins for the app.

so i created a new item and it is a textfile. i am wondering how do i open or show the textfile when the login is clicked through the menustrip.

is that at all possible and if not is there a way for me to do it through a button?

thanks for the help in advance
Jan 14 '10 #1
2 1618
vb5prgrmr
305 Expert 100+
You can open a file with any event you want. When you create your menu items, you can access their procedures by selecting the menu item you want code for from the form design view. It will automatically take you to the code window, just as if you had double clicked on a command button.

So then, all you need to do to open up the file is to read up on the following in VB's help...

FreeFile Function
Open Statement
Input or Line Input Functions
Close Statement



Good Luck
Jan 15 '10 #2
negus
18
yeah i understand the double click to get the sub on clickeven of the menu strip i tried the codes that should have worked to my knowledge and it failed.

but i just made a new form instead of a textfile a dialog box. and got it to work now. thanks for your help!
Jan 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Brian Henry | last post by:
I thought this was useful, its a extender i just wrote for the new .NET menu strip and status strip to extend the menu items to add a status message so when a mouse rolls over the item it displays...
6
by: TyBreaker | last post by:
What is the best way to create a menu bar like the Office menu bar ie one that can dock to the four corners of the screen? Is it a standard windows form or is it some other more specialised...
16
by: akameswaran | last post by:
Ok, this is really irritating me. I'm sure there are different ways of doing this - I'm interested in the algo, not the practical solution, I'm more trying to play with iterators and recursion. I...
0
by: steffen_home_92 | last post by:
hi ng, I actually want to program an application whose main window contains a menu strip and a tree view control. In the main menu there are items I want to use for a context menu strip in the...
0
by: Tom | last post by:
In the old VS 2003 Menu bar, it would scroll the list if it extended beyond the end of the screen (i.e. you had 60 reports in a menu and it displayed the little down-arrow at the end of the...
8
by: gs | last post by:
I was able to set tooltips on objects other than main menu. I would like to get the effect of tooltip or microhelp in the bottom status bar when the mouse is hovering over a submenu item. How do...
1
by: miquals | last post by:
I'm new to VB but not programming. Using VB Express you can create a "standard menu strip", but I can't find an example of using it anywhere. Do you know of any examples? To create a "standard...
0
by: Patel | last post by:
Hi All, I am doing one INTERESTING work with Context Menu Strip. I am trying to insert a custom control / .Net control in Context menu as a context menu strip. I tried inserting MonthCalender in...
2
by: parez | last post by:
Hi, I build the menu strip using the designer.I want the context menu of the form to be same as the of children of one of the top leven Menu strip item. Items gives me a ToolStripItem...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.