Execution Order In Multiple Forms?

Jun 6, 2011

am planning to write a simple program which reads two binary files and apply a simple math function ((file1-file2)/(file1+file2)) then outputs the file (file3). Then the user selects the file (file3) outputted as an input and the program again reads the file and apply another math function ((file3 - 0.2) / (0.5 - 0.2)) to it then output the final file (file4).I would like to eliminate the user input or at least minimize the user input. In other words, the user should execute the program once at the beginning and the program should do the rest. Basically there will be 2 form applications in my program. I want to make it automatic in a way that the program will select two files itself (the user should not select) then output the result and then takes that as an input and applies math function etc.My problem is that I do not know how to start the second form application after the first program ends because the second form application inputs the file which was outputted by the first form application.

View 1 Replies


ADVERTISEMENT

Forms :: Multiple Selection ListBox Click Order?

Mar 4, 2009

How would I display list items from multiple selection listbox in order they are clicked?

View 4 Replies

Using Multiple Threads For Faster Execution?

Jan 27, 2012

I have a map image with data associated with the map indicated by RGB index. The data has been populated into an MS Access database. I imported the information in the database into my program as an array and sorted them to go in the order I want the program to run.

I want the program to find the nearest pixel that has a different color from the incumbent pixel being compared. (Colors are stored as string attributes of object Pixel)

First question: Should I use integers to represent my colors instead of string? Would this make the comparison function run significantly faster?

In order to find the nearest pixel of different color, the program begins with all 8 adjacent pixels around the incumbent. If a nonMatch is not found, it then continues onto the next "degree", and in this fashion, it spirals out from the incumbent pixel until it hits a nonMatch. When found, the color of the nonMatch is saved as an attribute of incumbent. After I find the nonMatch for each of the Pixels, the data is re-inserted into the database

The program accomplishes what I want in the manner I've written it, but it is very very slow. After 24 hours, I am only about 3% through with execution.

Question Two: Does my program behavior sound about right? Is this algorithm you would use if you had to accomplish this task?

Question Three: Would it be appropriate for me to use threads in order to finish execution of the program faster? How exactly does that work?

Question Four: Would it be more "intelligent" for my program to find the nonMatch for each pixel and insert it into the database immediately after finding it? (I'm making a guess that this would be good in multi-threading, because while one record is accessing the database (to insert), another record is accessing the array of pixels (shared global variable in program).

Question Five: If threading is a good idea, I'm guessing I would split the records up into more manageable chunks (i.e. quarters), and have each thread run the same functions for their specified number of records? Am I close at all?

View 3 Replies

KeyPress - Beep And Loops - Occur Multiple Times During The Execution Of A Program

Aug 10, 2011

I've written a keydown event that needs to occur multiple times during the execution of a program, and it needs to play a sound each time. The first time the keydown event is triggered, the sound plays without a hitch. However, the second time (and all subsequent times) the keydown event is triggered, a system beep accompanies the sound. I'm using Studio Express '10 and I've already integrated e.SuppressKeyPress into my code:

[Code]...

View 4 Replies

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]......

View 2 Replies

Printing Multiple PDF Files In Order

May 16, 2012

I'm having trouble many PDF files in the order that I send the print command using the following [Code]

It prints just fine other than it not being in the correct order. The only way I managed to get it in the correct order is by adding a timer and checking to see if there are any jobs in the print queue, which really slows down the printing process, especially when creating 500+ print jobs.

I was wondering if there is a better way to print these files, to where it will print fast and still be in order. A couple things I have in mind, but not sure if possible, is to create a text file or XML file that has the list of files to print and the quantity and queue the printer off that list or to convert PDF files to XPS documents and then using PrintQueue class to add the XPS file as a print job.

View 1 Replies

Linq Group By And Order By Multiple Conditions?

Jan 16, 2012

I have the following:

