Quantcast
Channel: Windows Forms General forum
Browsing all 12583 articles
Browse latest View live

Using Downloaded .cs files

I have .cs files I have downloaded that use some created namespaces.  They compile fine when they are on their own in VS but when I try to add them to a program I am currently working on I cannot...

View Article


Refresh() method in c#

what is the function that the refresh method is doing? when we should use it?

View Article


Sub Main in VB2012

I have a Windows form application to which I'm adding a Login form. What I want to do is run the login form first and if the userid and password are authenticated, display the main form and close the...

View Article

ClearType + Transparency = Messy Repaint :(

Hey there,I'm stuck here and would appreciate any help.Below is a simple class that demonstrates a problem that I have not been able to find a nice workaround for that is acceptable to me.  Obviously...

View Article

List View Selected Item Not Scrolling To Selected Row

I have a list view (details)  I am displaying this list by setting it to a data set.  I have a a move up and down order button where I update the order of the row in the database. Then I clear the list...

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

Image may be NSFW.
Clik here to view.

Combobox Height and Remove Inside Borders

Hi all,Well, looks like there are lots of questions like this, but I haven't been able to solve it, I need to resize the combobox with the following API, it resizes it ok, but the text looks cutted, so...

View Article

how do i refresh the form?

            the following code is in frmMain which is display only.frmPerson is the add/edit form that sets the values of the PER class.everything works fine in frmPerson, but i need to know what code...

View Article


Creating a button in another form of another pc!?

Hi!I have food ordering system with two applications. Server and Client. At Client side, I have all food items upon buttons like: button for tomato soup, etc.At Server I have its management. Now my...

View Article


Form.Location

I want to display form2 just a little lower and to the right of form1. Dim frm2 As New Form2 frm2.Location = New Point(Me.Location.X + 102, Me.Location.Y + 102) frm2.Show()If I run the project and...

View Article

Image may be NSFW.
Clik here to view.

What do I select the combobox form1, form2 appear in the text on the label

Friends,Right now, when you select any of the namesin combobox (ComboBox_Names), the sametext appears on thelabel.I just wish that this sameeffect of a label,appearedin FORM2.How do I? What is...

View Article

How to change size of ActiveX Control to MDIChildWnd in Visual C++ 6 at run...

I've created an ActiveX control using .NET and don't know how to resize my control when MDIChildWnd is changing its sizeCMyControl* m_pMyControl = new CMyControl;void...

View Article

How to Auto generate Serial number in GridView in Windows Application

I need Row index for the data that i am displaying in Grid View.Alluru.Midhun Kumar Singh

View Article


datagridviewcomboboxcolumn selection behaviour

Hi, whenever I select a bound combobox with the mouse in a datagridview the combobox shows a value. When I tab off the combobox the value disappears. This behaviour seems pointless as I have to perform...

View Article

Combobox inside DataGridView goes in infinite loop

I am having a DatagridView in my outlook custom form and populating two datagridcomboboxcolumns. The binding of data is from XML file and the data is bound properly.I added code to show the tooltip for...

View Article


how to get the text of the button control c#?

HiI have added 20 buttons dynamically and also created btn_click handler. When user click on any button i want to get that buttons text in a textbox, How?Thanks

View Article

C# Stop Button From Gaining Focus On Click

I have several buttons that when clicked I do not want them to gain focus nor do I want the space bar to 'press' them again. I've tried to search for it but most forums only talk about taking focus...

View Article


Application displays a dialog box when an exception occurs

I have a code with try/catch. When a exception (OracleException) occur, the application show a dialog box with the exception stacktrace. The application cannot show this dialog. How to inhibiting the...

View Article

Adding ToolStripItem Dynamically and AutoSize

My application adds ToolStripItems to a ToolStrip dynamically, however the size of the ToolStrip is not always correct.  The ToolStrip's width sometimes falls short, creating the "extra" dropdown icon...

View Article

Mapping DataGridView to Data Table

Hello All,How to reflect the caption property of column in data table in the data grid view column property of DataPropertyName or Header Text or Name of the column. I want this for mapping purposes...

View Article
Browsing all 12583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>