Hi all, in selenium I am filling a dataTable with 2 columns with some extracted data from the browser. After it is filled I am displaying it in windows form through datagrip.
Everything is fine but I want to force the datagrip to change width of columns automatically depending of the length of strings in dataTable. For example if the s...
Just like to see how others make use of MAF:
What are to define as contracts?
Using IoC and MAF together?
How do addins communicate with each other?
How does MAF help building a winforms application?
...
...
Hello!
I have a list of dates.
I would like to be able to populate a windows forms monthcalendar control to show these dates as selectable(clickable) dates, whilst any date that is not in the list is disabled on the calendar control.
Is it possible to do this?
regards,
...
Hello,
I need some sample projects from which students can learn how to use WinForms controls.
I can`t find nothing on web.
Thanks
...
I've been fighting with this for a while, and have found that a number of other people struggle with the TableLayoutPanel (.net 2.0 Winforms) as well.
Problem
I am attempting to take a 'blank' tablelayoutpanel, which has 10 columns defined, then at runtime programatically add rows of controls (i.e. one control per cell).
One might hav...
Windows Forms, .net 2.0
My main application thread has a form (A). I have a background thread which operates off a timer to determine that an activity has taken place - when it does, it causes the main application form to hide (using BeginInvoke), and creates a new form (B) in its own thread (seperate message pump).
The two threads th...
Hi, How do I test for 'Ctrl' downdown in winforms/c#?
...
with the help of the stackoverflow community i have designed an app that colors the screen, and makes it look like you are wearing different color glasses.
i would also like to add the functionality of instead of coloring the whole screen, ONLY coloring the background of a document exactly like this program does:
http://www.thomson-sof...
Say for instance I have a C# Winforms applciations that uses a tabcontrol with four different tab pages.
Above this control on the main form are a series of groupboxes containing various buttons and textboxes relevant to the different functions running on each individual tabpage.
If I am using a particular tabpage that only makes use of...
I have seen some developers attempting to shoehorn the MVC or MVP patterns into Winforms applications, presumably on the premise that, if it's good for WPF and ASP.NET, then it must be good for Winforms.
Is this a good idea, or is it lipstick on a pig? Why or why not?
...
We are developing a Windows Forms application that will be installed on about 1,000 employee pcs. Users may run multiple instances of the application at the same time. The clients are all on a single intranet.
Changes in the application may cause database record changes, which in turn must be communicated to the other clients so their...
In C#, I have a table displayed using a DataGridView. The table is significantly smaller than the form in which it appears, and so the table fills only a small portion of the upper-left-hand corner of the form.
My question: how can I (programmatically) make either: (1) the table automatically enlarge so that it fills the form, or (2) ...
I've searched all over and I can't figure this one out. I am working on a Winforms UI that is pulling large volumes of rows that I need to display in a DataGridView. I have already read all about limiting row counts and paging and there is absolutely no good way for me to do this. Basically I am working on the TargetDataViewer control...
Hello everyone,
I am using VSTS 2008 + C# + .Net 2.0 to develop a Windows Forms application. In the default Form1 I have a button, and click the button will invoke another Form -- Form2.
My question is, I want to make Form2 always on the top, i.e. user must response Form2 (fill in informaiton in Form2 and close it) until the user could...
Hello I'm currently creating an application which has the need to add server IP addresses to it, as there is no InputBox function in C# I'm trying to complete this using forms, but am very new to the language so not 100% as to what I should do.
At the moment I have my main form and a form which will act as my inputbox which wants to hid...
I have 2 classes i.e Customer-Order and Customer class
has a reference to a collection of Orders.
I use master detail bindingSources.
My problem is when i use the lazy load pattern
for orders my detail bindingsource is not updated.
UI
BindingSource1.datasource=GetCustomers();
BindingSource2.DataMember="Orders";
BindingSource2.datasour...
I am subclassing a Win32 window in managed code using NativeWindow. However, I'm encountering a bug in either my code or with NativeWindow that throws an exception when the parent is closed. The code I'm using is this:
public partial class ThisAddIn
{
private VisioWindow visioWindow;
private void ThisAddIn_Startup(object sender, S...
Can I somehow disable access by TAB on come controls on form in WinForms
(controls like textboxes must be enabled for access and writing but when user hits TAB it will access only buttons)
...
how can i make a user control to run on its own thread ?
e.g. by following code in a user control , coz user control uses main app thread it make main thread to sleep
Thread.Sleep(TimeSpan.FromMinutes(2));
...
the following code is supposed to replace the system color that's used for window backgrounds. You'd change it by P/Invoking the SetSysColor() API function. i am using the following code that was suggested to me but unfortunately when i click the button nothing happens!
Imports System
Imports System.Drawing
Imports System.Windows.Forms
...