No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
22 Posted Topics
Hi all, Need help, How can i read a dat file in c# and display data in datagridview. the data is in a comma format. Ie a,b,c,d etc....... many thanks,
Hi I have a datatable which i can save easily as xml using the following code. My problem is that i also have a textbox which i would like to save with this datatable. How can i save a datatable + textbox value as one XML file. Many thank for …
Hi I would like to change the value of a datarow in my datatable (DT) by using a numerical box which is set at 0 and moves up/down by 1 increments. I have tried the following but it seems unable to add the box value to the previous values. ie …
Hi i have a datatable. I have the following code. Is there a way that i can set the datarows to a module so that i can easily recall them. At the moment every calculation that is made i need to identify the datarows ie Dim row1 as datarow = …
Hi I have code as follows which works nicely but it loads a bit slow. I would like to have a progress bar while the file loads my code is as follows With OpenFileDialog1 .Filter = "Text files (*.txt)|*.txt|" & "All files|*.*" .FileName = "" If .ShowDialog() = DialogResult.OK Then …
Hi Is there a way that we can bind two textboxes together. I have two forms. The 1st form has textbox1 and is the main form. The second form is a edit form and it contains textbox2. I would like to open form2 and see the value of textbox1 and …
Hi I have a datagridview with a set of 10 rows for data entry. I have a loop that runs through the rows so I need to have a default cell value. can i set a hidden default value. I have the default value pre entered for all rows so …
Hi, I was wondering whether there is a way that i can use the bindingsource with a datagridview without a datatable. I have a datagridview that has two columns with a set number of rows and would like to bind it with two textboxes on a second form. Basically the …
Hi Im trying to achieve something which seems simple but is proving difficult. I have listview1 which will display the values of two textbox's when a button is clicked. I have listview2 which will make a calculation based on the two values in listview1 when a button is clicked. What …
Hi Is there a way that i can a loop in my program Dim Total1,Total2,Total3,total4,Total5,Total6,Total7 ,Total8,Total9,Total10 as integer For I = 0 to 100 Total1= InterestRate(i, Listview1.Items(0).SubItems(1).text,Listview1.items(0).subitems(2)) Total2= InterestRate(i,Listview1.items(1).subitems(1).text,Listview1.items(1).subitems(2)) Dim Item1 as new ListviewItem(i) Item1.Subitems.add(FormatCurrency(Total1+Total2,2) ListView2.Items.addrange(new listviewitem() {Item1}) Next This works because i have know how many rows have data …
Hi Everyone I have a listbox that calculates interest rates the code is as follows:- dim amount as double = val(textbox2.text) dim counter as integer for counter = 1 to 10 listbox1.items.add(counter & " % " & formatcurrency((amount*counter)/100)) next counter This works great but i would like to use a …
Hi I have a one form with code that has lots of subs and was wondering if i can shift some of these subs to a class or module to make the main form coding less clutered. Thanks
Hi All I have a unbound datagridview which i use to enter data. I would like to make calculations using individual cell data as follows:- Datagridview1.rows(0).cells(1).value = datagridview1.rows(1).cells(1).value + datagridview1.rows(1).cells(2).value This works fine but if im using lots of cells it can be quite confusing .I was wondering if there …
Hi, Is there a frequency function in C# like there is in Excel. I need to show a distribution chart in bell curve form. Thanks
Hi im new to c#.. just wondering how to convert this vba code:- [code] Sub AddUP() x = 1 For i = 2 To 100 x = x + i Next i ActiveCell.Value = x End Sub [/code] Best Regards
HI everyone, I have the following listbox code.. listBox1.Items.AddRange(new object[] { "","Average:\t" + textbox1.text}); How can i change the font/bold/underline to some items i have in this listbox. thanks.
Hi all, Im trying to work something out. I have the following:- datagridview 1 column1 column2 1 56 2 76 3 23 4 13 5 24 I want to create another datagridview based on the datagridview 1 but i would like to have a loop that keeps column1 as it …
Hi I would like to write a simple public void function that will allow me to divide datagridview.rows[i].cells[0].value with datagridview.rows[i-1].cells[0].value. How can i loop this in the function. thanks
Hi Everyone, Im a little confused with arrays[] I have a set of numbers in a datagridview and wish to write a function which includes these numbers. I know i can use double[] arrayOfDoubles = {2.5,2.6,2.8,3.2,3.8,3.9,4.0,4.3,4.4,4.8} etc representing each datagrid value individually. just wondering if there is a easier way …
Ive been trying to find a solution to a very annoying problem with my combobox. When i select a item on the list the combobox is the list is still active. It is annoying because when i scoll my mouse the combox item that ive selected changes. Any thoughts on …
Hi, I have a set of random numbers in a datagridview. Im trying to figure out the easiest way that each time i loop through the numbers x amount of times and it somehow stores the last value so that i can average the final number. My datagrid view is …
Hi, Ive been trying to calculate standard deviation from the data in my datagridview.I have manage to work out how to get to the last value but would like to display in a chart so i need to have some kind of running total like you have in Excel. For …
The End.
Mikey12345