VS 2008 Hwo To Retain A Vlue

Feb 24, 2011

i have to retain my values so i can use it again but somehow it wont work in my case.[code]

View 18 Replies


ADVERTISEMENT

Make A Function Which Takes A Number Then Does An Operation To It Again And Again Until It Gets A Vlue?

Apr 26, 2009

This is probably a stupid question, but how do you make a function which takes a number then does an operation to it again and again until it gets a vlue which it already has seen, when it returns all of its values? I have this function:

Private Function fractal(d as string) As double
Fractal = Val(D) * (Val(D) - 1)
Fractal = FormatNumber (Fractal, 2)

[code].....

View 4 Replies

Retain A Value From A Textbox And Add To It?

Nov 15, 2011

My assignment is to create an application that allows the user to type an item's price into a single textbox, add the price to the previously entered prices, and display the total charge which includes a $15 shipping charge and a 3% sales tax.Example: I type 10 in the textbox and click calculate. the subtotal (before tax and shipping) reads $10. Next, I type 20 in the textbox and click calculate. The subtotal should now read $30.I have everything working fine except adding the different prices. I cannot figure out how to retain the value of the subtotal and add it to the next value entered.

View 2 Replies

Add / Remove Items And Retain?

Aug 20, 2010

I am using ListViews for easy drag-n-drop, But I need the User to be able to 'permenantly' add or remove items.[code]...

View 3 Replies

Edit And Retain Variable Value?

Apr 15, 2009

I'm trying to write a small program to produce costing quotes, so I thought I'd assign variable to all of the individual costs, problem is the cost of things change as we all know. So I set up a dropdown box listing costs a textbox and a button... Idea being ...

Exit Sub
ElseIf MaterialsCMB.Text = ("White Vinyl") Then
wvCos

[code].....

View 12 Replies

Retain Checkedstate Of A Listbox?

Sep 20, 2010

I am populating a listbox from a table called "TableA" and if item is checked in the listbox it is saved in another table called "TableB"

For i = 0 To listbox1.Items.Count - 1
If listbox1.GetSelected(i) = True Then
rs.addnew ..........' (in TableB)

[code].....

View 10 Replies

Forcing A PictureBox To Retain Its Image?

Oct 7, 2009

My pictureboxes sometimes clear of all drawings when they are done creating the image, or sometimes halfway through. Calling GC.Collect() before the drawing starts lets it draw MORE before it clears, but how can I stop it from clearing entirely?

View 2 Replies

How To Retain Data Across Multiple Forms

Sep 8, 2010

I have an vb.net windows application set up. It has multiple forms, about 6 in all. There's a main menu form, and then 5 other forms to collect data. The user will collect data on each form and bounce back and forth between forms. How do I get the forms to retain the data that has been entered into the text boxes and/or other controls on the forms? For example, they might fill out a few textboxes on a form, but then need to go to a different form and fill something out and then back to the previous form. Right now, when they come back to the form, all the data previously entered in to the text boxes is gone.

View 7 Replies

Retain Edited Textbox Value After Submit?

Nov 24, 2011

I reloaded ny page with previous data that was available for my login.Now i try to edit the textbox and update .It either updated or doesnt retain the edited value in Textbox.[codd]e...

View 2 Replies

Retain Value In Variable After Application Closes?

Apr 22, 2009

I want to retain a value in a variable even after the application closes so the next time i open the application i can get that value.It's actually an integer value, i want to count the no. of times the application has been opened. I tried using static [b] but it doesnt work.

View 8 Replies

Retain Values In Select Multiple Box?

Oct 28, 2011

I have a javascript function below to move from select multiple box A which is populated from database to another multiple select box B, in the event of a postback my values in B which are moved over from A got lost. Initially I thought because I included a "runat="server"" tag for server side actions but apparently it's not the case. I read about Form.Request but ain't have a clue how to go about it. I just need to retain those values in multiple select box B.[code]...

View 1 Replies

Unable To Retain Data In DataRepeater?

Nov 24, 2009

I am manully adding data to DataRepeater, but once scrolling up and down, the data is vanished. I have only a text box in the item template.

DataRepeater1.AddNew()
DataRepeater1.CurrentItem.Controls("txt1").text="yehaa"

