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

Software Development Network >> Windows Forms

Windows Forms

New Question

closing/disposing of a dialog
WebBrowser control shows HTML code
WinForms - Populates Combo box dynamically.
Numericupdown control maximum and minimum value setting at runtime
Clickonce updates
Capturing Key Events
How to code "Find" feature in .NET Browser control?
Access list of files in MSI in custom action
Repaint Flicker in windows form with complex layout
Runtime error

Top Answerers

Worf
LastHope
JFoushee
KrisF
IObject
Leo Mathew
DavidCeder
Robert Polding
Lars E.Nes
ericzaj
iVillage: House and Home
Only Title

Answer Questions

  • Dmitry Babokin reaching cell position

    hi i am working with TableLayouPanel and i have a problem to reach one cell to change it color. can you tell me if its possible to do that and how thank you To reach one cell, you can use the Controls collection of tablelayoutpanel, for example: tableLayoutPanel1.Controls[0].BackColor = Color.Blue; //use the index to reach a cell tableLayoutPanel1.Controls["label4"].BackColor = Color.Red; //use the control's name to reach a cell i want to know if i can color one cell without using any controls. becasue with this expression tableLayoutPanel1.Controls[0].BackColor = Color.Blue; i have to put some controls in the cells ,otherways iy will not work ...Show All

  • imdqa BindingSource.AddNew resulting in InvalidCastException

    I have a BindingSource component bound to a strongly-typed DataSet. If I call the AddNew() method of the BindingSource to add a new row, I get an InvalidCastException : Unable to cast object of type 'System.DBNull' to type 'System.String'. I've set the NullValue property of all the columns in my DataSet to '(Empty)' but when adding a new row, DBNull is still returned. I could fix this by changing each column's DefaultValue property to "", but I don't want to do this because the Access database which stores the data does not allow zero-length strings, I want the default value to be DBNull but to appear as an empty string when databound. What do I need to do to achieve this Anyone I still haven't ...Show All

  • Mike Brown Capture the row information from a datagridview

    Hi, Could someone please advise me of the simplest way to capture the row information from a datagridview using VS2005 Each row in my dataGridView consists of four columns from my sql database, and I would like to 'capture' the all the row info and input it into a datatable to display in another format further on. Can anyone please advise me of any pointers Actually one more quick one, How wouuld I go about it if I wanted all of the fields in a specific row to appear in a large text box Am I on the right track below private void selectingDatagridItems() { DataGridViewSelectedRowCollection myRow = this.dataGridView1.SelectedRows; DataTable myTable = new DataTable(); ...Show All

  • RabinLin How to: Disable CheckBoxes in a CheckBox Column in the Windows Forms DataGridView Control

    This code is based on: http://windowssdk.msdn.microsoft.com/en-us/library/ms171619.aspx . Enjoy! Code Block using System; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; class Form1 : Form { DataGridView dataGridView1 = new DataGridView (); [ STAThread ] public static void Main() { Application .EnableVisualStyles(); Application .Run( new Form1 ()); } public Form1() { this .AutoSize = true ; this .Load += new EventHandler (Form1_Load); } public void Form1_Load( object sender, EventArgs e) { DataGridViewCheckBoxColumn column0 = new DataGridViewCheckBoxColumn (); ...Show All

  • NetPochi PerformClick stopped working

    I have the code below that worked for a long time and I made some simple code changes, like adding a msgbox stmt, and now none of my PerformClicks work. Anyone know why Here is the code: Private Sub frm_ARExport_Shown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shown MsgBox( "AutoStart=" & AutoStart.ToString) If AutoStart Then MsgBox( "Before btnLogin.PerformClick()" ) 'fires btnLogin.PerformClick() 'does not fire MsgBox( "After btnLogin.PerformClick()" ) 'fires btnDoFile.PerformClick() 'does not fire 'Me.Close() End If End Sub Private Sub btnLogin_Click( ByVal sender As System.Object, ByVal e As Syste ...Show All

  • dima_ua Implementing cut, copy, paste from menu commands

    I'm having a problem implementing the cut, copy, paste etc. commands from my "Edit" menu. I searched for similar threads about this but no one else seems to be having the same problem as I am. I want the commands to be useful for every control on the form. This includes TextBoxes, RichTextBoxes and ComboBoxes. I understand that the usual method is just to create the Cut/Copy/Paste's click event and have it check what type the form's active control is, cast it and take appropriate action, for example just using the Copy() method for TextBoxes. The problem I'm having is that when I click the Cut/Copy/Paste menu item (or even just use the ctrl-X etc. shortcuts) the form's active control changes to the ToolStripCon ...Show All

  • Cygon4 Printing a designed layoutform

    Hi all, I'm building a program, which can be used to create a layout for a label that needs to be printed. I've created this using drag and drop. So the user can drag textboxes, lists, images onto a panel. The locations of the textboxes, etc... are saved in a database, their values, offcourse, too. Now I want to be able to print this panel containing controls, all in exact location. Which is the easiest way to accomplish this Sincerely, Tobias Actually what i was trying to demonstrate is not how to print a panel with an image on it! The DrawToBitmap method draws the surface of a control to a bitmap file. That means that if your panel contains another set of controls (RTB, lists, ...etc), ...Show All

  • Tom K Changing the databasource of a DataGridViewComboBoxCell at runtime

    Hi, I have a DGV where one of the columns is a combo box style. I bind this combo box to some datasource. What I would ideally like to do it to limit the combo selection to make the items available mutually exclusive to what is in other rows. The net result I guess is I get uniqeness in this column over all rows. Is this possible If so, which event should I use to re-assign the datasource property for the combo Thanks for your help Graham I've got done it!! I've finally managed to solve the problem. I found this ( http://groups.google.be/group/microsoft.public.dotnet.framework.adonet/browse_thread/thread/65ebfe5ace89c70c/78c1caae3fc252fe lnk=st&q=%2Bparent-child+%2Bmermuys&rnum= ...Show All

  • clint 2 dataset.merg() New to C#

    I am trying to merge data from a odbc database to a winmobile database. this code compiles and runs, but no data is transfered. fB7MobileDBDataSet.Merge(dataSet1.CUST, false , MissingSchemaAction .Ignore); I obviously don't understand the concept of this method. It says this is used to transfer data between larglely similar tables. Well my tables in my estimation re not largely similar. Here are my tables data schema ODBC WInMobile Code String 10 Code String 5 Link String 1 Lname String 40 Firstname String 36 FName String 35 LastName String 70 Name String 80 Name String 110 ...Show All

  • Matt E. Export DataGridView to Excel

    Hi I'm new to vb, I'm using VB 2005 I have a DataGridView that i want to export to Excel what is the simple way of doing that yes sure great it works but i have some questions : 1. how do i make the user choose the name of the file and the location 2. how do i open the file automaticly 3. in my DataGridView i have many numbers, How do i convert them all to be numbers and not text on the Exel file Thanks. See if the following works for you: http://www.wwwcoder.com/main/parentid/254/site/5334/68/default.aspx yes do you know why i keep getting Response is not declared ...Show All

  • Mystagogue How do I create a backshadow of a line of text

    I've been asked to create a drop shadow effect of a line of text on a form. When I was coding VB 6.0, this was easy as I would create twoi labels and set one to transparent and drop the other behind the first. When the app ran, a drop-shadow effect would be apparent. But I'm having fits trying that in V.S. 2005. I've set the forms Transperancy Key to a color and set the label back color to the same color but what I got for that was being able to see the desktop! And setting the top label back color to transperant apparently does not work either, unless there was something else I failed to do Is there a way of doing this or will I have to convince the user that this is no longer possible Thanks; Rhubarb Well, I will on ...Show All

  • sGurpreet Capture the frames from Flash file and save it as the JPEG image Using C#

    Hi all, Currently i am developing an application that requires me to play a flash file.I am using in C# Windows application. But i have one problem as described below---- The shockwave flash files (.swf) can be played on the Windows Forms using the Shockwave Flash Object and Shockwave ActiceX controls. However there lies some problem when we want to control the Playing of the Files programmatically. I need to capture the required frame of the flash files as the jpeg image. So, is there any way by which we can capture the frame of flash file. Also there is no method found by which we can grab the current frame of the file as Image programmatically. If we want to do the same we can emulate the Print Screen Functionality,that i ...Show All

  • Asim Zeeshan How to speed up datagridview

    Hi, I have a datagridview and i bind it to an arraylist. The arraylist contains about 50 000 of records. When a large number of rows(say 49000) being selected and I try to remove them all at once, it's such a lengthy process almost takes me 20mins. I have been looking for the solution all over the net, but i still couldn't find any. I have read an article on "Using the Selected Cells, Rows, and Columns Collections Efficiently" but it didn't tell me how to determine which rows are selected. So I can't determine which rows need to be removed from the datagridview. Can anyone help me with the problem Here is the code i used to remove the records in my datagridview: //get the tot number of rows ...Show All

  • AboOmar toolStripButton

    For some reason the toolStripButtons on a toolstrip don't have a handle when using Spy++. At the same time a toolStripComboBox on a toolStrip has handle. I am tryign to send a message to the toolStrip buttons but I can't because thre is no handle. Is there a workaround Why doesn't a toolstripbutton have a handle and a toolstripcombobox does Thanks a lot! i read the article... it is a good article, and the tool presented there does indeed have the functionality of interprocess communication. The bad thing is that everything it does is based on handles again, and toolstripbuttons dont have a handle consequently, you cant see toolstrip buttons with the mentioned tool. ...Show All

  • Sean ORegan Last Node on Tree View Missing

    The very last node of my tree view is not being displayed. it's there, you just cant see it. Here's the strange part, if I switch my display options under the Display Properties --> Appearance of Windows from Windows XP Style to Windows Classic Style and then run my program again, the last node is there and all is well. I cannot find anything on how to fix this. I have validated this on several other machines and all exhibit the same behaviour. HELP!!! Your code works beautifully. Thank you for the solution. This was driving me crazy and I can't believe there aren't more posts about it out on the WWW. Again thanks and Happy Holidays. Bizarre problem! Is it just ...Show All

818283848586878889909192939495969798

©2008 Software Development Network

powered by phorum