Forms :: Tag Selection From Webpage?

May 27, 2012

I want to retrieve all input, select and textarea fields only and possibly change their data value. I currently declare as: Dim theElementCollection AsHtmlElementCollection = WebBrowser1.Document.All ' which I then iterate through and select on tag name.

I would like to be more efficient and do something like: Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input", "select", "textarea") but GetElementsByTagName doesn't appear to support multiple selections. I saw on the net where someone declared as Dim Tags As HtmlNodeCollection = docNode.SelectNodes("//input | //select | //textarea") I tried this but HTMLNodeCollection is not referenceable under HtmlDocument. I have played around a bit and can't see an equivalent.

View 3 Replies


ADVERTISEMENT

Forms :: Assigning A Value To A Combobox Selection?

Nov 26, 2009

I have a combobox with multiple names. When I select one of the names from the combobox I want to display a value(number) instead of the name itself. How could I do that?

View 3 Replies

Forms :: Backup On Time Selection

Apr 10, 2009

im kind of new to VB and im making a program for my dad to backup his hard drives nightly.[code], im wondering how i can make it so when people select 12:00 PM, my program will grab the user's time and sleep until it get to the selected time.

View 1 Replies

Forms :: Button Selection At Runtime?

Nov 1, 2009

I use Microsoft Visual Basic Express edition 2008 on my Windows XP SP2 and in it, in a Windows Form project, I add a button to my default form and set it's flatstyle to flat and borderwidth to 0. At runtime, when I click that button, I get a black color hollow box on that button at it's center...

View 6 Replies

Forms :: Check Box In ComboBox Selection?

Nov 22, 2009

Wanted users to choose two options 1.(tick) 2 blank text so they can write things.

Was thinkin how this can be achieved using a comboBox. ?

View 1 Replies

Forms :: Combo Box Change In Selection

Sep 27, 2010

