I have a window form application (C# framework 3.5) with several textboxes, buttons and labels. When I install the application in different machines (same OS version both XP & vista), the user controls sometimes shifted down and dislocated while sometimes they come out perfectly fine....
What is the factor for the dislocation? the scr...
Hi!
I want to create a simple tabbed interface app. I did it before in WPF using an usercontrol inside of each tab, and I comunicate with the principal form searching for a parent element (the form, or the tab control)
How could I made the same in WinForms? Which element need I put inside of each tab?
Thanks.
...
C#: ListView in VirtualMode not displaying design-time columns when adding items & subitems at runtime?
I have a listview set up at design time with 5 columns. column[0] == empty checkbox item and the other 4 contain text.
My problem is that it 'whites out' my column headers & text when I press the button to add items to the listview f...
Hi!
I'm looking for a way to embed a cmd "Shell" into a Form. I want to build a C# based application that acts as a Terminal, better than the Powershell window (no tabs) or cmd (no nothing). Just start these interpreters in the backend.
I guess MS never thought of doing this. Any ideas what From elements I could use?
Thanks,
i/o
...
Windows Forms application:
MainForm.cs - Windows Form
Settings.settings - Settings class with an entry named "Test"
Auxiliary.cs
I can access the "Test" setting in my Settings.settings class within my MainForm.cs file just fine:
Settings.Default.Test = "Hello World!";
Settings.Default.Save();
String test = Settings.Default.Test;
B...
Is there some way, how to make scrollbar wider in winforms for .net compact framework?
I want to be application finger-friendly, but the scrollbars are very narrow for people with not-small fingers.
EDIT:
The problem is with built-in scrollbars in components like ListView, DataGrid, etc...
Windows Mobile 6.0, .NET Compact Framework 3....
I'd like to add a button column dynamically to a DataGridView after it has been populated.
The button column is visible after adding it, but when I try to loop through the DataGridView rows, I get a null for the button in each cell.
var buttonCol = new DataGridViewButtonColumn();
buttonCol.Name = "ButtonColumnName";
buttonCol.HeaderTex...
Hi,
I am using a DataGridView on windows form. It displays just two columns. By default when the application is run, if I click on the column headers, the datagridview gets sorted based on that column. However, I want to disable sorting on the grid view completely. I was not able to find a property where I could set sorting = false, or s...
I am trying to make my own user control and have almost finished it, just trying to add some polish. I would like the option in the designer to "Dock in parent container". Does anyone know how to do this I can't find an example. I think it has something to do with a Docking Attribute.
...
Hey
I have an application that runs well on WinCE and WM devices (all that I have tested so far).
I have just received a new device to test on and the Form throws a NotSupportedException when the designer creates a button on the device.
The device is a Motorola EWP2100 Wifi Phone.
According to its about page it runs WinCE 5
Here is th...
Here goes:
I have a view that looks like this:
public interface IAddressView
{
void Close();
bool IsDirty();
bool DoesUserWantToDiscardChanges();
}
I have a presenter that looks like this:
public class AddressViewPresenter
{
private IAddressView m_addressView;
private Address m_address;
public AddressView...
Im trying to introduce the pattern to my team here in my company, but the bosses are reticent about going with WPF, cause they argue everyone has Windows Forms skills but no body has put its feet in WPF land yet, which is quite reasonable I guess. Yet the project would benefit from MVVM a great deal, I guess
...
I am trying to get a ToolStripPanel to have the same drawing style as the embedded ToolStrips, so that it looks like one continuous bar. I have the ToolStrips using the ToolStripProfessionalRenderer so that they are styled the same as the Windows Task Bar.
I have gotten close by creating a new Renderer derived from ToolStripProfessiona...
I have multiple forms in my VB.NET application. How do I make it so that any form I close will terminate the application?
...
Are there any .net frameworks for collecting data similar to Google analytics, for example to know home many people use a specific feature, how many people launch the app, the only solution that i have found is EQATEC Analytics which is pretty good, but doesn't show which feather or which versions of the app are being used, based on the ...
Hi,
Is there a ruler addin for Visual Studio available which I can use to measure my winforms based on resolution. I am developing on a machine which has very fine resolution, however my end users have several resolutions, causing my app to not display correctly on some machines. This is for winform development.
How do you guys handle s...
hi, is there a way to get a standard winform app to detect if the shift key is being held down on application startup - without using windows hooks? I ideally would like the workflow to change from normal if the shift key is held down when the exe is run.
...
Is there a really quick and easy way to draw a TreeView in a GDI Graphics Object (its TreeNode Collection) in a way such as
?
It could be a component do buy or any that is for free.
Thanks
...
I've been trying to smoothly animate some Windows Form location but I'm having some issues if I want the speed to be variable. In other words, if I want to allow the user to select the preferred speed for animation.
I've found the following article that helped me quite a bit to perform the animation I was looking for, for my form. It se...
What is the SystemColors of the Textbox's border?
...