Quantcast
Browsing all 12583 articles
Browse latest View live

DataGridViewCell wrap text with ellipses

In .net winform DataGridView's cell, how to display multilines text (wrap) together with the ellipsis (...)? Let say for the long text 'abcdefg ijklmno', it should display as 'abcdefg ij...' if the...

View Article


How to get another application menu

Hi all MSDN menber I have one problem. When I use GetMenu function of API to get the application menu from my program, I can get the menu from Application like WordPad, NotePad. But If I try to get...

View Article


CellContentClick_Event

Hi to all, Advance Thanks, I am using DatagridviewCellContentClick, Its working fine.My code isprivate void datagridview1_CellContentClick(object sender, DataGridViewCellEventArgs e) { int id =...

View Article

Image may be NSFW.
Clik here to view.

How to keep the tree node sort order when adding/inserting node to a treeview...

Recently I was working on a treeview, which has a customized TreeViewNodeSorter. I found I could not keep the original tree node order if the TreeViewNodeSorter presented. I'm wondering how I code this...

View Article

TreeView's SelectedNode Text Highlight should not be applied for entire text...

Hi,I have a strange requirement.1.Whenever TreeView's Selectednode is highlighted with default backcolor. i want to restrict the selection to some extent in the text2. Entire text should not be...

View Article


How can i change the class and the functions inside to fit in any listBox items?

I have this class:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Windows.Forms; namespace GatherLinks { class ColorText {...

View Article

Get Record from datagridview

Hi to all,Advance Thanking You, I can get record from DataGridview, if selected Rows.My code isfor (int i = 0; i < datagridview1.SelectedRows.Count; i++) { int id =...

View Article

datagridview cell validation problem

I have a datagridview, in that when i press enter key at the last column of the row it creates a new row.First column name is code and last column is datagridviewbuttoncolumn  named void. when i click...

View Article


checkbox in C#

dear expertsi have a C# code with a switch and case statementsi have 5 cases, now i want to insert checkbox in my code to display the result of some cases, want to know how to do it

View Article


How to resize System.Windows.Control.Panel if the window inside which the...

How to resize System.Windows.Control.Panel if the window inside which the Panel is placed is minimised or maximised.

View Article

Image may be NSFW.
Clik here to view.

C# Menu (Short)

WIndows 7C#I have a task:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using...

View Article

Creating windows 8 Metro Style Message Box in windows form using c#.

How to create a windows form application having a message box style like Metro in c#.? Not developing an XAML App but a normal c# form application.Thanks.

View Article

C# System.Windows.Forms.WebBrowser set cookies or session on a new TabPage

I want to recreate a web browser with tab capability, popup block and redirection to a new tab.  Above the code of what I've been able to reach.ATTEMPTS I've tested it on some sites and the popup...

View Article


Events for dynamic crated combobox

Hello I am using VS 2010. C++/CLR Windows Forms ApplicationComboBox^ ActivationFunction = gcnew ComboBox; ActivationFunction->Name="ActivationFunction"+NewLayerAmountValue;...

View Article

Anchoring TextBoxes within a Panel causes vertical alignment problems.

I  have the following code in a loop which is adding TextBoxes to a Panel.  (Note that the first TextBox is intentionally placed in the second slot - to maintain the correct alignment with TextBoxes in...

View Article


Image may be NSFW.
Clik here to view.

Creating click event programmatically winforms C# on DataGridView ImageButton...

Hello gurus, I have a little problem here that I'm sure one of you could easily solve. I'm creating my datagridview dynamically using the dataset from my sql query. What I want to do is to associate my...

View Article

Why the event listBox1_DrawItem is working only sometimes in some cases ?

In the designer I have set the listBox1 DrawMode property to: OwnerDrawVariableThen in the Form1 Load event I did:data.Add("Gpu Temeprature --- " + form1_location_on_x); data.Add("Cpu Temperature --- "...

View Article


right click on TreeNode / C#

Hi!I have a TreeView in one of my frames. What I want to do is the following: when I select a node and make a right click, a pop-up menu should appear so that I am able to delete that node.How can I do...

View Article

Image may be NSFW.
Clik here to view.

C# Menu (Short)

WIndows 7C#I have a task:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using...

View Article

Converting string to label

I am trying to make an app for work for computing dimensions. What I have is one form for entering data and another form that displays the results. I have a string array transferArray that stores the...

View Article
Browsing all 12583 articles
Browse latest View live