I am using a third-party Windows Forms control that performs some actions "delayed" using the Application.Idle event.
Now that we're moving our application to WPF, these actions stopped working.
I've found that the System.Windows.Forms.Application.Idle event is not raised as expected.
How can I get the Idle event to fire in a WPF appli...
I need someone to confirm what I am seeing before I may a change to the domain of the application because of this issue. The issue is that when databinding against interfaces that inherit from one another, you can not see the properties on the base interfaces.
I am working on a WinForms application that uses databinding. This is in .net...
I'm writing an application that displays a list of objects which the user can select and then view and edit the properties of through a PropertyGrid control. The object's properties are populated by time consuming process of extracting information from files through the use of a secondary thread. But I'd also like to allow the user to co...
Is there a way to apply consistent visual appearance for multiple Windows Forms applications? So that the same color scheme is used, etc? Or you have to do it manually?
(I apologize for this question, but I have googled it without any real answer - a couple of pointers in the right direction or a few links would be enough. I have also s...
From the code below I am getting a cell value from the selected row to a dataGridView:
string Kategoria_ = dataGridView1.CurrentRow.Cells[1].Value.ToString();
Then I need to convert to int:
int category = Convert.ToInt32(Kategoria_);
And putting this number as an index to the combobox:
cmbCategory2.SelectedIndex = category;
Issu...
Hi,
I am using C#.net and need to connect to a device that has ethernet (ip address). What class can I use to communicate with such a device
...
I have a button on the window form and and one method I am calling button's PerformClick() event.
Now if I make this button visible false.Then that PerformClick() event is not performed.
Is it ok? And if yes then I want to make the button invisible on the form what should I do ? I already make the background color of the button same as...
In my application i am printing tripsheets by dot matrix printer.
Now I have to implicitly eject extra paper so that i can easily tear it from the perforated line.But for the next invoice or tripsheet it is esential to reverse feed the paper so that the printing starts from the top.
The problem is how to reverse feed the paper.Is there a...
How can I change the state of a DataGridViewComboBoxColumn so that the user can select one item from the combobox, but not edit the values?
I want to let the user select one of my options, not enter his own or alter my options. I don't want to disable the control.
...
This is really driving me nuts, I have a datagridview bound to a bindingsource, on the click of a button I add new objects to my database using my datacontext, how can I make the binding source to show the new objects in my datagrid? I already tried setting the datasource of the binding source again but it wont work, eventhough the new ...
Hi all.
The purpose is to handle the user's data (you can call them project, document, file, or whatever) in a brand new SQL Server 2008 Express database. The data are expected to occupy much less space than the 4GB available with the express edition (which is also free to distribute).
E.g., each time the user selects File->New command...
I am working on a winforms project. I am implementing an MVP architecture. I have some processing intensive jobs running at the presenter (Reading from file system and performing bulk inserts to a DB). I would like to perform these operations in a background thread without locking up the UI and update controls on my view (progress bar, a...
The standard DataGrid is quite unresponsive when it comes to displaying large amounts of information. I tried SourceGrid and can live with the results, but see room for improvement. Can anyone think of any other free alternatives to the standard DataGrid that can handle large amounts of data? I am open to creative ideas.
...
there are some buttons on the top of the winform, and when I click one of them, the panel below will load different predefined panel, how can I implement this ?
please see this example: http://img203.imageshack.us/img203/6348/32753641.png
...
In my home and work pc's and in one friend of mine's it runs just ok, but when i sent it to someone else it 'loads' for 10 seconds responseless, then there is an error:
Since it works on at least four computers, i assume the program itself is just ok (same exact EXE).
What could be happening ?
info:
C#
.net 3.5
worked on Windows...
It seems that calling a P-Invoke while the App is not completed loaded make it spew the errors of the related functions.
For example at the moment I'm trying to load at startup various DLL through LoadLibrary and test if they have exported a particular function.
If I do that while the app completed its load procedure no error are give...
I'm creating a bit of a calculator type program.
I have a textbox which the user can change the value of. This textbox is used in some of the calculations.
How do i save the value of a textbox so that the next time the form opens the text box holds that value.
For example the textbox default is 1.5. The user changes it to 5 and then ...
I'm trying to make my C# application multi threaded because sometimes, I get an exception that says I have made a call to a thread in an unsafe manner. I've never done any multi-threading before in a program, so bear with me if I sound kinda ignorant on the issue.
The overview of my program is that I want to make a performance monitori...
I need to add a pivot grid to an existing WinForms application. There are a number of commercial controls that meet the general requirements but fall short with one important one. The two I have looked at so far that come close are XtraPivotGrid Suite (www.devexpress.com) and PerpetuumSoft OLAP (PerpetuumSoft.com).
Both of those contr...