|
i haf try DirectX, it only help to capture photo, play audio and video files. But not Record VIDEO.
|
|
|
|
|
It does capture video to AVI or WMV. There samples available on MSDN Library as well.
But I suggest you also to have a look at the implementation presented on this site about capturing video with a DirectX class.
Just use the search function on the code project and you'll get plenty of ideas.
Like:
http://www.codeproject.com/cs/media/directxcapture.asp (it's C# but you can simply use the DLL in VB.NET)
This one will give you details about DirectX video capture:
http://www.codeproject.com/directx/MPEG2_Capture_Device.asp
Others are available.
|
|
|
|
|
Hi all
i'm fairly new to vb.net and need assistance in focusing a barcode scanner(keyboard wedge)to a textbox in an application.
will i need any .dll files to reference when working with the scanner?
please help
|
|
|
|
|
|
System.InvalidOperationException was unhandled
Message="The '.NET Framework Data Provider for SQL Server' provider is not registered on the local machine."
i,m getting this error when connecting to sql 2005 express edition.
i used oledb data adapter
can any one help me
|
|
|
|
|
amilapradeep wrote: i used oledb data adapter
Any particular reason why you used OleDb rather than the SqlDataAdapeter ?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
there's no important reason.i have use it for .net 2003 perfectly.that's only.
should i use sqldataadapter?
|
|
|
|
|
well i used sqldataadapter and it,s working.thanks
|
|
|
|
|
I'm glad it worked out for you.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hello Everyone,
I have a vb.net application deployed the query the db using a card swipe(mag stripe/card reader) using a textbox. My problem is they want to restrict typing in the card number they want the to force the user to swipe the card for security purposes. Can I disable the keyboard (and mouse, if possible) when my app is running or can I disabled the keyboard keys. How can I resolved this issue.
Also, I cound not set the properties readOnly to true because when I swipe the card it reacts on the keydown event. Is there any other way to restrict the user from typing the values to the textbox?
Any suggestions will be greatly appeciated.
Thanks
|
|
|
|
|
the last key in the swapping is vbcrlf and in the user enters from the keyboard then it is not . so you can trap from this point. second thing is you have to get the time of first key and last key. from swapping every thing will happen in one second and from user it will take more time. so what you can do is take the time when first key is pressed and wait till
vbcrlf is enterer. if the time span is less then 1 second then card swapped other wise user has typed.
if no one has better idea then this is the best idea.
Rizwan Bashir
|
|
|
|
|
Thanks for the answer, but the problem is when user swipe the card, it's read in keypress event of the textbox, therefore, you can actually see the moving text. My problem is while it's reading, user can type on the keyboard, creating extra text, and that would cause error in parsing credit card info. I'm looking for a way to temporary disable (lock) keyboard until the reading credit card is done. If anyone has any other solution, I appriciate it. Thanks.
|
|
|
|
|
How i can draw an graph in Excel page if i insert it as ACTIVEX ?????????????
==> How i can implement the tab while i writing in excel page ???????????
=>how i can open excel file from code in micrsoft excel ????
all of these how can done inside the code ????????????
|
|
|
|
|
|
am trying to use javascript to set values from a newly opened window on a dynamically created vb.net listbox with no sucess
heres the code..
Parent aspx code
<A HREF=""javascript:GetUpload('imageList');"">click here to upload images</A>
function GetUpload(CtrlName)
{
ChildWindow = window.open('upload.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName, "upload", "width=650,height=550,top=100,left=500,toolbars=no,scrollbars=yes,status=no,resizable=no");
}
-----------------------------------------------------------
child aspx code initiated by a button click
function doUpload()
{
var o = document.createElement("option");
o.text = "test";
o.value = "test";
window.opener.document.forms['Form1'].imageList.options[0] = o;
window.close();
}
throws a javascript:unknown exception when it adds the option
am really stuck on this one so any advice would be great.
|
|
|
|
|
I am not sure but just a hit. I think that
o.value will take numeric number instead of character. try
o.value=1;
and if you already have the value in the combo as you said you want to display the value then use selectedIndex=0,1 or what ever you want.
Rizwan Bashir
|
|
|
|
|
was able to crack it anyway, though it might have been an issue with a vb.net listbox
found out it was that you cant pass option varibles from child window back to parent window.
thanks anyway
|
|
|
|
|
You wont acheive anything by posting your message in the wrong Forum.
|
|
|
|
|
Is it possible to open a form, and then immediately set the focus to a specific tab?
For example, I have a form which has a tab for employees and a tab for departments. If I choose the 'Departments' option from the menu, I want it to open this particular form, and give the Departments tab the focus.
|
|
|
|
|
You can change the tab selection like this.
myTabControl.SelectedTab = myDepartmentTabPage
|
|
|
|
|
Thanks for this.
It seems to work fine if that particular form (with the department tab) is open already.
What I'm doing, from the menu item, is ....
Dim frmCompany As New Form CompanyDetails
frmCompany.ShowDialog()
How would I send your line of code at the same time as showing the dialog so that when the dialog opens, it opens on the Department tab?
-- modified at 16:32 Sunday 14th May, 2006
Hi - I just worked it out ....
Dim frmCompany As New Form CompanyDetails
frmCompany.TabControl1.SelectedIndex = 1
frmCompany.ShowDialog()
|
|
|
|
|
Do it in the load event of CompanyDetails form because it is not recommended to make your control modifier PUBLIC.
_mubashir
-- modified at 4:57 Monday 15th May, 2006
|
|
|
|
|
"_mubashir" is right. You should be setting the Tab focus in your form's Load event handler. That's where all form initialization is supposed to go.
|
|
|
|
|
OK - thanks for the feedback guys - but once I've actually opened the form, how does that form know which menu item triggered it - and so open the appropriate tab?
|
|
|
|
|
You should create a public method in your form class used to select which tab you want selected. I recommend that you create an enum that the calling code can use for the selection.
Public Class MyTabForm : Inherits Form
Public Enum TabSelect
Employees
Departments
End Enum
'
Public Sub SelectTab(tab As TabSelect)
If (tab = TabSelect.Employees) Then
myTabControl.SelectedTab = myEmployeeTabPage
Else If (tab = TabSelect.Departments) Then
myTabControl.SelectedTab = myDepartmentTabPage
End If
End Sub
End Class
Your calling code would then look like this.
Dim myForm As New MyTabForm
myForm.SelectTab(MyTabForm.TabSelect.Employees)
myForm.ShowDialog()
|
|
|
|