myFilteredContractors = (From c In myFilteredContractors
Join cc In myConClasses On c.ContractorId Equals cc.ContractorId
Where inClassifications.Contains(cc.ClassificationId)[code].....

This is properly ordering this list of contractors by the number of classifications that they have.I also want to order them by whether or not they have a field set (CompanyOverview), which if is an empty string should be below those contractors who have set their CompanyOverview. Also, after the CompanyOverview is ordered I want to order by Registration Date.So it should order by:

Number of Classifications
Whether Overview has been set (c.CompanyOverview)
Registration Date (c.AppliedDate)

Is it possible to all of this in LINQ?

View 1 Replies

Multiple Panels And Groupboxes And Tab Order Maintenance?

Jul 10, 2009

I have a VB.NET (2005) application designed by my boss that uses a over 100 input and display controls (textboxes, comboxes, etc.), many with labels associated. My boss asked me to set the tab order, and then trap keypress so the user can use enter to navigate controls. I have 2 apps like this to work on.For the tab order, I could not use the View/TabOrder feature, since there are so many blue little tabindex popups showing, that I can not see any of the controls on the form to click. I tried clicking 'through' the popup with some success, but it still did not give me the tab order I wanted. The tab assistant that came with CodeSMART did not give me the result I wanted, either, so I could use it.

The controls on this usercontrol are spread among many groups, which in turn are spread among several splitcontainer panels. The 1st panel in the main splitcontainer has 3 main groupboxes which are selected via a toolstripbutton ( which sets the desired groupbox to visible and turning the others to invisible.) Example:

Private Sub ShowMainPanel()
'Note: Panels are groupboxes
Me.MaterialPanel.Visible = False

[code].....

View 1 Replies

Loading Forms In Certain Order?

Nov 29, 2009

when i run my app how do i make a certain form load first before any other form?

View 6 Replies

Linq - Order By Multiple Columns Using Lambda Expressions

Nov 16, 2009

I'm still trying to get my head around the whole "Lambda Expressions" thing.

Can anyone here give me an example ordering by multiple columns using VB.Net and Linq-to-SQL using a lambda expression?

Here is my existing code, which returns an ordered list using a single-column to order the results:

Return _dbContext.WebCategories.OrderBy(Function(c As WebCategory) c.DisplayOrder).ToList

Note: The WebCategory object has a child WebPage object (based on a foreign key). I'd like to order by WebPage.DisplayOrder first, then by WebCategory.DisplayOrder.

I tried chaining the order bys, like below, and though it compiled and ran, it didn't seem to return the data in the order I wanted.

Return _dbContext.WebCategories.OrderBy(Function(c As WebCategory) c.DisplayOrder).OrderBy(Function(c As WebCategory) c.WebPage.DisplayOrder).ToList

View 2 Replies

Forms :: Order To Provide In Listbox?

Aug 26, 2010

i have a problem and my project is stop now so i must solve this problem i have a listbox in my project and simple is; so this infos are irregular. i getting this infos with a loop into listbox. i want this infos be sub-bottom.

View 2 Replies

Forms :: Raising Events Order?

Jun 4, 2012

I have 3 classes in 3 separate dll.

1) Class "BaseForm" that inherits from System.Windows.Forms.Form with "MyEvent" declared as Public Event ()

2) Class "MyForm" which inherits from "BaseForm"

3) class "MyClass" which has a public property "ExternalObject" of "BaseForm" type (the private variable is declared WithEvents)

I make the following steps:

1) intercept the Form LOAD event in "BaseForm"

- Instance the class "MyClass", Assign public property "ExternalObject" = Me

- I do a RaiseEvent "MyEvent" in "BaseForm"

2) "MyEvent" is triggered BEFORE in "MyForm"

3) AFTER "MyEvent" is triggered in "MyClass".How Can I Raise event Befor in "MyClass" and then in "MyForm"?

View 1 Replies

Setting Order For Different Windows Forms?

Mar 3, 2012

i am working on a college project in visual basic 2010. in my program, i noticed at the last minute that i needed to add a "main" window. in this main window, i want to have all my other forms opened by buttons (i know how to do that part of it).

