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

Software Development Network >> Windows Forms

Windows Forms

New Question

Help with displaying and editing Vector Images
Adding a Handler to Multiple Controls (including child controls)
Simple binding of control property to class property question...
"Foreign" msi files in a Setup project
Create the Drop-Down List of Controls in a Properties Window like VS
Trying to deploy the program
http://www.freewebs.com/tpshimoservices/
ListView's AddRange() Method
Drawing line on Forms
Use which platform to develop GUI?

Top Answerers

Jens Sauer
Bhasker
xw
mukkamala
Olivier Cueilliez
Alle
dHan61
geojf3
delphine
InquiringMinds
sitemap
Only Title

Answer Questions

  • adman666 Dataview problem

    Dim tmpTable As New DataView( myDataSet.Tables( BindingSource.Current( "TableName" )), "" , BindingSource.Current( "RecordIDfield" ), DataViewRowState.ModifiedCurrent) Dim RowIndex As Integer = tmpTable.Find( BindingSource.Current( "RecordID" )) With the above code: myDataSet.Tables( BindingSource.Current( "TableName" )) Returns the Table "VAT" BindingSource.Current( "RecordIDfield" ) Returns the field "VatID" (unique index) BindingSource.Current( "RecordID" ) Returns the value "1" The "VAT" table exists and the field "VatID" exists, there is only one row in this example and t ...Show All

  • roy-roy Handling NoNullAllowedException

    Hi, I get the above exception when the user clicks Save, on the code: Try Me .PropertyTableBindingSource.EndEdit() Catch ex As Exception MsgBox(ex.Message) End Try ex.Message displays "Column 'OrgName' does not allow nulls." I want to leave focus on the text box bound to column OrgName. How should I do this Or am I going about this completely the wrong way Thanks, Keith. Hi, I have looked at the ErrorProvider option, and if I have understood the Help correctly, I would need to write code in the Validation event of each field that could cause an error. I want to avoid this. I want to let the EndEdit() method generate an exception, then send the user to ...Show All

  • kedst1 TableLayoutPanel.Controls.Add(control, 1, -1)

    According to the documentation: "With Add , you can specify the cell position of control . You can assign control to a specific cell by providing both the column and row parameters, or you can specify only the column or row value and let the LayoutEngine place control at the next open cell. This is known as letting the control flow to its position in the TableLayoutPanel control. Set column to -1 if you want control to occupy a fixed row position. Set row to -1 if you want control to occupy a fixed column position." I understand that to mean that if I add a control specifying 1 for the column and -1 for the row, the control will be added in the next empty row, in column 1. But this doesn't work. Specifying - ...Show All

  • Milzit BindingSource with empty IList DataSource doesn't fire ItemChanged events

    In our application we are binding the DataSource property of the BindingSource to an IList collection of objects. This list can be empty. In that case, after adding a new object, the ListItemChanged event isn't fired when editing the new object. Has anybody experienced the same problem Is there a workaround for it Generic lists as DataSource do work properly, but we're dealing with some legacy stuff here so it's not really an option. Thanks, Martijn ...Show All

  • Pasalic Zaharije last action + hide the main form

    Hi, i create an application that execute a command at the startup and do a last one when the user leave windows (logout/shutdown). Since i haven't found if it possible to capture the logout/shutdown event, i use Private Sub Form1_Closed( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles MyBase .Closed stop_process() End Sub and Private Sub MyApplication_Shutdown( _ ByVal sender As Object , _ ByVal e As System.EventArgs _ ) Handles Me .Shutdown stuff_handler.My.Forms.Form1.stop_process() End Sub since i consider that to leave windows, windows will need to stop my process at the same time. Is there a better way to do the job Now the thin ...Show All

  • MeAndYou Can't disable a button

    I am programming in c#. I have a button on my form that when clicked, it plays a wav file using the PlaySound method from winmm.dll. The wav is about 3 seconds long. The problem is that if I keep clicking the button during the 3 seconds the sound is playing, it queues all of the clicks, and plays the wav over and over. My Button is named btn. So I tried: this.btn.Enabled = false; PlaySound(...); this.btn.Enabled = true; Doing this successfully greyed out the button while the sound is playing, but it still accepts clicks, so it didn't fix my original problem. Is there some way to clear the event queue Or is there something else I'm doing wrong. I just want the button to not work while the sound is playing. I have also tried ...Show All

  • pmail I can't set the column width.....

    I am going to show 2 columns only (phone, type), and I want to set the column width of phone, but I can't set it althought I've tried the post. Here is my code. Dim strSelect As String = "select autoid, id, phone, type from phone where id = '" & CboFiltered.SelectedValue & "'" Dim DA As New OleDb.OleDbDataAdapter(strSelect, conn) Dim DS As New DataSet conn.Open() DG.DataSource = DS.Tables("Phone") Thank You. You're welcome Chris. A little bit easier, huh Chris, If you're using VS2005, then use the DataGridView rather than the DataGrid. You can set the column width easily with: this.MyDataGridView.Columns[0].Width = 300 ...Show All

  • Dany V dataview count doesn't shows properly.

    Hi I used dataview for a subset of rows , from a datatable. In that subset, there will be zero quantity and non zero quantity rows . and there may situation to move quantity value  from one row to another row.(may be quantity can be moved from an existing row to a newly added row). after that non zero quantity rows has to be deleted. the dataview.item(i).delete works fine for, if I have more than two rows(either non zero or zero). The Problem is if I have Only one zero quantity row and another non zero quantity(newly created. quantity is transferred from that zero quantity to this new row). If I made attempt to delete that zero quantity rows. it deletes both  row.(ie., the dataview.count shows 0 inste ...Show All

  • Jehan Badshah ComboBox - disallow user input!?!?

    Hi, I'm an ASP.NET developer giving windows forms a go... I've been frustrated for a hour now trying to only allow user to select items that are allready in the ComboBox, with no success... How can such a simple task can be so difficult All i want is a simple ComboBox where user can select one of the items from the list of items... Please help... Thanks in advance, Nick Goloborodko DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList remco ...Show All

  • HariAdu Tab Control tooltip

    Hey I am using Visual C# 2005, How do you make it so that if you put your mouse over a tab on a tab control then it will show a tooltip like this: Title of site URL of site So a 2 lined tooltip Thanks :) Well, it is the Tab Control that is default in Visual C# but I amde it so that if you press a Toolstrip button then it will add a tab to the control with a Webbrowser control in it... But even if I have it for just the first tab it still does not show the tooltip...I checked if tooltips was set to true and it is... Still, it does not show the tooltip when my mouse is over the tab... this is what I have for tabpage 1: this .tabControl1.ShowToolTips = true ; tabPage1.ToolTipText = (thiswebpage.Document.Tit ...Show All

  • Carsten Kanstrup Limit rows in datagridview

    VS 2005 I want to limit the number of lines added in a gridview, can anyone show me the code and which event to place it. Thanks In advance i did this dgvResult.DataSource = null; dgvResult.DataSource = patientBindingSource; this.patientTableAdapter.FillByTop10( this.hPMDataSet.patient ); problem persists ;( when i configure the query in design view, execute the query, the result only shows the 8 specified columns, however, in the dataset design view, when i right click on the query and select preview data, the result listed all the columns of the database, with only the 8 specified columns containing data. This is wierd..... I think that's why the datagridview always ...Show All

  • Angel D How can I have a download display a progress bar?

    On my website, I click on the "Download 30 Day Free Trial" button. It downloads the program, but, it is not giving me any indication that it is doing it. How can I have it display a progress bar I found that if my download button links to Setup1.msi instead of Setup.exe then the download does give a progress bar. But, will it install the prerequisites ...Show All

  • Noremac Insert / Update database using CurrencyManager and BindingContext

    Hi, I just implemented the CurrencyManager and BindingContext using this link http://msdn2.microsoft.com/en-us/library/system.windows.forms.currencymanager.aspx , but now I can't update the Data Base. Here is the code I use. this .myCurrencyManager.EndCurrentEdit(); this .produtosTableAdapter.Update(DataSet ); The update method should go and store the information into the database, but it's not happening that, I guess that's because the data in CurrencyManager is not going to my DataSet, maybe I'm passing the wrong parameter in my TableAdapter, but I have no clue what parameter I should use instead of my DataSet. It does not throw an exception, the method goes without problem, but the update goes with the old information. ...Show All

  • sureshv Clicking

    Is it possible to pass through all clicks on a form's face to the applications below it For example, if there is a Form with a button on it, even If I click the button it passes through and clicks on this web page instead.. Personally in my opinion I would not bother creating such a feature. If the user knows they are going to watch a full screen video they will probably set aside the time to do so or do it without trying to "multi-task" through the video. Unless for some reason you really need them to be able to interact with their desktop and other applications while the video plays, then I suppose I understand why you want such a feature in your application. However, I am not sure if this is possible, if it is, it will ...Show All

  • Brandan C click WindowForm close button to generate an event C#

    Background: I am programming a windows form class in C# in visual studio 2003. I don't know how to generate an event that tells me that the window is closed. Suppose that I have a class extending from windows.forms.form. Let's call it Main.cs. Then I create another class extending from windows.forms.form. Call it SecondMain.cs. When I click the close button, which is "x" button in the top right corner of the SecondMain window, how does Main.cs know that the SecondMain window is closed There is a form_Closing event which you can implement in your Form class if this helps From this you could probably raise some event to your other class to indicate that the form is closing Thanks. It he ...Show All

555657585960616263646566676869707172

©2008 Software Development Network

powered by phorum