Someone gave me this code that works great but I would really like to understand what is happening inside it, could somebody explain please? what is the meaning of each part of the code? The code is inside a custom control which has two labels inside a panel. Also I've seen some custom control events that use add/remove sytanx, what is t...
I need to synchronize the data that "one client" updated and need to be refreshed on "other client" (on another room) of the same application.
1 - Which is the best approach to doing this?
I was thinking on SqlDependency but the application can also run on other database engines (I dismiss it)
I also think of a timer polling for update...
I have developed an application that pulls X amount of records from my database per X amount of threads. Each thread then iterates the collections that are created and does some data validation for each record.
Once a record is validated / not validated by the application it is updated in the database as being valid / not valid. Records...
I have a program that accesses a database using SQLite. When I open a OpenFileDialog or a SaveFileDialog before I do the SQLite call:
result = sqlite3_prepare_v2(databaseConnection,converted,10000,&stmt,&strptr);
and choose "Cancel", everything works okay (result == SQLITE_OK) but when I choose "Open", even if I don't do anything with...
I have a DataGridView with a DataGridViewCheckBoxColumn column, which is databound to a list. The problem is that the databound boolean property for this checkbox is updated not when the check box is checked/unchecked, but after the CellLeave event in other words after the cell looses focus. I want this property to be updated right after...
The title pretty much says it all. Can this be done with relative ease?
Thanks!
...
Just a quick question.
I can get a form to show with other exceptions, but with the type I'm asking about, I get the system "application is no longer working" dialog:
Program.cs:
#if !DEBUG
// Add the event handler for handling UI thread exceptions to the event.
Application.ThreadException += new ThreadExceptio...
is there any opensource or free license Control project that has fantasy looking and feel just like DevExpress?
could you give some links.. if it isn't opensource, free licensed DLL is ok.
thanks
...
I need one button to be enabled only when two other properties have been set to a value other than null. I could to this manually but I wonder if there is a way to do it using .net's Binding class. I'm using .net 4.0 working with Windows Forms.
...
I have a control with a property public MyClass MyProperty{...} which value is shown on the screen as a graph. I want this property to be bindable to any other MyClass in the program by using the Binding class (MyProperty would be the propertyName parameter in this Binding constructor, and the other MyClass would be the dataMember parame...
If i bind datagrid to a collection, how can i track changes, e.g. object deleted/modified, so that I know how to update the database, do I have to manually handle those event to record which object is deleted, which is modified? is there a better solution?
...
Hi folks,
I'm trying to enabled editing for a number of columns in my DataGridView. Now, before anyone suggestions I should read the MSDN article: How to: Specify the Edit Mode for the Windows Forms DataGridView Control, I already have.
In summary (and I quote):
The underlying data source supports editing.
The DataGridView control is...
Soo... I am making a control like the Windows Update "panels".
Everything's fine up to the "container" part.
What I want to do is to allow the designer to place controls in a Panel which is inside my control.
(The panel's variable is held in my control's class and inside the control itself.)
How do I bypass this?
As a reference, yo...
I know "why is my this framework like/not like xyz?" questions are a bit dangerous but I want to see what I'm missing.
In WinForms, you can't update the UI from another thread. Most people use this pattern:
private void EventHandler(object sender, DirtyEventArgs e)
{
if (myControl.InvokeRequired)
myControl.Invoke(new Method...
I have a control for which I need to enforce a certain Width or Height, depending on a property called Orientation, which, obviously can be Vertical or Horizontal.
So if the Orientation property is Vertical, then the Width must always be 2.
If the Orientation property is Horizontal, then the Height must always be 2.
I have tried ma...
Hi
I want to built a win forms app that allows people to book appointments and displays the current days appointments in a user friendly way
Does anyone know how i would go about doing this
Thanks in advance
haha sorry
ok so how would i go about showing appointments booked in for the current week like outlook does below i presume ...
My question is how programmers create, code, and organize subforms in general. By subforms, I mean those groups of controls that make up one UI experience. I'm looking for hints to help me better organize my form codes and to speed up the process of creating such forms. I swear to God, it takes way too long.
I've identified three broad...
Hi everybody!
I have a strange situation:
in a .NET CF project there is a class (call it A) which has the following structure:
public partial class A: Form, INotifyPropertyChanged
{
//for simplicity stripping off everything unrelated to this problem
private int _SelectedRowsCount = 0;
public int SelectedRowsCount
...
I'm having trouble displaying a PictureBox in C#. I have two forms. In my main form I'm calling the other form, where the PictureBox is located.
This is how I am calling the second form:
frmODeck oDeck = new frmODeck();
oDeck.Show();
Now, this is my second form, where the PictureBox is located from main form
namespac...
Hi everybody!
In a .NET CF-form i have multiple panels. I want to have a property that should always be informed about if a panel is in the front.
Can this be done using the GetChildIndex() method?
If yes, how do i intercept the change to SetChildIndex()?
Thanks in advance
...