Answer Questions
overgaard bind data to combobox makes selected index change
Why is it that if I have this code: comboBox1.BeginUpdate(); for (int i=0;i<10;i++) comboBox1.Items.Add(i); comboBox1.EndUpdate(); The selected indexChanged is not fired but with this code it is: comboBox1.BeginUpdate(); DataSet ds = new DataSet(); ds.ReadXml("sites.xml"); comboBox1.DataSour ...Show All
Lee Alexander binding datagridview with two tables
Hi all. Im trying to do a dgv with fields coming from two tables as this: Table1(Customers) CostumerID (Int, Primary) CostumerName (String) Table2(Orders) OrderID(int, Primary) CustomerID (int) OrderDate (Date) I want my datagridview to display the fields as follows, mixing the fields from those tables. OrderID, OrderDate, CustomerID(table2), CustomerName i can do this by generating an access view, add to my dataset&n ...Show All
jose-luisp Aligning Text
I have a CSV file which has 2 columns. Column 1 has anywhere between 5 & 30 characters & column 2 can have between 15 & 50 characters I want to format this data: From: ----- Column one's data Columns one's value here Column two's data here Columns two's value here Column three's data Columns three's value here To: ---- Column one's data &nb ...Show All
Xakee listview 2.
hello, once again with the listview control in vb2005 beta 2... How can I select any item of it via code I mean i got an other listview (called B) and i wanna select the same item in the prev listview (called A) if the selection changes in B. Is this possible and if it is, how can i do this Hi, Try this: listView1.Items[3].Selected = true; cheers, Paul June A. Domag thank you ...Show All
Jesper_ Selecting A List View Item
I have the hitch selecting a list view item. I want a user data entry form to dispaly when a user double clicks a listview item. Prospery - You should be able to hook up the MouseDoubleClick event on the ListView by goin to the Property Pane and selecting the small lightning bolt to look at the available events. Then double-click beside MouseDoubleClick to generate the code for the event handler and go directly to it. You ...Show All
Guns Crystal Reports HELP?
Where is it in VB.net I have the standard version and need to make a report but cannot find any way of doing it in VB can anyone help me In your visual basic project you can go to Project/Add component. Then you' ...Show All
aosman MSVidCtl
HI, i’m try to use the MSVidCtl on vb.net. i read all msdn but i wont vb.net, not c#.net and i downloaded the directx sdk. On vb.net, i coudn’t have access to the systemtunespace. i make a lot of queries on internet about this subject but it is everythink about vb6. anyone have some sample knolege and code to share Thanks yupypt ...Show All
Jeff Lewis Unselect item from a listbox
When data is retrieved from my database and placed in a listbox, the first item is always selected. However, I do not want that behavior. How do you programatically unselect items in a listbox I know how to do it using a webform listbox, ...Show All
borisov How to add the items from one list box to another
I have to listboxes listbox1 and Listbox2 Two buttons Add and AddAll When I clcik Add button The Item selected in the listbox1 should get added to the listbox2 and it should be removed from listbox1 If the Item is not selected it should give error& ...Show All
Punpromk Help me to Update data in Editable DataGrid
I load data to my datagrid: string sql = "SELECT * FROM tbUser"; myConnection = new SqlConnection(MyData.ConnectionString); myDa = new SqlDataAdapter(sql,myConnection); myDs = new DataSet(); myDa.Fill(myDs,"MyUser"); dataGrid1.DataSource=myDs; dataGrid1.DataMember="MyUser"; that Ok! But I want to save my data in datagrid when I change or add new record! (I maybe change some records!) Help me! Thanks before! ...Show All
Demian F. Ituarte Delete multiple directory in file system
Is there any way we can delete multiple directory at the same time without cleaning the children I have over 200 folders on the project and I don't really want go one by one to delete the content inside the folder before deleting the folder itself. When I'm trying to delete it is saying: Cannot delete folder, folder is not empty or it might contain excluded files, which are not shown. I can't beleive I will need to do one by one.... ple ...Show All
JimSmith Wiew(get) result in text.Box from DataGridWiew
How wiew result from dataGrid( sum of one collumn and get it in one textBox) -example: sum of xlx Column and i will this sum show in a textBOX DataSet dataSet = (DataGrid)grid.DataSource; DataTable table = dataSet[ grid.DataMember ]; double total = 0; foreach( DataRow row in table.Rows ) { total += Convert.ToDouble( row[ "MyColumnToCount" ] ); } txtTotal.Text = total.ToString(); Thanks for the reply POSKOK! I ...Show All
pauledavey Data Binding
Hi, How should i correct the statements below, so that the ID text box will shows the ID=1 when the arrow of List View point to ID=1 Or is that any other methods to do this IdTextBox.DataBindings.Add("Text", dataset1.Tables["employee"], "ID"); Thanks. Hi, But as what BonnieB had said just now, have to bound the text boxes and list view. I had placed the codes in the .SelectedIndexChange ...Show All
slederer Sluggish performance 2005 final release - Us or MS?
We have a windows application, originally developed in VS 2003, now in VS 2005 final release, using Visual Basic. It has become painfully sluggish to design in, though the speed when running the app is fine. My PC is a Pentium 4, 2.5 ghz with one meg ram. I can not tell if the problem is with us and the way we designed the solution, or if it has something to do with Microsoft and Visual Studio as a whole. I realize th ...Show All
dwebb Form1.h gets modified
I apologize if this has been covered here before - I did my best to look for it. Or if this is in the wrong forum - I couldn't pick a more appropriate one. Anyway, here it is. Every time I open a Windows Forms Application project that I created using the "New project" wizard, the Form1.h file gets modified automatically. No real change in the source, just something that VS 2005 (C++) does (and then, probably, un-does). It gets especially ...Show All
