Accessing Value In Textbox From The Different Form In Vb2008

Sep 29, 2011

I'm using visual basic 2008. I am done coding the CRUD... but i want it to have confirmation first. Then, i tried using panel, it works. but, my interface looks not organize. Is it possible to access the values in the text boxes from the other form?

For example: the client's information text box are on the form1 and once add button is click, the confirmation box will pop out. and the pop out box is in the form2. Is it possible to access the form1 text boxes from the form2?

View 9 Replies


ADVERTISEMENT

Accessing TextBox - Use Delegates And Invoke To Change The Value Of A Textbox?

Nov 7, 2011

I am fairly new to VB .Net and have ran into an issue when working with multiple threads using BackgroundWorker.In the new thread that is created I need to access TextBox1.Text to know what the user's input was.For example:When the 'OK' button is clicked BackgroundWorker1.RunWorkerAsync starts a new Thread.

Private Sub OkButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OkButton.Click
'We cannot start more then one calculation at a single time
OkButton.Enabled = False[code]....

I know how to use Delegates and Invoke to change the value of a Textbox, but I cannot figure out how to simply access the text from a Textbox.

View 3 Replies

Restrictions On Textbox Using Vb2008?

Oct 8, 2009

how can i prevent the user from entering digits or letters or decimal and how can i convert this code to vb2008 If KeyAscii = 13 ThenCombo2.SetFocusEnd If

View 2 Replies

VB2008 Add Days() From A Textbox?

Mar 15, 2012

I have this code

Dim replace As String = System.DateTime.Now.AddDays(7).ToString("yyyy-MM-dd")

What I'm trying to do is

Dim replace As String = textbox1.text.AddDays(7).ToString("yyyy-MM-dd")

is there a way to use that add days from a text or string value already?

View 5 Replies

Formatting Output To A Textbox In VB2008?

Jun 23, 2011

So I'm attempting to get three variable to print in a string, but I can't figure out how to make the Concat or Join commands to work properly. I've tried assigning the strings to a defined string variable and then "concatting" that and trying to do it in one big line. I keep getting an error either way. Here's what I have so far:

Str1 = PaymentNumInteger
Str2 = NewBalanceDecimal.ToString("C")
Str3 = MonthlyIntPayDecimal.ToString("C")

[code].....

View 7 Replies

Accessing SQL Table Content Into A Textbox?

Sep 30, 2009

I need to know how can I update a textbox.txt content from SQL table.

Table name is -> Sch
Filed name is -> PCB (string)
txtbox.text = ????? (this needs to show sch.pcb content).

View 3 Replies

Accessing Textbox Input In A Class?

Feb 20, 2012

I am new to VB and am having a little trouble with my class assignment. Basically it is supposed to take an invoice subtotal - find the discount percent and give the real total. I cant seem to get my class to access the textbox for user input and it just keeps returning 0's. This is a homework assignment as well... im not asking for the answer just some tips because i am truly at a loss and cannot figure this out

This is my code from the button click event:

[Code]...

View 1 Replies

Accessing Datasets Loaded In Main Form From A Child Form?

Aug 11, 2009

I have a program I've been working on for some time now and I'd like to try to streamline it somewhat. I have a main menu form that has a split panel, in the left panel is a treeview that displays forms you can open and when one is selected, it opens in a child window in the right panel. Each time I open form I called DWNForm, it does a series of dataset loads which are the populating items for a series of listviews.

What I would like to do is have these datasets load once during the mainMenu load and then have the DWNForm be able to access the datasets once it is called from the treeview selection.

View 8 Replies

.net - Accessing A TextBox Control From Another Class/thread?

Apr 16, 2011

im trying to access a richtextbox from another class and thread then the ui and i cant seem to get it working. I currently have the sub thats handling the the work inside of a public class and its a sharedsub, im going to be calling it from several different classes and threads but again i cant seem to get it working. the code looks like this. Public Class SharedSubs

[code]...

i would be calling sub using SharedSubs.Console("stringstring") when this is called from the ui thread it works fine but when its called from anyother thread or class its does nothing,ive confirmed it going thru this code but its not displaying anything in the textbox and its not thru an exception due to delegates either which i figured it would.

View 2 Replies

Accessing Variables On A Parent Form From A Child Form

Aug 13, 2011

I have an array of variables called VolumeArray(12) which is declared as publlic shared in the main form1.I have a second form2 which allows the user to input various values. When this form2 is closed, I need the data the user has entered to update the values for VolumeArray(12) within Form1.

View 3 Replies

VB2008 Deleting Spaces, Putting Each Line Of Text Into Its Own Label Or Textbox?

Oct 13, 2009

OK, SO i have this program that outputs all the servers on a specific game. It outputs it to a text file. HOWEVER, There is a lot of annoying spaces. This is kind of hard to explain, so ill try to explain it. This is what The text file looks like.

173.81.220.139 2302
70.26.235.69 2302
24.26.119.209 2302

[code].....

View 13 Replies

VB2008 - Opening A New Form?

Jan 16, 2009

Okay, so I was making a program, and I wanted to open a new form, and close the current one.Natuarlly, I did this.

If login = True Then
MsgBox("Logged in.")
Me.Close()

[code].....

View 3 Replies

Accessing A Form In A Different Project?

