Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~6K People Reached
Favorite Forums

22 Posted Topics

Member Avatar for Mikey12345

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,

Member Avatar for dskamburapola
0
797
Member Avatar for Mikey12345

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 …

Member Avatar for TnTinMN
0
442
Member Avatar for Mikey12345

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 …

Member Avatar for TnTinMN
0
162
Member Avatar for Mikey12345

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 = …

Member Avatar for tinstaafl
0
134
Member Avatar for Mikey12345

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 …

Member Avatar for tinstaafl
0
407
Member Avatar for Mikey12345

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 …

Member Avatar for TnTinMN
0
252
Member Avatar for Mikey12345

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 …

Member Avatar for G_Waddell
0
56
Member Avatar for Mikey12345

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 …

Member Avatar for Pgmer
0
121
Member Avatar for Mikey12345

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 …

Member Avatar for Reverend Jim
0
180
Member Avatar for Mikey12345

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 …

Member Avatar for Mikey12345
0
151
Member Avatar for Mikey12345

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 …

Member Avatar for Mikey12345
0
143
Member Avatar for Mikey12345

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

Member Avatar for poojavb
0
247
Member Avatar for Mikey12345

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 …

Member Avatar for Reverend Jim
0
190
Member Avatar for Mikey12345

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

Member Avatar for ddanbe
0
1K
Member Avatar for Mikey12345

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

Member Avatar for Zinderin
0
181
Member Avatar for Mikey12345

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.

Member Avatar for nick.crane
0
62
Member Avatar for Mikey12345

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 …

Member Avatar for andrewll2
0
112
Member Avatar for Mikey12345

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

Member Avatar for kvprajapati
0
66
Member Avatar for Mikey12345

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 …

Member Avatar for nick.crane
0
104
Member Avatar for Mikey12345

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 …

Member Avatar for sknake
0
131
Member Avatar for Mikey12345

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 …

Member Avatar for Ketsuekiame
0
81
Member Avatar for Mikey12345

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 …

Member Avatar for kvprajapati
0
106

The End.