Pass Info To ListView On Another Form?

Aug 6, 2010

I'm not that experienced with .net but what I'm trying to do is pass something from Form2 to a listview on Form1.

On Form1 I have a button that once clicked this is called[code]...

View 8 Replies


ADVERTISEMENT

VS 2010 - Fill Out A Form With Certain Info, Put The Info Into An Array?

Nov 17, 2011

I am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!

[code]...

View 1 Replies

Collect Info From PC Hostname And Pass Into Database

Jan 11, 2009

I am just trying to get the information i collect from the pc's hostname and pass it into a db. All the db passwords, location etc are correct but i am getting nothing.

Imports System
Imports Microsoft.Win32
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Private Sub DB()
[Code] ......

View 14 Replies

VS 2008 - How To Pass Info (URL) To Thread For Scraping

Apr 8, 2012

I am making scraper that uses url list. But I have no idea how to pass that wanted url from that list to thread that does scraping.

Public Sub init2_check()
Dim t(source1.Items.Count()) As Thread
For x = 0 To UBound(t) - 1
t(x) = New Thread(AddressOf ScraperDoWork)
t(x).IsBackground = True
t(x).Start(x)
thread.Sleep(100)
Next
Me.Invoke(New button_Delegate(AddressOf enable2_button), btn_StartScrape)
End Sub

View 1 Replies

ASP.Net MVC 3 Razor - Create And Pass Info To A Dynamic Layout?

Jan 10, 2011

In other languages (PHP/Python), I am used to creating a class which represents a given HTML page layout. These classes can have an unlimited number of attributes and dynamic features, such as Navigation (multi level), error messages, info messages, footer text, etc... Most of these items have defaults, but may be overridden on a per-page level. For example:

[Code]....

My question is: how do I implement similar functionality into ASP.Net MVC 3 Razor (VB)? So far, I have been able to see how you can use ViewData to pass various bits of data to a view. Also, I have been working with strongly typed views. Frankly, I'm not sure who's job it is to have this logic, the controller or the view (or is there a model that should be in there somewhere). Here is a summary of what I am shooting for:

A single place to initialize the default values for the layout (like the first layer of navigation, etc...) Strongly typed attributes, such as Public Readonly Property Nav1 as List(of NavElement) And a single place to render these layout elements (I assume _Layout.vbhtml) forgive the here-and-there of this post... I'm trying to figure out the "right way" it's done on a platform that is both new (Razor) and new to me (ASP.Net MVC).

View 3 Replies

VS 2008 Add All Info To Listview?

Oct 29, 2009

Im trying to make my btn add all the file info to the listview. The listview has : icon + file name/type/bytes/directory. How would i make my Btn open folderbrowserdialog and let the user add it. It will then add all the info to the listview. How would i do this?

View 3 Replies

Extracting Info From A ListView In A Tab Of A TabControl And Using It In Another Tab

Jun 22, 2010

I'm working on a project at the moment, where there are a variety of sections. Each section has its own window and WPF controls. Each window has a tab control, with tabs to 'View', 'Add', 'Edit' and 'Delete' records. The 'View' tab has a ListView which is populated with records from a database (using LINQ to SQL).

[Code]...

View 1 Replies

Asp.net - How To Pass An ID From Parent ListView To A Child Repeater Inside The Parent ListView

Oct 12, 2011

I have a listview "CategoriesList" and i have a repeater "NewsRepeater" inside the listview "CategoriesList"

<asp:ListView ID="CategoriesList" runat="server" DataKeyNames="CatID" DataSourceID="CategoriesListODS"
EnableModelValidation="True">

[Code]....

how to pass the catID from the listview and make it as SelectParameters in ObjectDataSource "NewsRepeaterODS"?

View 1 Replies

Display User Info In A Listview Rather Than A Listbox?

Mar 20, 2010

im trying to edit a code so that i can display user info in a listview rather than a listbox because listview has some options i want to use , i have 2 errors one in Public Sub removeClient and one in Private Sub AddClientToListview i would be very greatful if some could give a helping hand to resolve these errors

vb.net
Imports System.Net.Sockets
Public Class form1

[Code]....

View 2 Replies

Grap Info From Online Search And Put Into Listview?

Mar 18, 2009

I am tray to find info how I grab info from my search online and put it into Listview

[Code]...

View 7 Replies

