winforms

how do i sendkeys DOWN ARROW?

in vb.net i want to do a sendkeys for the down arrow. what is the code? ...

Control Winforms App from Web App

A similar question has been asked before here ... but mine differs in the fact that I just need to control a winforms app from a web page (not bi-directional). I just need to tell the winforms app to open windows, etc. when the user clicks links inside the web app. This is all in a secure, corporate environment, so no real worries abo...

listbox scrolling

I want to disable scrolling ( not hide the scroll bar but disallow scrolling altogether) when the user selects certain items in my listbox if the user moves to a differnet item ( the criterai are not important ) then I want to re-enable scrolling How can I do this in .NET 2.0 ...

splitcontainer with treeview

when i click to a node in the treeview i want to see it's corresponding form in the splitcontainer.panel2,there have diffrent nodes and forms.if any one knows please help me ...

How to opt out Task Bar Button & Display System Tray Icon

How can I hide my VC# applications task bar button and show a system tray icon instead. Then, when I have the icon, how to display notifications like FDM or Windows Update etc, and add right click menu to the icon. ...

C#: How to get a user control to properly auto size itself

I have a UserControl which consists of a Label (Top), a FlowLayoutPanel (Fill, TopDown flow and no wrap) and a Panel (Bottom). The user control creates a number of controls, based on a list of stuff it gets, and adds them to the FlowLayoutPanel. How can I get this UserControl to properly resize itself so that the FlowLayoutPanel does no...

XML comparison for checking whether same or different window applications

I have two XML file sitemap.xml and mouse.xml which look like below.Here the thing is that i need to compare sitemap.xml with mouse.xml in such a way that the tag <Name></Name>.I need to compare both xml file whether the content coming inside <Name></Name> tag is same or not in c# code Here the <Name></Name> tag are different means si...

C# user control as a custom panel

Hello, I create my own user control which only contains a panel : When I drag a myPanel object in the designer and then try to add a button on it, the button is in fact added to the form's controls. Is there a property/attribute I must set in order to perform this, an other way to do what I want ? public class MyPanel : UserControl {...

DevExpress TreeList - Show the tree outline in a column that is not the first

I am using the DevExpress TreeList in a .NET WinForms application to show hierarchical data. The outline column (the one with the indents and the plus/minus buttons) is currently always the first column, even if the user moves columns around. Is there any way to use a different column for this purpose? Thanks in advance! ...

combobox default value winforms c#

Hi here i want to bind some values to check box dynamically. dataset ds = //getting emp values form database; cbemp.ValueMember = "empid"; cbemp.DisplayMember = "empname"; cbemp.DataSource = ds.Tables["emp"]; it is working fine. But i want to add "Select emplyoee" as a default value of check box . But my check box directly adding v...

First Agile Project - What should I write first?

I have been learning about TDD and BDD and using this as much as I can at work but in an environment that really isn't agile. I want to try it out properly on a pet project at home. So, going with the agile approach, and the principle of having working software, what should I write first? Should I create some forms first (this will be W...

C# - How to allow multiple filetypes in an OpenFileDialog?

I knew this once but I keep forgetting; How do I allow multiple filetypes in one filter entry of the OpenFileDialog? Text files|*.txt // this is OK. Text files|*.txt,*.text // how do I get this?? ...

C#/.NET how to highlight certain rows in DataGridView

hello, i have a datagridview that is filled by setting its DataSource to a DataBinding. now i want that certain rows in the datagridview have a different backgroundcolor according to some value in the row itself. how can i accomplish this easily? thanks! ...

Add items to DataGridViewComboBoxColumn in DataGridView during runtime

I'm creating a DataGridView with a column DataGridViewComboBoxColumn. Initially the combo box Items is filled with values using Items.Add("sometext"). Further values are added to the DataGridViewComboBoxEditingControl returned in the event EditingControlShowing of DataGridView. Hereafter I can correctly select values added initially, b...

choppy graphics when drawing xna on a winforms control

I'm drawing an xna project on a winforms Control using the following code: this.GraphicsDevice.Present(MainForm.GamePanelHandle); This winforms control is placed on a Form that is maximized, hiding the taskbar using the following code: this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; Unfort...

Asynchronously populate datagridview in Windows Forms application

howzit! I'm a web developer that has been recently requested to develop a Windows forms application, so please bear with me (or dont laugh!) if my question is a bit elementary. After many sessions with my client, we eventually decided on an interface that contains a tabcontrol with 5 tabs. Each tab has a datagridview that may eventual...

List of availible cultures

Hi, I have a WinForms application which can be localized through satellite assemblies for the resx-files. The user can switch the application language at runtime. So my question is: Is there any way to dynamically find out which cultures are shipped as localized resources with my client? ...

AutoComplete TextBox Control

hi I want to have a textbox control that it give suggest and append from a database in win application whit C# 2008 and LINQ . I do it whit Combobox but I can't do it whit textbox . How do I do it? ...

WinForms controls get dislocated everytime the form is viewed

I'm stumped by some bizarre behavior in Visual Studio's forms editor. I have seen this on a couple of different forms in my application. Each time I open the form in Visual Studio's layout editor some controls will be in a different location than when I left them. Typically some buttons move up just a little bit from the lower right c...

How can I set exact height of listbox in winforms (C#)?

Hello, I've been having some difficulties with setting height of listbox. Code like this... listbox1.Height = some_number; ... works only for some numbers. It seems that height of listbox may be only multiplication of height of its element. Is there a way how to "override" this behaviour? Thank you for help! ...