Show A Number In One Form And Making It Appear In Another?

Feb 5, 2009

I have form 1 (User Details) and form 2 (Transport Usage). Now in form 1 there is a textbox which shows the user's ID and when i click a button that links form 1 (user details) to form 2 (transport usage) i want another textbox in form 2 to have the same user ID as in form 1. (the user ID always changes)

View 9 Replies


ADVERTISEMENT

VS 2010 ComboBox - Show A Number In The File I Am Making?

Jun 29, 2010

I am trying to convert watever is in the ComboBox to a number. So say I select "Grey" in the ComboBox I want it to show a number in the file i am making. My.Computer.FileSystem.WriteAllText(TextBox_ChooseFolder.Text & "" & TextBox_ItemID.Text & "-" & TextBox_ItemName.Text & ".sql",<ComboBox Number Here>, True)

I have tried

My.Computer.FileSystem.WriteAllText(TextBox_ChooseFolder.Text & "" & TextBox_ItemID.Text & "-" & TextBox_ItemName.Text & ".sql",If ComboBox1.Select = "Grey" Then "0" ElseIf ComboBox1.Select = "White" Then "1" ElseIf ComboBox1.Select = "Cream" Then "2" End If,True) ...I am new to Visual Studio!

View 7 Replies

Save And Show Next Number In Succession On Form Load?

Aug 26, 2011

I need to know how create a number that increases every time my main form is loaded. This would go in succession. So the first time after putting this code in it would show the number 1. The second time I open my main form it would show a number 2, and so on.

View 2 Replies

Show An Explanation And For The Addition And Subtraction - Show It On A Number Line

Mar 7, 2010

I'm writing a program for my algebra students to practice integers.Stuff like....

3-6
-4 + (-5)
3(-4)
-15 � 3
etc.

I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.

View 1 Replies

Get A Text Box To Show The Word The Same Number Of Time As The Number Selected Using Loops?

Nov 2, 2011

In VB if you prompt the user for a number between 1-20, then a word, how do you get a text box to show the word the same number of time as the number selected using loops?... Ex: please select a number: 4 / select a word: cat....the text box should display ::: catcatcatcat ........

I am doing this for a class and my brain has locked up. Prob. just over thinking it though. Thanks in advance for any help!

View 6 Replies

Check If Input To Group Number And Number Of Units Are Correct Input By Making Error Handling Exceptions

Sep 23, 2010

Part of my assignment is to check if input to Group Number and Number of Units are correct input by making error handling exceptions...

I have to check the following:
a) group number is neither 501 nor 062
b) number of units are NOT numbers
c) number of units is NOT a positive number

So my first question is, am I checking correctly? 2nd question is, How do I make sure my Exceptions will pertain to their correct respective things (a, b, and c.. above)?

[Code]...

View 6 Replies

Making A Component Show Itself?

Feb 10, 2011

I created an LED class in VB2008. The LED has two possible values, Lit and Dark, with a bright and a dark color associated with the respective state.

View 7 Replies

Making An App To Show All Computers In Domain?

Jan 9, 2012

I am making an app to show all computers in domain, is this possible with visual basic 2010?

View 1 Replies

Making File Name Show In List Box?

Feb 19, 2009

Private Sub importdiag_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles importdiag.FileOk
For Each track As String In importdiag.FileNames
playlist.Items.Add(track)
Next
End Sub

[code].....

This is the current code im using. it shows in the listbox i have the file that i select. It also shows how ever where its located. Ex. C:folder\folder\file. I want only the files name to show up in the box but i cannot figure it out.

View 3 Replies

Show The VB Code Behind Making A Timer?

Oct 31, 2010

show me the VB code behind making a Timer?

View 2 Replies

Making A Program Dock - Hide / Show

Apr 7, 2010

Alright, so what I'm looking to do is make a dock or some other thing that I can hide/show for programs. Kind of like a shortcut holder. how to approach the issue. I'm thinking maybe I could make a new button based on some settings in the VB thing, but that seems rather inconvenient. I was also wondering if anybody knew how to get the icons from shortcuts or the rest to use those as display pictures. "Victory is difficult to see beyond the devestation incurred in its pursuit."

View 8 Replies

Making The Lottery Number Generator?

Mar 31, 2009

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
Hi!

Last time this forum was the most helpful in solving my problems in vb 2005?This time I am writing a "lottery number picking" program. The program randomly picks 7 numbers from 39, with pre defined conditions on the strength of statistical data, and writes the possible combinations in a text file. It works fine, BUT- the program generates number of combinations I tell it to generate. With other words it works like

For i = 0 to 1000
generate_number()
Next i

So this way I get 1000 combinations. how can I make the program generate all the possible combinations by itself?For example:

Do while (not reached the last combination)
generate_number()
Loop

While I don't know exactly how many combinations there are, I have a slight problem knowing which the "last" combination is.

View 11 Replies

Get Primary Key Id Number From Table WITHOUT Making A Second Trip?

Jan 18, 2010

How would i get the primary key id number from a Table WITHOUT making a second trip to the database in LINQ To SQL?

right now, i submit the data to a table, and make another trip to figure out what id was assigned to the new field (in an auto increment id field). I want to do this in LINQ To SQL and not in Raw SQL (I no longer use Raw SQL).

also, seond part of my question is: i am always careful to know the id of a user thats online because i'd rather call their information in various tables using their id as opposed to using a guid or a username, which are all long strings... i do this because i think that SQL Server doing a numeric compare is much (tentative use of the word 'much') more efficient than doing a username (string) or even a guid (very long string) compare.

View 5 Replies

Making A Random Number Guessing Game?

May 29, 2009

