I'm adding a button to an existing app. I need to open a new window once this button is clicked. The new button has been added to an existing User Control and takes on all the attributes of the other buttons. Great.
When executing !bpmd command in WinDbg, there is error like this, any ideas?
(there is no such error, if I start to run the application, and break in the middle of running, then type !threads again. My purpose is to use !bpmd command to set breakpoint before the application runs, so this situation makes me inconvenient.)
Failed to find runtime DLL (mscorwks.dll), 0x80004005
Extension commands need mscorwks.dll in order to have something to do.
You could subscribe to the DataGridView's CellClick event, so that you know when a cell's actually been clicked. Inside the handler you get told the row and column so you can work out if it's a checkbox cell, then update your totals accordingly.
I have a form called ModifyOrder. Basically my form have 2 hashtable. I called orderTable and the other is productTable.
My orderTable stores an Order object. Below is my class for Order.cs
public class Order
private string refNumber;
private string custName;
private string destAdd;
private string destCity;
private string orderDate;
private double totalPrice;
private Hashtable itemList;
I got a attribute which store a list of items( from the productTable) into a hashtable called itemList inside my Order class
I have a datagridview which shows all the record i have in my productTable and the first columm of the datagrid is a checkbox.
When the user enter the Order's Ref Number to be modify, the datagrid wil show all the productTable. I want the first column(checkbox) to be checked if the product exists inside the Order class itemList.
How do i go about it?
I tried this code, but it does not tick the checkbox
firstly you are using a reader with a dataset and that confuses more.
if you want to retrieve what is in the command object and in future you won't manipulate the data, you should use only a datareader.so you have combined dataset and a datareader. your code above can be written like this
OleDbConnection con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\JET PRINT LIMITED\\JET PRINT LIMITED.mdb");
OleDbCommand comm = new SqlCommand();
comm.CommandText = "select * from STOCKDET";
MessageBox.Show("data into Combobox successfuly!!!");
Hope it helps
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
I m getting an error "Virtual memory is to low"; while running my real-time application that is developed in C#.In our application, we are capturing the Live video and transmitting on LAN as well. IS IT ANY hARDWARE PROBLEM
Also check the max page file size (My Computer -> Properties -> Advanced -> Performance -> Settings -> Advanced -> Virtual Memory) and see if you are close to that limit (Task Manager -> Performance -> PF Usage).