the problem i keep having is the window with the options to save the information pops up, not the main window. is there a way to easily fix this? maybe a snippet of code, because the only way i can think of is to scrap the project, start over from scratch adding my main window first, then the others.

View 2 Replies

Making A Button Perform Multiple Tasks In Order With Space In Between?

Dec 27, 2009

Like, I want a button to start five different timers, but at 1.5 second intervals. How could I make this button start timer1, wait 1.5 seconds, start timer2, wait 1.5 seconds, start timer 3, etc, etc?

View 2 Replies

Purchase Order Database GUI - Retrieve Multiple Table Values?

Dec 7, 2010

i apologize if this isnt up to your developer lingo, i really do lack proper developer/English skills)Just for starters this request is 100% genuine...im not some student trying to get you guys to finish my project, this is purely for educational and personal information for myself.Scenario: (brief)(i am using Visual Studio 2010)I am wanting to build a project that generates a printable purchase orders report and retreieves and save the entered details to a access Database (MDB).

In the purchase order application im trying to develop i want a user to be able to select existing clients from n table in the access DB. in which will then fill a portion of the CLIENT detail section in the application. i want to then be able to uses these client details to create a unquie purchase order ID containing all client details aswell as the purchase order list for that client this such as products and labor or whatever is inputted in the fields. (I have attached a screen shot of a brief example of the form layout, might give you more idea. - screen shot made in VISIO)

[Code]...

View 2 Replies

Triggers An Event After Multiple Command Buttons Are Pressed In A Certain Order

Nov 16, 2010

I've been searching for the answer for this all over, but I can't seem to find the solution. I have no idea how do this. A code that triggers an event after multiple command buttons are pressed in a certain order. For example: I press Command1, then Command2, then Command8, then Command5, then an event happens. It's kind of similar to entering a code to activate something.

View 4 Replies

Close Forms In Reverse Order They Open?

Apr 24, 2010

I'm developing software using vb.net. I want to do following things in my application.

View 5 Replies

VS 2005 - Hide The Filetoolstripmenu In Order To Print Forms

Dec 2, 2009

I am using the 2005 Power Packs Print Forms, I need to hide the filetoolstripmenu in order to print because it come through on my client page So I am using filetoolstripmenusitem.visible= false, then calling print but i think its happens to fast so part of the filetoolstripitem is still coming through on my print image Is there something i can do to pause it for a second?

View 14 Replies

Algorithm - Combine Multiple Lists, Resulting In Unique List And Retaining Order

Apr 28, 2010

I want to combine multiple lists of items into a single list, retaining the overall order requirements. i.e.:

1: A C E
2: D E
3: B A D

result: B A C D E

above, starting with list 1, we have ACE, we then know that D must come before E, and from list 3, we know that B must come before A, and D must come after B and A.If there are conflicting orderings, the first ordering should be used. i.e.

1: A C E
2: B D E
3: F D B

result: A C F B D E 3 conflicts with 2 (B D vs D B), therefore requirements for 2 will be used.

If ordering requirements mean an item must come before or after another, it doesn't matter if it comes immediately before or after, or at the start or end of the list, as long as overall ordering is maintained.

This is being developed using VB.Net, so a LINQy solution (or any .Net solution) would be nice - otherwise pointers for an approach would be good.

Edit: Edited to make example 2 make sense (a last minute change had made it invalid)

View 1 Replies

Forms :: Sorting Grid View On Date Column In Ascending Order?

May 21, 2009

I am facing issue sorting my grid view on date column in ascending order.

Private Sub SortGridView(ByVal dt As DataTable, ByVal col As String)
dt.DefaultView.Sort = col & " DESC"
GridView1.DataSource = dt
End Sub

Where col is "date" and dt is the data table to sort

View 1 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Forms :: Multiple Forms, Closing Events And Sub Routines?

May 25, 2010

I have googled high and low to find an answer to this but I must be searching wrong.I have an application which has a listview displaying some items that are stored in a SQL Compact database. I am using a second form to add new items to this list directly into the database.When the second form closes I want to call the sub in my first form to refresh the list from the database.

