Forms :: Show Execution Time To The User Before Values Comes To The Datagrid?
Dec 26, 2009
Windows Application
Front End: Vb.net
Backend: Oracle 10g
I am executing the sql query to fetch values and showing it in my datagrid..and when i do that it works perfectly fine...and problem is that it takes 10 min for my datagrid to fill...so in between i want to show the execution time to the user in another form till my query processing completes..
My
Dim oradb As String = "Data Source=zorb;User Id=baady;Password=zacky;"
Dim conn As New OracleConnection(oradb) ' VB.NET
Try[code]......
The idea with this form is to add the futures which is calculated when the button is pushed but I need the list to update every time and show the values each time to which the previous value is added to the new calculation, e.g. of what it should look like in listbox:
Year 1: $1,290.93 Year 2: $2,724.32 Year 3: $4,350.76 etc....
I have been working on this a while and I am at a standstill, I was given a function to clear the form everytime it calculates but I don't know how to implement it, I am new to VB. Here is what I have so far:
Public Class frmFutureValue Private Sub btnCalculate_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCalculate.Click
im trying to let the datagrid show the selected time without scrolling.does anybody know how i can make the datagrid show all the selected time and automatically adjust.the selected rows to the datagr size
well my problem is that i have a data grid with id(hidden), name, and number as headers and i have 3 textboxes(1 hidden).the data on the data grid is coming from the database(mysql).like if the entry is like this
Let's say I have the this statment If textbox1.text <> textbox2.text Then
Now I want the msgbox to show me both values at the same time. I know if I want it to show me the value of one of the textbox i just have to use & val(textbox1 or 2.text) &. How do I make it show me both of them at the same time.
I am trying to show message when user didn't enter any data in datagrid and click on save button it should display message please enter the required fields but I am using this code for this purpose.
For Each cell As DataGridViewCell In DataGridView1.Rows(DataGridView1.RowCount - 1).Cells If cell.Value Is Nothing OrElse cell.Value.ToString = String.Empty Then MessageBox.Show("Please Enter the Required Field(s)!", "ITPCHR", MessageBoxButtons.OK, MessageBoxIcon.Stop) Exit Sub [Code] .....
When I click on save button without entering data it give me message please enter the required fields but when I enter the data in datagrid it didn't save data and gives same message please enter the required fields.
I have two forms and I am running a sql query to provide a set of variables in my first form that I need to pass to my second form. Here is the code that I have:[code]to form 2 which then shows the data retrieved from a sql query in the load event to a datagrid view.
I was asked to create a slide show in Visual Basic 2010 that had to meet certain requirements but I've run into a few difficulties. I have a slide show that works but it doesn't meet my friends standard and I'm not sure how to go about this process.He asked me to meet these requirements: The Slide Show Project requirements of your project are:
1. The use of if statements.
2. The use of arrays.
3. The use of loops.
4. The use of graphics.
5. The use of key/mouse controls.
6. The use of images.
7. Allow user to set delay time for each photo.
8. Transition effects 1: Fade in, fade out
9. Transition effects 2: Fly in, Fly out
10. The use of timers.
11. Borderless, always centered.
12. Introduction Screen, Credit Screen.
13. innovations, special feature.
The code that I had previously came up with was as follows:
Public Class Form1 Private ImageFileNames As New List(Of String) Private CurrentImage As Integer = -1[code].....
I pre-loaded my own photos into the slide show but I just want to know how to right this code in order to satisfy my friend.
I have designed a window application that: check the contents of a folder for specific files (HTML)move files to a 'working' diretoryparse each file with webbrowser control to extract datacall webservice to collect additional data
The main form has a large ListBox that displays event messages. What I want is for the application to display the messages as they happen. What seems to be happening is that the application will do everything and then display all of the event messages at once at the very end. pointers on how to write code that will add event messages to the ListBox as they happen?
i am coding a program in vb.NET, it will be used for people to vot for their favourite food.I have let the users input the name of favoutie foods into an inputbox and tehn store the name of each favoutie food into an array called foodarray. Then the array outputs each item inside it into a checkedlistbox, which will be used to vote from by the voters.The problem is that i want to add 1 to the value of the name of the food each time it is selected by a user. How do i do this, i want to add 1 to the names in the foodarray to find out how many votes each food gets.
I am trying to write a program that shows the user the current system time and date using progress bars in VB 08 Express but don't know how to start it, I am having trouble with getting the program to refresh the minutes and seconds progress bars
How do you input binded Radio button if checked values "String" to the data base using query Like if check radio button Male the gender in the database will be "Male" And female if otherwise the ,database column is string in my db and my dataset is radio button the inputted record should have male or female in gender column. I'm confused also with date time picker in vb and it is date/time format in database column.
I need a nudge in the right direction. I have a user control that has the main form and it calls a secondary form to gather some additional information in some cases. I need to pass the information back from the secondary form to the primary user control form so I can validate the data and save. In the secondary form, I have the following code:
Dim myFrm as new frmOperationComments myFrm.OperationComments = [comments from form] myFrm.OperationDate=[Date from form]
I have tried creating two public properties on the user control and setting them, I have created two properties in the user control form called OperationComments and OperationDate. I can set both of them, but when I close or hide the form and go back to the main user control form, the values for these properties or variables are not set. How do you set the values on the main form from a calling form within a user control?
I want to do is make a notification system, kind of like aim were a new little box will show up to alert the user of a couple different things.
This is how far i have gotten :
Dim popups As ArrayList
Public Sub newEvent(ByVal title As String, ByVal description As String) popups.Add(New Form())
[CODE].........
I use an arraylist because i dont know how many messages will come around the same time, but i could switch to an array if i must. this is the form that i made as kind of a template :
[CODE]..........
Its just got a couple text boxes for now. how can i make these new forms every time i have a new message to display and the clean up after them when they are done.
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click Shell("dataiphuc -a com.apple.afc2 -s data/scriptn1") Its a DOS Command End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
When A Button click a Dos Command Execute..So How I can Do execute A dos Command log Show in Textbox1..
My application does some intensive tasks on a second thread, while updating the main form. I want to show how long these tasks have been running (increments every second), i've read timers can get out of sync and even fire off multiple ticks at once, so how can that be fixed, or what's a better solution for this?
PFB the code for a search button where when a user enters a text in the text box ,it takes the keyword compares it with an xls which has 1600 rows and 16 columns with keywords.If the keywords match, it has to full the 3rd column where the name is specified.Its running but its taking more than 20-25 mins for processing.I knw searching 1600 rows and 16 columns will take time but pls advice if i can make this process a lil faster.
I have a datagridview with transaction bindingsource I want the datagrid to show the sorted rows only not all the records when i enter a value into a textbox and click button sort.
Actually, I am trying to find out whether the partno is existing in the database table or not and it takes long time in count = checkCommand.ExecuteReader statement
Public Function CheckProductNo(ByVal Partno As String) As Boolean Dim count As SqlDataReader Dim valid As Boolean = False Using connection As New SqlConnection
Recently, I've been running some tests with C++ and VB.NET to compare execution speeds. In the last thread I posted, I talked about how I had encountered the fact that C++ was executing just as fast as VB, but got that issue resolved. Now I'm hitting my head against another wall:I had made a DLL for VB.NET to test out this theory and compare in just one program side by side execution time of identical VB.NET and C++ code. But the interesting thing? VB.NET's execution time improved such that it was now exactly identical to the execution time of C++. Spending some time with the problem, I discovered that the "Target CPU" option in advanced compile options in Visual Studio 2008 was the culprit!
Since I'm running 64-bit Windows 7, I figured making the target CPU x64 would yield the best execution time. Wrong. Here are the results in execution time of a Windows Forms application for VB.NET,calculating all the prime numbers up to 10,000,000 and getting their sum.
Any CPU: 15.231 seconds x86: 10.858 seconds x64: 15.236 seconds
Below is the code I'm using, feel free to test it yourself:Public Class Form1
I was updating an old .aspx.vb script that was originally written with dynamically typed variables, like this:
Dim price I updated them to the following format (along with some IsDBNull checks to compensate):
Dim price As String After doing this to all of my variables, the script appeared to run noticeably faster. Is this a real effect of static typing, or is it just a coincidence?
I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.