C# how to decrypt an encrypted excel file before displaying it to a...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO;...
View Articlecombobox dependency
before asking i wanna to show my tables and their relationships(created with ms access 2007) here is the schema :this is the link...
View Articlereading the value of id in another table and set it as Display Member of...
Hi Experts, before i tell the problem firstly i'd like to show these 3 table.Countrycountry_code | country_name1 USA2 SPAPersonperson_id | person_nameAA...
View Articlehow to insert checked items from checkedlistbox into sql server 2008 from c#...
Hi my name is vishal.For past 2 days i was wondering how to insert checked items from checkedlistbox control in c# windows forms with sql server 2008.I have a TabControl with 2 pages named1)tblSupplier...
View Articleenumaration in linq
Why is this happenienumerable<object> iee = (ienumarable<object>)this.where(c=>c.condition1 == true); //example satisfy 10 items //now iee has 10 items foreach(object o in...
View ArticleAdding a checkbox to a DataGridView column header
I have a dataGridView with a checkbox column to allow the user to select rows. I want to display a select all checkbox in the column header.Can anyone steer me in the right direction.Thanks!
View Articledata format changing from database to datagridview
hi I am trying to display data from database sqlite to datagridview the data format changed automaticallythe date in database is2012-02-2016:42:10.00 but on datagrid view it appears like...
View ArticleFilter Datagridview On UNBOUND Column
I have a datagridview "datagridview1" which has a bindingsource of "PayorContractedBindingSource". It has a number of checkboxcolumns that need to be updated. My business requirement is such that I...
View Articlehow to show my database some data to notification message type.
i want to display some database data such as policy due date , but when start computer then display notication for due date . so how to do this so i am new in this concpt. so plz guide me for proper...
View ArticleActivecontrol versus a variable that knows the active control c# winform
What is better to create my own variable that knows which control was entered into and didn't leave yet using the enter and leave event handlers, or to use the activecontrol? Is active control...
View ArticleAuto-complete textbox when an item is selected in a combobox
Hi everybody,this is my first question, I hope to have the answer I am loooking for. In my datagridview I have to columns: a combobox bound to a binding source (displaymember and valuembers set...
View ArticleMdi form in winform c# using sql server 2008
In my main form I have opened a child form using Mdi. The child form's name is CustomerDetails. In that form if I want to Update or Delete already existing Customer, I have added a button in front of...
View ArticleDataGridView Column Display Order
I have an application which has a form in a Master-Detail structure.The detail portion consists of a tab control with 4 tabs.Three of the tabs have a datagridview bound control. No problem with...
View Article"System.Runtime.InteropServices.COMException was unhandled by user code" on...
Using Visual Studio 2010, C# language in a Framework 4.0 project.Whenever I try to access Document.Window.Frames of the WebBrowser control I get this...
View ArticleResize scrollbar datagridview
I have a datagridview with vertcial scrollbars, this project is for a touchscreen so i increase the row to a large view ba the scrollbar is too small how can increase the datagrid scrollbar ?
View ArticleI have problems when try to save records to the LocalDB
I use VS 2012 and LocalDB for storing data.This is my Solution Explorer:I have one simple table in TestDb. Here is structure of that table:I run the program and add some records to the table. And I use...
View ArticleVisualBasic 2013 express features
Hi,I followed the walkthrough "Creating a simple data application" (at http://msdn.microsoft.com/en-us/library/ms171884.aspx). I used the Northwind database (in Access2007 format).I had no problem...
View ArticleDatagridview C# winform not horizontally scrolling all the way to the end
I have a datagridview that gets filled with different data on a button click for example if I click a products button a datatable gets filled from the database and then it fills the datagridview and if...
View Article2nd Times change comboBox of dataGridview throw null reference exception
I have a dataGridView with a comboBox. The dataGridView binding data from dataTable with multiple coulmns and rows.I set ValueMember of ComboBox as "Driver Id" and DisplayMember of the ComboBox as...
View ArticleBind Textbox to Unbound Datagridview Cell
I'm trying to bind a textbox to the current cell in an unbound datagridview. There is no dataset. I've tried:TextBox1.DataBindings.Add(NewBinding("Text", DataGridView1.CurrentCell, "Value"))with no...
View Article