Software Development Network Logo
  • VS Team System
  • Visual C#
  • .NET Development
  • Game Technologies
  • Visual C++
  • Windows Vista
  • Smart Devicet
  • Visual Studio
  • Audio and Video
  • Visual Basic
  • Microsoft ISV
  • Windows Forms
  • Visual FoxPro
  • SQL Server
  • IE Development

Software Development Network >> Windows Forms

Windows Forms

New Question

Help! "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records"
BootStrapper Error?????
AutoScroll not working?
listview question
Tab Spacing in List Boxes
Adding a checkbox to a DataGridView column header
UserControl resizing in a container
Status message won't update in real time correctly to screen
Drawing problem
Get the parent Control object...

Top Answerers

Brian_Tucker
Gil Strauss
qrli
stevenmcs
Le Saint
snowmt
Tharindu Dhaneenja
Juan Carlos Trimiño
Thomas Gasser
luzippu
sitemap
Only Title

Answer Questions

  • FannwongCindy Smart Client Install/Uninstall broken

    Howdy all, I have a smart client application that is giving me an error when I try to install it (error text below).  There is an interesting twist though that is likely causing the error.  I recently developed this application in the hopes of making it a smart client.  The server where the smart client application will be hosted does nto have the .NET 2.0 framework installed.  It is not expected to be installed until sometime next year.  In the mean time, it was decided to make a standard windows installer for it. Here's where the problems started.  The solution has a Windows Installer project in it.  The main project is also configured to be published as a smart client.  It seems that during my ...Show All

  • domukajoor Highlight the DataGridView Column Header Cell

    Hi, I have some dates in the datagridview colum header my problem is highligting the current date and time in the column header.i am trying to use datagridviewcolumnheadercell but it is not working.Painting the header based on some condition its like if(datetime.now==my condition(my headercell value)) { then i want paint the header cell } Yeah, the problem with that approach is that you're now obligated to paint everything on the header cells yourself - it looses the nice gradient/shadow effect and the text becomes a bland serif font. I already do that in my application (for other reasons.. One, I need some interesting formatting on the text, second, I wanted a gradient background on the header cells) but it's not trivial, because t ...Show All

  • an5w3r VB 2005 SignTool Publish Error

    I am working on a program that I have been able to build and publish before but now when I try and publish I get an error saying the project failed to build and: "SignTool reported an error "Keyset does not exist." Any thoughts Thanks I had the same problem as you, and also on the a projet to which publishing worked perfectly a couple of times. Don't know the root cause of the problem, might be a certificate issue, but all I did was to click on the signing tab of the properties window of my project, and then click on the button : create test certificate, I entered a password, and then publish succeeded. I am now just curious to see if the password has to be entered when launchi ...Show All

  • Tryin2Bgood Combobox: displaying different data from a column from 2 linked tables

    Hi! Database structure: book table : PublisherID publisher table : PublisherID, publisherName Variables: BindingSource book BindingSource BindingSource publisher BindingSource DataSet customTableDataSet   In my program is a BindingNavigator customTableBindingNavigator: to navigate trough a custom dataset (joins 2 different tables, the book table and another one) Then I have some textbox fields (a PublisherID textbook and some others) bound to customTableBindingSource and a combobox. What I'm trying to do is to fill the combobox with ALL values of publisherName column, but with the right publisherName selected. Filling the box is no problem, but i'm having a problem selecting the righ ...Show All

  • blah569 Populate a tree view in c#

    Hi Guys! I have an number of objects, that contain a "name", and a "level" which was used to indicate the location of the "name" in a treeView in a C++ application. The datastructure of the objects has to stay the same, but now in C# land i am really having problems to populate the treeView. I could not find any method to get a parent TreeNodeCollection, when i am sitting somewhere down in a "sub" TreeNodeCollection (yes i loved my pointers :). Also writing a recursive function failed as (ref TreeNodeCollection xxx) is something the compiler doesn't like at all, as it's implemented as a property. So the big question is now: How do i get a structure like this: Name1, Level0 Name2, Level ...Show All

  • MA2005 Text field/box

    Task: I have a text box with maxlength property set to 0. What I want to accomplish is to determine whether an overfilling of the text box has occured. Example if you enter a text beyond the visual space or width of the textbox. Example: TextBox _txt = new TextBox(); _txt.MaxLength = 0; _txt.Text = "Yandisa Mtyide has been developing in C# for the last 10 months"; _txt.Width = 60; //Basically the text will overfill the text box, so if this occurs I want to notify the user that the textbox has been overfilled Thank you This post is off topic for the Visual C# General form, moving to Windows Forms General. Try using TextRenderer.MeasureText to determine the displayed width of the text in t ...Show All

  • yogamnandhu Panel contents

    How can i determine the contents of a Panel control in my app i add some usercontrols inside the panel (one at a time, by clicking a button), but i need to check which usercontrol is currently on the panel, how can i do it I found something about checking if contains some control like: panel.contains(label1) but i can't do it when i add an UserControl, what's the correct syntax for that or what can i do Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click ' check to see if any of these controls are ' in panel1 MsgBox(InPanel( "button1" ).ToString) MsgBox ...Show All

  • sawer DateTimePicker - ValueChanged and TextChanged update issue

    I have two DateTimePickers and a ComboBox on a form. If a user changes the value in any of these, I update a listbox (via a function). My problem is that when I scroll through different months on either of the DateTimePickers, it causes the ValueChanged and TextChanged to fire. This causes my update because of the function I put in ValueChanged (or TextChanged). I only want to cause an update when an actual date has been selected (the calendar view disappears and the selected value is placed in the control). What is the correct event to use for this functionality I would appreciate any suggestions - I am pretty sure I am missing something stupid. Thanx! schwanks & Omegaman, Thanks for g ...Show All

  • filson Datagrid_rowenter runs twice when open form ???

    Hi all I have a mdi-application and when i open a form from another form the event "Datagridview_rowenter" runs twice. Form1: Form2 form = new Form2 (custno, dsCustomerData, dsCustomerContactData , this .backend); form.MdiParent = this .MdiParent; form.Text = strCustno + " " + customerName; form.Show(); Form2: (in this form i have a datagridview and it is this event which trigger twice. private void dgvContrCust_RowEnter( object sender, DataGridViewCellEventArgs e) { //Finding row in grid DataGridViewRow dgvrow = dgvContrCust.Rows[e.RowIndex]; //Finding values in the row DataRowView drvrow = ( DataRowView )dgvrow.DataBoundItem; MessageBox .Show( "rowenter..." ); } Why does t ...Show All

  • Rajesh batchu Automatically Wrap Text in Label

    I have the following scenario: I have a TableLayoutPanel in my form. In one of the cells I want to place a Label control to display some text. The label might have just a few words. It might have a paragraph. I would like the label text to automatically wrap inside the cell in the TableLayoutPanel. If the row in the TLP is not large enough, it should automatically grow so that it can display all of the text. 1) I have tried setting Dock:Fill and AutoSize:False on the label. This will cause the text in the label to wrap, but it will not grow past the size of the cell in the TLP. If I set the row in the TLP to be AutoSize, the whole row becomes hidden. 2) If I set it to Dock:Top, AutoSize:False, and set the TLP row to AutoSize, this works, ...Show All

  • Jason D. Camp display member of checkedlistbox

    I want to use a checkedlistbox for users to check which record they want to select. Can I show the full detail of record(serveral fields) instead of a single field I want a check box at the first column for user to check it, state the record is selected, there isn't any field for this check box to store the value in my database, the check box is only for me to know which record(s) I'll need to save. can datagridviewCheckBoxColumn do the same thing Or it is only one of the boolean display styles Thank You Why not using a DataGridView with a datagridviewCheckBoxColumn instead I think using a datagrid view is overkill if all you want to do ...Show All

  • Chundaman Preview Form2 on Form1

    I have 2 forms, Form1 & Form2. On Form1 I'd like to have a small scale preview window of Form2 when I run it. Form2 will be running fullscreen on another monitor in a dual-monitor setup. Please can someone help me with this Thanks in advance Do you think it could handle 30 frames per second or will that compromise UI by tying up resources. Alternatively will it benefit from running on a separate backgroundworker thread You could simply start up a timer and the timer's event handler could perform the drawing of the form to your bitmap. I don't know if all mpg viewing controls will support this (often they draw directly to screen RAM and you can't divert it to an o ...Show All

  • Boulderdude How to center components(windows form) when the form is maximized?

    Hi all, I've a windows form with one text box, two buttons and other components. Is there a way for me to center all these components when the windows form is maximized Thx. In every control properties go to anchor and set to none. Hope this is what you've been looking for. ...Show All

  • Tuk add a Control as an Item in listbox

    How can I add a Control as an Item in listbox I don't want use the Controls.Add( ) because in this case I lost chance of using seleted index property. AFAIK - the way you can add an item is to use the .Add() method. if you need to keep the position of the selected item, store it in a local temp variable before adding the item, then use the local temp variable holding the index selected and point the SelectedIndex to that. ...Show All

  • ykgreene autocomplete AND dropdownlist combobox

    I want to give the user the functionality of the autocomplete, allowing them to enter one or more letters and receive a list of possible entries, whilst also ensuring that the user can only select an item from the list and not type any old thing. I know that I cannot use the dropdownlist list option along with autocomplete, but how can I make sure that the user does not enter invalid data Basically, at all times during the edit process, I want the data in the combo to be valid, so if a user enters invalid data, maybe the previously selected entry should be selected Whatever works best. I want to have the functionality of both autocomplete and dropdownlist. How would I do this same thing in VB.net The ...Show All

121314151617181920212223242526272829

©2008 Software Development Network

powered by phorum