winforms

adding selfmade button to c# vs2008

hi,how can i add my selfmade button into toolbox in vs2008?thanks ...

Is there a way to make .net winform tool tips behave less haphazerdly?

I find that the winform tool tips behave very erratically. They seem to randomly decide to do nothing, show up or disappear when I perform the same hovering/clicking/etc actions. Is there some pattern that I'm missing? Do I just not understand the UI technique to bring up a tooltip? Is this a common problem? Do people actually expect to...

What package of .Net framework is required on target client machine in order to run .Net winforms application?

I'm Trying to deploy my winforms project using installshield in order to make is available to be installed on other computers. My project is written under .net framework 3.5. My question is : What version of .net package should be installed on the target machine in order to be able to run my project? One thing to notice is that target...

Problem: Anchored controls are overlapping

Let's say we have two panels, listboxes, etc... on the same "row" .. by "row" I mean their TOP property is the same so they are horizontally at the same level. now If I set the anchor property of these two controls to top-left-right and I drag the right side of the form, the contorl that is at left hand side will overlap the control at t...

Any overhead to redundantly setting Control properties?

I'm dealing with a lot of code that looks like this: if (btnLeftDock.BackColor != SystemColors.ButtonFace) { btnLeftDock.BackColor = SystemColors.ButtonFace; } if (btnRightDock.BackColor != SystemColors.ButtonFace) { btnRightDock.BackColor = SystemColors.ButtonFace; } if (btnTopDock.BackColor != SystemColors.ButtonFace) ...

C# I had a confusion

I had a confusion let me explain it in brief. I have a form i placed one textbox and a command button. and I have one plain class. class1 code. class Class1 { string s = "hi"; Form1 form1 = new Form1(); public void cl() { form1.textBox1.Text = s; } } form1 code private void button1_Click(object sender,...

ListView Column Header Liquid Sizing?

Hi, I have a WinForm application that has a list view in it. What I want to be able to do is have the right most column resize (width) whenever the window gets bigger or smaller. Is this possible? If so, which property is it controlled by? ...

MouseHover on Root node of a tree view

I am having a treeview with one root node . I have written MouseHoverEvent as follows private void tvwACH_NodeMouseHover(object sender, TreeNodeMouseHoverEventArgs e) { string strFile = string.Empty; if (e.Node.Parent.Text == "FileHeader") { strFile = e.Node.ToString(); string str...

Is it possible to add child nodes to the added custom nodes

the actual procees of my work is initially i will have a root node for a treeview. If i right click on that i will have a context menu with some options. If i select add new from that i will add a text file as child node to the root node. This works fine . After adding that text file i would like to add a child node under that text file....

How can i handle the key that was left to the Right control key

I would like to handle the key that was left to the Right cntrl key which is equivalent to Mouse right click. ...

Event after Layout action of Control Performed

In Winforms, My control contain child controls. Insailly size of parent control(in load event) is less but after display it expand on the basis of child controls but inn code i need origanal size of parent control. Is any event after all the Layouting performed or any other approch ? I also try PerformLayout() but it does not work. Pl...

How to clear items in DevExpress LookupEdit

Hai, Am using DevExpress LookupEdit in C#.NET application.I want to clear all items in the LookupEdit.Please help code: lkpLabItem.Properties.DataSource = null; lkpLabItem .Properties.DataSource = _lab.selectChemicals (); lkpLabItem.Properties.DisplayMember = "labitem_Name"; lkpLabItem.Properties.ValueMem...

db4o - ignore specific class property

Hi, Is there a way (meta property maybe) to tell db4o to simply ignore a specific property of a class? I can't see anywhere to do that.. For my purpose I have a bunch of data entity that i need to persist now and then. I also sometimes need to hold a ref to a UI element associated with it, but I don't want db4o to persist that elemen...

how to add checkbox control in DevExpress XtraTree List

Hai, Am using DevExpress Tree List in C#.NET application .I want to add checkbox control in DevExpress XtraTree List.Please help Thank you. ...

How do i check if an instance of the form already exists?

Im developing a plugin for Rhino, and when i run the command starting plugin i carries out the following. It creates a splash form, which has a timer on it, and after 2sec i loads another form. If i by mistake click the plugin-icon again, it creates another instance of the spash form, which loads the plugin again. How do i prevent thi...

Setting up font fallback in winforms in code

I have a C# Winforms application that does some image and text manipulation. Basically, it draws some images and puts text on them. What I would like to do is render English characters in Arial and East Asian language characters in an appropriate character font. The default Winforms font substitution almost handles this correctly. Engl...

DataGridView not updating when additional rows are added to the bound DataSource unless I null it out first.

I have a winForms DataGridView bound to a List<MyObjectType>. My problem is that once I do the initial myDataGridView.DataSource = myObjectList; that adding/removing elements from the list is not reflected in the displayed DataGridView even though in the debugger the row count on myDataGridView.DataSource does update. I'm able to for...

Bind Date and Time to seperate columns in DataGridView

I have a DGV bound to a list of objects whose properties include a DateTime value. I'd like to display, and allow editing the Date and Time components in separate columns. How would I do this? ...

Modal/Kiosk UI framework for Winforms/WPF?

I'm currently working on a windows application which is entirely model, that is, it removes the start bar, disables alt-tab, etc. Thus far what I've done is use a maximized, topmost, MDI container and hide/show the child forms as the user navigates through them. This works fine until you start getting into more complex interactions whe...

Help to design this TableLayoutPanel

Any ideas how can I achieve this as posted in the picture? from the three controls in the picture - ignore labels- , the button is fixed meaning that it does not resize but the other two are resizing when I am resizing their form - the same thing ANCHOR does - Thanks ...