Make A Variable Textfield?
Feb 9, 2009I want to make a Variable textfield, so i can use it in a while loop. I know that in FLASH it's like[code]...
View 10 RepliesI want to make a Variable textfield, so i can use it in a while loop. I know that in FLASH it's like[code]...
View 10 RepliesUsing Visual Basic 2008 Express. I need to pass a variable to another form. Or else make the variable visible to both forms.
View 4 RepliesIn my code i create a textbox, in a event on a combobox because i don't know where it shall bee before the user have make a choise in the combobox.
I use this:
txttotal = New TextBox
txttotal.Name = "txttotal"
[code].....
Imports System.Data.SqlClient
Imports System.Data.SqlClient.SqlDataReader
Imports System.Data.SqlClient.SqlConnection
[CODE]...
Error throwing at lines :
txtb2.DataBindings.Add("text", view, "c_name")
txtb3.DataBindings.Add("text", view, "c_add")
txtb4.DataBindings.Add("text", view, "c_phno1")
This may perhaps be a stupid question but I just can't get it to work.
I have an if clause where I compare a textfield with the value of a datareader.
It looks a little like this if me.txtfield1.text <> reader("field1") OR me.txtfield2.text <> reader("field2") ETC... I do this for a lot of field.
But now I want to check if field2.text is string.empty and if it is I want to skip the comparison for that field.
[Code]....
synchronizing a combobox with a textfield. I have a form with a textfield and a combobox. The combobox is populated with the department name from the database when the form loads. I would like the textbox to display the corresponding department number when the user selects a department name from the combobox. I have tried using the SelectedIndexChanged event of the combobox but I can't seem to code it to work. This is the code I'm trying to use but it is displaying "DEPARTMENT" in the textbox. Department Code is the primary key of the table.
strSQL = "SELECT * FROM DEPARTMENT"
Dim da = New OracleDataAdapter(strSQL, cn)
da.Fill(dSet, "DEPARTMENT" )
[Code]....
Little question, How can i only allow the user to put in a A till a O in an textfield?
(So: ABCDEFGHIJKLMNO)
I have a VBA form in Microstation I am using to try and help automate a task. The only problem I am having is I am reading a textbox (Filebox.Text) and setting it as the variable (FN). It works, because I used Msg.Box (FN) to test it. However, in two of the lines of code, I am trying to use (FN) to pass the typed in filename to the command to run in Microstation. Unfortunently, it gets passed on as (FN).dgn instead of the actual filenale typed into the textbox. Is there a way I can make the variable actually seen as a variable? Code on Pastebin: url....Also, not sure if this is the right section, 100% new to VBA, coming from a world Bashed together.
View 3 Repliesmy problem is I dont know what string i have to add here for the backspace. this is the line of the problem:
lname = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "I cant delete characters using backspace in the textfield...Sub txtbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtbox.KeyPress
[Code]...
how to fill a textfield in the webbrowser-component?
I tried the VB6 way:
Web1.Document.All("fieldnamn").Value = "some text"
But it didn't work in vb.net
so i need someone correct my coading to insert data from text field into database mssql... below is my coading;
Protected Sub btnSimpan_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSimpan.Click
Dim dtTemp As New DataSet
[Code]......
I have a .dot file with a textfield (not a part of a form) in the pageheader. I can select the pageheader but don't know how to select the textfiels.Also when i have a bookmark in this textfield, i can't use this from te main document.
= New Word.Application
oWord.Visible = True
Dim oDoc As New Word.Document
[code]....
I would like to check how to pass a textfield value from window form to a class form.
View 1 RepliesI would like write Date and Time from Now() To field fDT in Table Tbl MS Access 2007 but I can't:
msAccessConnection.Execute("INSERT INTO Tbl (fDT) VALUES ('" & DateTime.Now & "')")
how to use datagridview. im gonna show some of my code for the connection and datagridview display
Public Class Form1
Dim con As New OleDb.OleDbConnection
Dim dbProvider As String
Dim dbSource As String
[code]....
i want to display in a textfield the first name based on where is selected after i clicked Button1, how do i do this?
(I use VB 2008) I'm working with the webbrowser-component. I got a problem to fill a text-field. The textfield is named "description" but I cant fill it. I guess it's because it's more than one form on the page that got a element named "description".
[Code]...
I'm trying to have a Textfield lose it's leading zeroes when the user leaves the field. I made the following "Leave" event but it's not working. It works for the first half however to set it back to 1 if it's blank or if a user entered 0. I tried following the advice on this answer, but it didn't work:
[Code]...
I have some data in DB, which i am getting using a WebService in a List(Of String) and returning that List using following [Code] Now i have a VB.net program in which i m utilizing the web service and getting the values using the [Code] Values are fine but they are in a single String() and i want to show the values of each column in a different TextField(Multiline), how can i do that?
View 1 RepliesI need this code urgently try to sort out my problem and please explain the code with proper way.
View 1 RepliesI have a variable and i need to seperate it into 2 variables so in code form its like this[code]...
View 1 RepliesI posted this before and got a few answers that haven't worked for me so far. Therefore I'm going to post part of my code so you can see what I'm talking about. The highlighted part is what I pulled from another post and it's not working for me right now. I'm using visual studio 2008 and the program was written in Basic. I pulled most of this program from the net and started tweaking it to my needs, If you're familiar with arabic you will understand the letters, if not, just use A and B for the variables.
[Code]...
I know that
Public Incognito As Boolean
is a variable called "Incognito" that is class-wide that is a boolean.My question is that is there a form-wide variable form that can like communicate with different forms. So if a variable in form1 is "True" than, how can you make a variable in form2 turns to "True" too?
Private Sub NoteTabToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NoteTabToolStripMenuItem.Click
Dim NewTab As New TabPage
[code].....
Having trouble accessing a dim variable inside a btOk or Load event. when I dim a variable that will be used a lot, do I need to make it a class and then referer to it?
View 7 RepliesHow do I name a variable depending on what is in the textbox?
Like would it look like:
Dim (textbox.text) as string
etc.
The reason I want to do this is because the user is gonna click a button to create a task. When the button is pushed, a label is created by the code I already have, the problem is, I want them to be able to click the button more then once and new labels will appear below the one that just was there. By being able to name a variable by what is in the textbox, I will be able to do so many things.
I have an issue with an app i am writing, i need to make a variable accessible to any module or class within the project but that cant be accessed outside of the app as it is accessing info the end user shouldn't have access to.
Ok, well a practice i have gotten into in the last few years is to declare a module on the same page as the main form and declare variables either friend or public (global variables). with my app public is not good so i tried Protected Friend but i cant use this within a module.
I tried placing it at the top of the main form but one of my classes can't access it, what would be the right way to do as expected. besides the main form i have 2 classes call them class1 and class2:- main interacts with both classes class1 accesses class2 class2 doesn't access class1
How do I make Variable eccessable to other forms in my app?
View 3 RepliesI need this code below to be able to make use of an Var called EditingIndecator, this Var is on Form1.[code]...
View 7 RepliesWhat I would like to do is be able to take a Dictionary of key value pairs and make the key the name of a variable and the value the value. From searching the net seems to be very vague on whether this is possible.
[Code]....
i have a drop down box, with 2 Options Yes and No,what i want to do is
if questBox = Yes
do this
else if questBox = No
do that
end if
but not sure how to do it.