Before getting started, I'm new to VB and currently using Visual Basic 2010 Express. Just want to make sure I've got this in the right forum and my apologies if I'm not.[code]...
I have 16 cities (those would be my string variables, right?) that I want to appear on my 16 labels in random order without repeating when I click the button. So basically label 1 can be any of my 16 cities, label 2 then will be any of 15 left available cities, and so on and so on.
I want to create small database which handles Student Attendance Record it will store the roll calls of students on daily basis that teachers collect from the students in the class on paper and then later transfer it on computer .So my database Must contain Month, Year, Program (BCS, BIT, MS, MCS, MIT etc) Batch (1st, 2nd etc) and Subject (English, Math, Geography etc)
Suppose I want to Search for the Attendance Sheet of any month, year, Program, Batch or Subject, it returns me the required dataSo i come up with the Datadase which includes 5 dimension tables and one fact tableDimension Tables1. Student (StudentID, Name, other Attributes)2. Program (Program_Name, other Attributes)3. Date (Date, Week, Month, Year)4. Batch (Batch_Number, Description)5. Subject (Subject_Name, other Attributes)Fact TableAttendanceTable ( StudentID, Program, Date, Batch, Subject, Status)but the problem come when certain columns are repeating again and again which is time consuming for database operator and shows inconsistent behaviour of database.
Look at it: my Fact table would be like this [code]....
problems:1. The StudentId is repeating which shouldn't (Primary Key),2.It wastes a lot of time coz i'm repeating the data again and again Like Program, Date and Batch which shouldn't be in consistent Databases.
I am able to only add controls that are of type TextBox. My question to you is, can I create a List to hold more than one control type or do I have to create a list for each control type?
II am trying to create a toggle button that switches a list to a range and then back to a list if needed. I am able to get it to do both but when I add an item to the list, convert to a range and then convert back to a list it leaves off the last items I entered.I tried to work in a code to select all cells but I must not be putting it in the right place.This is what I have so far:
i am trying to create a list of list in that i would like to work on multiple accounts at the same time. lets say i have 5 accounts. every account has a seperate name. each account has a few fields. so i though of having a list of bookkeeping (with 5 accounts) and a list of accounts (with expense, income, tax, status, etc as fields). [code] and if the idea of using list of list works how do i loop through both lists.
I would like to create list of child objects from list of parent object. Like If i have list of bookingroom which has one member room then i would like to create list of room from it.
eg. code:
Dim BookingRoomList As List(Of BookingRoom) = New List(Of BookingRoom) Dim RoomList As List(Of Room) = New List(Of Room) BookingRoomList = BookingRooms.FillGrid()
[Code]....
Is there any short cut method instead of iterating over for earch?
This is probably a really basic question - but I have a list of items (custom objects) being passed from one winform (.net 3.5) to another. I want to create a local list to store changes that only get persisted if the user clicks save. Currently if the user clicks cancel - the changes are still applied in the first form because I assume the objects are reference type.I have the save working as it calls a service layer to do the save and then refreshes the other form - but not the cancel.
How can I get a new distinct list from an existing list using LINQ? This is what I have so far and it is not distinct but does give me a new list.
Dim tmpQryColumn = (From a In _allAudits Select New CheckBoxListItem With {.Id = a.AuditColumn, .Name = a.AuditColumn} ).Distinct() _columnList = New List(Of CheckBoxListItem)(tmpQryColumn)
I am trying to create a VB.Net windows application that will list out IIS websites from a remote server when the user pushes a button as a means of verifying that a website got installed (from a previous section of the app...that part already works).I have googled all over the place and all I can seem to find is how to create a website or delete one, but not how to create a list.
So, I'm making my program which let's people auto-update other programs. Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "UpdateFiles" Label1.Text = "Finding updates..."'To do: Find all files in the folder, and let em update one at a time. Write names of Plugins to label2.text ProgressBar1.Maximum = 10000
I have a datagridview that is being loaded from a dataset. This dataset is the result of a SQL Statement (which could be my problem). The MS Access Client table is the main table and contains 2 records, however, after loading the dataset, the row count is 3.
Below is the procedure where I load the dataset and then the DGV.
Public Function LoadClientDataSet() Try strSQL = "SELECT A.clientID, A.name, B.phone, B.zipCode, B.stateCD " & _
If say in my datatable i have one column called order number and one column called line. Whats the best way to keep repeating the order number into everyrow, whilst incrementing the line number until i add a new value in the order number column.
I'm working on a Bingo game that generates a random letter and number.
Dim RandN As New Random() Dim randnumber = RandN.Next(1, 30) Dim RandL As New Random() Dim randletter = RandL.Next(1, 5)
All that works, but I'd like it not to repeat a combination. Any tips on how to do that?
Also the random numbers tend to be repetitive and the random letter is never 5. I think the random number has been 30 before but I can't be sure. Is there a way to fix that or just a better way to do the random numbers?
there are 8 text boxes where user should put 8 answers, but when he type one answer in one text box it cant be found in some other text box.Basically when button is clicked there should be check for repeated answers.
I searched the forum and the web in general but did not find anything that answered my question.I am trying to create repeating sections (much like you can do in InfoPath development) in VB. For example, I would have a dozen textboxes in a section which the user would be able to fill out.
I have built a blog platform in VB.NET where the audience are very young, and for some reason like to express their commitment by repeating sequences of characters in their comments.
Examples:
Hi!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3 LOLOLOLOLOLOLOLOLOLOLOLOLLOLOLOLOLOLOLOLOLOLOLOLOL ..and so on.
I don't want to filter this out completely, however, I would like to shorten it down to a maximum of 5 repeating characters or sequences in a row.I have no problem writing a function to handle a single repeating character. But what is the most effective way to filter out a repeating sequence as well?This is what I used earlier for the single repeating characters
Private Shared Function RemoveSequence(ByVal str As String) As String Dim sb As New System.Text.StringBuilder sb.Capacity = str.Length
I have a networkstream (using C#/VB.NET). while on reading values coming like this:
&% 68 kg K A&% 23 kg K A&% 174 kg K A &% 68 kg &% 34 kg K A&% 2334 kg K A&% 68 kg K A &% 68 kg K A &% 2348 kg K A&% 78 kg K A&% 28 kg K A&% 68 kg
The numerical(weight) value will be continuously varying.
Every time i am reading the starting of the stream differs. But the pattern remains the same. How to split that into '&% 78 kg K A' which represents one set.
How to extract the weight value from this stream using Regex or any other methods?
I need to count number of repeating and position where they repeat of all number in multidimensional array like this:
1 2 1 1 1 2 2 3 1
And result need to be:
Number 1- two times on position 1, one time on position 2, two times on position 3 Number 2- one time on position 1, two times on position 2, one times on position 3 Number 3- 0 on position 1, one time on position 2, 0 on position 3
i just want to know if there is a way to implement constraint for parameters with a repeating pattern. For that i meant something like this
ParamArray pattern as Integer()
if i need an integer, and any amount of the "pattern" (the pattern here is one integer). so basically the pattern accepts 1 integer and multiples of 1 integer, meaning 2 integers, 3 integers so is there a way to upgrade this so we can have this pattern:
Integer, Boolean
and any valid combinations for this pattern will include
I have an array that hold 6 random number, then this numbers are sorted from smallest to highest. My question is: How would I go about replacing any repeating numbers with a different random number. I.e. 1 3 7 2 2 9 is sorted into 1 2 2 3 7 9, but I would like to see one of the 2's replaces with a different number (that it is not currently in the array).
I have no code for this part - but the code for making the random number, storing them and sorting them works fine.
Basically I have 7 labels on a form that I randomize into numbers between 0 and 49. However some of the numbers repeat, like this 1,4,8,14,14,50,12. [Code]