winforms

C# ColumnHeader's free space background color.

Hey, I'm trying to draw custom ColumnHeaders in a FastObjectListView control. So far the code works, but the ColumnHeaders free space ( so the part that does not contain any column headers atm ) still draws as default. private void olvMain_DrawColumnHeader(object sender, DrawListViewColumnHeaderEventArgs e) { e.Graphics...

Winforms Label Text property not displaying \t tab character

This should be very simple. I have a Label control on my Form and I am trying to put a tab character between text Label.Text = "Is there a\ttab"; The output is "Is there atab"; What am I doing wrong? ...

Simple animation library for a bit of flash

I have a C# winforms project and I want to add a bit of jQuery or iPhone style animation flash to it. Nothing too fancy just an easy way to slide and expand panels, perhaps a bit of rotation. Is there a library out there that would do this all for me? ...

wpf vs winforms by means of customizeable UI

Which technology (WPF or Winforms) should be used if UI supposed to be highly customizable like controls layout/design could be change by user and such sort of UI customization. Kindly mention best practices along to achieve that... ...

How to access a textbox value of one WinForm from another WinForm with in same project in C# ?

I want to take new values by populating a new Form. And i want to access those values of controls present in the New WinForm. And update values in Current WinForm ? Can any one help me out of this problem. Thanku!!!!!!!!!! ...

Are there any free code editor WinForms controls?

I'm searching for a free text/code editor WinForms control just like ScintillaNET. I cannot use ScintillaNET, because it doesn't support Mono. Ideally it should be a pure managed control. ...

DoDragDrop freezes WinForms app sometimes

Hi all, I'm doing a Drag Drop to external app like this: string[] files = new string[/* */]; // get files DataObject o = new DataObject(DataFormats.FileDrop, files); DoDragDrop(o, DragDropEffects.Copy | DragDropEffects.Move); and some apps will take the files and move on to process them and my app is free to do it's stuff, but some...

how to prevent a single MDI child form stealing focus from every other mdi child form

There are several MDI child form within my window, one of MDI child form after it's being launched will cause the focus mechanism to be weird, meaning a another MDI child window will not get the focus unless the title bar is clicked, clicking anywhere else in the mdi child form will not caused the form to focus. any thoughts? ...

Tab structure best practices

Hi, When developing a WinForms app that will utilize a tab control to display different sets of data, is it best to add all my controls to the tabs directly, OR create user controls, add my controls to the UC and add the UC to each of the different tabs? I was informed that the UC approach is best practice, and I understand some of the...

how to make my C# ComboBox display a value when it is running?

I just created a ComboBox in my VS2008. I put four items for it, One, Two, Three and Four. When I run it, nothing displayed by default. I need to select one to display. How can I make it displaying the second item by default at very beginning without my selection? I tried by put a number inside the DisplayMember and ValueMeme property bu...

Cross-thread event handling in C#

I am working with a framework that runs its own event dispatcher in a separate thread. The framework may generate some events. class SomeDataSource { public event OnFrameworkEvent; void FrameworkCallback() { // This function runs on framework's thread. if (OnFrameworkEvent != null) OnFrameworkEven...

Can't convert image to bytes[] C#

Hi. I'm very new to this stuff of saving images to the DB, and even when I thought it was very straight forward, it wasn't. What I'm trying to do is read and image file from the same computer in any format, display it in a picture box, and then convert the image to bytes to save it in the DB. Until now, I can display the image in the pic...

to run an exe file in the panel of c#.net application

thanks..im searching for the right answer but still not got it.. my question: i want to run an exe file on my winform .net application within the panel using c# code im able to run exe file on the button click with System.Diagnostics.ProcessStartInfo and Process p = Process.Start("notepad.exe"); but what is the code to run this notepa...

Fast WPF Image Control

I'm looking for an Image control for WPF which can rapidly change images. The built in WPF one is quite slow for the image sizes im using (scaled). I only need about ~3 FPS. I have considered dropping to WinForms and even D3D but I'm not sure thats the best way. Can anyone suggest something? ...

Keyboard Actions on UIC - C#

i have a login form what i want is that after i have filled the password field when i press "Enter", it performs some action, some set of lines of code, in my case the same that the "Login button does". how to do it ...

Telerik RadScheduler vs DevExpress xtraScheduler Winforms

Hi guys,which one do you prefer?Which one is easier to customize the appointment form,and crud with it?Thanks.. ...

ShowDialog() while another form is visible through ShowDialog() as well, closes both?

I have the following situation: ParentForm which opens WelcomeForm with ShowDialog. WelcomeForm contains a Button which opens NewProjectForm with ShowDialog When the user hits OK on NewProjectForm, a new project is created and both forms are closed (good behaviour) When the user hits CANCEL on NewProjectForm, both forms are closed (und...

Can I use a GTK# component inside a WinForms form?

Can I use a Mono GTK# component inside a WinForms form? Especially, I want to use the Mono.Texteditor. ...

Starting with window application for retriving list of software and hardware installed on remote pc

I want to create an application that can give me a description of all the softwares and hardware installed on a computer that is connected through a Local Network. In Hardware Description - I want something like the list shown in Device manager and in software description i want a list of all the softwares installed in remote pc as show...

LINQ to SQL and Windows Forms Binding.

Could anyone suggest the proper way for binding LINQ to SQL queries in Windows Forms controls? Should i follow the standard way with BindingSource and handle the events to have change tracking while various values changing from the controls. This kind of binding will involve hierarchical object binding too, EntityRef<>, EntitySet<>. Now...