Forms :: Objects Not Displayed With Wav Sound?

Sep 6, 2009

With VB6 and VB9, I continue to have problems displaying images on a form while playing wav files (either by API call or by My.Computer.Audio.Play method).I set up a loop to display pictureboxes on a form (card images), with a wav sound file that is supposed to be played each time a picturebox is displayed. However the pictureboxes won't display until after the loop finishes and the sounds have been played several times in series:Example

For I = 0 To 3
picBox(I).Visible = True ' picBox is an object collection of pictureboxes
My.Computer.Audio.

[code].....

View 2 Replies


ADVERTISEMENT

Show Messagebox/play Sound When System Time = Time Displayed In Listview?

Nov 13, 2010

Basically i'm trying making a task manager program for myself. I want to know how I can display a message box and or play a sound when system time = time displayed in listview. I have used a dropdown box for the user to select which option they would like to select - sound or message box to popup. The data for the task will be stored in a listview box. I want it so that when the date and the time is = to the date and time set for the reminder the action will follow.Here is my code so far:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim notext As String = ""
If TextBox1.Text = notext Then[code]....

View 12 Replies

VS 2005 - Gotchas With Docked Forms - Forms - Displayed Using Menu Items To Display Information To User

Nov 10, 2011

We have an application that has a main form with a map on it. Right now the paradigm is to have forms that are displayed using menu items to display information to the user. Most of these forms are modal forms, but a couple are non-modal forms that interact with the map. For some of the forms, it really would make for a better user experience if we could dock them in the main form of the app and allow the user to see both the form and the map. For instance. We could have a list of map features in a docked window, and select one of the items on the list and have the map zoom to that feature. Or do the reverse: let the users select a map item and have a docked window that shows details of the feature. Sounds great, but I wonder about what sort of gotchas we may encounter. In particular, what if we have two windows docked at the same time? Could we get tangled up in our event code?

View 2 Replies

Forms :: Change Depending On Which Form Is Displayed?

Oct 6, 2009

Am migrating VB6 to VB.Net and am stuck once again. We use App.HelpFile in vb6 to set Path and Filename of current help file.Current help File can change depending on which form is displayed.How do we assign help files in VB.net?

[Code]...

View 1 Replies

Forms :: Change The Text Displayed In The Banner Of The Form?

Oct 19, 2010

When in design view I can change the text displayed in the banner of the form(next to the icon) but when I build the code and test the form doesn't have the text displayed? I'm using VB express 2008

View 5 Replies

Forms :: Create Two Columns Of Checkboxes But Only The First Column Is Being Displayed

Sep 16, 2011

I want to create two columns of checkboxes but only the first column is being displayed.

[Code]...

View 3 Replies

Forms :: How To Use Embedded MP3 File (Sound Type)

Feb 23, 2010

I can load and play an mp3 file using windows media player COM component, but I can't find a way to work with embedded mp3 files. I want to put mp3 files into resource, and then play them. (The file are well-named) how to work with embedded sound type?

View 1 Replies

How To Play Sound In Windows Mobile Forms

Mar 19, 2010