ok, got a question here, two really. first i'll ask the hard one, as i think i have my other one out of the way so i'll save it for later but i made a program where a user enters in dimensions in several text boxes in inches. there are radio boxes that the user decides what thickness of wood they would like to use. what i'd like to do is add metric into the program and use two combo boxes. one combo box drops down and you can select inches, centimeters, or millimeters. the other one drops down to choose the thickness of the wood.ok now here's my question. say i pick inches in the first combo box, i'd like the second one to display only the thickness of the wood in inches, no metric. if i pick centimeters, i'd like the second combo box to display the thickness of the wood in only centimeters, no millimeters or inches. and the same goes for millimeters.i also have the program on a timer that runs at 100 milliseconds so the user can quickly see the differences in dimensions they put in instead of having to hit the calculate button over and over and over (not sure if that really matters or not, had a couple issues with the boxes earlier but don't think it was timer related now)but is this possible? basically just looking for the kinds of drop boxes that you see on a page like autotrader.com where you select dodge, and then only the dodge cars are listed, select chevy and the chevy cars are listed, etc.

View 7 Replies

Forms :: Multi Selection In PictureBox?

Jun 3, 2009

I'm currently working on multi selection on the Picturebox. I'm kinda of stuck with these coding.

Public Class Page_2
' for selection on part of body
Private start As Point = Point.Empty

[code]....

View 1 Replies

Forms :: Checkedcombobox Selection From Database To Datagridview

Mar 13, 2011

I use vb2010 to create a simple windows form.I have a checkedcombobox which gets its items from a column (titles) from a .mdb database (this works). When I check an item or multiple items in the combobox, I want to display (multiple columns) the title and for example info in a datagridview.

View 2 Replies

Forms :: Get Hidden Value / Tax From Combobox Based On Selection

Feb 17, 2010

I have a combobox populated from the DB with:

-ID
-State
-Tax

State is the only value that is shown.I'm trying to get the hidden value, Tax, from the combobox based on the selection but can't figure it out.

View 5 Replies

Forms :: Listbox Selection - Navigate With The Up And Down Arrows?

May 10, 2010

I have code to create a listbox and populate it, and would like the box to behave like it does when clicked, e.g. if you CLICK on "a" you see it blue and can press the down arrow to move down to "b". how do I achieve this programmatically?

Private Sub junkloader()
brandlist.Visible = True
brandlist.Items.Clear()
brandlist.Items.Add("a")[code].....

this code SELECTS it properly, but I want to be able to navigate with the up and down arrows. how do I do this? thanks.

View 5 Replies

Forms :: Multiple Selection ListBox Click Order?

Mar 4, 2009

How would I display list items from multiple selection listbox in order they are clicked?

View 4 Replies

MS Access 07 - Use Button To Have A Combobox Appear And Selection Opens Appropriate Forms?

Jan 23, 2010

I am creating a document control system for standard operating procedures (SOP) in MS Access 2007. I have just started an online VBA class and have moderate MS Access 2007 experience. This thread is very detailed and lengthy.I have the tables set up and forms created for CREATE, SUPPLEMENT etc. I need to create a user interface so that when they open the database it pulls up a form that has buttons for "Start New SOP Process" and "Modify Existing SOP Process". Every step of writing an SOP is dated so that management can have outputs for target measures (to see why it takes so LONG to write an SOP from start to finish). After the user selects "Start New SOP Process" or "Modify Existing SOP Process" I am trying to have a Combobox appear with a drop down box of change types: CREATE, SUPPLEMENT, and REVISE.

Primary Key Explanation:Each document has a 3-part number comprising a 3-part PK. 1.001v1.0. Where 1 is (1-6) identifying what type of SOP: Document Type,.001 is the Document Series (a sequential number for each type of equipment--the 2nd SOP written for a document type 1 would be 1.002v1.0) and v1.0 is the version.

For example, lets say Document Type 2 indicates field equipment. The very first SOP written for a piece of field equipment would be 2.001v1.0. If a supplement is made to the SOP for that same piece of field equipment, then it becomes 2.001v1.1, if a revision is made to that same piece of equipment it becomes 2.002v1.0. If we buy a new piece of field equipment it would be assigned SOP document number 2.003v1.0.

After a document is changed (any part of the 3-part number is changed) the previous record is put into an archive table so that the technicians/general public have access only to the most recent version of each SOP. I am going to store them on Sharepoint with an Archive Folder and an Active Publications Folder and a link to the document is provided in the database. However, while a document is being modified (going through the SOP process of reviews and drafts) the users are going to need access to the previous version until the most recent version is approved (maybe I could have the document be archived upon completion of the Document Link control).

For each Combobox option I need a different "On Click" command to open the associated forms for each "Change Type". I have the necessary forms already grouped (using subforms and tabs) for each change type: CREATE SOP (has all of the forms needed when creating an sop), SUPPLEMENT SOP (has all forms needed when supplementing an sop), REVISE SOP (all forms for revising). I am trying to use If Then statements for this...

The modify part is the simplest. I think the Combobox for the "Modify Existing SOP Process" should consist of "Change Type" (CREATE, SUPPLEMENT, REVISE), "Document Type", "Document Series", and "Document Version". I want the "Change Type" to open up the correct group of forms with "Document Type", "Document Series", and "Document Version" finding the existing record that needs to be modified (i.e. so that the user can add dates for completed activities as the SOP process progresses: draft revisions, reviews).

The "Start New Process" is even more complicated. Each change type does more unique event procedures than just opening the forms (which I can't even figure out to begin with!!). The Combobox would still be "Change Type" (CREATE, SUPPLEMENT, REVISE), "Document Type", "Document Series", and "Document Version". However the following is what I am trying to do for each "Change Type":

When "Create" is chosen from the Combobox it will find the next record in the document series by the user selecting the correct "Document Type". I would like to add a formula so that it adds .001 to the previous record (giving the next sequential number), and force v1.0 to be entered and not able to be modified, since a newly created document can only be version v1.0. Then it would open the "CREATE SOP" form (all forms associated with "Create" compiled on one form by tabs and subforms--I already have this complete for each "Change Type") and require the user to fill out all document information controls (title, description, etc) before closing.

When "Supplement" is chosen from the Combobox it will find the most recent record by the user's input of Document Type and Document Series. I would like to add a formula so that it adds .1 to the previous Document Version. Then it would open the "SUPPLEMENT SOP" form. It would be useful if the fields for the document information controls (title, description, etc) were appended to this form but it is not necessary.When "Revise" is chosen from the Combobox it will find the most recent record by the user's input of "Document Type" and "Document Series". I would like to add a formula so that it adds 1 to the previous Document Version and forces the decimal value to be 0 (revise and create change types have to end in a "0"). Then it would open the "REVISE SOP" form. It would be useful if the fields for the document information controls (title, description, etc) were appended to this form but it is not necessary.Additional buttons I would like to have on the Main Menu Form--opened when the database is opened (includes "Start New SOP Process" and "Modify Existing SOP Process") would be:

"View All Publications" where a user can not edit anything, just gives them access to the current "active" SOP links. It would be a complete list of all of our SOPs. I think I could use a query "Retire" which would put an SOP into the Archive table/folder on Sharepoint. This would be useful in addition to the automated retiring of previous version in case we discontinue use completely of a peice of equipment or administrative procedures (yes we have SOPs for EVERYTHING!!)"Target Outputs" which would be a report showing the timeline of the SOP process so that management can see where we are spending too much time (my vote is for the design of the document control system!!)"Maintenance History" which would show all previous versions for each piece of equipment and administrative procedure."List of Archived SOPs"which would show all of our inactive SOPs, for the Quality Analysis/Quality Control person's benefit.

View 1 Replies

Forms :: Disable Webbrowser Control's Text Selection And Pic Drag?

Oct 1, 2009

I m doing a touch screen interface, to browser a page I used a webbrowser control, and in order to get ride of the ugly scrollbar, i m trying to use mousedown and mousemove event on the webbrowser to move the page around, it worked but when i m doing it, it select and highlight the content on the web too, how can i stop that?

do I need to create a extended webbrowser control by Inherits the orginal one?
if so, which event should i capture and override the handler?

View 1 Replies

Forms :: Move Selection Highlight (in E.g. A List, Grid..) Upon Right Click?

Sep 16, 2006

When we left click a grid cell, or list item, it highlights. Left click outside it and the selection jumps to the new place.

I can RIGHT click anywhere in the grid without disturbing an existing highlight, but I want it to work more like windows explorer would in terms of file selection..

i.e. if I right click inside the range, the range stays, if I right click outside the range, the range moves to a new single cell that I just right flicked.

Try it now on this page. Select some text, right click on the selection and it stays. Right click outside the selection and it goes. In datagrid (for example), the selection can only be modified with a left click.

How can we change this so the selection behaviour of a datagrid/list is more like this text pane?

On a related note. If I left click in a textbox I can drag a selection out. If i wanted to right click and drag the selection out, would it be the same process? (It's for a custom string manipulation picker control..)

View 3 Replies

Forms :: Populate Textboxes Based On Combobox Selection NOT Using Databinding?

Apr 27, 2010

how to go about this? I have a form, frm1 w/a combobox, cboLocations, which is being populated using a sql string. There is also a frm2 w/a series of textboxes and other comboboxes. I want it so that once a selection is made from cboLocations, the textboxes and comboboxes on frm 2 are populated with the corresponding data. Here is what I have so far:

frm1:
Public Class frmLocations
Dim conn As New SqlConnection("Data Source=f03d3s-dev01; Initial Catalog=dos_track;User Id=vbuser; Password=tran3;")
Dim depot_refnbr As Integer

[Code]...

What's happening right now is that I make a selection from cboLocations on frm1 and click on the OK button, frm2 loads, but none of the textboxes are populating and one of the comboboxes, cboDepot, shows the different data when you click on the down arrow, but it's not displaying anything it its text field when frm2 loads.

View 4 Replies

Forms :: Download A Webpage As HTML

Mar 26, 2010

Probably a simple question but I cant figure it out. I have a webbrowser control, which navigates to a URL where it logs in, then a different URL where theres some information I need. I would like to save this page as an HTML document. I can navigate to the page easily, so is there any way to tell the webbrowser to save the current page as an HTML document?

View 2 Replies

Forms :: Linking Textbox With WebPage?

Mar 1, 2011

i want to link text box of my software with the text box of the web page (i.e values entered in my software should be linked to values of web page E.g. username entered in software should be linked with username entered in yahoo/facebook site)

View 1 Replies

Forms :: Manipulating Elements From A Webpage?

Nov 20, 2009

i am using a webbrowser control on a windows form to display streaming video from cameras at different locations.i can get the image to display on the webrowser but my problem is that there are other links and texts that are displayed on the webpage.

View 2 Replies

Forms :: Set Userid & Password In A Webpage From App?

Feb 3, 2010

I want to set username & password in a website, like [URL] and want to submit the page.

This should be done automatically when i click a button on the simple form in VB.net.

I'm using following code, but its not working:

Dim objIE As SHDocVw.InternetExplorer
objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True

[Code]....

View 1 Replies

Forms :: Stop Loading Webpage?

Sep 13, 2009

I'm not able to find my answer from threads.I want close the loading of web page when it take more of tot seconds...(if is possible with a Firefox or IE)

StrAdrress = "http://www.google.com"
Try
System.Diagnostics.Process.Start(strAddress.Trim)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try

Threading.Thread.Sleep(50000) So you can see I wait 50 seconds now..Is it possible to convert this code in : if the page not load in 10 seconds, stop load,close the tab and open another tab with another address?

View 1 Replies

Forms :: Click A Javascripted Button On A Webpage?

Oct 12, 2011

in vb.net how would I click a javascripted button on a webpage?the standard Document.GetElementById doesn't seem to work.

[Code]...

View 4 Replies

Forms :: Display Particular Portion Of Webpage In Form?

Feb 21, 2010

Was trying to make a little project which will login to a site. The problem i am facing is with the captcha code display..

Was searching around to get the captcha to the form directly but didn't found anything useful.

So my question is how to display only the area of the captcha on the form instead of the complete form.

Like suppose I want to display only the portion where the logo of Visual Basic .NET Forums - The Exclusive VB.NET Community is located instead of complete webpage.

Application using : VS 2008

Answer expected for : VB 2008 or C#

View 2 Replies

Forms :: Display WebPage With No Active Content?

Aug 17, 2011

I have created a windows form application which goes through Internet Explorer index.dat files and extracts various information (URL's , date they were last accessed etc). I then display this information in a data grid view. From here i would like to be able to click on a URL link and open the web page without activating any active content (such as java script, activex, viruses etc). I have tried to do this using Internet explorer in 'offline mode' with the problem being if the web page requires an online connection it automatically changes Internet Explorer from 'work offline' to online mode.

View 1 Replies

Forms :: Find Java Link In Webpage?

Jul 30, 2011

i have html page like this

</span></font><a href="../../../../../../../<#PostArchiveFile#>#<#postid#>"><font color="#737373" size="1"> <span style="text-decoration: none">
<A onclick="window.open('http://commenting.iranblog.com/services/commenting/commenting.aspx?

[code].....

View 2 Replies

Forms :: Wait Until Element Is Loaded In A Webpage?

May 16, 2011

I am trying to get a form button to load the yahoo login webpage, wait until the send button was loaded and auto enter the username and password and hit the send button. My code is as follows

Public Class WebLogin
Dim ie As Object
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ie = CreateObject("internetexplorer.application")

[code]....

View 5 Replies

Forms :: Clear The Dgv When The User Blanks The Combobox Without Necessarily Changing The Selection Index?

Oct 25, 2010

I have just realised that ComboBoxes don't have a Change event. I have a combobox filled with a few items, eg. Bakery, Deli, Fruit & Veg, etc. Choose one of these items, all the related items show in the dgv. However, when I blank the text in the Combobox (press Delete key whilst Combobox has the focus), what event fires so I can blank the dgv? The combobox does not contain a Blank item. Even if it does, the Blank item only fires the ComboBox1_SelectedIndexChanged when the user scrolls down to, or clicks on, the blank value.

I want to clear the dgv when the user blanks the combobox without necessarily changing the selection index.

View 3 Replies

Forms :: Populating An <input> On A Webpage In A Webbrowser Control?

May 17, 2010

I know the code to find the input boxes in question.. basically the html is like so HTML <input type="text" name="username" class="inputbox"> i know enough to use WebBrowser1.Document.Forms.GetElementsByName("username") to find the text box...but I need to know how to send the contents of say TextBox1.text to the form on the web page...i can't figure it out for crap...I just assume give up and use sendkeys to tab to the textbox even thought its 80% unreliable....

View 2 Replies

Forms :: Show Specific Parts/lines Of A Webpage?

Jul 14, 2011

I am creating a simple researcher application to access and store data. As of today it workes by entering a number into a text field and hit enter/button. The result then shows up in a non-menu webbrowser window. What i would like it to do was to exclude the web browser window, and instead show in a popup window inside the application. This should be rather easy, here's what i think might be a problem. I want only to show specific lines from the webpage, not the whole page.

View 3 Replies

Data Grid Selection Load Form - Call A Stored Procedure With The Value Of The Selection

Feb 27, 2009

I am trying have a data grid selection populate a form. I am new to this.Basically I have a connection persistance object and I would like to call that and call a stored procedure with the value of the selection. The datagrid is bound to an object.

[Code]...

View 1 Replies

Listbox (20 Items) With Multi-selection And Label That Disply The Selection And One Button

Dec 25, 2010

I have a listbox (20 Items) with multiselection and label that disply the selection and one button. So I wrote (it works fine)

[code]...

Now when I click on button the label show lets say Item2,Item5,Item10,How do I take off the last ","

somthing like that Item2,Item5,Item10

I used to do: Dim s As String = Trim(Label1.Text)Label1.Text = s.Substring(0, s.Length - 1) but it give me an error converting intiger to string

View 6 Replies







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