Visual Basic Input User - Save What The User Types In The Vb Code

Jul 14, 2009

I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.

View 7 Replies


ADVERTISEMENT

Make Visual Basic Wait For User Input?

Apr 16, 2011

how to code a function that causes a function to pause until the user either changes a radiobutton or hits the reset button or that will restart the function if one of the entered txt values or comboboxes Index have been changed and the uptade button is clicked.

View 2 Replies

Define Initialized Arrays In Functions And Return Values Based On User Input Visual Basic?

Apr 4, 2011

In this application I need to allow users to enter a month as integer (1-12) then use integer tryparse to validate that input, that seems to be the easy part. I need two create two functions, one that returns the name of the month and the other returns the number of days in that month. The arrays are supposed to be defined and initialized within the function so that the main program can take the user input and call the two functions, then return the appropriate values as output to labels. I am not sure how to declare the arrays in their appropriate functions and then how to call those functions to retrieve the right value from the function.

View 1 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

Displaying A Image When User Types In Specific Characters Input Box?

Mar 16, 2009

for example if a person types in multiple characters that represent a certain image in the input box for example if i type "tom" in the input box each letter represents a different image. Can i display those 3 images on the form somewhere? this is what i have so far...

Dim character As String = InputBox("Please enter a word")

I know that much but im not sure how i can connect the letter with a image for example

PictureBox1.Image = My.Resources.pic02

i want t to = my.resources.pic02 and i want it to display on the picturebox1.image

View 4 Replies

Coloring Of User Types In Visual Studio 2008 And The Future 2010?

Oct 8, 2009

I have an issue with Visual Studio's support for coloring User Types in VB.NET, I'm an C# developer that have been forced to code in Vb.NET by political rules in my organization, and I really misses the support for coloring user types in Vb.NET, I had hoped that this would be solved in Visual Studio 2010 and well in the beta they have added Vb.NET User Type coloring, but the coloring is the same for all user types I cant't have one color for interfaces and one for classes and so on.

View 3 Replies

Write Visual Basic Code To Read The Input From A Barcode Scanner?

Jul 19, 2009

I want to write software in visual basic that reads the barcode of various items into my program.

View 4 Replies

VS 2008 Save .txt Based On User Input?

Nov 16, 2010

I have a form with 12 text boxes that a user must fill. I need then by pressing a button to promt for the save directory and save the input as ".".txt file. Moreover i need each line of the txt to correspond to each one of the txtboxes. So the input to the first box will be the first line of the txt file,...the input of the ninth box the ninth line of the txt file.

View 15 Replies

Check The Current User Document And Setting Using Visual Basic?

Sep 12, 2010

i realise that currently there is not built-in class for the checking of the current user folder in visual basic .net. anyone can advised the workaround for this. E.g. if user123 login to the machine, the code will return "c:useruser123"



View 6 Replies

Make User Interface To A Database With Visual Basic (vs2008)?

Feb 4, 2011

Write code or use tableadaptors, bindingsources, dataset, etc.? I have experience with the older ways i.e. connection strings, ado code, sql, etc. but was hoping the newer tools in vs would make the user interface easier and more flexible. So far i have been disappointed. Am I wrong and I am missing something? Am I alone in this opinion or ? What is your past experience in VB and have you found vb.net to be a step forward in db user interface design? if your answer is yes then what is the easiest way to put a table record count into a text box? should i bypass all the new stuff/objects ( adaptors, binding sources, navigators, designers, etc) and just write code or what?

View 3 Replies

Save User Input As A Named Combobox Item

May 2, 2012

What i'm attempting to do is have several textboxes where the user input's there information and a seperate text box to give there input a name so it can be sent to a combobox and saved with my.settings so when the program loads or the user needs the textboxes populating they can select the name in the combobox and it fill out the textboxes.

[Code]...

View 1 Replies

C# - Avoid Type Name Conflicts With Types Or Names In The User-provided Code?

Feb 6, 2011

I am writing a code-generator that will need to output some miniscule portions of VB.NET code, and since this is a code generator that will add user-provider code, I'd like to try to avoid type name conflicts with types or names in the user-provided code.

In C#, I can prefix types with global:: to make sure they're matched from the global type namespace hierarchy, rather than some local name, but is there a similar system for VB.NET? ie. this: global::System.String

