473,396 Members | 1,961 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,396 software developers and data experts.

Change Title in Dialog Box

I want to change the title in the Open Dialog box to something more
descriptive for my users but the following code has no effect?

I also notice that if the user clicks "Cancel" when the dialog box appears a
second dialog box ix presented which the user must also Cancel, Is there any
way around this - It will bug some of my users!

==================================================
Private Sub mnuOpen_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuOpen.Click

Dim o As New OpenFileDialog()

o.Title = "Select the existing file to Open"

o = OpenFileDialog1

o.ShowDialog()

If o.ShowDialog = DialogResult.Cancel Then Exit Sub ' User clicked the
Cancel Button

MsgBox("You selected file: " & o.FileName)

End Sub
--
------------------------------------
Wayne Wengert
wa***@wengert.org
Jul 19 '05 #1
0 1737

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christiaan | last post by:
I am trying to create a small javascript to change the button text and then submit it and do all kinds of form validations. So I have a button with the value "Save", when the button is clicked it...
0
by: Wayne Wengert | last post by:
I want to change the title in the Open Dialog box to something more descriptive for my users but the following code has no effect? I also notice that if the user clicks "Cancel" when the dialog...
6
by: Fred | last post by:
I have implemented a dialog box (an aspx page) using showModalDialog. Because the dialog needs to process postbacks, I have implemented it in a frameset. In the top of the framset page, I have...
4
by: soumili | last post by:
I have implemented a dialog box (an html page) using showModalDialog. . In the top of the page, I have defined a title as follows: <title>My Title</title> when i use IE6, at runtime, the text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.