|
you can read the text file like this
Dim fl As IO.StreamReader
Dim txt As IO.File
fl = txt.OpenText("C:\abc.txt")
while fl.read or fl.readline ( writing over here so done remember)
lstview.items.add(fl.readline)
end while
if you are talking about textpad software then you might need to explore the API for that.
Rizwan Bashir
|
|
|
|
|
Hi Friends,
I need some clarification regarding TELNET with .NET.
In the remote system (SOLARIS) root folder i have some scripts like perl,shell. I want to execute the script.
I executed through the command prompt, but i want to execute from VB.NET.
First of all , i want to know we have option in .NET2.0 or not.
Please Clarify me.
Thanks,
Tharma
|
|
|
|
|
rexec, you'll need to implement Rexec protocol see RFC, quite simple - really.
Never send a human to do a machine's job Agent Smith
|
|
|
|
|
Thanks for your reply.
I think, .NET does not provide rexec component. Only some third party DLL
is available, that provides only trial version. We don't have free version
of that components. Please clarify me.
Give some overall ideas of rexec, How to use and implement it?
This will be very helpful for me.
Thanks,
Tharma
|
|
|
|
|
The rexec protocol works as following :
Client makes TCP connection to REXEC port (512).
Client sends TCP port number (decimal ascii, null-terminated) of port. If the first byte is a NULL, then server won't make any stderr connection
Server makes TCP connection to client's port
Client sends target username (null-terminated).
Client sends target password, NULL, remote command, NULL, and then command's stdin, followed by a FIN.
Server sends one null byte (=no error), or a non-null byte, followed by error message(s).
Server sends output of command.
Server sends FINs on stdout, stderr connections.
Never send a human to do a machine's job Agent Smith
|
|
|
|
|
Thanks my friend.
Really I understand how rexec works, but i don't know how to implement these
method in VB.NET.Please guide me.
Thanks,
Tharma
|
|
|
|
|
If you have done any Socket programming I suggest you go through examples provided by Microsoft.
Once you familiar with creating sockets and tcp/udp protcols (conection based and connectionless) and sending and receiving, implementing rexec is simple.
Never send a human to do a machine's job Agent Smith
|
|
|
|
|
Thanks for your updates.
I am not aware of socket programming. Some of my friends told me, through
the socket programmin we can tranfer the file but they don't know how to
execute the remote system (Like Solaris,Linux) files. Please guide me.
If you provide some sample code that will be very helpful for me.
Thanks,
Tharma
|
|
|
|
|
hello
i want a confirmation box when a user press the delete button.
is there anybody to help me.
bye
|
|
|
|
|
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.
|
|
|
|