View 2 Replies

MS Visual Studio 2010 - Saving Dataset With User Input

Jun 17, 2011

I had an Excel spreadsheet which I put in MS Access (database). I then took that database and used that as a source in VB to create a GUI for. In VB I have an input text box to search and pull of different fields. I created some queries for searches in from the text box. I have have a dataset view of the data which has the binding navigator (add, insert, save).

The problem I have is that when I hit the '+' for add to add information and then click the 'save' button in the binding Navigator, the information I put in does not save. I check this by exit out of the program run (debug to open the app) and then open it back up to search and/or check for the new information I put in. My overall goal is to create to publish the final code and use an a standalone program.

Also, as another option,(I would like to learn) Is there a way to map VB directly to an Excel file to have the user input information and save to the excel file.

View 5 Replies

Set And Get User Environment Variables In Visual Basic 2008 Express Edition?

Nov 14, 2010

This was my code .

Private
Declare
Function addelements
Lib

[Code].....

meeting the requirement i.e procedure to set environment variable and use/get that in my code. make necessary changes in my code accordingly.

View 5 Replies

User Of A Tabbed WebBrowser Made In Visual Basic 2010 Maximizes?

Apr 20, 2011

How Is It Possible That When A User Of A Tabbed WebBrowser Made In Visual Basic 2010 Maximizes The Browser And The Components (Example: TabControl, Buttons) Re-Size Themselves To Fit In The Form?

View 2 Replies

Save User Input From Multiple Textboxes To Text File?

Sep 18, 2010

Is there a simple way to save user input from MANY controls (textboxes, comboboxes, etc...) to a text file? When I say 'MANY', I am referring to at least 580 textboxes and several dozen comboboxes.

I may be able to accomplish this using the StreamWriter Class, but doing this individually would take quite a long time. I suppose I could also change all text boxes to richTextBoxes and save to .rtf. It seems like this would be even more time consuming.

Surely there is a simpler way to do this 'globally', perhaps with an added single line of code that points (and saves) to a preset or created text.txt file whenever text is added or changed in a textbox or combobox throughout the program.

View 7 Replies

Visual Basic If Statement That Makes The User Check At Least One Box And Radio Button Or They Cannot Continue

Oct 5, 2011

This is what I have so far for the following scenario: I want to have it so that if a users clicks submit without checking a check box from one section it throws up a dialog box that makes the process loop and give them a chance to check a box. The process wont continue until at least one check box is checked. The same thing above goes for my radio buttons as well. Here's my code:

[Code]...

View 2 Replies

No Visual Basic Project Types In Visual Studio 2005?

Dec 9, 2009

