|
That's the strange thing. If I use WMP from the Windows Start menu it plays DVD's fine. But when I put WMP into a form in visual basic, it starts to play it, but then pauses, jumps about and crashes!
|
|
|
|
|
That's odd. It's not how your code is calling WMP ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Dear Listers,
My involvement in programming only xtends to TSQL. I'm looking to take-on VB.Net. What would you recommend are suitable texts for entry-level into this code?
TIA
John
|
|
|
|
|
|
Using the code below, I can only do an EXACT seearch for an item in a listview control; however, I'd also like to do a PARTIAL search as well but can't get that working from what I can find. I know there is a FindNearestItems method, but no luck in getting that to work.
Any suggestions on how to code the partial search?
Here is my code that works well in a doing an EXACT search:
Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged
Dim Itm As ListViewItem = lstItems.FindItemWithText(txtSearch.Text, True, 0, False)
If Not (Itm Is Nothing) Then
lstItems.Items(Itm.Index).Selected = True
lstItems.EnsureVisible(Itm.Index)
lstItems.Focus()
End If
End Sub
|
|
|
|
|
I didn't know this was on offer at all. I reckon you'll need to iterate over the items yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am trying to move a label from form1 to form2 and I don't want to have to create another label on form2 and transfer all the information it carries to the other form and then back again. So what I want to do is just move the label from form1 to form2 and then later back again. If anyone can help it would be greatly appreciated. Thank You!
|
|
|
|
|
That's not a real good idea. You'd be much better off and have far more maintainable code if you just created the label on the second form and changed the text property when you needed to. What you're proposing is overly complex for little benefit.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This is so wrong. You shouldn't be moving controls between forms, the controls shoudn't even be visible between forms. What a disaster.
To communicate between forms ( passing text to set labels, for example ), form2 can expose a property that form1 sets ( a string that sets the label ), form2 can take the string in it's constructor, or you can set up delegates to pass the info between forms based on some event in one form.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I need to know how to add files to the Application Files List in publish section of a project in VB 2005 Express Edition, specifically a database file. The file is in the resource section but i need it to show up in the application files list
|
|
|
|
|
Add existing file to project ? Why does it matter what list it's in ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i dont need to add it to the resource file i need to add it to the Application file list so that i can deem it a data file and the program will place the file in the correct place to be accessed by the program otherwise when i install the program it looks for the database and cannot find it, then errors out and shuts down the program. Unless anyone knows a different way to tell the installer to copy that database file to the correct path?
|
|
|
|
|
I want to make a game using vb.net.
I am a beginner and not very good at developing codes for an object to move.
please help.
simalike
phunz
|
|
|
|
|
wrote: please help.
You haven't really specified what it is that you need help with. To "move objects" could be anything from animating cards in a solitarire game to simulating three dimensional real time physics.
---
Year happy = new Year(2007);
|
|
|
|
|
Sounds to me like you're one of the many people who try to write games before first learning enough core concepts to stand a chance of completing a game project. There are books on how to write games, I suggest buying one, but also working on knowing the core of your language better before adding DirectX to the mix.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Beginners often seem to want to run before they can walk!
Kevin
|
|
|
|
|
Yeah, when I read graphics forums, they were full of 'I just found out about C++, who wants to join my team to make a killer 3D engine, it will be better than all the others, and do xxx and yyy and zzz, even though those things are not possible with current technologies'.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I want to make a game using vb.net.
I am a beginner and not very good at developing codes for an object to move.
please help.
phunz
|
|
|
|
|
Hi.
I have a web application, which runs on the server. The application supposed to access folder on the Intranet (provided by user), grab some files and read them. The problem I have is the security. Some folders on the Intranet are not accessible. What happens is when user provides directory address to my application I cannot access the folder due to access denied error. How can I go around that? In my web.config file I have set but still it doesn't work.
Thank you,
|
|
|
|
|
I want to get data from excel file and fill data into DataTable via OLEDB. But header of DataTable is always the first row of excel file.
Exp : i have data in excel file :
John 29
Kevin 27
Kex 34
When i fill it into DataTable, header of DataTable is (John 29). And i don't want that. I want (John 29) is the first row of DataTable. So how could i solve that?
code :
Dim cnn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Info.xls;Extended Properties=""Excel 8.0;HDR=YES;""")<br />
Dim da As New OleDb.OleDbDataAdapter("Select * from [Sheet1$]", cnn)<br />
Dim dt As New DataTable("TestExcel")<br />
da.Fill(dt)
|
|
|
|
|
Make the first row in your excel document your header row.
I'm listening but I only speak GEEK.
|
|
|
|
|
Hi,
I have a piece of code which reads the contents of a cd to and image file using a DOS command line program. While this is running the main window becomes frozen. Does anyone know how I can create a thread that deals with the command line program so that the window does not freeze.
Thanks
|
|
|
|
|
Let's see the code your using to launch this command line process and interact with it. Usually, something like this doesn't block your interface, unless your doing a WaitForExit on the Process object.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
This is the code I am using to launch the command
Dim command As String
command = "C:\readcd dev=1,0,0 f=c:\johntest2.iso"
Shell(command, AppWinStyle.Hide)
I am also hoping to display a message when the command has finnished.
-- modified at 7:23 Wednesday 10th January, 2007
|
|
|
|
|
Are you using VB.NET or VB6??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|