baphometSloth
ISP
When a user rightclicks and selects copyshort cut on a web page I would like to capture that data and have it automticly add/populate a listbox. Then when a user clicks a button have the whole contents wrote to a text file.
I was able to do this in vb6 per this topic
thread222-576513 now i am unable to convert/format it to vb.net code.
What Im using now involves the user clicking a button everytime they add a new shortcut, its kinda defetes the purpose of my app
================================
Private Sub cmdLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLoad.Click
Dim d As IDataObject = Clipboard.GetDataObject()
Dim SW As IO.TextWriter
SW = IO.File.AppendText("C:\UbbImage.txt"
SW.WriteLine(CStr("[image]"
& (d.GetData(DataFormats.Text) & ("[/image]"
))
lstClipboard.Items.Add(CStr("[image]"
& (d.GetData(DataFormats.Text) & ("[/image]"
))
SW.Flush()
SW.Close()
End Sub
=============================
Thank you all very much for all the great help and advice.
I was able to do this in vb6 per this topic
thread222-576513 now i am unable to convert/format it to vb.net code.
What Im using now involves the user clicking a button everytime they add a new shortcut, its kinda defetes the purpose of my app
================================
Private Sub cmdLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLoad.Click
Dim d As IDataObject = Clipboard.GetDataObject()
Dim SW As IO.TextWriter
SW = IO.File.AppendText("C:\UbbImage.txt"
SW.WriteLine(CStr("[image]"
lstClipboard.Items.Add(CStr("[image]"
SW.Flush()
SW.Close()
End Sub
=============================
Thank you all very much for all the great help and advice.