VS 2010 WebBrowser - Controlling A Class?

May 8, 2010

I am trying to programmaticaly click on this button, but I have some problems.

<button type="button" class="watch-comments-post yt-uix-button" onclick="yt.www.comments.watch5.post(this);;return false;"><span class="yt-uix-button-content">Go</span></button>

View 10 Replies


ADVERTISEMENT

VS 2010 : Controlling Objects In Frames (WebBrowser)?

Oct 6, 2010

I need to know how to control an object inside a frame on a web page. Actually, all I need to do is to be able to change the innerHTML of the body of the frame. The frame's id is "content_ifr". I've tried using the "getElementByID" method of the document to get the frame, and then setting that frame's document's body's innerHTML, but it didn't work.

View 1 Replies

Controlling WebBrowser Display If Webbrowser Control Is Used As File Explorer

Apr 18, 2011

I use webbrowser as File Explorer.

If you click folder it opens new folder contents in WB window but if you click html document it opens in EXTERNAL viewer.

How do you get html document to open in WB while exploring ?

View 3 Replies

Controlling A Webbrowser Via Code?

May 14, 2010

I thought this would be easy, and I'm sure it is... but I'm not getting the response I want.

Here's the code..

[Code]...

What I'm trying to do is load a URL and grab the text from it.The text on the file I'm using is simply a 1, that's all. However, when the messagebox shows, it's empty. I've tried using google.com as the URL and got the same response, so that means it's somewhere in my code here.

View 1 Replies

Controlling Where User Goes In A Simple Webbrowser?

Apr 11, 2011

I am currently working on some software for a taxi company, and we have been asked to create a webbrowser (only simple) for the users which we allow to use it, to view traffic updates from a website that we already know about.

But...

We dont want them to be able to navigate away from this site via links to google adverts Etc...

Basically we don't want them to be able to surf the net at all, only be able to work!

View 2 Replies

VS 2008 Controlling Dynamic Input Fields - Webbrowser - .Net Forms?

Apr 9, 2011

I have VS 2008 and am working in VB.Net forms.I have a webbrowser control where I am trying to control input fields that are dynamically created. If a text field has proper handles such as id and name tags there aren't any problems.

For example, I am trying to work with twitter for posts. I know twitter has an API but I want to work with many similar systems and want to avoid the API as its case specific and I want to scale things within the VB.Net form. The login fields for twitter are easily handled, however the posting field once your logged in is just a text area with a class. There is a tagname but I have been unable to post using the tagname element.Any examples of posting to twitter without the API ?

web1.Document.GetElementById ... ?
web1.Document.GetElementsByTagName ... ?

I've done extensive searching but can find nothing to make it happen. DOM inspectors havn't revealed much about the field.

View 1 Replies

Forms :: Controlling A Timer From Outside Class?

Dec 22, 2010

We've been asked to make a program based on a spec where we enter some details and it will then output a graph.Part of the assignment asks us to set up a timer so that the bar chart will display each bar seperately with a time delay between each one.However the timer is assigned to a form (Form2) while the draw commands are within another class called Expenditure.

While the specification doesn't specifically say we should stop the timer from within the class it is implied.Now I have tried Form2.Timer1.Stop() and Form2.Timer1.Enabled = False within the class without any luck.I'm wondering is it possible for the Expenditure class to stop the timer or does it need to be done within Form2?

View 1 Replies

VS 2010 - Get Specific Text From Class [Webbrowser Control]?

Jul 23, 2011

I have a code in website:

<h1 class="mf_dI mf_Hblack mf_vmi">
Blabla</h1>