I am using: (copied from the/about vb studio window:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework

[code].....

View 6 Replies

VS 2008 User Input From A Text Box Into Code?

Apr 14, 2010

How do I get numbers typed into a text box to be feed into my code and then the code to be ran?Below is the code that I want the information from a text box to be fed into. With the (0, 50) being the numbers.I will have a form set up like this, A button labeled Generate. 3 Text boxes total, 2 of them side by side with one being low and one high. For example The user will input 5 in the low box at 100 in the high box. Hitting generate the numbers will then be inserted into code and the result being shown in the 3rd text box.

Now what is the code that I'm looking for that will help me take information from TextBox1 and TextBox2 and insert into the (XXXX, XXXX) field in my buttons code?

View 3 Replies

Convert User Input Text Into Vb.net Executeable Code?

Mar 13, 2010

I know there are work-arounds like using a Select Case, but in my situation, it would make things a lot easier... especially since I won't know exactly what will be entered. I can't force the user to use a combobox or anything like that either, because it is going to be unique code for every situation. If there is no way of doing this, I will figure something else out, but it will require a lot more work.

View 1 Replies

Auto-fill A User Input Control With The User's Windows?

Feb 11, 2011

I am creating a form for work where managers can report when they find a customer's personal information laying around on a desk (we work at a call center where agents answer calls for a wireless cell phone provider, so we take personal information security very seriously). Anyway, I am wondering if there is a way to have a text box autofill with that manager's windows username (since they will need to be logged into their own profile to use the form).

View 2 Replies

User Input - Tje User Can Type In Data To Such A Parts QTY Cost

Mar 11, 2010

I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered.

Does anyone have any idea what might be useful. It was thinks of a listview bu i can't see that you can type into that. I cant use comboboxs because there are no predefined list and i know there is some way to generate text at runtime (i think) but i don't know how to do it and i would prefer a clearer approach.

View 3 Replies

Change The Connection String (server Ip, User And Password) Of A MySql Data Source In Visual Basic 2010?

Jun 1, 2012

I have a project where I added visually and successfully a datasource of MySql. I binded a datagridview with a table.

But, how do I change programatically the password, ip or user to connect with the MySql server? Because it can change at any time, so I can let the user change these values.

View 7 Replies

Create A Database Administrator Form To Register, Remove, Edit User Accounts In Visual Basic 2010?

May 11, 2011

create admin form to register, Remove, Edit user accounts in the system connected to Microsoft SQL Server R2 2008 or access database ? any toturial videos or instructuions step by step ?

View 3 Replies

Html - VB Basic RegEx - Save Value From An Input Tag In HTML Source Code

Feb 16, 2011

I am trying save a value from an input tag in some HTML source code. The tag looks like so:

<input name="user_status" value="3" />

I have the page source in a variable (pageSourceCode), and need to work out some regex to get the value (3 in this example). I have this so far: [Code] Which works fine most of the time, however this code is used to process source code from multiple sites (that use the same platform), and sometimes there are other attributes included in the input tag, or they are in a different order, eg:

<input class="someclass" type="hidden" value="3" name="user_status" />

I just dont understand regex enough to cope with these situations.

View 2 Replies

Forms :: Generating Custom Code For A Windows Form From User Input

Mar 30, 2009

I am trying to figure out how to generate code from user input. In Visual Studio 2008, Visual Basic.My script always begins with:function Init (Quest)Then from here a user would input a quest name, type and zone in a interface using windows forms.[code]I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.Is there anyone that can explain how I would go about doing this. Or maybe some kind of visual studio plugin that will help me out.

View 2 Replies

VS 2008 - Generating Custom Code For Windows Form From User Input

Mar 30, 2009

How to generate code from user input. In Visual Studio 2008, Visual Basic. My script always begins with:

Code:
function Init(Quest)
Then from here a user would input a quest name, type and zone in a interface using windows forms.
Ex:
Code:
RegisterQuest(Quest, "Kill Zombies", "Heritage", "Firestorm")
end
This part a user would enter in his interface what would an NPC say if accepted.
[Code] .....

What I need is a few text boxs that a user can input "Kill Zombies" or whatever they like and when they push a generate button it will create a file with a .quest extension. All of the code remains the same except for the quotes that would be the user input from the interface. Basically everything in quotes can be changed by the user in an interface. I have created my own functions for when a user accepts, deny and complete a quest. The user just needs to input what should happen then click a generate button to throw it all together as a .quest file to be saved in his or her quest folder for the server to call on later.

I also have many other functions like:
AddQuestRewardFaction --- (Quest, Faction ID, Amount)
AddQuestRewardCoin --- (Quest, Copper, Silver, Gold, Plat)
AddQuestStepObtainItem --- (Quest, Step ID, Description, Quantity, Percentage, TaskGroupText, Item ID(s))
Etc

I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.

View 4 Replies

Save Application Settings But For USER But Cannot Find The User.config File

Aug 7, 2009

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file

when does this file get created?

i searched my entire hardrive. i also searched the entire project.

View 2 Replies

Extracting Visual Basic Source Code From Visual Basic EXE?

Jan 24, 2011

How do you extract source code from a VB.NET .EXE file?

View 3 Replies

Save Button Which Firstly Validates What The User Enters The Form - If The User Skips The Text Fields

Jun 11, 2011

I was developing my own project in the university so what i am stack is to have save button which firstly validates what the user enters the form. for instance if the user skips the text fields, i wanted to restrict the user to fill all the form and when he completes, the save must be accomplished.

Here's the code i was trying to put but i was having problem saying the windows.forms.etc is unable to convert the save as Boolean and something like that.

Dim success As Boolean
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click

[CODE]...

View 5 Replies







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