Downloading pdf file from aspx page (source code does not show uri for the...
I have develop a Win Form which has a webbrowser control. I am opening an aspx page on this webbrowser control. The page has a pdf doc. which I am trying to download on the Winform (or as temp file in...
View Articlesent to xml in with decimal type in columns
HelloI am sending some data to xmlExcel as below:when data is string:returnString.Format("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", data);when data is integer number:...
View ArticleC# and OLEDB, Set "Medium Time Field" or "Short Time Field" to only have Time...
Hello,Topic about says it all. I'm trying to query something I set up in the database as a Date/Time field with the Medium Time format selected. I couldn't figure out why it was working, so I plugged...
View ArticleDataGridView Select Cell an Row Color mit dem Paint-Events
on click a cell in dgv i will paint a new background on the complete row anda boarder on the clicked cell, but this code has en errorprivate void dataGridView1_RowPrePaint(object sender,...
View ArticleHow do I set the value of a column in a NEW row added via BindingNavigator?
I have a WinForm with a BindingNavigator and some text boxes. Two of these are used for handshaking with the database - one is bound to an Identity column assigned by SQL Server when the record is...
View ArticleHow can I save a Word document using the contents of a textbox as the file...
I have a merged document. Each record is two pages. I run the below script and it separates the larger file in to separate files (a record) and I can save them but I need to insert into the file name...
View ArticleUpdating Database When Dataset Filled from View (not table)
Background: I have a Windows Forms application with a datagridview control that is bound to a dataset. The dataset is filled with data from a database view. Some of the datagridview cells are...
View ArticleC# Drag & Drop Between Controls (Drag From ? Drop on DGV)
Hello all,I'm working on a customized datagridview class. I've got one major issue I have no clue how to address. Drag & Drop.I'm not picky about the "from" control, it can be a listbox, dgv,...
View ArticleThe problem with DataGridView when the dataSource is empty.
Dear Gurus!I use next code for creating content of dataGridView:var source = new BindingSource(); source.DataSource = masterView; // type CollectionView dataGridView.DataSource = source;When there is...
View ArticleThe problem when setting dataGridView.dataSource from CollectionView
Dear Gurus!In windows form application I am trying to set DataGridView.DataSource:dc = new myEntities(); _masterObservableCollection = new ObservableCollection<object>(dc.fires); masterView =...
View Articledatagridview not changing text when the column is selected
I have a datagridview which I would like the data to change every time I click enter on it. I do the code in the preview key down event of the datagridview. It works fine until that column is selected...
View ArticleDataGrid won't load with sql (using Postgresql to read the data)
After executing a SQL instruction and then loading the results into a table I find the dataGridView1 won't load. I use WinForms with Visual Studio 2013. I am SURE the data was put into the table as I...
View ArticleVS 2012 DataSet Designer Problem
I am currently having a problem using the DataSet Designer in VS 2012 Ultimate (C#). When I drag a TableAdapter object onto the designer surface, I get an 'Object reference not set to an instance of...
View ArticleHow can i report muiltple reportprogress values from backgroundworker dowork...
First i added this class:public class MyProgress { public string Id { get; set; } public string Progress { get; set; } }Then the dowork event:private void backgroundWorker1_DoWork(object sender,...
View ArticleConnection string to access database in C# Windows form.
Hello, I have created one setup project and am using this connection string.connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data...
View ArticleUnable to sort in DataGridView - Virtual Mode Implementation
Hi, I have implemented my datagridview based on the xplanation provided in the link, http://msdn.microsoft.com/en-us/library/ms171624.aspx. I want to sort the columns when the user clicks the header, I...
View ArticleHow to sort DataGridView data when virtual mode Enable
i have completed my code for DataGridView with virtual data loading and it is working but i want sorting also should work when i will click on column header column. i read idea from this...
View ArticleHow to sort DataGridView data when virtual mode Enable
i have completed my code for DataGridView with virtual data loading and it is working but i want sorting also should work when i will click on column header column. i read idea from this...
View ArticleComboBox Data Binding to Database
I am trying to Bind a combobox to database table (REMAXCLASSIC). I create a REMAXCLASSICdataset Capture one shows the form. The columns contained in the table are shown on left. The combobox is...
View ArticleA specific routine is getting called twice when i run my application
i implement this code from this url https://msdn.microsoft.com/en-us/library/windows/hardware/ms171625%28v=vs.90%29.aspxi saw when i run my code first time then a function called SupplyPageOfData() is...
View Article