I just installed Visual Studio .Net with Framework 1.1. I already had VB6
SP6 installed.
I wanted to do a quick "hello world" example in VB.Net. The code is here:
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim s As String
Dim r As Long
s = "hello"
r = MsgBox(s, MsgBoxStyle.OKC ancel, "a message")
End Sub
The msgbox pops up when you click the button, but the box is empty, and the
buttons have no text on them (saying OK or Cancel), they are just empty grey
buttons. The title does display correctly as "a message". I then ran the
Calc application sample that comes with the .Net install which has a msgbox
when you try to divide by zero, and it's message box and buttons are empty
too.
This appears to be a bug, but am I missing something? There are no service
packs for the 1.1 framework yet.
Any help or knowledge would be appreciated.
z
Nov 21 '05
10 4571
Bernie,
I wasn't looking for flexibility, I was looking for it to work. See
Herfried's valid solution in the other replies.
z
"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi Herfried,
I know it's not deprecated, but messagebox.show is more flexible, in my opinion.
Bernie
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:Od******** ******@TK2MSFTN GP11.phx.gbl... "Bernie Yaeger" <be*****@cherwe llinc.com> schrieb: In .net, use messagebox.show ("the message") instead.
Huh?! Why? 'MsgBox' is (still) available and valid part of Visual
Basic .NET (in other words, it's not deprecated).
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Johnson |
last post by:
It doesn't seem possible. But would the following also seem a
violation of the general notions behind css?
You have a DIV, say asociated with class, 'topdiv'.
Inside of that you have an anchor (and whatever it contains),
associated with class, 'a'.
Somewhere else in, 'topdiv', there is a span or element (containing
whatever), associated with class, 'b'.
|
by: Daryl Zavier |
last post by:
Hi Guys,
I'm really new to .Net development and need your advise on this.
Recently I've completed a web application using VB.net (Visual Studio .Net
2003). In the application whenever the user clicks the delete button, a
msgbox will appear prompting the user to confirm the deletion via the Yes or
Cancel button.
On my own machine (Win 2k IIS5), the msgbox appears without any issues.
|
by: Susan Bricker |
last post by:
Hi. I have Access 2003 and I am finding that the font in the text
displayed in Msgbox displays it too small. Is there anyway to increase
the font size of that text?
Regards,
SueB
*** Sent via Developersdex http://www.developersdex.com ***
|
by: MLH |
last post by:
Can I control what text appears on msgbox function buttons?
Sure do like NOT having to build a form to show a msg
and solicit a YES/NO response. MsgBox function is a great solution
for that.
Sure would like NOT to have to build a form to show a msg
and solicit a BIG/LITTLE or ON/OFF or RED/BLUE response.
Wish I could pop up a msgbox and assign the text i wanted onto
the button(s). Possible?
|
by: |
last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the
user of the progress of the program, or ask confirmation of an action, or
simply to act separators to various parts of the program.
They all vary in size and shape depending on the text length.
To make the looks of the program more consistant, I made the FIRST and LAST
line a series of "======" 65 characters long.
Windows displays Message Box text using a...
| |
by: bigmaddaz |
last post by:
Ok im designing an application for working out compount interest. The user starts the page, 3 prompts appear, one asking for money invested, next asking for rate of interest, and last one asking for length of time money invested. All what now displays on the page is simple a calculate button. When the user clicks this calculate button, a new window opens, showing in table form what the user inputted and the actual calculation.
I have all...
|
by: rzito |
last post by:
I am looking for a technique with regards to the message displayed
when you enter text into a numeric field. I obviously get the "The
value entered isn't valid for this field" message how do I substitute
this message for my own? I have tried before update (if
notisnumeric(myfield.text), keydown. But I can not get it to wok,
thanks in advance!
|
by: perkykoala |
last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long.
Using VB 2005:
I need to design a multiple choice test (unfortunately, I can't use radio buttons).
How it works...
Pre-1) File consists of the following format:
Question 1
Choice 1
|
by: win |
last post by:
I'm using ASP.Net 2.0
MsgBox("Are you sure to delete?", MsgBoxStyle.Question +
MsgBoxStyle.OkCancel, Page.Title.ToString)
The message box sometimes does not pop up on the top of the screen.
Can I set the message box always on top of the screen?
Thank you
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |