Get Hits On Searches No Matches Have Answered Quandary?
Mar 19, 2009
I have searched the forums and although i get hits on my searches no matches have answered my quandary. I am using visual studio 2008
So to the question: I have 10 label's named label1, label2 label3 etc. and i have a dataset with 2 fields and 10 rows (2x10) i would like to create a for loop like the following:
for x = 1 to 10
label(x) = ds.row(x).field(0)
next
View 3 Replies
ADVERTISEMENT
Jan 14, 2009
I've got a large and complex database system that is about to get even more complex, and I'm having trouble coming up with a reasonable way to model the new requirements so as to minimize the performance hit.For simplicity's sake, I'm going to use the example of certification exams, although it's not a perfect analogy for my system. So we have the following tables:
- Person
- Certification
- Exam
- Certification_Exams (join table indicating which exams are required per cert)
- Person_Exams (join table indicating which exams a person has taken)
Given that model, we can easily show that Certification A requires Exam 1, and Certification B requires Exam 2 and Exam 3.We can also determine whether a person is certified by checking Person_Exams to see if they have passed all exams required for the certification we're querying. (Note that we are not directly storing certifications for a person; these must be derived. That's one of the areas where the cert exam analogy doesn't quite match my real-life scenario, so please accept that there's a good business reason for it.In my world, the cert requirements are going to change frequently, so a person might get suddenly "un-certified.")Now enter the new requirement: We now need to be able to indicate that Certification A could be satisfied by either Exam 1 or Exam 4.And furthermore, Certification B always requires Exam 2 but also requires either Exam 3 or the combination of Exams 5, 6, and 7.I've come up with a couple different approaches so far, but the subsequent queries to be able to tell whether someone meets the criteria for a given certification are then incredibly complex.
View 11 Replies
May 13, 2009
I was wondering what the easiest way is to get a portion of text from a string for example, you have:
"example1,example2,example3"
And i need to be able to get all three of the items separate:
"example1"
"example2"
"example3"
The length and number of items will change, I'm using a listview subitem
View 2 Replies
Dec 8, 2009
I am working on a small program that reads items from a text file. The items are the split up into data and used to fill the menuItem() as menuItems. Each instance of menuItem has 3 properties (name(string), price(double), and menuType(string)). As an item is selected, it's price is added to the Order collection with :
Order.Add(menuItem(index).price)
The running total of the sum of the selected items is to be displayed in text box. I have,
txtTotal.Text = FormatCurrency(runningTotal()) ' with runningTotal as a function
Function runningTotal()
For Each menuItem As MenuItems In Order
[code]....
However, when run, this error appears. This is new coding to me, so if I'm just way off, let me know. Anywho, I tried with & without the CDbl. It doesn't seem to have any effect.
View 1 Replies
Mar 24, 2010
I cant get the objectGuid from a computer via Active Directory.I cant work out the converstion to a string..I have added some code below to show where I am going wrong..It works fine write up until it tries to update the tree view with the "objectGuid".[code]
View 5 Replies
Oct 13, 2010
I have a MyDataGridView.DataSource = MyDataSet.Table(0) and the AllowUserToAddRows = True Once the user have finished typing in the column zero I have to check if they didn't type invalid stuff. It have to be numeric and 4 chars long.
the code is:
Private Sub Result_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles Result.CellEndEdit
If e.ColumnIndex = 0 Then
[code]....
And it is not all the time, but depending on how quick and stupid (i'm expecting stupid users, as usual) I click on the previous row or the AddNewRow row I get a the damn System.NullReferenceException on my If line:
If Not (IsNumeric(Result.Rows(e.RowIndex).Cells(0).Value) And Result.Rows(e.RowIndex).Cells(0).Value.ToString.Length = 4) Then I'm really not in the mood of just put a Try Catch, as it looks like bad programming in this case. I've already tried a couple variations with "is nothing" but no success?How could test it won't cause a Null exception before testing the row value?
View 4 Replies
Feb 20, 2011
So i make a program that saves text files in one folder, but what i need is to make the file limit in folder..For example, i have limit 200 files, and when i add a new file, how do i delete the oldest one, or if the limit is changed to 100, how do i delete all the old ones, to make the limit 100?
View 2 Replies
Aug 12, 2010
I'm using My.Settings to store some text information which will be displayed to the user under certain conditions. What I'd like to know is whether part of the text (not all of it) can be formatted in bold?
The reason I'm storing in My.Settings is because it can be customized but not to the extent where I need to store it in a database. And while I'm at it, is it possible to format parts of MessageBox text and labels in bold, or is this an all or not at all situation i.e. changing the font property?
View 2 Replies
Aug 11, 2009
I'm currently in a situation where I need to uninstall a certain program from a local computer (and automatically install a newer version of that program), because this old version of the program randomly causes my program to malfunction I have found this article:CodeProject: How to list all Programs installed on Computer and Uninstall Them . Free source code and programming help This shows how to start the uninstall program for the programs I need to uninstall, which is a good start. I also have created all the code needed to install the newer version of the program But as this program will be used by users, I want to minimize the number of times the users has to do something. So far the only popup that I haven't been able to get rid of is when the uninstall program is being run how to force it to uninstall without having the program ask for confirmation?
View 4 Replies
Sep 1, 2010
i want an application (i do not care if it is a web app or a desktop app) that i will insert a mp3 file and a .txt list of phone and it will automatically call each phone one by one and will play the recorded message that will exist in the .mp3 file.i also want to be able to see how many phones that the application called answered the phone and how many did not.Topic closed for blatantly violating the rules. If you "want an application", post a request in the "Post a Job" forum. [rules][/rules]
View 1 Replies
Sep 22, 2009
I am making a custom file explorer, and I am trying to make back and forward buttons, all I need to happen is when you hit back, it returns the last directory you were in, when you hit forward it returns the directories you were in before hitting back, and when entering a new directory, it erases all of the Forward data. I am not sure how to accomplish this
View 2 Replies
Dec 3, 2010
I have a program with which I can open a second form on a beamer, this works perfect, but what I do notice it that on the taskbar (I have windows 7) I see the main icon of the app but also the form that is created.What I would like is that the second icon is not displayed on the taskbar thumbnails, this way I can't close the second form by the X but only by a button on the main app.
View 2 Replies
Jan 14, 2009
I've got this variable iCurrentScreen. I've got a breakpoint on the line of code that writes something to the event log and I've made that breakpoint conditional so it only breaks when iCurrentScreen =1. However, whatever's setting it back to 1 I don't seem to be able to track down. Before I go putting breakpoints on every line of code that changes the value of iCurrentScreen . is there a way to tell the system to let me know when iCurrentScreen becomes 1 no matter where it happens?
View 11 Replies
Jun 4, 2012
Trying to move a image up by 1 until it hits 20. This is the code I made myse lf but the image is not showing up. [code]
View 4 Replies
Aug 5, 2009
i have a listbox that auto scrolls trough about 100 or more items in my listbox, but once it hits the 100th item in the listbox it gives me an error this is because the isn't +1 beyond 100 (if that makes any since to you)
View 2 Replies
Jan 30, 2009
I spent some time with data modems till I realized it's a voice modem that I'm going to need in my application. I see that there are some other commands for a voice modem, although nothing very elaborate. I would imagine you make the call as you would in a data modem ATDT etc and it looks like there is really just one command to send audio...
AT+VTX
AT#VTX
Not sure what this is all about except maybe just different standards? Still not sure about how to detect when the call is answered though. I won't be talking to another modem. Maybe the serial port itself has a pin change or something? You would think there would be a bit "somewhere" that the modem would generate when it quits ringing. I may have build my own outboard box to do this. (easy enough -- probably more reliable too -- modems sure need rebooting a lot it seems).
Here is the goal though --Voice modem calls out, call is answered, and I inject my audio from the PC sound card for a minute or so and then tell the modem to hangup.
View 5 Replies
Mar 2, 2011
I have a ASP.NET VB form connected to a database. In the database, there is a field called TourCount. This count decrimates by 1 everytime a user submits a form.
When the TourCount reaches 0, all registrations must close. However, at the moment, TourCount continues to decrimate into negative numbers. When TourCount reaches 0, I would like a message to appear above the form saying "Registration Closed".
I have tried a few things, but I'm not sure where it's going. I don't receive a config error message, but it's never functioning correctly either. I'm not sure where or what type of script I should be using. My logic says, when TourCount is less than or equal to zero, display a text string via the id called "Message".[code]...
View 1 Replies
Jun 12, 2009
I got this so far but I cant get it to the next item and stop, then when the progressbar reaches 100% go to the next....
'Declare a switch variable
Dim startAuto As Boolean = False
'SaveButton[code......
View 2 Replies
Apr 7, 2011
How i can create a button as soon as I squeeze him, he will erase the last letter written?exactly like BackSpace
View 4 Replies
Apr 16, 2010
i want to find out the websites that are people are coming from when they come on my website. so lets say someone comes from google.com or yahoo.com or someone came through email or somewhere else. how can i do this?
View 2 Replies
Mar 1, 2010
I have a simple vb.net app written using MS Visual Studio 2008 with SP1 and .NET framework version 3.5. This app simply queries a MySQL table into a dataset, makes a csv file from that data and then uses Oracle SQL*LDR to load a local Oracle table. Nice and simple.
This app runs fine on just about any computer or workstation I have tested it on with no issues but when I move it to the workstation it will live on...it shuts down just before it hits the load event. I have tried to capture any errors but so far there do not seem to be any errors generated at any point...it simply terminates with no explanation.
I even went so far as to recreate the project from scratch and still got the same result. this phenomenon only seems to occur on the very pc I am expected to deploy to.
the only thing I know for sure is that it is getting at least as far as the declaration section of the form. Once it has dimmed all objects/variables/etc..it seems to just shut down.
View 2 Replies
Apr 30, 2011
what is the code to get total number of hits occured on web page?
View 1 Replies
Apr 21, 2009
hit the space bar every * seconds. When you hold down a key it will spam 3 times every 2 seconds. Or whenever you press space (meaning the key). I need the exact codes. I've tried Sendkeys.send {"Space"} Etc.
I've been trying for a while. I cant seem to figure it out. Please simple codes if possible.
View 3 Replies
Dec 6, 2009
I just want to alert when user hit "enter" key.
I tried this one in keyup event,
If e.KeyCode = Keys.Enter Then
MsgBox("msg")
End If
It didnt work, is that wrong ?
View 5 Replies
Jan 15, 2012
I have an autocomplete textbox in vb.net. It is working fine, but now I need to pop up the window again when the user hits enter or double clicks. So far, I know that when the user hits enter, the keydown event raises with e.kecode = 13. I guess my code would go here. My problem is how do I tell autocomplete to start again after the user hits enter??
View 11 Replies
May 30, 2010
I am simply trying to make the snake grow when it hits food, however, I am at a stand still.
[Code]...
View 2 Replies
Mar 11, 2011
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If ListBox1.SelectedIndex = (last item) Then
[code].....
View 13 Replies
Apr 29, 2011
im looking for some code that can enable a e.keyvalue event when a player hits an object on form but i also want the form to load with the e.keyvalue event disabled
View 6 Replies
Apr 14, 2009
EDIT: Note. I should have mentioned I'm not interested in using the .Select, DataRowView, RowFind, I wrote a function to search a datatable for terms in an array. I then return the datatable as a dataset so it can be bound to a DataGridView. Does anyone have any optimization ideas? Since this is a real-time search (every term typed instantly searches) I'd like to make the function as fast as possible. The speed is actually pretty good already but I figured I'd be worth asking you all if there was anything else I could change about it.
[Code]...
View 2 Replies
Mar 21, 2010
I've got a working code that searches the a textbox, but! what it does is search for example lets say I have a richtextbox and it contains the string Hello Hello when I search for hel it will only highlight hel I want it to highlight the entire wo
Dim search As String = ""
Dim myIndexes As New List(Of Integer)
Dim myLen As Integer = 0
[code].....
View 1 Replies