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 12 5314
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
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
Peter, But i dont wnat use the old fashioned commands from VB 6.0 I only want use the NEW commands from VS.VB
There are not much replacements that I know.
The If, Else, + - * \ / ^ are complete the same as in VBclassic, VBA and
VBS.
Or do you mean commands as OrElse and AndAlso, there are not much like that.
I think that it is almost impossible to write a program without those I
showed first.
How do you do that?
Cor
This is one sample it's in C#.
using System.Runtime. InteropServices ;
class Message
{
[DllImport("kern el32.dll")]
public static extern bool Beep(int Frequency, int Duration);
public static void Main()
{
Beep(220, 250);
}
}
The Beep API doesn't always work on all PC's , depends how the PC is setup.
The
MessageBeep is more reliable:
Public Enum MessageBeepEnum
Simple = -1
OK = &H0&
Hand = &H10&
Question = &H20&
Exclamation = &H30&
Asterisk = &H40
End Enum
Public Declare Function MessageBeep Lib "user32"(By Val Beep As
MessageBeepEnum ) As Int32
Hope this helps you.
"Peter Stojkovic" <Pe************ *@gmx.net> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl... 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
Windows Forms Tips and Tricks has an article on using sound. Code is in VB
or C#.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Peter Stojkovic" <Pe************ *@gmx.net> wrote in message
news:eG******** ******@TK2MSFTN GP10.phx.gbl... 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
Hi Cor
I need ONLY the function or sub in VS.VB that makes the same like in
earlier times the "beep()"
to give the user the info, there is a wrong input for example.
What is the new "beep()"-function.
I dont want use "beep", I want use the new function, the name i am looking
for
Peter
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:Ov******** ******@TK2MSFTN GP09.phx.gbl... Peter,
But i dont wnat use the old fashioned commands from VB 6.0 I only want use the NEW commands from VS.VB
There are not much replacements that I know. The If, Else, + - * \ / ^ are complete the same as in VBclassic, VBA and VBS.
Or do you mean commands as OrElse and AndAlso, there are not much like that.
I think that it is almost impossible to write a program without those I showed first.
How do you do that?
Cor
Peter,
There was yesterday a long discussion thread about the same.
You are doing yourself not well by not using the Microsoft.Visua lBasic
Namespace http://msdn.microsoft.com/library/de...rykeywords.asp
Without any restriction can this namespace by the way as well used in C#.
Cor
"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/>
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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
|
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
|
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++...
|
by: Marcia Gulesian |
last post by:
How can I create a beep in javascript (I.E. 5.5 +) ?
|
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
| |
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
|
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
|
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.
|
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
|
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: 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: 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: 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...
|
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
| |