How to get this "Blabla" to my application?Dim rx As New Regex("(?<=<h1 class=""" & Regex.Escape("mf_dI mf_Hblack mf_vmi") & """>).+?(<=</h1>") MsgBox("Name: " & rx.Match(WebBrowser1.DocumentText).Value)
but it don't works.

And. How to get picture from website to picturebox if this picture is in the table like <table style="background:url('/blabla.png') no-repeat"> ??

View 2 Replies

VS 2010 : Click Image / Webbrowser / HtmlElement Class / Multiple Identical Images?

Jan 7, 2011

I need to click an image in a webbrowser from a Windows Form in VS 2010.I can click ordinary links using code such as this one:

Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click
Dim lnk As HtmlElement
For Each lnk In Form2.WebBrowser1.Document.Links
If lnk.InnerText = "the_text_of_the_link" Then

[code]....

When it comes to the second variation of the code I often get the following error message (exception):NullReferenceException was unhandled Object reference not set to an instance of an object.

Basically - how do I tell it to click on it only if there are two separate and unique strings of html code in a html tag?

View 3 Replies

VS 2010 Controlling Msgboxes?

Aug 3, 2011

I have 3 msgboxes in my program which should appear sequentially. However, sometimes they appear sequentially and at other times they appear randomly.

View 4 Replies

VS 2010 : Controlling Usercontrol From Form?

Jul 31, 2010

how do you control USERCONTROL button1_click event from form's button2_click event?

button 1 = hidden button on usercontrol1
button2 = visible button on form1
form1.button2 should click usercontrol.button1

View 4 Replies

VS 2010 Controlling The Cursor On A Flash Page?

Apr 14, 2010

What is the easiest way to control the cursor on a flash page?

Typically what I want to do is:

1. load the flash page in a web browser control.

2. Move the cursor to a specific position

3. Click

4. repeat 2 and 3 a couple of times.

View 7 Replies

VS 2010 - Make A Webbrowser / Frame The Page, And Put It On The Webbrowser?

May 6, 2011

I want to make a webbrowser, but only have it show one specific thing and not the whole page. The thing I want it to show and only show is in about the middle. How would I frame the page, and put it on the webbrowser?

View 1 Replies

Use A WebBrowser To Get An Element By ID Or Class Attribute?

Feb 16, 2012

I know that in a WebBrowser you can use Document.GetElementById to find an element by its name attribute, but I want to search the webpage for an element using the id or class atributes, how would it be possible to do this in a WebBrowser? I want to make it click on an image tag.

<td id="button1-cell"><img src="/static/button1.png" alt="Button 1" id="but1"></td>

Also, is it possible to InvokeMember("click") on divs?

View 1 Replies

VS 2008 Get Text From Class In Webbrowser

Aug 19, 2009

i need to grab text from a class in my webbrowser and idk how to do it here is what it looks like class="Class Id">Text<"/div>

View 3 Replies

Windows 7 (Europe) And Webbrowser Class?

Jun 27, 2009

so MS is shipping Windows 7 without the Internet Explorer in Europe. How will that affect applications that use the webbrowser class? I assume many MS programs rely on that class and hence they wouldn't really deactivate its function unless the user installs IE separately?

View 1 Replies

VS 2010 : Create A New Class And Have Each List Item Of That Class Such As 'btnID', 'btnText'?

Apr 27, 2011

I want to read a number of items from a file and then associate each of those items with a new button at run-time, so that when the user clicks one of the buttons I can display some information about that item.Can I use a LIST to manage these buttons and items? Can I create a new class and have each list item of that class, such as 'btnID', 'btnText', etc... ?

View 2 Replies

VS 2010 Created New Class And Require Text-box Field Within A Sub In New Class

May 9, 2012

can someone please help me with a textbox? I have created a new class and require this textbox field within a sub in the new class but i get Error1 'TextBox1' is not declared. It may be inaccessible due to its protection level.I have tried MyClass.TextBox1 = Form1.TextBox1 but I get declaration expected.

View 23 Replies

Create A New Instance Of Webbrowser Class Inside Of A Worker Thread?

Jan 14, 2009

Is it possible to create a new instance of the webbrowser class inside of a worker thread?

View 2 Replies

VS 2010 - Et The ATM Class To Instantiate On The Form Class?

Nov 22, 2011

I'm trying to get the ATM Class to Instantiate on the Form class.

[code]...

ISSUE = " 'ThisATM' is used before it has been assigned a value. A Null reference exception could result at runtime"

The Other problem i am having is with a class in the program called CardReader. What am i supposed to type to let the code below be able to "read" the read function on the Form1?

[code]...

View 7 Replies

VS 2010 Arrayed Class Inside A Class?

Nov 27, 2011

Haven't coded in a while, and ran into a wall when setting up my program data structure

So I have something like this in a class file;

Public Class X
Public Stuff as Integer
Public Stuff1 as String

[Code].....

I want to structure my program this way, what's the best way to go about that?

I want to access multiple data types in the same array from within a class, as it should be a subset of my base class etc... and want to be able to change the size of the array

Or is this class array within class nesting a dead end?

View 5 Replies

VS 2010 Class Create Another Instance Of The Class Itself?

Jun 11, 2012

I want to create a class that will "search" for something. Basically I load up the "search item" when the class is created and inside the class is logic to do the "search". The result of this logic will be more "searches" that I want to start. How can I have the logic in the class create another instance of the class itself?

View 3 Replies

VS 2010 Converting Public Class To Class With Get And Set?

Nov 30, 2011

I need to convert the following code, so that it exists as a created class "Payroll" that utilizes "Get" and "Set" elements. Unfortunately, I'm completely lost.

Public Class frmPayroll
Private Sub frmPayroll_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code].....

View 2 Replies

VS 2010 Populate Class Within A Class?

Oct 3, 2010

I have two classes:

[Code]...

as I get an object not set error. Can someone give me the correct syntax?

View 21 Replies

VS 2010 Class Library / - If Create A DLL Using VB 2010 Express Can It Be Used By Previous Versions Of Of .Net (3.5 - 2.0)

Aug 19, 2011

If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.

View 1 Replies

C# - Controlling Cmd.exe From Winforms

Nov 5, 2010

Question: I want to control cmd.exe from winforms. I DO NOT mean every command in a single process, with startupinfo, and then stop. I mean for example start the (My) SQL or GDB command prompt, send command, receive answer, send next command, receive next answer, stop SQL command prompt exit process. Basically I want to write a GUI on top of any console application.

[Code]...

View 4 Replies

Controlling A Download?

Jan 3, 2010

Ok, so I've been doing some looking around lately, trying to figure out how I can get maximum control over a download. So I can control things like:Download speedWhere to start the transaction(Byte Offset, like in a Stream?)Where to end the transaction (Byte Offset, like in a Stream?)

View 6 Replies

Controlling One Player With Other In VB?

Mar 9, 2010

if i have two media players in form1 and form2 respectively....how can i control the media player in form2 with media player in form1....so that if i pause media player in form1...the media player in form2 should get passed and if i scrub the seek bar in player1 the seek bar in player in form2 should move along with it...how can i do that.......means how to play single video in both players at once...

View 1 Replies

Controlling The Min Max Buttons?

Jan 23, 2009

I want to have a min and a max functionality to my app. When the user clicks the minimize button I want the form to go to taskbar which is easily done.

However the user clicks on the maximize button i want the form to go to a specific size (470,999) to be exact.

Private Sub app_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
If Me.WindowState = FormWindowState.Maximized Then

[Code]....

but it maximizes to the screen size. how to control the maximize screen button? I don't want to change the formborder style setting from sizeable because I like the way it looks like this. I just want to get the min max buttons to go to sizes that I want them to go to.

another thing is there a way to save the size of the app that the user has it set to before they send it to taskbar then when the user brings it off the taskbar is there a way to bring it back to that size?

View 4 Replies

Controlling The TabControl?

Nov 4, 2009

I was working with TabControl on a form.I wish to restrict the selection of the tabs on the form...For example, The user will start with the 0 index Tab selected by default.As he selects an option from that tab pane n confirms his selection, The next tab gets selected. I could develop a code for this like this tabcontrol1.selectedindex = 1 'Or 2 or 3 according to the need But Now I find that at runtime I can switch back to some other previous tabs or some forward tabs.... Which I do not want. I simply want the tabs to be activate in a flow...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved