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 10 4570
"z" <z@z.z> schrieb: 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)
Maybe you are using McAfee VirusScan. This product has a bug in its buffer
overflow protection that NAI is aware of and that can be fixed by installing
a patch:
Patch 5 for McAfee VirusScan Enterprise 8.0i
<URL:https://knowledgemap.na i.com/phpclient/viewKDoc.aspx?u rl=kb/kb_kb38717.xml& docType=DOC_Kno wledgeBase>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Try using MessageBox.Show (.....) method.
Chris
"z" <z@z.z> wrote in message news:ul******** ******@TK2MSFTN GP11.phx.gbl... 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
Hi Z,
In .net, use messagebox.show ("the message") instead.
Bernie Yaeger
"z" <z@z.z> wrote in message news:ul******** ******@TK2MSFTN GP11.phx.gbl... 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
"z" <z@z.z> wrote in message news:ul******** ******@TK2MSFTN GP11.phx.gbl... 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
....
Dim s As String
s = "hello"
MessageBox.Show (s, "a message", MessageBoxButto ns.OK)
Outstanding. That is the problem! I disabled buffer overrun in my McAfee
version 8 software and it started working.
Thanks very much, I will try the patch.
z
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:O$******** ******@TK2MSFTN GP10.phx.gbl... "z" <z@z.z> schrieb: 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) Maybe you are using McAfee VirusScan. This product has a bug in its
buffer overflow protection that NAI is aware of and that can be fixed by
installing a patch:
Patch 5 for McAfee VirusScan Enterprise 8.0i
<URL:https://knowledgemap.nai.com/phpclie...=kb/kb_kb38717.
xml&docType=DOC _KnowledgeBase> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"z" <z@z.z> schrieb: Outstanding. That is the problem! I disabled buffer overrun in my McAfee version 8 software and it started working.
I am glad to hear that!
Thanks very much, I will try the patch.
I strongly recomment to install the patch.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"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/>
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/>
The patch worked perfectly.
z
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. "z" <z@z.z> schrieb: Outstanding. That is the problem! I disabled buffer overrun in my
McAfee version 8 software and it started working.
I am glad to hear that!
Thanks very much, I will try the patch.
I strongly recomment to install the patch.
-- 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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
| |