Click here to Skip to main content
15,905,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Refresh my memory....... Pin
RichardBerry9-Feb-06 3:56
RichardBerry9-Feb-06 3:56 
AnswerRe: Refresh my memory....... Pin
Dave Kreskowiak9-Feb-06 4:23
mveDave Kreskowiak9-Feb-06 4:23 
QuestionHow to select a range of charater in word Pin
cylix20008-Feb-06 21:29
cylix20008-Feb-06 21:29 
AnswerRe: How to select a range of charater in word Pin
cylix20008-Feb-06 22:40
cylix20008-Feb-06 22:40 
Questiondesign receiver to receive xml files Pin
jacktundra8-Feb-06 21:15
jacktundra8-Feb-06 21:15 
QuestionMulti Tier database in vb.net ( 2005) Pin
crash8938-Feb-06 21:05
crash8938-Feb-06 21:05 
AnswerRe: Multi Tier database in vb.net ( 2005) Pin
JUNEYT9-Feb-06 11:09
JUNEYT9-Feb-06 11:09 
QuestionTrying to saving URLs, big problems! :-( Pin
Darshon8-Feb-06 16:04
Darshon8-Feb-06 16:04 
Hi All,

Ok I've been at this for a week now and obviously I don't get it. I've got some of the code right cause it does work but as soon as I try to save a url it tells me that URI's cannot be put into a richtext box. ?? I have a button that opens a SaveFileDialog box and the way it is now works just fine but when I try to save the url that's in my AxWebBrowser it doesn't work. What I am doing wrong here? What am I just not getting? (Yes Newbbie Wink | ;-) )

This is my code for the button so far:

Private Sub Faves_b_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Faves_b.Click<br />
<br />
' Find the directory of the user's Favorites.<br />
<br />
Dim objRegKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser<br />
<br />
Dim objFav As Microsoft.Win32.RegistryKey = objRegKey.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders")<br />
<br />
Dim strFavoritesPath As String = objFav.GetValue("Favorites")<br />
<br />
' Set properties of Dialog-box.<br />
<br />
Dim myStream As Stream<br />
<br />
Dim SaveFileDialog As New SaveFileDialog<br />
<br />
Dim URLName = AxWebBrowser.LocationName<br />
<br />
Dim URLAddress = AxWebBrowser.LocationURL<br />
<br />
SaveFileDialog.Title = "Add To Your Favorites"<br />
<br />
SaveFileDialog.InitialDirectory = strFavoritesPath<br />
<br />
SaveFileDialog.FileName = URLName<br />
<br />
SaveFileDialog.Filter = "URL Files (*.url)|*.url"<br />
<br />
SaveFileDialog.FilterIndex = 1<br />
<br />
SaveFileDialog.DefaultExt = "*.url"<br />
<br />
SaveFileDialog.RestoreDirectory = True<br />
<br />
' Now display the SaveFileDialog so the user can save the url.<br />
<br />
SaveFileDialog.ShowDialog()<br />
<br />
' If the file name is not an empty string save it .<br />
<br />
If SaveFileDialog.FileName <> "" Then<br />
<br />
Dim RichTextBox As New RichTextBox<br />
<br />
RichTextBox1.LoadFile(URLAddress)<br />
<br />
RichTextBox.SaveFile(URLAddress, RichTextBoxStreamType.RichText)


End If

End Sub

Thanx to anyone that can contribute to the "Help the Newbbie Program" Wink | ;-)
AnswerRe: Trying to saving URLs, big problems! :-( Pin
Dave Kreskowiak9-Feb-06 4:17
mveDave Kreskowiak9-Feb-06 4:17 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Darshon9-Feb-06 16:45
Darshon9-Feb-06 16:45 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Dave Kreskowiak9-Feb-06 18:04
mveDave Kreskowiak9-Feb-06 18:04 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Darshon9-Feb-06 19:58
Darshon9-Feb-06 19:58 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Dave Kreskowiak10-Feb-06 1:24
mveDave Kreskowiak10-Feb-06 1:24 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Darshon10-Feb-06 4:53
Darshon10-Feb-06 4:53 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Dave Kreskowiak10-Feb-06 13:42
mveDave Kreskowiak10-Feb-06 13:42 
GeneralRe: Trying to saving URLs, big problems! :-( Pin
Darshon10-Feb-06 17:38
Darshon10-Feb-06 17:38 
Questionim try 2 convert .mdb to .cdb (pocket pc) using actice sync, but y the Remote Procedure Call Fail message come out..i cann convert anymore...help!! Pin
williamccyccyccy8-Feb-06 15:13
williamccyccyccy8-Feb-06 15:13 
GeneralRe: im try 2 convert .mdb to .cdb (pocket pc) using actice sync, but y the Remote Procedure Call Fail message come out..i cann convert anymore...help!! Pin
Guffa8-Feb-06 21:49
Guffa8-Feb-06 21:49 
Questionselect tab in tabstrip from commandbutton Pin
Jlawrnce8-Feb-06 14:15
Jlawrnce8-Feb-06 14:15 
AnswerRe: select tab in tabstrip from commandbutton Pin
Chatura Dilan8-Feb-06 23:14
Chatura Dilan8-Feb-06 23:14 
AnswerRe: select tab in tabstrip from commandbutton Pin
JUNEYT9-Feb-06 6:03
JUNEYT9-Feb-06 6:03 
QuestionProgram for E-mails Pin
kostasdiktia28-Feb-06 13:25
kostasdiktia28-Feb-06 13:25 
QuestionUsing Flash Events in Vb.Net Pin
James A.8-Feb-06 13:11
James A.8-Feb-06 13:11 
AnswerRe: Using Flash Events in Vb.Net Pin
Chatura Dilan8-Feb-06 17:24
Chatura Dilan8-Feb-06 17:24 
GeneralRe: Using Flash Events in Vb.Net Pin
Guerven8-Feb-06 18:38
Guerven8-Feb-06 18:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.