|
AudioVideoPlayback is no longer supported, and won't come out in future versions for .NET 2.0 at least. However, you should be able to render to a texture, which you can then save.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
"However, you should be able to render to a texture, which you can then save."
Please tell me how can I do this in VB.NET with .NET Framework v1.1.
Also whats new in .NET Framework v2.0 about saving pictures from movies.
|
|
|
|
|
Iftikhar Ali wrote: Please tell me how can I do this in VB.NET with .NET Framework v1.1.
I've never done it, I've just read the docs
Iftikhar Ali wrote: Also whats new in .NET Framework v2.0 about saving pictures from movies.
The AudioVideoPlayback namespace is gone. There's nothing new that's good that I know of.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: I've just read the docs
Please tell me the source of docs.
Christian Graus wrote: The AudioVideoPlayback namespace is gone. There's nothing new that's good that I know of.
Thats really bad, but I think some other namespace will replace it but it cannot be completely removed.
|
|
|
|
|
Iftikhar Ali wrote: Please tell me the source of docs.
They are in the SDK, but I also bought a book.
Iftikhar Ali wrote: Thats really bad, but I think some other namespace will replace it but it cannot be completely removed.
My fear is the new SDK will be WPF, which only runs on XP and higher.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok I'll search in the SDK, Please confirm me, you are talking about DirectX SDK?
Christian Graus wrote: My fear is the new SDK will be WPF, which only runs on XP and higher
Thats Microsoft policy to eliminate usage of old versions of Windows.
Tell me what WPF stands for?
|
|
|
|
|
Iftikhar Ali wrote: you are talking about DirectX SDK?
Yes
Iftikhar Ali wrote: Tell me what WPF stands for?
Windows Presentation Foundatin AKA Avalon
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanx
I know WPF as Avalon.
If possible tell me the link from which I can get my answer to this question.
|
|
|
|
|
Private Sub txt_ord_qty_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txt_ord_qty.KeyPress
If IsNumeric((e.KeyChar)) = False Then
MsgBox("ENTER ONLY NUMERIC VALUE")
End If
End Sub
I M USING THIS CODE BUT AFTER MESSAGE IT INSERT VALUE IN TEXTBOX
HOW CAN I PREVENT STRING VALUE IN TEXTBOX
PLEASE HELP ME
asdf
|
|
|
|
|
Have you check if there's a cancel property available under e?
Otherwise strip last char in the text property.
|
|
|
|
|
|
did u tried
return
after the msgbox in the if condition
abhinav
|
|
|
|
|
hi vivek
the code that i m giving u will definately help u
in the key press event of the textbox write the following code
if char.isNumber(e.keyChar) = false then
e.handled=true
end if
karan jain(Vinit Jain)
|
|
|
|
|
System.Data.OleDb.OleDbException: The statement has been terminated. Cannot insert the value NULL into column 'bcId', table 'ForumVB.dbo.forumTopics'; column does not allow nulls. INSERT fails. at System.Data.OleDb.OleDbDataReader.NextResults(IMultipleResults imultipleResults, OleDbConnection connection, OleDbCommand command) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at dotForumTopicAdd.addTopic.submitter_update(Object sender, CommandEventArgs e)
|
|
|
|
|
It seems that the message tells the story.
Or you set a non null value for bcId or you make it nullable in the DB.
|
|
|
|
|
yup, i set non null value for bcId, but i forget 2 set it automatic generate number because i use bcId is primary key and is not get the value from user keyin.... So after i set bcId to auto generate number in database then my erorr was solve already
anyway thanks for reply n all d best 2 u
-- modified at 6:06 Tuesday 17th January, 2006
|
|
|
|
|
Hi. I think that I saw on a site that I can display Master and Details in the same grid with "+" on the left of each Master's row. and if I click on the "+" so it open the details rows in the same grid with few left margin increment.
can anybody help me please... I forgot where I can find this article
OmarMallat
|
|
|
|
|
I have a picturebox for view some jpg file.
However, the jpg is always larger than the picture box view.
By default,
<br />
pictureBox.SizeMode = PictureBoxSizeMode.StretchImage<br />
after a button is clicked, it change to
<br />
pictureBox.SizeMode = PictureBoxSizeMode.Normal<br />
How can I view the whole 1:1 picture by the control of verticle and horizontal scrolling bar?
Any example/article for this?
Thank you!
|
|
|
|
|
|
Wow, You are so great!
Thank You
|
|
|
|
|
Hi,
I am new to VB .Net so was going thru this e-book. I came across an error which I was unabe to understand. Even writing to their customer support didn't help and they referred me to the author who hasn't replied back for past 2 months. here is the description of the problem
e-Book : Mastering VB .Net
Author : Evangelos Petroutsos
Page Number : 112
Lines In Concern : 15 to 21
Specific Line : 20
Structure Person - Line 15
Dim First As String - Line 16
Dim Last As String - Line 17
Dim Address As String - Line 18
Dim Phone As String - Line 19
Dim EMail(10) As String - Line 20
End Structure - Line 21
My Operating System : Microsoft Windows 2000 5.00.2195
Service Pack 4
IDE : Microsoft Visual Studio .NET 2003
Error Text : "Arrays Declared as structure members cannot be
declared with an intial size"
Problem Description : The code was copied 'AS IT IS' From the book and
The declaration given in the 20th line on the
112th page, where an Array of index 10 is declared
inside the structure, generated the above quoted
error. Please explain the reason for the
occurance of the error.
|
|
|
|
|
The reason it fails is because you can't initialize a structure's members variables upon declaration. This is only allowed in a class. For example, the following is not allowed in a structure...
Public Structure Person
Public Age As Integer = 21 ' Error!
Public Name As String = "Bob" ' Error!
Public Age As New Date(1970, 1, 1) ' Error!
End Structure
Now, how is this related to your array you ask? It's because the following array declaration...
Dim Numbers(2) As Integer
...creates a new array object and is not all that different than declaring it like this...
Dim Numbers() As Integer = New Integer() {0, 0, 0}
So, what can you do about it? You can create an initialization function that will allocate the array for you. Or you can initialize it in a constructor, but remember that a structure can't have a constructor with no arguments.
I hope this helps!
|
|
|
|
|
Hey,
Thanks for taking time to reply to this one.
Yes I do understand and I hope this is the only explanation.
It is not the same in other languages that I know, Example this kind of error does not occut in C or maybe even C++. Still it was a great help.
But I still cannot understand why it was gievn in that book, when the code is generating errors.
Anyways
Thanks a lot
Love
Chameleon
|
|
|
|
|
The Chameleon wrote: But I still cannot understand why it was gievn in that book, when the code is generating errors.
It's a mistake in the book. It happens.
The Chameleon wrote: this kind of error does not occur in C or maybe even C++.
Right, just remember that .NET manages memory differently. Class objects are stored in the heap and are always referenced (in C++ an object can be in the stack or heap). Structures are stored in the stack and are passed by value, just like an Integer. In fact the Integer is really a structure too! It's mapped to the Int32 structure. Short, Long, Single (float), Double, and other primitive types are structures as well. An array is really a class and is something that must be created on the heap.
|
|
|
|
|
It's simply an error in the book.
The error message is completely correct. You can't create an array in the declaration of the structure, you have to create it in the constructor of the structure.
Declare the array as:
Dim EMail() as String
In the constructor of the struct, you create the actual array:
EMail = New String(10)
[With reservations for errors in the code, I normally program in C#]
---
b { font-weight: normal; }
|
|
|
|