How can I get it to fire the form1 sub routine on the close event of form2

View 3 Replies

Multiple Forms Program Needs To Open Successive Forms Somehow?

Nov 3, 2009

i was doing a fair amount of programming many years ago, like 10 it feels like, so I'm sorely not up to date on how my newly downloaded Visual Basic Express expects me to communicate with it.I am writing a program that pulls a cell from a database after the user has gone through several forms to determine which cells they want. When I write it like that, it doesn't sound very efficient, but I've designed it this way for usability.Here's where I have a problem: Should I store the path the user takes in a string, an array, what?

Here's an example:Someone wants baseball stats and trivia. They run my program, main form pops up, they select National League button, the NL Form pops up. Now the way my program is set up right now, is there are two ListBoxes on the form, one is populated, and as the user selects a Team from ListBox1, it jumps to ListBox2. Once they've selected all the teams they want info for, they click a button Next.

What I now need the program to do is show the next form "Team: name" once for each team, and insert the name of the team on the form in the appropriate label which I'll have blank. This form will also do the Listbox thing except the first listbox will populated with Topics like HR Stats, Pitching Stats, Coach History, etc.

View 1 Replies

Forms :: Maintaining Multiple Forms Positioning?

Jul 26, 2010

Launch a dialogue window from the main form, and then another dialogue window from that dialogue window. If you close the second dialogue window and call dispose the main form vanishes under any other open windows. This doesn't happen by closing a dialogue window normally, but I am attempting (rightly or wrongly) to stop memory useage creeping up by disposing of it.

So, the question is - what method can be employed to maintain the position of the windows?

View 4 Replies

Forms :: Multiple Forms Open And Close

Apr 16, 2009

I have two forms frmMain and frmNew, and one module modMain. In modMain I hold public variables which are needed for application. My question is how to open and close those two forms when needed? I ask this because if i set frmMain as startup form, then when closed, application will end, and one of those two forms will always be displayed. Also if I set frmNew as startup form, then when I close this form, application will also end. Is there a way to do this from module or something so my application won't end after closing and opening any of those two forms?

View 2 Replies

Forms :: Retaining Data Across Multiple Forms

Sep 8, 2010

VB.NET newbie here... 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 1 Replies

Forms :: Write Code With Multiple Forms?

Apr 17, 2009

I am trying to write code with multiple forms. The first screen is splash screen then is supposed to close and have a calculations screen. In the timer of the splash screen I wrote the following code

Option Explicit On
Option Strict On
Public Class uiHinsbrookSplashScreen

[code]....

This opens the second screen, but when I Hit Exit on the Second Screen The first screen is still open. What do I need to do next?

View 2 Replies

Need To Change One Combo Box (of Many) To Order Items In Descending Order

Nov 1, 2009

I have a combo box bound to a datasource. I need to change one combo box (of many) to order the items in descending order.I'm guessing I could order the collection in the dataset, but that will mean all my combo boxes will be reordered?

View 2 Replies

Re Order Column Order In A Data Bound DataGridView?

Apr 17, 2010

I have a databound Datagridview. The DGV is bound to a datatable of a strongly typed DataSet created using the wizard. Is there any way to re order the columns before displaying them eg: the Columns are displayed in the DGV in this other Col4, Col6, Col3, Col1,Col5, Col2

But I want to it to show as Col1, Col2, col3, Col4, Col5, Col6?

I realise that the display order followed the Column order in the database table and by extension, the datatable. I have re-arranged the columns in the Database but the Datatable still retains the old order.

View 4 Replies

Forms :: Multiple Forms Within A Class?

May 13, 2010

I'm still learning vb.net, so I'm not terribly familiar with all the terminology, otherwise I would have searched a little harder before posting. I'm working on a program where the user can add various forms to a MDI parent.I would like each of the child forms to be part of the same array, all of the child forms will be of various types.Some forms may display a textbox, some forms may contain a graph, some forms may contain an image, etc.[code]

View 7 Replies







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