Holding Value In Collection?

May 18, 2010

I have a application which is on timesheet. I have total of 54 columns out of which 10 columns are visible rest invisibleFirst 3 columns are Project, MileStone and Classes. Rest are Sun- Sat work hrs, TaskId, TaskDesc and so on for each day. On my grid only first 3 columns and Sun - Sat work hrs are visible, rest are invisible.These Columns from Sun - Sat do not exists in database. They are identified on the basis of date and displayed on the grid. They exists as row in database but displayed as column over the grid.

Now I have columns named SunTaskID,MonTaskID and so on till SatTaskID for holding each days taskid[TaskID is the PK of the table from which data is pulled out. And each has its own task id.] Now on the selection of SunHrs (Sunday's Work Hrs), i retrieve that days taskid and on the basis of task id i then retrieve attachments which is displayed under a listbox.Now the problem is that since a day can have multiple attachments and a user can attach multiple attachments at time. I am not able to hold the attachments.

View 2 Replies


ADVERTISEMENT

Simulate Holding Down A Key

Feb 3, 2010

I'm trying to do here is get VB to hold a key down until I tell it to stop. Perhaps I'm missing something but I don't understand why this isn't working. This code can hold down shift and so on for as long as I want it too but absolutely refuses to hold down what i need it too (any letter key or numpad key)[code]

View 1 Replies

Holding Highscores For A Game

Mar 26, 2012

I've been working on my Pacman-ish game, and I want to have a high score table be available to be seen on the main options screen. Therefore, I need to save score information, and be able to separate it into a table, specifically 3 columns (Name, Orbs Collected and Time Alive). [code]However, I have no idea where to start with the high scores table.

View 5 Replies

Holding Text In A Button?

Jan 31, 2010

I am creating a game and when dice have been rolled I want the user to be able to hold certain dice.I have changed the design of the dice from labels to button controls, because whichever dice the user wants to hold thet can simply click on the relevent dice button, I used this code for holding the dice button.

View 2 Replies

Simulate Holding Down The Shift Key?

Dec 12, 2009

I know how to sendkeys, SendKeys.Send("Hello") I know how to hit other keys, Sendkeys.Send("{ENTER}")

But how do I HOLD DOWN the Shift key, I want to be able to highlight text, I know, I need to press the Arrow keys while the shift key is held down...

So... How is it possible to Hold down the Shift key

Oh yeah, and I even know how to simimulate a mouse click, drag, let go, ect. ect...

how to hold down the shift key in VB.NET?

View 4 Replies

B1Text (which Is A String) Is Not Either Receiving The Value Or Holding It?

Jun 29, 2009

This has been pissing me off!!I have an XML file:

xml
<?xml version="1.0" standalone="yes"?>
<Data>[code].....

Now the problem is, B1Text (which is a string) is not either receiving the value or holding it, but B1Vis is getting the value just fine, and its right below the other one.

View 10 Replies

Asp.net Dropdown Listbox Not Holding Viewstate

Aug 5, 2011

I am using VS 2008, VB and using a dorpdown listbox in my asp.net webpage. I select a value from the dropdown, click the submit button, when the page comes back from the server, the value in the dropdown is blank (default). The dropdown controls viewstate is enabled.

[Code]...

View 1 Replies

Closing Thread Holding A PDF File?

Oct 12, 2009

I seem to have a problem in finding a solution to threads.I am opening a .PDF file via an <iframe> using vb.net. Then the file is opened, it is then moved to another location. But for some reason I am unable to move the file because it "The process cannot access the file because it is being used by another process." The only way round it i have found is to kill the process for Adobe Acrobat, so the file is released. Even if i fill the iframe with something else.How would I close the file, and stop that particular file from being accessed before the move ?

View 6 Replies

Holding Key Down For Keypress Slowing Timer?

Mar 23, 2012

I'm using a KeyPress event in a VB form to move a game character around with keys. There are obstacles being moved every timer tick event. But if the player holds one of the movement keys down, the objects moving on timer ticks stop moving.

View 2 Replies

Holding Loop Number In A Variable

Jan 12, 2010

I have a button that searches through a binary file to bring up customer information with the following code:

[Code]...

My problem is, I need to create a variable which holds the record number, so that the record can be edited, and put back into the file at its previous location, how would I implement this? Not sure about the code.

View 3 Replies

Procedure Holding Connection String?

Jun 10, 2011

My problem is when I change computers, I have to change the drive letter the jump drive is located. Currently, I have the following code and have to comment out the connection to the letter drives I do not need to use.

' Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=E:Grad ProjectProject.mdb;")
' Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data

[code]......

View 1 Replies

Simulate Holding A Key Down In Active Window?

Jan 24, 2010

I am currently writing a program that takes a joystick input, and simulates key presses (hold) in the active window (a game). This should be used for a virtual H-Shifter, like the one in a car, to change gears.[code]...

View 3 Replies

VS 2005 Valuemember Not Holding Right Information?

Jul 22, 2009

I am having a problem with a combobox. Here is the code I use to populate my combo box:

Dim da6 As New OleDbDataAdapter("SELECT * FROM tblVendors", cn)
Dim ds6 As New DataSet
da6.Fill(ds6, "tblVendors")

[code]....

The problem is, VendorID should be an integer. When I disply the value in the ValueMember, it shows the same text that is in the displaymember.

View 10 Replies

VS 2005 - StreamWriter Holding File Open?

Oct 2, 2009

I'm looping through a csv file. For each line, I'm reading certain values, generating a filename, and writing the record to that file. Here is some logic

If <something that doesn't matter happens> Thendo somethingElseIf File.Exists(strOutFile & (strOutputFileName & "__" & strPrefixFileName & ".txt")) Then
strFullFileName = strOutputFileName & "__" & strPrefixFileName & ".txt" '** Double Underscores after app name
tsOutfile = New StreamWriter(strOutFile & strFullFileName)
[Code] .....

Now, obviously with the above code, there's no reason for the elseif, since they both do the same thing. The problem, however, is if I need to create a new file and write to it, everything works fine. In fact, everything will work perfectly until I need to write to a file that I already created. If I go ahead and just try "tsOutfile = New StreamWriter(strOutFile & strFullFileName)" and point it to the already existing file, I get a permission error (says the file is already open). Is streamwriter keeping an open connection to all of these files that I create? Nothing else in the program is touching these files, only streamwriter.

Here's a quick example to illustrate what is happening
Record 1 goes to file A
Record 2 goes to file A
Record 3 goes to file A
Record 4 goes to file B
Record 5 goes to file B
Record 6 goes to file B
Record 7 goes to file C
Record 8 goes to file A (Error will occur here)

View 10 Replies

VS 2008 USe SCHTASKS To Run A Task - Holding Others Till This One Is Done

Feb 4, 2012

I want to run a series of .BAT files - but only have ONE RUNNING at a time. If I have two or three .BAT files I want them queued up so that only one runs - then the next - and so on. I could do this with other O/S task management tools. I was going to code my own methods - seeing if a .BAT was running - holding the others - etc. But the handshaking on this operation could be painful to test... I was hoping the SCHTASKS tool in windows would be my answer - but I'm not seeing options to do this.

View 3 Replies

VS 2010 Serial Port CTS, CD, And DSR Holding Always On/true?

Aug 31, 2011

I have a serial port hub with 4 ports. 2 of them work perfectly and the other 2 don't.I've found out that the 2 that don't work always have CTS, CD, and DSR on/true.The 2 ports "don't work" because they aren't able to receive a response.How can I turn off CTS, CD, and DSR holding? It seems that they are ReadOnly properties.I don't know if this will help, but I've recorded a log (recorded pin values every 1 second interval) for one port that worked and another that didn't.The one that didn't work:

RTS,CTS,DTR,DSR,CD,RI,TX Total,RX Total,TX CPS,RX CPS,Break,Overrun,Parity,Framing
0,1,0,1,1,0,9,0,4,0,0,0,0,0
0,1,0,1,1,0,9,0,0,0,0,0,0,0

[code]....

As you can see, the one that doesn't work has a value of 1 in CTS, DSR, and CD at all times. Also, the one that does work was able to receive the data, which is shown by the 14.

View 4 Replies

.net - Storing Subcollections (filtered Versions Of The Main Collection) Inside The Collection As Cache?

Jan 15, 2010

Is it good practice to store sub-collections of item X inside a parent collection of item X for caching 'filter-queries' which are performed on the parent collection? (They won't be used together (as in color AND type).) Or is it also ok to just Loop over the collection and return the correct entities in a temporary collection?

[Code]...

View 1 Replies

C# - Edit List Collection : Error Note Collection Was Modified - Enumeration Operation May Not Execute?

Sep 7, 2011

I have the following classes:

Product, Service and OrderItem

Product and Service must inherit OrderItem. So basically I want to store OrderItem object in my shopping cart and these object are store in a list.

Public MustInherit Class OrderItem
Private m_enuItemType As TypeOfItem = TypeOfItem.None
Private m_strUserID As Integer[code].....

View 1 Replies

Class Property Arrays Not Holding/ Updating Values

Oct 1, 2011

I am trying to use several Class arrays to hold values that I will cycle through at a later point to perform some calculations. I need to change the array sizes to fit the data as it is entered. I am using one procedure to set the first element of each array and then a separate procedure to pass the additional values as they are entered.

Until my last attempt at changing my code, my StartBalance sub seemed to work, I could step through and see the values assigned to the class arrays in the code block. However, when it moved on to the Transaction sub, it did not recognize that the first set of values were set, the array shows zero values for index 1.

I have gone through several changes trying different ideas from reading blogs and articles, but I guess I am not understanding how these work. I even used the class arrays directly instead of the Property procedures to see if I would get a different result, but I do not.

I believe I must be approaching this incorrectly and though I can find dozens of examples of setting class variables and even a couple on using arrays as class variable, I can not find any that show how to then pass values to those arrays.

Public Class Statement
Private _tranDate(1) As Date
Private _amount(1) As Double

[Code]....

View 8 Replies

Class Variables - Holding Data From SQL Server Query

Oct 1, 2009

I am creating an ASP.Net page with VB.Net codebehind. I am using a class variable to hold data (named ods see below) from a SQL Server query so I do not have to keep going back out to the server. The class variable gets loaded ok and I populate a grid data with this dataset. However when I need to go back in and reference the dataset again, I get an error and I come to find out my dataset no longer holds the data.

Here is my declaration in my code behind:
Partial Public
Class LotTrackingMain
Inherits System.Web.UI.Page
Private con
As SqlConnection =
Nothing
Private ods
As
New DataSet

View 3 Replies

Drag The Window By Holding Down The Left Click On Any Label?

Jul 12, 2009

I disabled ControlBox on the form. How can I drag the window by holding down the left click on any label ? Or on any component on the form?

View 2 Replies

Holding A Key Down - Translate Input From An External Device Into Keypresses

May 26, 2009

im trying to make vb.net translate input from an external device into keypresses. when bit = 1 i want the key down, when bit = 0 i want it up unfortunately with sendkeys it just sends the same keystroke over and over again. ive googled for days without finding a good answer.

View 7 Replies

Holding The Alt Key Rearrange Tabs In A TabControl When Dragging The Mouse?

Oct 19, 2011

One of my friends has suggested that in my program i give users the ability to, when holding the Alt key,rearrange tabs in a TabControl when dragging the mouse. But im stumped as to how to do this.

View 1 Replies

Make A Summary Page Holding The Information From The Textboxes?

Dec 5, 2011

I have inputs for 7 textboxes for inputs, how would i make a summary page holding the information from the textboxes. What i would like to do is enter all the information then hit a summary button to display all those inputs.

View 3 Replies

Move An Element By Clicking And Holding The Object With The Mouse?

Jun 25, 2012

I am working on a simple program which requires me to be able to select a picture box and move it to a new location by dragging it with my mouse. This is all the relevant code I have come up with currently. however, when I run the program it tries to move to where I want it to go then it seems to revert back to its previous location.

[Code]...

View 3 Replies

Whats The Event Handler Name For Holding Click A Button

Dec 16, 2009

whats the event handler name for holding click a button.

View 6 Replies

Make A Custom Collection That Take Advantage Of The Collection Editor?

Feb 8, 2010

I have been researching for a couple of days now and to no avail. Does Anyone know how to make a custom collection that take advantage of the collection editor? I would like to be able to have 3 Color Values, 1 Boolean and 1 String.

View 15 Replies

User Control And Holding Form Priority Code Sequence?

Jul 21, 2010

I put the control in the form every thing works fine, but the problem is the priority of the sequence that the code performs for example:In the Cancel Click event there are some code inside the control it self, and in the form which hold the control I also put some code it goes fine but it first perform the code in the form and then it perform the code in the control.My question is there a way to tell the click event to perform the code inside the control first and then the code inside the holding form, (priority sequence)

View 6 Replies

VS 2008 : Call The Text That Appears When Holding Cursor On A Control?

Aug 28, 2010

How do you call the text that appears when holding cursor on a control as an explanation and how to implement it??? It has to be easy but I don't know how to do it For example Microsoft application functions all have it?

View 3 Replies

VS 2010 Make A Label Change Its Text Only If Its Holding A Integer 10 Or Greater?

Mar 31, 2011

I would like to make a label change its text, only if its holding a integer 10 or greater. How would I write that as code.

View 1 Replies







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