Possible Duplicate:
.NET Controls: Why arent all calls thread-safe?
This question is not about what is a cross-thread operation, and how to avoid it, but why internal mechanics of .NET framework does not allow a cross-thread operation.
I can`t understand why a SerialPort DataReceived event cannot update a simple text box on ...
This is one of those "seems obvious" as how to do, but came across interesting side effect in implementing. I'm trying to keep two text boxes syncronized when information is updated. In this example, I will be using txtStartDate and txtEndDate. If the txtStartDate is changed, then the txtEndDate should should be updated. Likewise, if...
Contact Title has a default value which is Sales Person. Anyhow, when a user
click Edit on the chosen ListView record, i need Contact Title to have
the right value that corresponds to the chosen record. For example,
if user clicks edit, the fields on the left side will be filled with
values. In this case, i want Contact Title to view t...
Please help me in this issue. I am working in windows forms using c#. i have a textbox called textBox1. I want to use validation like without entering anything in textBox1 the cursor should not move to next text field.
...
I want to study the source code of DevExpress, does anyone have any information about that ?
Since I really don't know how to start to read it.
if you are also researching the source code of devexpress and you would share it on your blog, then could you please give me your blog link ?
EDIT:
once you purchase the universal version it wi...
As the title implies how can I create a new log file each day in C#? Now the program may not necessarily run all day and night but only get invoked during business hours. So I need to do two things.
How can I create a new log file each day? The log file will be have the name in a format like MMDDYYYY.txt
How can I create it just after ...
In my application a ComboBox gets resized, so that it is smaller. How do I re-calculate the DropDownWidth property? I know how to set it, but I'd prefer to calculate the proper width because its contents changes. Preferabley, I was thinking of something along these lines:
int iMaxLen = 0;
foreach item in comboBoxList
{
iMaxLen = (...
I have a view (userControl) and I am overriding it's OnLoad and OnLayout methods . When view is closed the OnLayout method is executed and the call to base.OnLayout(e) fire the OnLoad method.
What is causing the OnLoad to be called and how can I avoid this behavior?
Regards.
...
I have a Windows Form that displays several DataGridViews in the following layout:
(No access to image hosting at work, so please pardon the ASCII art...)
┌─────────────────────────────────────────┐
│┌───────────┐┌──────────────────────────┐│
││ ││ ││
│└───────────┘│ ││
|...
How to manage more than one printer from single C# windows application? Requirement is there should be only one print button and it will give print command to printer as per configuration in application.
...
Hi there!
We have 2 applications - 1 windows and 1 web (asp.net). Winforms runs on the customer's machine where as the website is hosted within our company. The winforms has a link which opens the web app in a browser window. The web app is secured so the login page is shown. The username and password is the same as the windows app logi...
I have a strange problem with a DataGridView I'm using which is bound to a table in VB.net
I've added a checkbox column to allow a user to tick a bunch of rows that I can then loop through and save off to a different table. All the checkboxes are enabled by default. So it's really a case of unchecking the rows which aren't required.
Ho...
Hello,
Do You know any good example or any good hint on how to make user controll that has defined text with blank areas which has to be filled out to complete excercise. Then submit answer and check (what was written in blanks and check if its good or not).
What Is the best way of doing that in order to be quite generic for example us...
The event aggregator in Prism is great, and allows loosely coupled communication between modules within a composite application. Does such a thing exist that allows the same thing to happen between standalone applications running on a user's desktop?
I could imagine developing a solution that uses WCF with TCP binding and running inside...
Ok, I created a windows control project....dropped a comboBox on it, wrote some custom code that I wanted on its event ( Text Changed event, etc) ... I can also compile it and drop it on a new WinForms App... good.
But in my sample WinForms app that I want to use it, I cannot access the properties of that combo box.. it does not list th...
This code, when built in .Net for Any CPU platform and running on a 64-bit machine, simply returns a DialogResult of Cancel without showing the expected dialog box.
Dim dlg As New System.Windows.Forms.PrintDialog
If dlg.ShowDialog() = Windows.Forms.DialogResult.OK Then
'... print the document '
End If
However, it works fine when ...
I have just added a textbox, button, label to validate ID of 12 characters. The library is called check_ID. It works fine. The only problem is i have to access the forecolor of label, backcolor of textbox , forecolor of button as per color scheme of the project.
But it seems that none of the properties of the objects in check_ID are ava...
I have a .NET application with a StatusStrip holding three ToolTipStatusLabels. The Text of the labels are filled from the application as they show the status. For some circumstances they can hold an empty text.
When I resize the window, the ToolTipStatusLabels are hidden when they cannot be fit in the StatusStrip. I would like to have ...
Hi,
I have complex UserControl (grid, edit controls for grid, etc...) and I want handle CTRL+C keyboard shortcut, however I don't want disable a native functions by edit controls (textboxes, comboboxes, etc...). If the CTRL+C is not handled by other inner controls I want handle it by myself (copy whole row(s) from grid, etc...).
I trie...
I found Customize a panel with Autoscroll property at http://www.codeproject.com/KB/miscctrl/CustomAutoScrollPanel.aspx that is wrapper around a Panel with AutoScroll = True.
I like this control because it provides the "performScrollHorizontal" and "performScrollVertical" methods. Yet, it uses the Windows API functions instead of Scroll...