im making a random number guessing game type thing, i have the main thing done, but I was just wondering, how could I get it to show the integer rndnumber in the message box that comes up? I think its something like &= or something, but I havn't even been using VB for a week, so im can't figure it out. Here is my script:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then[code]......

View 7 Replies

IDE :: Making A Program That Will Show Original System Install Date?

Jan 31, 2011

I am making program that will show Original system install date and calculate how old is system...How can I code that in VB 2010?

View 3 Replies

Making A Random Number That Rounds To Nearest Multiple Of 30?

Mar 4, 2009

The window is 600x600, because the game uses a 'grid' of thirty. Each food block is 30x30, and so is each block that makes up the snake. Here is my food making sub:

View 4 Replies

Show Information From A Datagrid Cell To Show Up In A Text Box In Another Form

Jun 8, 2011

how do you show information from a datagrid cell to show up in a text box in another form, this is for a college project.

View 1 Replies

Format A Number To Show As 10.00?

Oct 29, 2010

All I try to do is to display 10 as 10.00

Dim amount As Double = 10
lblAmount.Text = Format(amount, "##,##0.00")

And what I am getting is this

&10=##,##0.00

View 2 Replies

How To Show The Automatic Number

Sep 28, 2010

i want a automatic packet number in text box if there is no data in database...if there is a data i want to add 1 in packet number to next packet in text box'packet no= JA0001

q = "select max(mid(pack_no,3,4))as max_pck_no from mef_info where mid(pack_no,1,2)='"JA "'"
cn = New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=Database Path ;Jet OLEDB:Database Password=*********;")

[Code]...

View 1 Replies

Show Only 1 Number In The Result Of A Division?

Mar 11, 2010

i have a division of 2 integer that give me a result as2,3944534 ...how i can give e result as

View 3 Replies

Show Running Number In Text Box?

Jul 31, 2009

is there a way to show my running number in a text box. the logic is like this, i have 1 button once i click on that button,the textbox start running a random number start from 1-47. when i click again the running textbox stop.here is my code.

If lb_count.Text = "0" Then
Dim RandomNumber As Integer
RandomNumber = RandomClass.Next(1, 47)

[code].....

View 14 Replies

Something That Can Show The Number Of Active Applications?

Apr 5, 2012

is it possible to make something that can show the number of active applications? For example some code that say: Label1.Text = Number of running applications

View 15 Replies

Unable To Show Correct Log Id Number?

Feb 15, 2011

I have a form (FRMQUESTIONNAIRE). It contains, a listview table, a panel and picturebox, 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip).

Problem: When I click one item in listview table, the picture captured realted to the item click in listview table will be shown in panel beside it. However, the problem start to happen when the log ID is not appear accordingly based on user selection on listview table.

What I reckon start of the problem: - Previously The listview table(listview1) in frmquestionnaire was in frmqlist(another form). But to suit user requirement, it has to combined with frmquestionnaire. In frmqlist, I use a label Image. This form contains the similar details in frmquestionanire except there are no 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip) But it have a button(Proceed to survey). Having said that, when user click an item in listview(Frmqlist), the picture will be shown beside it. User will click button proceed to survey and frmquestionnaire will pop up. Here, It shows the correct Log ID based on user selection in frmqlist.

But now....

I have combine everything in frmquestionnaire. I am facing as the LOG ID is not showing according to the selection. As a result, I can't save the questionnaire answer as well as this log will be used to save in database.

[Code]....

View 2 Replies

VS 02 / 03 - Show The Number Of Each Code Line

Jun 24, 2010

How can I get VB.NET to show the number of each code line, so that I can more easily keep track of where things are in a lengthy program?

View 6 Replies

VS 2010 Show A Big Number With The Commas?

Feb 12, 2011

I mean, a big number like million in this way: 1,000,000? I know i have to parse the number somehow and add the commas there and stuff, but how?

View 2 Replies

Forms :: Making Inactive One Form While Working On Another Form

Feb 12, 2010

suppose i have two forms form1 and form2

and i clicked on button which lead me to the form2

i want i shouldn't be able click on form1 untill and unless i close the existing form window(i.e form2)

View 2 Replies

Making A Form Slide In And Out From The Edge When The Mouse Is Over The Form 'tab'?

Apr 20, 2009

making a form slide in and out from the edge when the mouse is over the form 'tab'?would it be the mousehover event ?And I've tried using the animatewindow api but not getting too far !

View 5 Replies

1 To N Thread - Show A Definite Number Of Threads?

Sep 3, 2009

Does anyone have a 1 to n thread example in which n threads are created dynamically? There are a number of examples that show a definite number of threads, and some that imply n threads by using a tcp ip listener or a file system listener. However, I'm looking for a 1 to n created in response to a dynamic requirements, provided purely by and for my program.Essentially, my requirement is to be scalable. 1 to n threads based on application throughput should make this pretty easy to satisfy.

View 9 Replies

Format A Number To Only Show Decimal Places?

Apr 7, 2010

how i can format a number to only show decimal places if needed?For instance...

string.format("{0:SomeFormat}", 26.9) = "26.9"

and...

string.format("{0:SomeFormat}", 26.0) = "26" 'Drop decimal for whole numbers

View 3 Replies

Retrieve Auto-number To Show In Vb Field

Mar 26, 2012

so below is my code. I am trying to get the autonumber generated in newdb into txtcallid field. the error i get is that the field is not unique. What i am trying to do is to get the form to fill the db witha new blank record, assign the auto number and then display that number with the blank record info in my form. I will be making it so that the data must be changed before saving so that the form will not be blank save for when it is loaded.

Imports System.Data.OleDb
Imports ChessyFunk1._5._1.ADODB
Public Class frmNewCall

[Code]......

View 9 Replies







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