I am new to programming I just started using visual basic to make windows mobile 6.5 apps. I have searched everywhere but I just cant find out how to play a sound file (.wav). I need the code to play the sound when the user clicks a button (or picturebox, I really don't mind either one).

View 14 Replies

Forms :: Retrieve Values From Objects Between Forms?

Feb 9, 2009

In VB.net how do you retrieve an value from a object in a different form.
eg:

' on frmMain

MsgBox ("Say ""Hello World"" Mr. " & frmOther.txtName.text)

View 7 Replies

Forms :: Node Displayed Multiple Times In Treeview Control?

Apr 2, 2009

I'm developing a windows application. I have a form in which there is a list box and a treeview control. My purpose is to fill treeview according to list item clicks. This is done using a pair of subroutines called ReloadPermissions and FillMenuItem:

Private Sub ReloadPermissions()
Dim p As New Permissions
Dim i As Integer
Dim it As TreeNode
Dim el As New List(Of String)

[Code]...

There are only two subroutines in which nodes are added to treeview control, and they are subroutines above. The problem is that whenever list item is clicked, node count displayed in treeview is increased!!! I checked number of nodes before and after call to tvPermissions.Nodes.Clear() using MsgBox. Results show that number of nodes isn't increased (1 before call, 0 after call, again 1 after ReloadPermissions() is called), but what is displayed doesn't show such a behavior! Refreshing window by putting it under other windows or call to tvPermissions.Refresh() has no effect.

View 1 Replies

Forms :: What Event Takes Place After A Form Is Loaded And Displayed

Aug 15, 2010

Can you tell me what event takes place after a form is loaded and displayed including all controls on that form?

View 11 Replies

Forms :: Stop The Sound In Form1 From Playing When Form2 Open?

May 30, 2009

im trying to open another form2/app that have music but i wanna stop the sound in form1 from playing when form2 open?

View 1 Replies

.net - Given A Large Number Of Objects, Create Multiple Forms In Designer For Them Or Use Code To Create The Forms?

Dec 29, 2010

If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.

#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?

View 1 Replies

Capture Sound - Using Mcisendstring Function But The Sound Quality, Is Poor?

Jun 20, 2011

I have a question about of capture sound function, someone have a code example for visual basic 2010 in windows 7?, I tried using mcisendstring function but the sound quality, is poor.

View 5 Replies

Play Another Sound (like A Beep) When Desired Without Stopping The Background Sound?

Apr 19, 2009

I have background sound loop with the My.Computer.Audio and it works fine. I want to play another sound (like a beep) when desired without stopping the background sound. Several examples I have found don't seem to work. I am in VB.NET 2008 Professional.

View 8 Replies

VS 2010 Adding Sound To A 3D Game / Finding A Sound Library?

Aug 24, 2011

I'm ready to start adding sound to a 3D game and I'm looking for a decent Free library.it would not require DX and be something like:

dim MySound as SoundLib.Sound
MySound = SoundLib.LoadSound("soundfile.wav")

SoundLib.Play3DWorld(Location.X, Location.Y, Location.Z, VolumeModifier, MySound)so far all Im finding is expensive, C#, old, or not .NET compatible.

View 9 Replies

How To Save Sound They Make And Catshing A Sound Recorder

Aug 14, 2009

im making a techno progam in visual basic 2008 and after 3 hour im think how to save the sound they make and catshing a sound recorder but what the code im try to find on internet but find 0 pleas give me the code im try to find

View 1 Replies

VS 2010 Using 3 Or More Sound Outputs Or Multiple Sound Devices

Jul 21, 2011

I'm creating an application that will have 3 streams of audio. I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance. However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre. An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.

[Code]...

View 1 Replies

Set The Displayed Item Of Acombobox To The Value Displayed In A Label?

Oct 8, 2009

When a user clicks the + button on the binding navigator, I want to set the displayed item of acombobox to the value displayed in a label. The combobox is bound to a field in the table. Theproblemis that when the user clicks to add a new record the combobox is cleared and they forget to select a value before they click save.

View 7 Replies

Get The Decibel Level Of Sound Being Sent To The Sound Card?

Apr 15, 2010

I need to get the decibel level of sound being sent to the sound card (not the actual sound level the speakers are instructed to emit via volume level)There is next to no information i can find on the net to even access sound data. Could anyone point me in a direction for this? The OS will be vista/7.

View 2 Replies

Using 3 Or More Sound Outputs Or Multiple Sound Devices

Jul 21, 2011

I'm creating an application that will have 3 streams of audio.I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance.However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre.An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.I've been searching the net for 2 days now trying to find a solution, but have so far been unsuccessful. I've tried a few alternative libs such as DirectShow.Net, DirectSound, BASS.Net, QuickTime and OpenTK.Some of them do what I need to do, but they are either too difficult to use and therefore impractical or they are missing some other essential features such as Events which are required to make the rest of the application work. Would anyone oppose to me posting this same thread on other forums?I will of course post a solution if one is found elsewhere without advertising external websites.

View 4 Replies

Forms :: Use Index Of Objects In Vb6?

Nov 16, 2009

I would like to use index of objects in vb6 to upgrade into vb.net, I have seen some topic but I could not do it

For exmaple(in Vb6)
Public Sub Update_PriorMenus()
'This sub read amoun projects and display in menu.

[Code].....

View 5 Replies

Objects Set To Nothing After Changing Forms?

Dec 19, 2010

In form frmAddPlayers I declare and create an array of pictureboxes in the Load event using the code:

Dim
pbxPlayerJoined(7) As
PictureBox

[code]....

In the watch window the value of the pictureboxes is System.Windows.Forms.PictureBox. Later in the load event I start a background worker in form sfrmUSBDevice using the code:

sfrmUSBDevice.sReadWriteThread.RunWorkerAsync()

The background worker waits for user input and then calls a subroutine from form frmAddPlayers. The subroutine changes the image in the picturebox to indicate that the user input has taken place. However when the debugger returns from sfrmUSBDevice to frmAddPlayers the watch window shows that all of the pictureboxes have a value of nothing. Then when I try to change the image of the picturebox I get an "Object reference not set to an instance of an object" exception. It seems like when the debugger goes to the sfrmUSBDevice form and comes back to frmAddPlayers the objects on frmAddPlayers have lost their information.

View 5 Replies

Passing Objects Between Forms?

Aug 11, 2010

I'm translating a document management application from vb6. I want to program with good habits and technique, so I'm asking for your opinion really rather than just a solution.I have a decent understanding of OOP, but I'm not very experienced in VB at all. What I'm doing now is trying to figure out the best way to pass objects between forms.For example, in my initialization form, I have an object that stores a group of database connections. I need to pass this object around because reconnecting takes a significant amount of time. There are other objects such as user info and permissions.

Public Class Form 1
Dim DB = New DBobject
Public Sub Form1_Load

[code]......

View 5 Replies

Changing Visibility Of Objects Without Using MDI Forms?

Nov 26, 2009

Currently my program randomly removes words from a set of text and inserts textboxes below the text. The user can then enter his/her answers in the new textboxes. What I would like to do is set the program so the user can have two choices one being Easy and other being Advanced. Then when the user hits either button it brings up everything that is currently on the form. I'd prefer to do this without having to use MDI forms. I've had a hard time using the MDI forms and therefore would like to avoid using them. They way I was thinking this could work is all objects would remain invisible except for the 2 buttons and then when you hit one of them they disappear and everything else appears.

View 1 Replies

Forms :: Accessing Objects At Runtime?

May 24, 2010

I need to dynamically access a bindingnavigator, is this possible? I basically want to have code in my Base form which enables or disables it's descendant's menu buttons depending on access rights.

View 2 Replies

Forms :: Converting Strings To Objects?

May 6, 2010

Can you look at this code? It's a class module that I made so I can make our application more modular.

In the code there are 3 lines of code which have this as part of it: FormBrowseAttendance.ComboBoxLookupStudent.how I can change the coding to refer to this portion of code using these parameters:

pComboBoxName
pNameOfForm

I'm assuming these need to converted is some way but I don't know how to do it.

[Code]...

View 3 Replies

Forms :: Datagrid Bind Using Objects?

Jan 7, 2010

i created a class i invoke the class as object in vb.forms i want bind object(parameters) to datagrid when return as arraylist from methods in form_load. i want to bind arraylist to datagird in form_load.it will bind, the grid show all the parameter from arraylist.but i want few columns to bind from arrylist.here arraylist is convert from list from method.

View 1 Replies

Forms :: Displaying Objects On PropertyGrid

Mar 31, 2009

I am having a problem with objects that have other objects as properties on a property grid. Now when I display the object clsPropsFrame on the property grid, everything shows up as expected, except when I try to edit the x, y, or z of location which is of type clsPropsVec3, it ignores the change. What's strange is that when I type the vector in as a string (like "0, 16, 0"), it changes.

I have the following
'//////////////////Object Component///////////////////////////
<TypeConverter(GetType(ExpandableObjectConverter))> _
Public Class clsPropsVec3
Inherits ExpandableObjectConverter
Private refvec As TV_3DVECTOR
Public Sub New()
[Code] .....

I noticed that when I changed a component of clsPropsVec3, the property change in clsPropsFrame does not get executed. I tried making it fire of an event when a component is changed in clsPropsVec3, with the following additional
Public Property X() As Single
Get
Return refvec.x
End Get
Set(ByVal value As Single)
[Code] .....
But for some reason it ever fires off the ValueChanged event. So how can I make the sub properties of clsPropsVec3 work?

View 10 Replies

Forms :: Use The Database Objects From One Form To Another?

Jul 8, 2009

How can we use the database objects from one form to another? Eg. In my Login form a person enters his user-name and password & if it is correct, the code directs him to another form(Form2). Now in Form2 How will I get which person has entered in?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved