Answer Questions
Sureshpr VS Setup project with Windows Service
I have a Setup package including a Windows Service component. Service installation is handled through an installer (plain .exe without Installer class) that is set as a custom action under the folder "Install" to the Setup project. When installing, things go well. However, when uninstalling the package, I need to remove the service. Previously, I added a similar custom action under the folder "uninstall" and I had thought that it did get called when the package is removed, but I was wrong - the custom action under the folder "uninstall" does not get called when the package is removed. Is there a way to set the Setup project so that an executable gets called when the package is removed Thanks for any ...Show All
The Admiral Adding a check box to a datagrid
Hi, Can anyone help me in adding a check box to a grid view. I have searched in google and had a few sites that show how to add the checkbox, but the procedure is quite confusing. Is there a site that shows in a simple way how to add a check box and then delete the values from the database, based upon the checked values in the datagrid. Regards, Srikanth Please delete this thread. I have solved this issue. Regards, Srikanth Hi, I would like to have the checkbox in a grid view, in a web form. Regards, Srikanth This question belongs in the WinForms Data Grid forum. I'll move it over. ...Show All
Keyu Basic WinForms question
I am new here. Can anyone tell me why many people are saying WinForrm App is a smart client What make WinForms smart Thanks Hi, Smart client in the sense means the entire processing of data happens in the client, unless you do not Remote your components. In case of Web UI we call them as dumb clients since the entire processing is done at the Web Server. -Ajeeth It answers my question. So, WinForms is between thin and fat client :-) Thanks I think you are misunderstanding the meaning of a Smart Client Application. Maybe not, but read this article, which is an introduction on Smart Client Applications. https://www.microsoft.com/ne ...Show All
Byonksd Binding all tables of the DataSet with the DataGrid
Hi, using stored procedure i'm geting two tables in the DataSet. But when i bind the dataset with the DataGrid, only one table is binded with the DataGrid. I want to bind all the tables of the DataSet with the DataGrid. Plaese help me Thanks Hi,Jackuline I try binding two tables into the DataSet through stored procedure in my IDE(VS 2003),and it works well,all the two tables are displayed in the datagrid. So, can you explain your problem in detail For example, the process you do it ,so that I can help you to find out the problem. Ye Hi, Thank you for your reply. I got answer by using the relationship between two tables. Jackuline ...Show All
Siteadm 'System.Windows.Forms.DataGridViewComboBoxCell'
S = CType ( CType (sender, DataGridView)(indexC, indexR), DataGridViewComboBoxCell).EditedFormattedValue.ToString() I get this error mesage. Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxCell' to type 'System.Windows.Forms.DataGridViewComboBoxCell'. What does it mean The current cell you are casting is a DataGridviewTextBoxCell, which can not be cast to a DatagridViewComboboxcell. Pwint wrote: S = CType ( CType (sender, DataGridView)(indexC, indexR), DataGridViewComboBoxCell).EditedFormattedValue.ToString() I get this error mesage. Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxCell' to type 'System.Windows.Forms.DataGri ...Show All
luca82 Typed DataSet's with Large Amounts of Data
Is there any documented maximum number of tables, relations, or records in a typed DataSet object in .Net 2.0 I have a large DataSet (the select command returns 24 result sets with tens of thousands of records total (approximately 90K records of varying sizes.)) If I fill from a DataAdapter into an untyped DataSet, the fill operation returns in just over 1 minute (approximately the time of the select procedure.) If I then merge this untyped DataSet into my typed data set (after calling BeginLoadData on each table) with constraints turned off (EnforceConstraints = false) the merge takes approximately 20 minutes. If I then enable constraints, the program runs for slightly over 20 minutes, and returns an Out of Memory exception. I expec ...Show All
netpicker9 passing data between 2 datagridviews
Hi, How to pass data/rows from between 2 datagridviews For example: datagridview1 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 1 || apple || (checked= Y) || (checked = N) 2 || orange || (checked= N) || (checked = Y) When user click on the specific row, it will transfer all the 4 columns and the row values into datagridview2 datagridview2 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 2 || orange || (checked= N) || (checked = Y) Thank you for the help. Hi, TommyGL , W hat y ...Show All
Sean McLellan Make sure you are not dividing by zero.
I am getting this message at this statement: g . DrawLine ( p , xPos + offset , yPos1 , xPos + offset , yPos2 ); g is an instance of the Graphics Class. It is not my code. I am trying to adapt NPlot package to my main application. The whole thing works well when NPlot uses an XML file (DataSet) that comes with NPlot. I copied the schema to another file and input my own data into the dataset and this error sprang up. I do not understand what the difference really is since I tried to copy everything slavishly. There are no dividions in the set of parameters. I cannot figure out why this message is appearing. Thanks. Glad to hear you found it. Mark the post(s) that helped you as the Answer(s) , so when others s ...Show All
jtallard First VB trial and no joy
Hi I have developed a number of ASP applications, and also quite a few Access-VBA apps. I had a need to monitor some Access applications that run unattended, so I decided to take the plunge (from VBA to VB) and to try to write a VB.Net app with VS2005. That proved to be a torturous move, as nothing seems to work, and I am getting nowhere whatever I try. I created a project, added a form, then had to look all over the place to find out how I could simply access my Access DB and launch a SELECT statement on one of the table. But whatever I do, and even before I get to the connection to the Access DB, i ALWAYS get the same error, which tells me absolutely nothing: " A first chance exception of type 'System.ArgumentException' occ ...Show All
vej Help me out :Clickonce update Error
Hi!!!! I had used the System.Deployment APIs to trigger updates for My your application (ie)ChecFor Update Control inside which i had written the code to Check update which runs as a thread in the background...but i had disabled the chekfor update properties in the clickonce since i am using the System.Deployment APIs .... But when i publish and run the application i get an Error saying "Application cannot be updated programmatically unless the deployment manifest includes the <deploymentProvider> element ". I would also want the user to choose whether to remind him for updates after one day or one week .... This is there in the clickonce update properties but i want the user to be prompted with the message box asking him t ...Show All
theinspector filmstrip border around image
I'm trying to build a filmstrip border around images in my filmstrip control. Can anyone please tell me how I can achieve this Thanks ! ...Show All
LasseDK how to connect to database from dataGridView
I've been working on the C# windows application with connect to database using dataGridView. On the smart tag on dataGridView, click new connection and click second button for browse database. If I select northwind.mdf, click 'test connection', error message says "Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances". I don't know why I cannot access to database. I appreciate for the tip. Hi, Here are the reference: http://msdn2.microsoft.com/en-us/library/ms188787.aspx http://msdn2.microsoft.com/en-us/library/aa259616(SQL.80).aspx Thank you Hi, Try to do the follows. Open the SQL Server Management St ...Show All
Ming Zhao Combobox formatstring not working!
I would really appreciate some help with this guys. I have a form with a combobox (amongst other things). The combobox is bound to a dataset and is filled with the relevant data without problem, however, I'm trying to use the formatstring property to add 1 or 2 spaces before the text for aesthetic reasons but the text remains the same no matter what formatstring I use! The formattingenabled property is set to True, where am I going wrong Than you for your reply. Sorry, I neglected to say that I am using VB2005, what is the equivalent in VB and where should I put it I put the following syntax in the format event but it's very slow, especially if the list gets large a ...Show All
Blast How to automatically resize toolstripcombobox when form is resized?
Hi! I have a combo box on a toolstrip - toolstripcombobox - how can I automatically resize the combobox when the form is resized Matt One way of doing it would be to add an event handler into the Form's Resize event. At that stage you know that you are resizing the Form so you need to resize the combobox too. Jero This should do it: protected override void OnResize(EventArgs e) { base.OnResize(e); ToolStripComboBox1.Width = this.Width / 2; } Put that in your Form. Edit: Sorry I forgot to give a description. When the Form is reasized for any reason, it will call the Resize event which will get into the function above. The code above thensets the wid ...Show All
WXS123 Textbox input
I'm collecting numerical data from users via a textbox by using the following code. double val=Convert::ToDouble(textBox1->Text); How can I make sure an exception is thrown when someon tries to input other text characters or other non numerical characters Thanks Andrej. I have modified it to suit the C++ syntax and the code looks something like this: int number; String ^character = Convert::ToString(textBox1->Text); if (int::TryParse(character, numberS) == false && character != "\b") { return; } However, I cannot input decimal values now as the dot is a character. Any help on tweaking the above condtition to allow for dots Actually, I ...Show All