View 3 Replies

Asp.net - Change And Retain DIV Selected Tag In Master Page?

Oct 24, 2010

I have a CSS class called selected which highlights the DIV as the current step. When they're all in separate pages, I just had to move the selected word to the next DIV.But how can I achieve the same in Master Page VB .Net? It seems to be one page for all. When the next page loads, how do I get it to highlight the next step?

[Code]...

View 1 Replies

Use The Tab Key To Exit And Retain Current Cell In DataGridView?

Jan 26, 2012

In my form there is a DataGridView, the user select information in the DataGridView then there are text boxes that needs to be filed in. So this is what needs to happens if the focus is on the DataGridView when the user hits the Tab key it moves the focus to first text box. Then once the user hits the last tab box it returns focus back to the DataGridView but to next cell. Initially figured this would not be a problem and did this code;

Dim PreviousCell As DataGridViewCell
Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown

[code]....

View 3 Replies

Allow Labels In Disabled Panels To Retain A Their Prominent Forecolor?

Oct 19, 2011

I need to allow labels in disabled panels to retain a their prominent forecolor. So, I am considering replacing all labels in panels that become disabled with LinkLabels. By disabling the control and setting its disabled color to black it holds the color. However, I have always been of the opinion that one should use the lightest control possible.

View 3 Replies

Display CheckedListbox Values Into Listbox2 And Retain CheckedState?

Dec 13, 2010

What i am trying to achieve is that if listbox2 contains checkedlistbox1 items then checkedlistbox1 should retain checked state even after the from is closed and re-opened again.

Since i am saving the checkedlistbox1 values into a Table - is it possible to bind those to retain the checked state even after the from is closed and re-opened again - or it can be done comparing the values from both listboxes [code]...

View 2 Replies

Retain Executing Thread's Context During Call To QueueUserWorkItem In ASP.Net?

Nov 17, 2011

We have an ASP.NET application that queues some of its long-running operations (generating reports, for example) into the ThreadPool using System.Threading.ThreadPool.QueueUserWorkItem.

We run the ASP.Net application pool using a specific domain service account so that it can access remote resources, including files and databases. When the execution starts in the ThreadPool, the user identity of the thread is set to Network Service, which doesn't allow us to access the remote resources.The web application can be accessed by users in different countries simultaneously and the format of the data that we provide to each user is based on their culture settings (using the standard globalization settings in web.config). When the queued thread is started, it has also lost this information and reverts to the default culture for the operating system.

Now, we can probably get around most of these issues by capturing the current user identity and culture in a state object and passing that to the background worker, then impersonate the user and set the culture on the thread, but this seems like a very "unclean" way to resolve this issue.[code]...

View 2 Replies

Retain Field Values On Error In A Dynamic Gridview?

Jun 7, 2011

I have a page which has a GridView on it, which is populated from a database. Some of the columns in the GridView have text boxes, as well as Checkboxes.When the user saves the page, the page may error if they have not entered their data correctly. At this point, I need to re-display what they have entered already so they can simply make the correction instead of having to change everything from scratch again.

View 1 Replies

Retain Row Attributes In A DataGridView When User Sorts By A Column?

Oct 20, 2010

I have a DataGridView, bound to a dataset. All the columns are sortable (.ColumnSortMode.Automatic). The user may change data in certain columns, although not the first ("key") column. When data gets changed on a row, I change the backcolor for that row (to show it as dirty). At some point, the user will do something with all of these changes.

My problem is that I still want the user to be able to resort the data by any of those columns. When it's sorted, though, I lose the backcolors that I changed. I do know which rows are dirty, this is just a cosmetic issue. Isn't there a way to retain those backcolors, or any other such row attribute?

View 6 Replies

Retain Datagridview Cell Backcolor And Forecolor In Excel After Exporting From

Feb 20, 2009