Combo Box Display Info Description In Listview And Id In The Database?

Feb 15, 2012

just want to know how will i able to display the info description in my list view but the one that appears in the database is its id(using vb.net)

View 1 Replies

Forms :: Speed Up Loading MP3 File Info Into ListView

Apr 27, 2010

It has the ability to recursively grab all .wmv and .mp3 files in any chosen folder, and add them to a playlist.When opening the playlist, my program adds all the songs to an array, then starts adding the songs to a listview, categorizing them by song, artist, album, and genre, using a dll to access the ID3v1 tags on the .mp3 file.It can successfully create playlists of thousands of songs at a somewhat okay speed, the problem is loading that into the categorized listview.It used around 75% of my friend's CPU while loading his 5k+ song playlist into the listview, and it never finished after loading it in for a couple minutes (it auto updates as it loads, because it is done in a new thread.) It never finished because his OS has a bug where, if the CPU usage is over 100% for more then a few mins, it BSOD's, but that's beside the point.

His CPU, by the way, is a quad core 2.33 GHZ processor.The listview loads thousands of songs by using a lot of CPU [low amount of RAM, less then 40MB 99% of the time], and it does it slowly. [code]I've already redone the sub once or twice to speed it up, and at the moment it's 2-3.,

View 1 Replies

Pass Argument To Sub Then Add To ListView

Mar 5, 2009

I am trying to pass an argument to a sub then have it add to my listview, my code is:

Module modFunctionsSubs
'Function and sub routines
'This sub logs an even in the listview
Public Sub logEvent(ByVal statusText As String)
listViewMainLog.Items.Add(statusText)
End Sub
End Module

My argument is getting through ok, statusText but I get an error:
'Name listViewMainLog is not declared'

View 3 Replies

[2008] Pass In A LISTVIEW - BY VAL Or BY REF?

Feb 22, 2009

I've got this sub

[Code]...

It works on a listview called vendorfilesLV I want to make this sub work on several different listviews. So I'm going to pass the listview in - do I make it BY REF or BY VAL?

[Code]...

View 7 Replies

File Info - Pass Delete And Copy File Method On A Button?

Jul 22, 2011

i am very new to VB. I am working on file operation such as show files, copy file, delete file, show current directory, rename folder, make folder. My problem right now is with delete and copy file. I have a method of delete and copy but i dont know how to pass this method on a button.

[Code]...

View 8 Replies

C# - Pass Whole ListView Row And Use It In External Function?

Jul 21, 2010

I have Listview which databound to Dataset with about 20 items per row. I have a function which executes on each ItemTemplate appearance and gets about 10 params from Eval("something"). So basically one function builds and image from 10 parameters.Instead of passing 10 Eval("something") to the function is it possible to pass it whole row and how to use this row inside of function because it is not simple DataRow or ListView row which i can access as array of items (datacolumns).Reason i do that because function looks ugly and each time i need to change it i need to deal with dozens of items.

View 2 Replies

Pass Values From Datagridview To Listview?

Jun 10, 2011

How pass values from datagridview to listview

View 2 Replies

Pass Values From ListView To Datagridview?

Jun 10, 2011

I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the listview these row values inserted to Datagirdview.

View 6 Replies

Pass Values From Textbox Into Listview?

Jun 10, 2011

i really need it those kind hearted programmers out there

View 6 Replies

Asp.net - Pass A Value To From Listview Item Control To Another ObjectDataSource Inside In The Same Place?

May 8, 2011

i have to list views A,and B listview B is inside listview A. i want to pass some parameters from Listview A to Listview B's ObjectDataSource.

View 1 Replies

Listview In Child Form - Listview Will Not Access With My Add Button Control In FrmCreateUserType

Jul 29, 2010

I have 3 forms, one frmMain - main form, second is frmUserType- childform, and the last frmCreateUserType. In the main form I have a menu item to open my frmUserType, In this form I have a button to open another form which is my frmCreateUserType, In this form I have a button to add records then update the listview in frmUserType. The problem is the listview will not access with my add button control in frmCreateUserType. I tried not to used mdiparent declaration for my frmMain and frmUserType as children and it works, so meaning that the problem is showing my frmUserType as childform?I am using vb.net 2008

Code to open my second form (frmUserType)

[CODE]...........

Code for my add button to update the listview in frmUserType

[CODE]...........

