Control That Sets A Variable To A Value?

Feb 4, 2010

I have a simple control that sets a variable to a value. What I want to be able to do is check the value of this variable on another form.Here's the code:

[Code]...

View 4 Replies


ADVERTISEMENT

Make A Statement That Sets The Focus To The TxtPassword Control?

Sep 29, 2010

how do you make a statement that sets the focus to the txtPassword control?

View 1 Replies

Set Focus On The Keydown Event So After The Button Control, Sets The Focus Into The Keydown?

Dec 15, 2010

Is it possible to set focus on the keydown event so after the button control, sets the focus into the keydown? although says often control can have focus,.Putting a button and a keydown event on a form...

View 2 Replies

Add All Sets Of Icons To An Application?

Jun 21, 2010

I have an icon file (32x32) and I added it as application icon in the properties and it is coming fine only if the view is set to "Medium Icons" else it is showing only the default icon. How can I add all sets of icons to an application so that my Icon will be visible in all modes?

View 2 Replies

Linking Data Sets?

Mar 26, 2012

I need to link different arrays of data that I am gathering from different Select Cases.For Example:Araray A, B and C from Case 1Array C, D and F from Case 2 Note: Array C is common between two cases.I know in C++ I could have used Pointers and use SQL in Java.

View 1 Replies

.net - Auto Generate Gets And Sets From A Database?

May 3, 2009

I am coming from VB6 and I am starting to convert an existing VB6 code to VB.Net. What tools can I use to automate this task?

View 3 Replies

Collect Two Sets Of Data From Two Different Databases

Feb 5, 2009

I collect two sets of data from two different databases, This data is now in two collections. I then join/append the one collection to the other and then put it in to a list view.I really would like to order this list view by the first column without the click event.To make this even harder the First column contains Data that is DateTime and i have found that it orders the items by the day number and not the months or years or time.I have found one way but it then cause's me further agony when doing some checks upon the data within the listview later in my code. This answer is to rearrange the format to "yyyy-MM-dd HH:mm:SS" then using the listview.sorting = sortorder.

View 7 Replies

Flexible Data Sets For Functions

Nov 12, 2009

I have only 2 sets of "fixed" numbers used, that I need to be able to toggle between. Particularly, for array sizes/for loops. Is it best to use "Collections" in VB.NET to accomplish this?

View 5 Replies

Foreign Character Sets And RichTextBoxes?

Jun 9, 2010