i've a datagridview control populated with records from database. i've formatted certain cells of datagridview according to a condition. (i mean i've set the fore color and back color of cell). But when i export these datagridview contents to excel 2003, no cell colors will be appearing.

i'm developing desktop application with vb.net 2008 and excel 2003.

View 1 Replies

Retain Datagridview Cell Backcolor And Forecolor In Excel After Exporting From?

Feb 20, 2009

i've a datagridview control populated with records from database.i've formatted certain cells of datagridview according to a condition.(i mean i've set the fore color and back color of cell).But when i export these datagridview contents to excel 2003, no cell colors will be

View 3 Replies

Label Properties - Store The View State Of A Page - Labels To Retain Their Colors

Oct 15, 2011

I am developing a windows application, how can i store the view state of a page in vb.net. i have 12 labels on a page and when i click on each label the color of the label changes to black, what i want is when i come back to the same page, i want the labels to retain their colors....

View 1 Replies

Retain TextBox Line Breaks In Winforms After Assigning Text To A String Variable?

Oct 3, 2011

I have a WinForms app with a multi-line textbox. This displays and retains (after loading from the DB) line break characters fine. However if I assign the TextBox.Text value to a string variable and then re-assign the variable back to the TextBox.Text property, the line break characters are lost and replaced with a square character (can't past them here as they just paste as a line break!)

[Code]...

View 3 Replies

Open File Retain The Directory Of The Last Opened File?

Jan 10, 2010

So I open files and do whatever with them right. I've set the initial directory to equal the last directory, but whenever I open multiple files, it never sets the directories properly. It acts as though nothing was opened there, so it takes the previous directory as the last one. Thoughts on what's not working? Here's the code.

Code:
With FileOpenDialog1
.InitialDirectory = LastDirectory
If .ShowDialog = DialogResult.OK Then

[code]....

I have multiselect enabled earlier and everything else works but this. When you open a single file, the last directory works fine. It only happens with multiselect.On another note, does anyone know why it freezes when I try to do a lot of files and use another program? I opened 700+ files to see what would happen. When I switched to a IM convo, it froze. When I left it to run, it worked.

View 3 Replies

Office Automation :: Excel Process Continues Running (.Net Framework 3.5, VS.Net 2008, .Net 2008)

Apr 15, 2011

I'm calling the following method from a button click event to export a datatable to excel. After the export is completed, the excel application object is quit, released and assigned to nothing. But in reality it's not getting released and stays active unless the entire application is closed. So every time the button is clicked for export, a new excel application object keeps on running. The problem doesn't occur if two of the lines from the method below are not used. But I can't omit them as they are really needed. Check the * marked lines.

Code:
''' <summary>
''' Exports data from a datatable to excel.
''' </summary>

[code]....

View 1 Replies

VS 2008 Change Frame Rate In Visual Basic 2008 Media Player?

Feb 26, 2010

How to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code

[Code]...

View 2 Replies

VS 2008 VB 2008 Express Edition Softare - Specific Installation Directory For A Program?

Aug 9, 2009

Where in Visual Basic 2008 Express Edition Software program do you specify a specific installation directory for a program?

c:Program Filesfinished program

I want to publish my program to try it out on another system and I want to ensure its installed in the directory structure I want.

View 3 Replies

VS 2008 Visual Studio 2008 Randomly Crashing When Simply WRITING Code?

Oct 25, 2009

i'm running Visual Basic 2008 Express Edition (latest service pack ... 9.0.30729.1 SP) on XP Pro SP3 with .Net Framework version 3.5 SP1 I have a rather large project I've imported from Visual Studio 2003 (Standard).The project compiles and runs just fine ... my compiled program itself never crashes.

But while I actually have the code up in the IDE, and simply adding/deleting code the whole IDE will randomly crash (usually without warning) and I loose my changes since last save.If/when I do get some hint of why it crashed, I get a window about illegal whitespace or something.... but that's rare ... usually it just crashes without warning and the whole IDE completely shuts down instantly. just deleting/adding a character is enough to trigger it maybe once every 30 minutes.

This is on a computer that is otherwise very rock solid .... no other program ever crashes, etc.

View 1 Replies

VS 2008 Access Windows Form Designer Generated Code In 2008?

Jan 20, 2010

Is it possible to edit the Windows Form Designer generated code in VS2008?

View 4 Replies

VS 2008 Mobile Applications - Device Board Serial Number In Vb 2008

Oct 15, 2011

My some problem for vs 2008 in mobile applications How to learn mobile device board serial number in vb 2008?

View 2 Replies







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