Nov 30, 2011

how to access a form in a different project but within the same solution? Say I click a button on one form to display another form which is a part of the same solution but resides in a different project.

View 11 Replies

Accessing A Threaded Form?

Apr 11, 2011

i created a threaded form class that i call when i know an update is going to take a while....it is a simple form with a label and an animated marquee progress control. the code is listed at the bottom....whenever i try to set the message, it says i cant do it with error "{System.InvalidOperationException: Cross-thread operation not valid: Control 'MessageLabel' accessed from a thread other than the thread it was created on." from my form (in my SAVE function, i put the following line:[code]....

View 6 Replies

Accessing Controls From Another Form?

Jan 19, 2011

how can i access the controls that i made from another form? i'm also going to also use function (on the same form as the controls) that access that controls?

View 3 Replies

Accessing Database From Another Form?

May 17, 2012

i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database.i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form.example of code that will work just fine Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

[Code]...

View 2 Replies

Accessing Dataview In New Form?

Jul 31, 2009

I have a form where I open an Access database with 3 tables. I have defined datasets and dataviews for these three tables in the main form. I want to open a new form and access and update the tables using the dataviews I've already defined. When I try to access a record from the dataview using the new form, it's not defined. Can I pass the data between forms or do I need to redefine it in the new form? This is the first time I've tried to use multiple forms.

View 6 Replies

Accessing Tabs Within A Form

Apr 5, 2010

I have two tabs on a form, and I would like to know how can I display the second one when a button is clicked? The name of my tab control is tabSurvey.

View 5 Replies

Save A Form As JPG In VB2008 Express?

Dec 13, 2009

I want to save a VB2008 Express form as "JPG" so that I can view the form in Windows Picture And Fax Viewer., the form contains other PictureBoxes which contains pictures from Database.ViditKothari

View 15 Replies

Save On Form Closing In Vb2008?

Mar 18, 2009

i have a problem whith save of items that ar in combobox1 Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

[Code]...

View 1 Replies

VB2008 - EXE Startup Load Form

Mar 15, 2012

The startup that I set in my project is not the same when I open the exe file of my project.

View 2 Replies

VB2008 Hung Up When Trying To Add A New Form To Project

Oct 13, 2009

I am using Visual Basic Pro 2008 SP1. I am currently working on a windows application form project and everything was fine until recently when I try to add a new item (does not matter a new form or control), the whole program is frozen up. If I look at the task manager, the "devenv.exe" process memory usage keeps increasing until FatalErrorOutOfMemmory. I can run build, debug without any error. I can publish the project and run the program without any problem too. I have tried to open a new project and I can add a new form or control without any problem. I wonder if there is something in the project causing this problem and where I should start to troubleshoot it.

View 5 Replies

Accessing Second Form Listbox From First Form

Mar 1, 2010

how can i getting data from listbox in second form named listform while i am at first form..i have search it a lot on google but not find any usefull ans...

View 1 Replies

Accessing Data From Access To Form?

Jan 22, 2009

Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click
'If inc <> -1 Then

[Code]......

i got an error at the time of execution .

View 1 Replies

Accessing Logic Value On Parent Form?

May 12, 2010

I have a button on my form that loads a dialog. I have a logic on here that I want to test, what ever method I try I alway's get 'Object reference not set to an instance of an object'dialog1.vb:

Code:Public mainform As SettingsMainForm If mainform.LogicCheck.Checked Then textbox1.text = true End if

View 2 Replies

Accessing MDI Parent From Child Form?

Jan 31, 2011

I am trying to access a control (statusbar panel) on my MDI parent form from a child form.

Here's my
(located in child form)
Dim frmParent As frmMain
frmParent = DirectCast(Me.MdiParent, frmMain)

[Code]....

Object reference not set to an instance of an object.

View 4 Replies

Accessing Properties Of Form Classes?

Feb 4, 2010

Accessing Properties Of Form Classes

View 1 Replies

Forms - Accessing Declared Form From Another

Jul 18, 2009

Basically what I need to do is change a textbox on Form1 (AKA mainwin) from Form2 (AKA loginwin) using data that is inputted into Form2. I've done this before with applications by declaring Form1 in Form2, but this time I just get a NullReferenceException error. Here's the code I'm currently using for Form2. Maybe someone here can tell me why it's not working. [Code] I can't figure out why it's not working. I've used this same method before and it always worked.

View 1 Replies

VS 2010 Accessing Same Form But For Different Actions?

Jun 12, 2012

I have a datagridview on a form and this shows up my list of suppliers. I have a textbox which when i click shows up the supplier list and from there when i double click on a row, the supplier's name is shown in the textbox. The thing is i have to do same on the same page for search purposes which got its own textbox. But the cell double-click event already contains code that will display it in some other textbox like i mentioned previously. What i thought is to make another form with a datagridview. So this datagridview will be used to display the supplier's name in search textbox. But what if i have to access this form several times. Do i have to create several forms everytime?

View 7 Replies

VS 2010 Accessing Unloaded Form

Jan 18, 2011

Im quite new to VB.Net so, this is what i have. A simple "console" form. Its just a form with a ListBox in it. To add stuff to the ListBox, i have to open the console, to let other forms know what the ListBox there is.

[Code]...

View 7 Replies







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