I have some text in an .rtf file which uses a non-English character-set (it's chinese).When I open this in Wordpad or Word I see just the chinese characters.When my app opens the .rtf file and reads the file's contents and puts it into a RichTextBox for display, I get "everything" from the .rtf file, i.e.:

{
tf1ansiansicpg1252deff0deflang2057{fonttbl{f0fnilfcharset134 SimSun;}{f1fnilfcharset0 Calibri;}}

[code].....

View 3 Replies

Getting Two Sets Of Information From A Source File

Apr 18, 2012

I want to get two sets of information from a source file. Say user name and address to their profile. I so far I'm using two for next loops to get the information I want and save it into the text file. Works great. Problem: I would like to print to file first line of For Next output then append to that the first output of the second For Next loop. Then do the same for second out put until the end of each For Next loop is complete. [Code]

View 14 Replies

How To Join( If Elseif If ) In Number Of Sets

Jun 8, 2012

Since plan1 and plan 2 all plans having same fields but due to their variable values total I make 4 tables having one to many relationship so that duplicate data for few fields get accomodated under different Id. and now there is no need of filtering data also and 4 databinding sources give a serial values to my comboboxes to select veriables to get further calculations.

I have another question now in further calculation there are many calculation sets with using if elseif if statment for such number of sets how to connect them since in form1.vb code file

if I place them one after other some calculations get correct some gets wrong.I hope you understand my question.is there any method to connect such sets( if elseif if) statments one by one under one buttion_click to get correct answer for all the sets.

View 1 Replies

Split List Into Sets Using Linq

Feb 7, 2011

There are plenty of seemingly related Linq questions, however a quick browse through the content doesn't seem to answer my question specifically enough for my limited intelligence to grasp.

We have a table named PropertyInteractions in which is stored threaded messages via a thread id, the thread identifier is the Id of the initial interaction record. Given the following Linq query (which retrieves all interactions concerning a user), how might I split interactions into lists of PropertyInteractions grouped by Id?

[Code]...

View 2 Replies

Sql - .NET - Multiple Result Sets In One Query?

Aug 10, 2011

I have a stored procedure:

CREATE PROCEDURE [TestProc]
AS
BEGIN
select '1a', '1b'
select '2a', '2b', '2c'
select '3a', '3b'
END

If I execute the following query using SQL Management Studio,

[Code]...

How can I get the three result sets using SqlDataReader? Or even three SqlDataReader's? Or is it possible to get multiple result sets in just one query in VB.NET? Is DataSet my only option?

View 2 Replies

SQL Datareader - Returning Result Sets?

Dec 2, 2009

There is a stored proc.. Which was returning to result sets..
Ex:
select * from table1
select * from table2
If I get this data to a Dataset, Definitely I will get 2 data tables with index (0,1)..But what if go though a Datareader? I had checked that just now.. And I got a result of first result set (i.e Table1 in our example)..

View 7 Replies

Timer That Sets Color Of Certain Text?

Jul 21, 2010

I am trying to write a program that will help people script for a game. Ok so when you write on visual baiscs if you start an if statment it changes the "if" to the color blue. How could i do that in my richtextbox?

View 1 Replies

VS 2008 - How To Make Property Value Sets

Aug 15, 2010

How do I make a property to have a set of selectable values, in a way such that they work by intellisense-drop-down, as i.e. the color.white, color.black etc.? I want to do this like for integer values I may want to have selectable by "keywords" with the hard values only existing in a unique class file, or whatever is necessary ..?

View 2 Replies

Add A Variable To Control?

Nov 24, 2009

I'm trying to add a varible to a control, so I can reference the Variable with the Controls name. I would like to set the variable how you would set a regular Integer. [code]...

View 3 Replies

How To Get Control's Variable

Jan 19, 2011

I have the following code inside my MDI parent form:For Each crl As Control In me.Controlscrl.?????Next

The code mainly used for getting some info from all child forms.I can get all the general property like size, location by crl.size or crl.location. But if all the forms have an own variable like myTxt. How could I get this own variable by this For Each method?

View 2 Replies

C# :: Determine The Relative Complement Of Two IEnumerable<T> Sets In .NET?

Jun 2, 2010

Is there an easy way to get the relative complement of two sets? Perhaps using LINQ?I have to find the relative compliment of a set A relative to B. Both A and B are of type HashSet<T> but I think the algorithm could be made more general (IEnumerable<T> or even ISet<T>)?

View 1 Replies

Manually Sets Datetime During Insert Query?

Feb 21, 2012

inserting date/time to database manually using sql query.

[Code]...

View 9 Replies

Regular Expression - Grab Data Between Two Sets Of IDs

Jun 3, 2011

I have a regular expression that I use to grab data between two sets of id's for example:
<CLASSCOD>70</CLASSCOD>
The regular expression I use is:
(?<=<CLASSCOD>)(?:[^<]|<(?!/CLASSCOD))*
Which works in most case but when I have a single value like this
<CLASSCOD>N</CLASSCOD>
It says there are no matches.

The whole data string looks like this :
<STATUS>PRESOL</STATUS>
<DATE>0601</DATE>
<YEAR>11</YEAR>
<AGENCY>Department of the Interior</AGENCY>
<OFFICE>Bureau of Indian Affairs</OFFICE>
[Code] .....

View 2 Replies

For Loop Control Variable?

Jul 15, 2009

What type can i assign a for loop control variable? I want the for loop to be the output file of a calculation, but i can not define it as anything, and i do not know how to write it so that the output is actually what the code spits out once the code has finished running.

[Code]...

View 3 Replies

Variable As Part Of A Control Name?

Mar 31, 2010

Is it possible to use a variable as part of a control name kinda like you would use a variable in a SQL statement. For example:

Lets say we have 4 text boxes txtP1Val, txtP2Val, txtP3Val and txtP4Val. Is it possible to have the P1 - 4 as a variable so it would be "txt + Some string variable + Val"

View 4 Replies

VB Set Result Of A Control To A Variable?

May 8, 2011

trying to set the result of dropdownlist to a variable but having great troubles.

Sub OutageSource(ByVal sender As Object, ByVal e As EventArgs) Handles Year.SelectedIndexChanged
Dim year As Integer

[code].....

View 2 Replies

.net - SerialPort Reads Are Returning Fragmented Sets Of Data?

Oct 17, 2011

I have a USB device which creates a Virtual Serial Port on Windows. I am using VB.Net to write and read from the port. My device responds with specific sized set of bytes, but I am finding that SerialPort.Read(byte-array,offset,number-bytes) does not return the full number-bytes but it also does not timeout or generate an exception. Repeated calls return additional fragments (up to 3 calls required). Python code using pySerial does not have the same problem.So, what am I doing wrong here? Am I expecting too much?

Some scenarios are:I write a command to the port and expect to get 4 bytes in response. I get 1 byte first and then 3 bytes on the subsequent call.I write a command and expect 21120 bytes in response. I get 1, 12671 and then 8448 bytes in 3 calls to read from the port.

Here are some excerpts from my code:

Private Sub SetupVirtualSerialPort()
Dim portName As String = "COM" + (m_DeviceContext * -1).ToString
Const baud As Int32 = 9600 '7680000
Const parity As Parity = parity.None

[code]....

View 2 Replies

Append A Bunch Of Files Into Daily Data Sets?

Feb 16, 2012

I am a newbie at VB.net and would like for you to review my code in order to improve its performance.My objective is to append a bunch of ".csv" files into daily data sets. Within a directory I have about 2500 individual text file (.csv). Each file represents minute intraday stock market data for an individual stock covering 5 days or one week of data. This means that each symbol has 1950 string lines..Here is an example of what a string line looks like: "2011-06-27,10:07,48.15,48.15,48.02,48.02,25421". Not that is relevant but these represent Date, time,Open, High, Low, Close & Volume. Since I have 2500 files within a directory; doing some math, I am processing 2500*1950 = 4,875,000 lines. This process takes me about 16 hrs to run.[code]

View 7 Replies

Have One Window (without Child-windows) That Can Have Multiple Content-sets?

May 5, 2011

I would like to have one Window (without child-windows) that can have multiple content-sets.For example: I want to have a set of lables and textboxes to save information for an object (like a person). This person has several sub-items. I want to have a set of lables and textboxes for these sub-items in my mainform too. But I don't want the lables- and textboxes-set of these two objects to be both visible at the same time.

View 2 Replies

Can A Control Be Used As The Switch Variable In A Select

Mar 27, 2012

I'm working on a function that handles events from a number of buttons and trying to define a Select...Case based on the clicked button. Something like this...

Private Sub btnClick(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles btnThis.Click, _
btnThat.Click, _

[Code]....

which don't work either. Is there any way I can define a Select...Case in this manner or is it always destined to fail due to the attempt at comparison of reference types?

View 3 Replies

Focus To Control Where Name Is Stored In A Variable?

May 31, 2009

i have few cotrols on form (text box, combo box, checkbox etc). Thru some condition i stored the name of the control in a variable.

for example

dim cntrlname as string
if x=1 then
cntrlname = 'txtCode'

[code]....

at some other place on form i want to use above variable to give the focus to control.

View 9 Replies

Forms :: Using Variable As Part Of Control Name

Jul 25, 2009

Basically, I have a large number of text boxes. Within these text boxes, I'll be doing calculations based on user input and other things. These boxes will be grouped by numbers, eg Cost1, Profit1, Stock1... Cost26, Profit26, Stock26. Without too much explanation, I went to write a FOR loop to perform a repetitive calculation across multiple groups, and the following line came up.

FOR num = 1 TO 26
Cost(num).text = ItemCost

What I've tried to do is use a variable to decide which 'Cost' textbox, from the available 26, to use in the calculation. For whatever reason, it won't work. I would like to be able to use a variable to specify exactly which textboxes I want used, so that on the 3rd pass of the loop, the 3rd box is used, and on the 19th pass, the 19th box is used. Otherwise, I'd just have to do each calculation separately, and write the same thing 26 times, with slightly different numbers.

View 2 Replies







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