View 1 Replies

Show Info Form Exel To Abv.net Form?

Jun 11, 2011

I want to use a form in vb.net 2010, so when I click on a button ,it must show me the info of a specific row in Exel and display info of that row in a text box.

eg.
Name Surname phone
Koos Leeds 08212122392

How do I start with this, any samples.

View 1 Replies

VS 2008 : Make Info From A Form Go To Another Form?

Dec 7, 2009

I'm trying to make a simple game, but i have a question.i have a minimum damage and maximum damage lbl boxes on 1 form and i have a button if clicked it opens a 2nd form with buttons that deal "damage" when clicked

1. Attack (a regular attack that would deal the damage from form 1)

2. another attack ( this deals damage from form1 + 8)

3. another attack ( deals 30% damage for 4 attacks [so 4 attacks that deals 30% damage each])

4. another attack ( this one is great. it deals damage of 2 times of minimum damage to maximum damage and a third label box lblAP (attack power) which each 2 points of attack power you have it adds 1 more damage.)

i can do that math i just have no clue how to bring the info from form 1 to form 2.

View 12 Replies

Forms :: Pass Value From One Form To Another Form In .net Windows Form?

Jan 22, 2011

how to pass value from one form into another form...? for example if i have 1 mdiform and 2 form (form1, and form2) for load form1 i'm using system.reflection.assembly here is the code for load form1 :

Imports System.Reflection
Private Asm As Assembly
Private FrmNama As Form
Public Function GetForm(ByVal FormName As String) As Form

[code]....

after form1 load i call form2 from form1 and from form2 i want pass value, here is the code from form2 to pass value into form1 :

form1.textbox1.text = textform2.text

why value from form2 can't fill into textbox1 in form1?

View 15 Replies

VS 2005 Pass A Value From An Independent Form To A Child Form?

Nov 24, 2009

how to pass a value from an Independent form to a Child form...

here whis is the data from..

the indenpendent data is selected from the datagridview by just double clicking the cell the selected data will pass into the combox of child form (Note: this is combobox not textbox)...

i'm done with textbox it work fine..

look:

Independent form when user duble click the datagridview

Private BoxToUpdate As TextBox
Public Sub Start(ByRef DescItem As TextBox)
' Me.Close()

[Code]....

how could i able the value into combobox from independent form into child form...

View 1 Replies

VS 2008 Pass A Variable From One Form To Another Form's Timer In VB?

Jun 10, 2011

I have one form, which the user enters upto 5 websites then clicks go - I have on the second form, the one with the webbrowser. timer which checks if the web browser is busy then either a green light or black image will be shown along side the assocaited input box on the first form. I am finding it impossible to feed variables into the clock through ByVal, like I would a subroutine or function.

[Code]...

View 4 Replies

Loading Contents Of Listview To Another Listview Which Is On A Different Form?

Feb 22, 2011

I have one form which calculates something and displays it into the listview but then when Print button is clicked another form will appear which has a differently layout but same information. And on that print form there is another listview, how I would load the contents from the first listview to the printout lsitview which is on a different form.

View 1 Replies

Carry Info To Different Form

Jun 15, 2011

I want to create a form that a user will enter information into. Once the user hits "Submit", the program will search through my db. I want the result to populate into a completely new form. I only need the info from one column in order to generate the entire record, but how do I carry the info retrieved from the search what the user selects into the new form in order to populate the new form.

View 4 Replies

Passing Info From One Form To Another?

Mar 4, 2012

I am having trouble passing my summary info from my main form to the summary form. Only thing I have been able to have it do is show me the OK button to exit the program which is essentially no progress

View 11 Replies

Saving Info From A Form?

Jun 8, 2011

I have a database, and I am creating many forms that pull info from the db and write info to the db. I have a form that asks for a set of information. One of the box is a combobox that has a list of values. I have a button at the bottom
of the form that will allow the user to enter a new value to the values that populate the combobox if the user does not see the value they need. This will obviously populate a new form to create the new value.

I want the information on the first form to not be lost when the user hits the button to enter a new value for the combobox, yet I also want the combobox to display the new value.

Is there a way to save the information from the form and repopulate the form with the info the user entered? If I reload the form undoubtedly the form will repopulate the combobox and my new value will be there, since I have it reading and pulling info from the db on loading the form.

View 5 Replies







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