|
Are you writing a VB.Net windows form application, or are you using VB.Net with ASP.Net?
nicko
|
|
|
|
|
hello
i'm using vb.net with asp.net.
plz help me.
i'm stuck becoz of this problem
|
|
|
|
|
in the code behind page:
..
Private Sub btnDelete_Init(...) Handles btnDelete.Init
btnDelete.Attributes.Add("onclick", "return confirmDelete();")
End Sub
...
on the aspx page:
..
<script language="javascript" type="text/javascript">
function confirmDelete() {
var strMessage = 'Are you sure you want to Delete this record?');
return window.confirm(strMessage);
}
</script>
...
This script will provide a confirm dialog which asks the user is they are sure they want to delete this record, and if the user has selected 'Ok' then the script will submit the page back to the server and you can use the btnDelete_Click event to process the action. If the user selects 'Cancel' from the prompt, the page will not post back.
Hope that helps.
nicko
|
|
|
|
|
Thanx for sending me such a valuable code.
I need your help once again.....in my project i have to set Pritable Flyers and Map Property Feature(With Google Map).
I searched from a net a lot couldn't find any thing valuable.
if u guide me or suggest me how can i attach these feature with my project
then i will be very thankful to u.
thanx
|
|
|
|
|
btnDelete.Attributes.Add("onclick", "if(confirm('Do you want to delete selected data?')){}else{return false}")
but if you put this line code in button click event then data deleted without confiramtion so u need same line code to paste also in load of your wabform
|
|
|
|
|
Thanx for sending me such a valuable code.
I need your help once again.....in my project i have to set Pritable Flyers and Map Property Feature(With Google Map).
I searched from a net a lot couldn't find any thing valuable.
if u guide me or suggest me how can i attach these feature with my project
then i will be very thankful to u.
thanx
|
|
|
|
|
sorry but i cant understand well your question, so can u send any code example or explain more???
Regards
|
|
|
|
|
hello
how to set Map Property using google map.
i want to show to the user a particular location on google map.
plz visit this link:
http://www.agentimage.com/demo_scr/?a=2
click on map property.
this site is using a yahoo map but i want to use google map for the same
i hope i was able to get u explain the question.
Aavesh
-- modified at 9:17 Monday 15th May, 2006
|
|
|
|
|
I had a MDI project with multi ChildForm. I openned multi ChildForm. How can I get the Handle of these ChildForms? Help me Plz. Thanks
|
|
|
|
|
' frm will get each child form and in sample am closing them all
'
Dim frm As Object
For Each frm In Me.MdiChildren
frm.dispose()
Next
Rizwan Bashir
|
|
|
|
|
Sir,
I want to calculte the size of image in the file(image dimensions) programically in vb.net.Please help me.
Also Sir, Can I seperately calculate the width and height of the image in the file.
Thanks and regards
Amaneet Brar
-- modified at 2:41 Monday 15th May, 2006
|
|
|
|
|
Dim bm as new bitmap("Path of Image")
' use
bm.height
bm.width
bm.size
etc
Rizwan Bashir
|
|
|
|
|
Need help on this.. i search in search engineer but all gave me playback of video file or Capture picture shot.
Any pro here know how to record video or have the program?
|
|
|
|
|
You have three options, at least:
1) Buy an OCX and read the code samples it come along with (i.e. Pegasus Capture Pro, or the Viscom I remember)
2) Install, read Microsoft DirectX SDK and browse the sample code provided
3) Write your own from scratch based on VfW (old, tough and I think pointless).
|
|
|
|
|
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
|
|
|
|