Way Of Re-ordering Handles Without Having To Completely Reformat Form
Jan 31, 2011
finally my programme works. It will test the other programme, which is a Bid Tabulation programme allowing up to 10 Supplier Quotes each one having up to 500 line items; handling mixed currencies; many additional lines of specific information; etc.; using any combination of Suppliers and Line Items.However, I thought that I would let you know about some of the things I had to do to make it run.Obviously, the programme can bring up the Bid Tabulation programme very quickly, and then moves on to obtain the handle of the first form. But I had to insert a timing delay in order for the programme to report that it had found the handle; I also had to add the same delay all over the programme in order to see a valid handle number instead of "0".In addition to this I had to cycle through the ChildHandles, as you had indicated in order to get to the handle I needed. This raised another problem. I wanted to enter information in the same sequence as the tab order, but I found that the ChildHandle order was all over the place; generally back to front. In other words the tab order which went from top to bottom, and left to right, whereas the ChildHandle order was sometimes all over the place.
Is there a simple method of rearranging the ChildHandle order, as there is for arranging the tab order? I had to reformat several of my forms in order that entries would make sense. Imagine the table below is a form with 23 TextBoxes. The order that I need them to be filled is from top to bottom, and left to right, but the actual order of the TextBoxes is as below: [code] This message does not really require a resolution to a problem, unless there is a way of re-ordering the handles without having to completely reformat the form.
View 1 Replies
ADVERTISEMENT
Dec 2, 2010
recently i came across a requirement. I have to create a text box with a vertical scroll bar. I hav to check whether the scroll bar is dragged down completely or not. i hav to do it in VB.net
View 1 Replies
Sep 25, 2006
I have a form that I use to get the user to input such as a username and password in order to make a network connection. This connection can be disconnected and reconnected as many times as neccessary whilst the application continues to run.
I obviously, therefore, need the form's text boxes, combo boxes etc to reset to their blank versions every time that the form is shown.
In VB6 this was easy; you just unload the form which completely removed the form from memory and thus the next time you showed it it was reset to it's blank state. In VB 2005, however, there is no unload so we have to use Close. I have done this and assumed that it would function in the same was that unload did in VB6.
The problem is that when I close the form using the form.close event handler the form disappears perfectly but when the form.show/showdialog is used the old form data still remains telling me that the form hasn't actually been unloaded but rather appears to have just been hidden.
View 3 Replies
Sep 13, 2009
When i dim a variable as a form and then close it ( frm2.close() ) then just the form window will be closed. How can i close the form completely so that everything like a timer will be closed too?
View 4 Replies
May 25, 2011
How to hide the main form upon load (startup)??? I have tried Me.Hide() And some others ones, but none of them actually HIDE the form upon startup. It also has a NotifyIcon but once again it will not hide the main form..
View 6 Replies
May 22, 2009
I want to pass a few variables to another page. Currently I'm using response.redirect and passing the variables in the url. I'm not really interested in using Session Variables. Is there a way to pass hidden variables in .NET to a completely different form?
View 4 Replies
Sep 10, 2010
how to ensure that a form stays on-screen completely and cannot be dragged outside the bounds of the window.
This is because the user needs to be able to completely see the form without any of it being cut off.
View 5 Replies
Sep 15, 2011
I have a form in VB with many (over 100 - fields, labels, the form itself etc...) items on. I wondered if there was a way of refering to all the items on the form without having to list them all individually in the Handles keyword, which is extremely long winded! I want to carry out the same action wherever the user clicks on the form. At present I have the following
[Code]...
View 4 Replies
Aug 19, 2010
How would i go about making a form that handles a different forms settings?ei, the Button Forecolours ect.
View 5 Replies
Apr 28, 2010
I have written a program that will gather data from several different COM ports and reformat the data before sending it to a web site. This program is intended to run 24/7, but only send the information at user specified intervals. I have the routines to gahter data, but I only need it to perform this task at the specified time (5 minutes to each hour). At startup the dialog minimizes to the system tray. I would like a balloon message notifiy anyone watching that the data is about to be sent, and allow them to add additional comments if they choose (by clicking on the balloon). The system tray icon has several context menu items that the user may need. Is this the proper use of a background thread? I would also like opinions on the best method for pausing execution until the specified time.
View 4 Replies
Jan 9, 2009
My computer was running really slow so I decided to reformat my computer and reinstall Vista. I thought I had backed up everything I needed, but I COMPLETELY forgot to grab the Projects folder in my user folder, so this huge project I was working on is gone Does anyone know of any data recovery software that I could get for free (or even buy if it will definitely work) to get these files back? I can't afford professional data recovery.
View 1 Replies
Dec 10, 2011
I am faced with a rather large text file (200-400 lines)The file displays a lot of data however the problem is that it is not lined up. The data at the moment resembles this
Column1 Column2 Column3 Column4
Bobby Fisher Virginia Rural
Willis Johnson Oklahoma City
[code].....
View 1 Replies
Jan 6, 2010
Are there any tools available for automatically formatting vb.net code - specifically for adding line breaks at a predefined line length? I'm working with a lot of code with long lines (thousands of lines), and manually reformatting it is quite time consuming. I've seen a number of tools for rearranging code into regions etc., but haven't found any that reformat with line breaks.
View 2 Replies
Nov 10, 2010
I have a task to resolve, it is regading extracting characters from a long string to the console, the extracted text shall be reformatted and saved into a CSV file. The string comes out of a database.
It looks something like: UNH+RAM6957+ORDERS:D:96A:UN:EGC103'BGM+38G::ZEW+REQEST6957+9'DTM+Z05:0:805'DTM+137:20100930154
The values are seperated by '.I can query the database and display the string on the console, but now I need to extract the Keyword 'ORDERS' for example, and lets say it's following 5 Characters. So the output should look like: ORDERS:D:96A then I need to extract the keyword 'BGM' and its following five characters so the output should look like: BGM+38G:After extracting all the keywords, the result should be comma seperated and look like:
ORDERS:D:96A,BGM+38G: it should be saved into a CSV file automatically.
I tried already:
'Lookup for containing KeyWords
Dim FoundPosition1 = p_EDI.Contains("ORDERS")
Console.WriteLine(FoundPosition1)
Which gives the starting position of the Keyword.I tried to trim the whole thing around the keyword "DTM". The EDI variable holds the entire string from the Database:
Dim FoundPosition2 = EDI
FoundPosition2 = Trim(Mid(EDI, InStr(EDI, "DTM")))
Console.WriteLine(FoundPosition2)
View 3 Replies
Feb 28, 2011
I am having trouble sorting out a list of items pulled out of the databse, by the date stamp they have on it. I mean the table is called Marks with columns Homework_ID, Pupil_ID, Marks,Comment. Then there is another table called Homework with columns HW_ID, Class_ID, HW_name, HW_set, HW_due. The HW_set and HW_due are dates in format YYYY-MM-DD. Right, I can pull it out of database easy what I want but then how do I order it by the date when the HW was set ? is it some tweak in the query ? or do I need to write some code for it
View 2 Replies
May 17, 2006
I am calling external DLL (written in Fortran) function that has a multidimensional array argument. In VB6 the array is column major (the same as Fortran). However, I recently noticed that in VB.Net the array passed to the DLL seems to be in row major.
View 3 Replies
Jan 29, 2009
I am developing a Blackjack game in VB.Net using Visual Studio 2008. I have Picture boxes to display the players cards. The issue I have is that when the player chooses to hit , the third card stacks properly over the first two, but on the forth hit,the picturebox(which contains the forth card) appears under the third card. The same happens for the fourth , fifth, and sixth card . I have looked at the properties for the picturebox hoping there was some kind of index (similiar to zindex in css) to order the cards so they would would "stack" on top of one another but leaving the numbers of the cards visible, to no avail as I am here posting I have a screenie of the situation to better illuminate my struggle.
If you look at the picturebox with the 8 of diamonds card in it , everything is fine, but you will notice that the 10, 4, and 8 of clubs is underneath. I would like these cards to stack as the 4 of clubs, the 9 of diamonds and the 8 of diamond did.
View 4 Replies
Jun 10, 2011
I have a Datatable- table1 and i want to sort/order this datatable in ascending order depending on 2 columns-column0,column1 of table1. how can i do that?
View 2 Replies
Aug 9, 2011
I have a Datatable- table1 and i want to sort/order this datatable in ascending order depending on 2 columns-column0 ,column1 of table1.how can i do that?
View 2 Replies
Feb 2, 2009
Dim dir As New System.IO.DirectoryInfo("C:")For Each f As System.IO.FileInfo In dir.GetFiles("*.rtf")Next using the code above, how can arrange the object (file(s)) Descendingly?
View 6 Replies
Nov 30, 2010
I have inherited a frankenstein VB6 "Converted" to VB.NET winform application. This application has a metric ton of fields in it, the users rightfully complained that the tab order is off (after a certain point it starts jumping all over the form).Figuring something in tab order was off, I went in and turned on View > Tab Order and it looked good. To be sure I went through the form again fresh and when I'm in tab order view all is well, but when the app runs it still starts jumping around the same area as before?! Has anyone else encountered this and how did you resolve if you did?
View 3 Replies
Sep 7, 2011
My main Application A starts a 3rd party Application B that runs as a console application. So I don't have access to the Application B source code. When specific things happen in Application A, I can properly launch a vb.net Application C that I built, which properly shuts down Application B, by sending a Ctrl-C signal to it, the same as hitting Ctrl-C in a console window. But I cannot have this occur on Windows shutdown because Application B shuts down on its own before I even have the chance to launch Application C to shut it down. Is there a way to keep some kind of control over Application B when I launch it, or any way to have it be last in the shut down of programs in Windows?
View 1 Replies
Jul 6, 2010
I have the following datatable with the ordering of DataClassIndex column before editting:
DataclassIndex
0
1
[code].....
View 1 Replies
Jun 22, 2012
If TextBox1.Text = ("weburl") Then WebBrowser1.Document.GetElementById("price_category").SetAttribute("value", "4")
End If
If TextBox1.Text = ("weburl") Then
WebBrowser1.Document.GetElementById("fullprice_quantity").SetAttribute("value", "4")
End If
If WebBrowser1.DocumentText.Contains("Add to shopping list") Then
WebBrowser1.Document.GetElementById("add_to_list").InvokeMember("click")
End If.
I want them to go in order. But what it is doing at the moment is going to the third if statement first.
View 39 Replies
Mar 23, 2011
i am creating a maths program that works out five number summarys of a range of data. i am having trouble working out the median in a group of numbers.so far i have used the code below to declare all the the inputs.
dim m as integer
no1 = Val(TextBox1.Text)
no2 = Val(TextBox2.Text)
no3 = Val(TextBox3.Text)
[Code]...
i am completly stuck for how to order the variables, and find the middle no.. as i am using 11 variables, the middle no would be the 6th in the order..
View 4 Replies
Feb 25, 2012
(All of the names on the ListBox are actually .txt files, which contain different values that can be put into the program by a certain window.)
I'm trying to use a ComboBox to order items in a list by a certain value. So say I select "Sort by Alphabetical" in the ComboBox, I'd want it to sort the items in the ListBox in alphabetical order.
Also, if I were to have a certain value in the .txt files that I would like to sort by, is there a way I could order by that?
View 1 Replies
Dec 29, 2011
I decided to take up the task of writing an app for Dungeons and Dragons. I play with my friends and I'm trying to make it a little bit easier.Before every round of combat players roll dice for Initiative. It basically tells the games manager who goes first and in what order the rest of the players go. When players roll for initiative they roll 20 sided dice. On Form1 I have a button that says "Initiative" which opens another window where the manager would type in each players values. Then I want the program to take those values and order the players from highest to lowest in a list on Form1. Kind of like...
John 32
Frank 29
Tom 25
Bob 15
Ralph 5
View 4 Replies
Jan 27, 2012
I have a classic scenario with a twist, containing the following tables: Users, Roles, UsersInRoles.In my webpage I have some Comboboxes (i.e. DropDownList + TextBox), one for each Role which contain all the Users for that particular Role. What I would like each of them to contain instead is a full list of all users, but grouped and ordered like so...Users for only the given role (ordered by name) - My intention is to highlight these items.The rest of the users, with no repeats (ordered by name)I have been playing around with some SQL and VB trying to work my way toward a solution, but it is not clear yet which is the best approach, nor how to fully implement the solution. I have only figured out small bits and pieces. Forgive me for refraining from posting any code for now. I hoping for some fresh ideas and a clever solution that won't put a lot of demand on the server.
Users (ID, Username, Name)
Roles (ID, Role)
UsersInRoles (ID, UserID, RoleID)
And the query I wrote to that gave me all the subgroups I need to get to where I want I think.
select u.ID, Name, RoleID from UsersInRoles
inner join Users u on UserID = u.ID --This is only to return a name rather than ID
order by ReviewerRoleID, Name
Using the recommendation by Tim, I may use some codebehind like this to bind to each respective drop down list. The one concern I have is that I'm performing a query for each Role which poses a potential burden on the server every time the page is accessed by a user.
Private Sub PopulateUserInRoleCombobox(ByVal key As Integer, ByVal ddl As DropDownList)
Try
Dim dt As New DataTable
Using connection As New SqlConnection(ConfigurationManager.ConnectionStrings("tcomConnectionString").ConnectionString)
Dim spSelect As New SqlCommand("spGetUserInRoleList", connection)
[code]....
how best to write the Javascript for styling each list item depending on if it's a member of the given role or not.
View 1 Replies
Jan 12, 2010
i use a linq query to pull data from an xml inventory and place it in a a DGV, problem is the column ordering appears to be in the same order as the properties and fields in the row object class and not the order extracted from the xml with LINQ. I suppose i could rearrange the class so that it refects the column ordering i need but i'm wondering is there a way i can control programatically the order of the columns for my DGV? and why does it use the class structure rather than the query structure anyway? the class is done alphabetically as i wrote it with class diagram and class details, the LINQ query is in the order i need it in.
View 9 Replies
Oct 24, 2011
I am using a where comparer in the below snippet from my function.. I need to order or sort the returned items by one of the columns... I tried using .OrderBy(function(f) f.regDate) but that dont work at all... The part of the function in question looks like this:
[Code]...
View 1 Replies