Even Dispersal - Number Of Race Groups
Aug 1, 2011
For a race, I am trying to evenly disperse the heats for smaller race groups within those of larger race groups. I do not want the smaller groups to finish too early and I am also trying to minimize groups running back to back heats.
As an example:
Group A has 4 heats
Group B has 2 heats
Group C has 1 heat
The resulting schedule would look something like this:
A1 B1 A2 C1 A3 B2 A4
To complicate things, there could be any number of race groups and each race group can have any number of heats.
View 14 Replies
ADVERTISEMENT
Jul 8, 2009
I'm designing a program using VS.NET 2008 and Crystal Reports 2008, and I want to give the user the option to set how many groups per page is viewed. I know I can do it using the Group Expert, but is it possible to set it programmatically in VS.NET?
View 1 Replies
Jan 21, 2012
I use a worker thread to do the procedure of query and fill the datasetAnd I use 3rd party component called DevExpress XtraGrid: GridControl to view the query outputI don't forget to use invoke and delegate to set the GridControl.datasourceOn Timer.Tick(), the thread is started and the procedure is called user has scrolled down the GridControl, even only one scroll value instead,and then the Timer.Tick() fired, I gottwo errors randomly. Mostly aNullReferenceException error and eventually anInvalidOperationException error
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.UpdateCellAppearance(GridCellInfo
[code].....
View 1 Replies
Dec 29, 2011
Basic out line connecting to an irc server. We connect to this server using a TCP client on a separate thread from the UI. Now the raw numeric for the MOTD is "372" so when our streamreader reads this value from the worker thread it raises it's value and displays it to a RTB. Now my issue. When i connect to a server i wait till raw "372" before i check to see if i need to join a channel. But a lot of servers have more then then one line MOTD each sending there own "372". So if a server has a long MOTD that could mean over 100 "372".
Now while it does not effect the UI of my app i wish to move the "372" to it's own thread from the current worker thread. But thats the problem. How do i move the MOTD to it's own thread when it's still being read.
View 4 Replies
Jan 23, 2009
I have been given an assignment for my VB.Net class. Basically,given the race car's weight, horsepower and distance traveled,determine the time.I am going a couple of steps further...
(1) I am including two pictures of competing race cars at the staging area and a short track to travel (makes the assignment more interesting). I would like to know if it is possible to provide an animated light sequence of the Race Tree (staging lights, 3 sets of amber lights, and the green light) with a timer activating the start of the race.
(2) I would also like to incorporate a "sound" track of a race car as the two race cars proceed to the finish line. I realize that the user may enter any distance for the race. Regardless of the amount of time it takes to run the track (if given a long distance),I'm going to calculate the total time to span just 15 sec. Again, I would like to know if it's possible to incorporate these two
separate modules into my program using the Window's form application?Also, what resources should I study to gain knowledge on how to
execute the two modules?
View 1 Replies
Mar 30, 2009
I have a legacy data table in SQL Server 2005 that has a PK with no identity/autoincrement and no power to implement one. As a result, I am forced to create new records in ASP.NET manually via the ole "SELECT MAX(id) + 1 FROM table"-before-insert technique.Obviously this creates a race condition on the ID in the event of simultaneous inserts.
What's the best way to gracefully resolve the event of a race collision? I'm looking for VB.NET or C# code ideas along the lines of detecting a collision and then re-attempting the failed insert by getting yet another max(id) + 1. Can this be done?
View 7 Replies
Jun 7, 2012
im having problems with IP To country code, it checks country on .dat file, and it gives this error.Probable I/O race condition detected while copying memory. The I/O package is not thread safe by default. In multithreaded applications, a stream must be accessed in a thread-safe way, such as a thread-safe wrapper returned by TextReader's or TextWriter's Synchronized methods. This also applies to classes like StreamWriter and StreamReader.
My
Dim country As String = Me.geo.lookupCountryName(DataGridView1.Item(1, count).Value)
DataGridView1.Item(4, count).Value = country.ToString
View 3 Replies
Apr 25, 2009
I'm throwing errors when I call this function before running my calculations:
Function CalcValidation() As Boolean
' Didn't want to leave something out, so I needed a validation to ensure that a selection
' had been made for each component.
[code]....
View 1 Replies
Mar 4, 2011
I am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number
View 1 Replies
Dec 29, 2011
I have a block of related sub routines I would like to "group" together within class to make navigating a littel easier. When I say group, I mean achieve the same functionality of being able collapse and expand a block of code as would with single procedure or class. Two alternative ways I can think to accomplish this is either use a partial class for those procedures or use namespace. I just wanted to see if VS for VB.Net had another way to be able group and collapse blocks of procedures.
View 3 Replies
Jan 9, 2010
I have a contextmenustrip. I want to create many groups items in that contextmenu. I mean Line which separate each groups. I can do that in Dotnetbar. but with contextmenu in win form I cant.
View 2 Replies
Apr 15, 2012
I have a string of hexadecimal numbers that is generated by the program which I created.
B 53 D0 A1 58 3 DA AF E2 15 9E E 68 F0 65
Given by:
HexText = HexText & " " 'the space makes the characters separated into groups
I want the single characters "B" and "E" would both have 0's before them so that the text is all in groups of twos. How can this be done?
0B 53 D0 A1 58 3 DA AF E2 15 9E 0E 68 F0 65
instead of:
B 53 D0 A1 58 3 DA AF E2 15 9E E 68 F0 65
I was thinking I might be able to do a for Loop and go through the text and if it's a single character add a 0 before but don't understand the exact syntax behind it:
For i = 1 to Len(HexText.Text)
'If a character in a group of two of the string is not equal to a hexadecimal number, make that character equal to 0.
Next
View 4 Replies
Mar 16, 2012
I would like to get the first N groups elements with Linq of a ObservableCollection, an example trying to get the first 2 groups:
Data example:
GROUP1 item1
GROUP1 item2
GROUP1 item3
GROUP2 item1
[code]....
View 5 Replies
Oct 4, 2011
I state that I am Italian and I am using a translator.
I have a problem that I can not fix.
I have a listview with a group. The property view is SmallIcon
On my windows xp everything works perfectly, but I tried the same thing on Windows 7, and I have this problem: When I add a bit of items in the listview I have some strange display problems, no errors.I made some screenshots to let you know
View 4 Replies
Aug 7, 2009
I want to know if it is possible to nest groups within a listview. I started with a listview in my application that contains list types and this worked fine. I have now been asked to group by Product, then Week Commencing and finally by List Type; This would envolve a 3 group nest and i just cant figure out how to do it (if at all possible).
like so...
Rods
1st Jan 2009
Shakespeare
listview items 1
[CODE]...
If what I am trying to accomplish is beyond the listview control, can anyone suggest a possible avenue to explore?
View 4 Replies
May 16, 2011
How, if it's possible, you can make a combobox have groups like the html example below:
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
[Code] .....
View 5 Replies
Jul 20, 2010
I am currently trying to separate my text into groups of 5.For example.
Original text is ABCDEFGHIJK.I am trying to make the output to something like this ABCDE FGHIJ K.Using textbox for it
View 2 Replies
Aug 7, 2009
Is there a way to delete local groups through vb.net? i.e. an equivelant to the c# function NetLocalGroupDel?
View 1 Replies
Sep 18, 2008
I am writing an application where active directory validation is required before accessing the main form. There are 2 forms. Form 2 is the login form and form 1 is the main form. The main form would have a simple look, with about 10 checkboxes.I have managed to get the authentication working great but what now need to do is validate groups. Say if "user A" is in "groups A,B and C" and "user B" is in "groups B and C" i would like for them to use my login form, once they log in, the groups that they are members of would appear in a listbox on either form, (whichever is easiest) and is hidden from the user ... if they are in group A, then the main form would show only the first 3 checkboxes, if they are in group B, then it would show the 4th and 5th checkboxes, if in both groups then show the first 5 checkboxes etc.It is a simple idea, but is complicated to explain.As i said, the login form is working with the active directory... here is the code for the login form:[code]Form1 in the code is my main form, and wish for it to change according to which groups the user is in.
View 9 Replies
Jun 2, 2011
Any snippet of code for adding groups at run-time to a listview. I am currently listing books (and stats) without groups via the following code which is executed in a loop (one pass per book title).
item = New ListViewItem
item.Text = seq.ToString
item.SubItems.Add(Mid(titlenode.Nodes(N_CSTAT).Text, 3))
item.SubItems.Add(Mid(titlenode.Nodes(N_JSTAT).Text, 3))
item.SubItems.Add(titlenode.Nodes(N_PUBLISHED).Text)
[Code] .....
The listview is set to details view. What I want to do is group the book titles by series. For example, books by Michael Connelly may be grouped by "Harry Bosch", "Jack McEvoy", "Mickey Haller", etc. I can create a new group for each new series by
groupnum += 1
group = New ListViewGroup("group" & groupnum, _
System.Windows.Forms.HorizontalAlignment.Left)
group.Name = "group" & groupnum
group.Header = series
But I cannot find how to add the group to the listview and add the new item to the associated group.
View 2 Replies
Nov 25, 2010
on button.click event,Dim category As New ListViewGroup(cbType.Text) If Listview.Groups.Contains(category) Then Arggh! this should work. Listview.Items.Add(lvi).Group = category
Else
Listview.Groups.Add(category)
Listview.Items.Add(lvi).Group = category
End If
If cbType.Text was "Dog", it will add another "dog" group header every time I add an item having selected dog, when I want to add the item to the existing dog group.
View 3 Replies
May 20, 2011
does a big business in shirts, especially for groups and teams. They need a project that will calculate the price for individual orders, as well as a summary for all orders.The store employee will enter the orders in an order form that has text boxes for customer name and order number. To specify the shirts, use a text box for the quantity, radio buttons to select the size (small, medium, large, extra large, and XXL), and check boxes to specify a monogram and/or a pocket. Display the shirt price for the current order and the order total in labels.
Include buttons to add a shirt to an order, clear the current item, complete the order, and display the summary of all orders. Do not allow the summary to display if the current order is not complete. Also, disable the text boxes for customer name and order number after an order is started; enable them again when the user clicks on the button to begin a new order. Confirm the operation before clearing the current order.
When the user adds shirts to an order, validate the quantity, which must be greater than zero. If the entry does not pass the validation, do not perform any calculation but display a message box and allow the user to correct the value. Determine the price of the shirts from the radio buttons and check boxes for the monogram and pockets. Multiply the quantity by the price to determine the extended price, and add to the order total and summary total
The assignment also requires a pop up message "Daily Summary" with total shirts sold, total sales, and average sale per customer.So far I have this as my code but I am not sure what needs to change in order to display the correct total shirts- mine only displays the last accepted shirt order.
[Code]...
View 1 Replies
Feb 13, 2009
I am using datagridview I want to split the some rows into two groups?
View 1 Replies
Jun 29, 2010
I'm building an control interface for a system that consists of 1-4 modules. In my interface, each module has its own control set, grouped in a groupbox. I only want to show the control groups for the modules that are actually connected and hide the rest.
This is easy to do with the visble property.
I also want all of the groups to be stacked vertically in the UI such that when one is hidden, the rest below it shift up into its place as if you deleted a row in a table. It needs to be able to come back just as easily.
View 1 Replies
Sep 7, 2009
I have a group of graphic ellipses that I need to arrange in a group. 12 groups actually. It's a matrix for traing guitar students. I have the locations of the "G" notes grouped so far, but not under the title "G notes group". Since I can't use ellipses outside of the paint event handler, I have to rename them, I guess in the event handler...
Here's what I have so far...
Dim
GroupG As e.Graphics.FillEllipse(Brushes.Green, 84, 6, 10, 10) And
e.Graphics.FillEllipse(Brushes.Green, 84, 106, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 24, 46, 10, 10)
e.Graphics.FillEllipse(Brushes.Green, 124, 66, 10, 10)
[Code] .....
The paint event handler does not accept my attempts to declare them as a group, & this is my first ever project with graphics in an active state. I haven't found any where to turn for info, tried Google, tried bob Powell's GDI+ site, Tried some free ebooks, nowhere I have looked seem to cover this aspect. I need some direction to turn.
View 3 Replies
Jul 27, 2009
I need to use RegEx.Replace to replace only certain named groups in my input string.
So I might have a pattern like:
"^(?<NoReplace>.+)(?<FirstPeriod>(d{2})|CM|RM|PM|CN|RN){1}(?<LastPeriod>(d{2})|CM|RM|PM|CN|RN){1}((#(?<NumberFormat>[#,.+-%0]+))*)$"
Tokens such as CM, RM are being replaced using Regex.Replace with a MatchEvaluator. However, this should only be replacing characters in the FirstPeriod and LastPeriod groups.
Example input:
"FIELDCNS 01CM"
Desired output:
[Code]....
Is this possible or am I best just pulling out the parts I want to replace and re-assembling afterwards?
View 5 Replies
Nov 22, 2010
I am looking to remove groups of pixels that are less than 10x10 in size. The pixels are generated from scanned fax reports and are solid black, so they should be able to weed out easily. Our fax machine is rather old, and it generates random block dots along our documents. In other words, I have several images with random solid black dots that need to be removed.
View 4 Replies
Nov 1, 2007
I have looked over the code in the Active Directory Tutorial, but am having trouble understanding how to read through the groups to list their members.Our domain is large and I only want to list groups in an Organizational Unit called "LocationName".
View 1 Replies
Jul 17, 2009
I need a simple way to list all of the groups in Active Directory using VB.NET, either on a web page or winform. I've been trying to figure it out, but I've never used DirectoryServices before and I haven't been able to find a good example to learn from.
View 1 Replies
Oct 19, 2009
I'm looking for the code to list all users in the Administrators group on a local machine. I had something like that for VB script and I converted it to work under .NET but it's slow and not the thing I want.
Dim o_adsi_group As Object
o_adsi_group = GetObject("WinNT://" & System.Net.Dns.GetHostName & "/Administrators,group")
[code].....
View 2 Replies