Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

I have the following code for adding information from and array to a listbox

[private void buttonAdd_Click(object sender, EventArgs e)
{
//add tracks to my tracks Add Tracks list box and tracks list box

myTracksString[nextAvailbleRow, 0] = textBoxArtist.Text;
myTracksString[nextAvailbleRow, 1] = textBoxSongName.Text;
myTracksString[nextAvailbleRow, 2] = ((numericUpDownHours.Value * 3600) + (numericUpDownMinutes.Value * 60) + numericUpDownSeconds.Value).ToString();
nextAvailbleRow++;

textBoxSongName.Text = "";
textBoxArtist.Text = "";
numericUpDownHours.Value = 0;
numericUpDownMinutes.Value = 0;
numericUpDownSeconds.Value = 0;

listBoxAddTrack.Items.Clear();

for (int indexInteger = 0; indexInteger <= 199; indexInteger++)
{
listBoxAddTrack.Items.Add(myTracksString[indexInteger, 0] + " " + myTracksString[indexInteger, 1] + " " + myTracksString[indexInteger, 2]);

}
]
The issue I have is when I add the information it doesn't line up in columns i.e. row 1 has 3 columns but then in row 2 the columns line up dif
Problem: I use a datagridview and connect via tasks to an access db. So I get a ledenTableAdapter and more specialized objects. Now I want to save changes from the dgv to the DB. It does not work with ledenTableAdapter.Update . I have no idea how I can make it work...
Some of my windows services will not run I then get this error message "an excepion occurred during the install phase system.component . model.win32exception the spesified service already exist."
Sir i want to make a programe.please help me how can i make this.. Programe is that I want to make mobile database using the c sharp.If I enter the ten digit mobile number records of the person found means name of person and address of person and other contact number found. So sir help me how can i make this.
I nedd to build a program that takes in input five processes with the corresponding needed information (Arrival time, Burst time, and Priority). The program’s output should be the Grant Chart of a priority scheduling algorithm. The user has the choice between three kinds of priority scheduling
algorithms:
1. Non‐preemptive; without aging
2. Preemptive; without aging
3. Non‐preemptive; with aging.
Define a console-program to create an array of integers. Initialize the array and assign the values in array. Define a method to pass the array and modify array elements. Display array elements by using for-each loop
Define a console application with a class ‘Employee’ with variables as emp_id (int), name (String) and Grade (double).Define five different constructors for this class to initialize the variable values. Define Finalize method to display the Grade value. Define a for loop in Main for 4 iterations and inside for loop create Employee object. After the for loop call Garbage Collector.
Create a console application to display different messages depending onthe command line argument value. Use Select-case statements.(similar toswitch block)
Define a console application to display all the arguments passed to command line while running the application. The user can pass any number of arguments that should be displayed. Use length property of array and for-next loop. If there are no arguments in command line display message ‘No Arguments’
Hello,
I keep getting the following error when running my program: "Input string was not in a correct format."
The error is thrown before I even get a chance enter an input. Please help. I'm going crazy. Thanks.

System.Console.Write("Enter citation number: ");
citationNumber = int.Parse(System.Console.ReadLine());
LATEST TUTORIALS
APPROVED BY CLIENTS