473,786 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the replacement for BEEP() in VS ?

I am now using Beep to make a short warning-sound in my VB-Project
What is the aeqivalent command in VS.70, if i dont want use Visual Basic
Run-Time Library Members

Thanks Peter


Nov 21 '05
12 5315
Peter,

Any idea why Microsoft would do that. AFAIK is VBx the most used programming
language on PC.

Or do you have information that we oversee in this newsgroup? Because that
can really be interesting.

Cor
Nov 21 '05 #11
Peter,
The new method from VB.NET is oddly enough Beep also.

If you want to use Beep in C#, add a reference to Microsoft.Visua Basic.dll,
then use Microsoft.Visua Basic.Interacti on.Beep.

Alternatively you can use a Win32 API as Pipo shows, if you need the extra
parameters...

Hope this helps
Jay
"Peter Stojkovic" <Pe************ *@gmx.net> wrote in message
news:O7******** ******@TK2MSFTN GP14.phx.gbl...
I am using VS 70 with VB
But i dont wnat use the old fashioned commands from VB 6.0
I only want use the NEW commands from VS.VB

Peter
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Peter,

Why you ask this when you don't want to use VBNet this in this newsgroup.
Is than the newsgroup for CSharp, JSharp or VC not more the newsgroup
where you ask this depending on the language you are using?

Cor


Nov 21 '05 #12
Peter,
The Microsoft.Visua lBasic namespace is an integral part of VB.NET (and
..NET), types here will not be "cut".

The Microsoft.Visua lBasic.Compatib ility namespace is used in converted
projects, types here "should" only be used for projects converted from VB6.
I would not expect types here to be "cut" either.

http://msdn.microsoft.com/library/de...eReference.asp
The Microsoft.Visua lBasic.Compatib ility namespace is wholly contained in the
Microsoft.Visua lBasic.Compatib ility.dll, this dll is not normally deployed,
hence using it requires you to include it in your setup project. Where as
the Microsoft.Visua lBasic namespace is wholly contained in the
Microsoft.Visua lBasic.dll, which is installed as part of the framework
itself...
Beep is in the Interaction module in the Microsoft.Visua lBasic namespace.
Ergo its safe to use.

Hope this helps
Jay

"Peter Stojkovic" <Pe************ *@gmx.net> wrote in message
news:%2******** ************@TK 2MSFTNGP14.phx. gbl...
The idea was not use OLD (OUTDATED) parts of VB.NET, that are cutted in
next release by microsoft.
Peter

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
"Peter Stojkovic" <Pe************ *@gmx.net> schrieb:
I am now using Beep to make a short warning-sound in my VB-Project
What is the aeqivalent command in VS.70, if i dont want use Visual Basic
Run-Time Library Members


There is no managed replacement available. BTW: I strongly recommend to
rethink the decision to use only a part of Visual Basic .NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Nov 21 '05 #13

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

Similar topics

6
31824
by: Leo | last post by:
hi there i want python to do a beep. in the docu i found in tkinter the method bell() but the script: import Tkinter Tkinter.bell() gives the error:
3
3349
by: #Hai | last post by:
Hi, I want to throw out a series of 'beep..beep..beep' to the speaker. How to do that ? Thanks
19
56708
by: Anon Email | last post by:
Hi everyone, Let's see, now. This question is about the capabilities of ANSI C++. I want to write and compile code in ANSI C++ that, when compiled, will make the computer speaker beep; or, at least, SHOULD make the computer speaker beep. I know that whether the computer speaker actually beeps or not is largely dependent on the OS I'm using. But I'm not so much concerned about that (at this stage). I just want to know if ANSI C++...
8
9128
by: Marcia Gulesian | last post by:
How can I create a beep in javascript (I.E. 5.5 +) ?
1
1927
by: Hai Ly Hoang | last post by:
Hi, I want to make a beep (like MS-DOS beep, not a beep from sound-card). How to do that ? Thanks
2
13383
by: Hai Ly Hoang | last post by:
Hi, I want to make a beep from PC speaker (like C++ beep(), not a beep from sound-card). How to do that ? Thanks
4
3739
by: Kartic | last post by:
Hi, My program needs to open another form(Form2) at form1 load. But Form2 always opens with a beep. How do I get rid of that beep. I tried to load form2 from Form1 activate also but with no success. Please advise. Thanks in advance. Kartic
9
2022
by: Pradeep | last post by:
Hi all, One of our customers who has been using Access 97 for a long time has made a strategic decision to move to Oracle 10G. However, they are used to the simplicity of creating forms and defining business rules in Access. I am wondering if anyone knows of a commercial product on Windows that will let you easily define business rules and create forms with the simplicity of Access. Thank you in advance for your help.
5
29280
by: =?Utf-8?B?UmFmYWVs?= | last post by:
I'm studying C# (I've been a VB developer). I'm making some tests and I need to use Console.Beep(), but it doesn't make any sound, no matter if I try it in VS2008 beta or VS2005. Could anybody tell my some hint abouit it? -- Rafael
0
9650
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, 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...
0
9497
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,...
0
9962
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 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...
0
8992
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, 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...
1
7515
isladogs
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...
0
6748
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();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.