Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > My web browser doesn't want to work right.
 

My web browser doesn't want to work right.

On my main window, I can send a Private Message on a website, but if I have another web browser in another form, it directs me to the error page when I send it.
NintendoZACHERY  Monday, September 28, 2009 8:56 PM
On my main window, I can send a Private Message on a website, but if I have another web browser in another form, it directs me to the error page when I send it.

what is your problem? can you post here the error............
Don't judge me, just Upgrade me. Thanks!
Malange  Tuesday, September 29, 2009 8:45 PM
Your not providing much information or any code so hard to help . When you open a new browser the server creates a new session for it as if two users where online . So if your starting something with the first browser that you are trying to continue with the second browser you can have a problem . That is just a wild guess though .
coding for fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the button . Makes it easier to read .
bdbodger  Tuesday, September 29, 2009 9:07 PM
Ok, after lots of testing, I have figured out that it will not accept any user made text, for example "Me.TextBox.Text"

Heres the code I have (Its after the browser is navigated:

        Dim sent As HtmlElement = Me.Browser.Document.GetElementById("ctl00_ctl00_cphRoblox_cphMyRobloxContent_lConfirmationMessage")
        If sent IsNot Nothing Then
            If sent.InnerText.StartsWith("Your message has been sent") Then
                If V >= Me.FriendList.Items.Count Then
                    Me.StartButton.ForeColor = Color.Green
                    Me.StartButton.Text = "Start"
                    Me.FriendList.Enabled = True
                    Me.AddButton.Enabled = True
                    Me.DeleteButton.Enabled = True
                    Me.ClearButton.Enabled = True
                    Me.IDbox.Enabled = True
                    Me.Browser.Stop()
                Else
                    V = V + 1
                    Me.FriendList.SetSelected(V, True)
                    Me.Browser.Navigate("http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=" + Me.FriendList.SelectedItem)
                End If
            End If
        End If
        If Me.Browser.Url.ToString = "http://www.roblox.com/Error/Default.aspx?aspxerrorpath=/My/PrivateMessage.aspx" Then
            V = V + 1
            Me.FriendList.SetSelected(V, True)
            Me.Browser.Navigate("http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=" + Me.FriendList.SelectedItem)
        ElseIf Not Me.Browser.Url.ToString = "https://www.roblox.com/Login/Default.aspx?ReturnUrl=%2fMy%2fPrivateMessage.aspx%3fRecipientID%3d" + Me.FriendList.SelectedItem + "&RecipientID=" + Me.FriendList.SelectedItem Then
            Dim title As HtmlElement = Me.Browser.Document.GetElementById("ctl00_ctl00_cphRoblox_cphMyRobloxContent_rbxMessageEditor_txtSubject")
            Dim body As HtmlElement = Me.Browser.Document.GetElementById("ctl00_ctl00_cphRoblox_cphMyRobloxContent_rbxMessageEditor_txtBody")
            Dim send As HtmlElement = Me.Browser.Document.GetElementById("ctl00_ctl00_cphRoblox_cphMyRobloxContent_lbSend")
            Dim n As String = vbNewLine
            If Me.SigBox.Enabled = True Then
                If Me.SigBox.Text = "<Signature>" Then
                    title.InnerText = Me.SubjectBox.Text
                    body.InnerText = Me.BodyBox.Text + n + n + "This Message Brought To You By Internet Robloxerâ„?quot;
                Else
                    title.InnerText = Me.SubjectBox.Text
                    body.InnerText = Me.BodyBox.Text + n + n + Me.SigBox.Text
                End If
            Else
                title.InnerText = Me.SubjectBox.Text
                body.InnerText = Me.BodyBox.Text
            End If
            send.InvokeMember("click")
        End If
Ok, My problem is, When I try saying "InnerText =" I can not use anything like "Me.SigBox.Text" I can only use strings like "Hello" but I need it from the text box. I have tried making a string value, and making the text the value. But that doesn't work either. How should I do this?

NintendoZACHERY  Tuesday, September 29, 2009 10:46 PM
can someone help me with this problem?
NintendoZACHERY  Wednesday, September 30, 2009 11:27 PM
bump
NintendoZACHERY  Saturday, October 03, 2009 6:33 PM
Zach,I'll be happy to help IF you can state the problem. I'll be at least able to make suggestions.
Renee
Renee Culver  Sunday, October 04, 2009 1:22 AM
I said what the problem was! Its under the code!
NintendoZACHERY  Tuesday, October 06, 2009 11:19 PM
Well it's true you have stated the problem ostensibly however it is more of a design questiom as you've asked it.... the problem would be best asked on an ASP net, like www.asp.net.
Renee
Renee Culver  Tuesday, October 06, 2009 11:47 PM
How is it a design question?
NintendoZACHERY  Friday, October 16, 2009 3:51 AM

You can use google to search for other answers

Custom Search

More Threads

• Viewing the Elements of a Webpage
• Clicking on parts of a game board to bring up options.
• Save bar button not saving dataview
• RichTextBox insert a line
• how to make something happen at a certain time.
• Displaying it into Datagridview while inserting & deleting records
• Read Text File to string from FTP VB
• place a 'tab' into a string
• What is my ip in my windows forms
• paint row in datagrid