Posts

Showing posts from 2012

VB 2010 Generate Random Strings and Random Numbers

Image

Visual Basic 2010 - Button Sound / Music Play

Image
Visual Basic 2010 - Button SoundThe code is simply goes like this You can copy and paste in your (Click_Event) or whatever it is you wish (MouseClick - MouseHover - MouseLeave) :

Dim MySound AsNew System.Media.SoundPlayer()  MySound.SoundLocation = "path to the .Wav file"MySound.Load()MySound.Play()' OR you can use this :Sub PlaySystemSound()My.Computer.Audio.PlaySystemSound(
System.Media.SystemSounds.Asterisk)
End Sub
Background playing It lets the application execute other code while the sound plays. The My.Computer.Audio.Play method allows the application to play only one background sound at a time; when the application plays a new background sound, it stops playing the previous background sound. You can also play a sound and wait for it to complete.
For Visual Basic 2010 and in general, when an application plays a looping sound, it should eventually stop the sound. For more information, see How to: Stop Playing Sounds in the Background in Visual Basic 2010. Example The

Visual Basic Online Course ProgressBar

Image
Visual Basic 2010 Progress Bar Control Using the ProgressBar control Example : - Create New Windows Project - Button1 - ProgressBar1

- Logic:

We will generate 4 MessageBoxes by clicking the Button1 Control and everytime a messagebox shows up, a ProgressBar step will be taken.
Progress Bar Class : In .Net Framework 4.0 A ProgressBar control consists of a window that is filled, by default from left to right, as an operation progresses. The control has a range and a current position. ProgressBar overrides the metadata of the Maximum property and sets its default to 100. ProgressBar overrides the metadata of the Focusable property and sets its default to false. For more information, see Dependency Properties Overview.

Customizing the ProgressBar Control To apply the same property settings to multiple Progress Bar controls, use the Style property. You can modify the default ControlTemplate to give the control a unique appearance. For more information about creating a ControlTemplate, see …

Receive Emails in VB 2010

Day : Aug,12,2012
Send & Receive E-mails from E-mail server using VB .net Hello, I was always thinking if i could send and receive e-mails using .Net technology, i was shocked to know that .Net 4 has no POP3 class so one could receive e-mails just like in Microsoft Outlook, regardless that Outlook uses POP3, IMAP and SMTP to both send and receive e-mails from e-mail servers. I was able to finish the send E-mail part successfully, though i've not finished the attachment and the Html parts, but the receiving e-mails part still out there somewhere i did not do it, though i managed to connect to pop3 servers and receive the +OK response successfully.
I'm using an old laptop (WinXpSp3 Home Edition) with VS2010 along with all the .Net kits installed. I've search the internet for pop3-vb.net resources and i could not land on something that works 100% with the receive E-mails part although i ran into some C# codes that helped me to take the first step which is the Response from the…

Visual Basic 2010 Error the application failed to initialize properly 0xc000007b

Image
Visual Basic 2010 Computer Virus Error : he application failed to initialize properly 0xc000007b
Cause : Virus W32.Sality
Symptoms : When you attempt to start an application (.exe) it generates an error message the application failed to initialize properly 0xc000007b
 Solution : Any antivirus will do the job.

In my case : I had VS2010 Professional Edition installed on my X86 machine that runs WinXpSp3 Home Edition along with many other applications (i.e. Office 2003\2007, VS6 SP6) and of course .Net framework 4.0.
Every time i develop an application it runs fine until i restart my computer or shut it down and then re-open it again, i receive this annoying error message when i attempt to run the .exe file i just built with VS 2010 "the application failed to initialize properly 0xc000007b"
I formatted my C:\ drive and re-installed windows along with VS 2010 and all other software, but that did not solve the problem, i did not realize that my PC is infected with Virus [Win32.S…

Visual Basic 2010 Working With DataBase Full Project Example

Image
VB 2010 Book
Working With Database Full Project Example Book Link via MediaFire.com The book is 5 chapters and is explained here, it contains source code of a project example on how to work with Microsoft Access Database from Visual Basic 2010.
    In the book; the photos show how to start your project, how to select your database and how to display it. Here, we'll discuss each photo and explain each code block.
Chapter#1 - Released
VB .Net 2010 Working With DataBase Full Project Example

Photo (1) : Shows the folder that contains the project, the (My-First-Con.vbproj) is the icon you need to click to open the project.

Photo (2) : From menu (Data) choose (Add New Data Source), a popup dialog-box will show titled (Choose a Data Source Type) and you select (Database) as long as we are connecting to one, then click next.

Photo (3) : A popup dialog-box appears titled (Data Source Configuration) and you select (DataSet). The DataSet is the connection type we are trying to establish here,…

VB2010 -Connect your first database

Hello,This is a new book about using MS-Visual Basic .Net 2010 to connect to database and build complete applications based on database. The book title’s (“Microsoft Visual Studio 2010 Data-Base Applications”) it comes in PDF format, with many Source codes and photo shots of – How To Do …… ?
...... Continue reading