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

Software Development Network >> Windows Forms

Windows Forms

New Question

Retrieve Object from ListBox
How to assign Data table object to BindingSource
how show only selected rows in datagridview?
How to total up a column in datagridview?
Validation of fields in form
How do you use delegate for custom method?
Midnight Cruiser
MessageBox not given Focus
Help triggering an event when data is changed
How can I make update version for application which was signed with certificate now expired?

Top Answerers

Zingam
Matt DC
KJBalaji
Rick_in_Alpharetta
AdamB78
EdenZa
Sharewareisland.com
mshvw
Arun Murali
rusty123
sitemap
Only Title

Answer Questions

  • Scott Bellware Preservation of contents of the form in a database

    Help! Such problem: it is necessary to keep all contained (an arrangement controls...) forms in a database. How it is better for making Can eat any framework (for CMS, for the client) for such work. Thank you very much, DeborahK . Do you know if there is some library or framework for this Thank you. Yes, I understand. But we need smth like serialization/deserialization of controls. This will be whole system, database will have data tables (Firms, Contacts and so on), then we need to store somewhere forms for editing/viewing this data. We gonna to store it also in database in some "system tables", e.g. (sys_Controls). ...Show All

  • Will George Location for dialog box

    hi .... I have create a UserControl (ColorPicker) that have a button that when it clicked it will create form and use it as dialog box everything work fine but my problem is am trying to set the location of dialog box I try to change the parent of dialog box and I have no luck on it also I try to set the location and it's did not accepted Public Class ColorPicker Private Frm As New Windows.Forms.Form Private Sub ColorPicker_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load With Frm .Size = New Drawing.Size(189, 197) .FormBorderStyle = Windows.Forms.FormBorderStyle.FixedDialog .ControlBox = False .AutoSize = True : .AutoSizeMode = Windows.Forms. ...Show All

  • Michael Hansen Class with UserControl and multiple buttons - please help

    How would I rewrite this code so that Class1, rather than the base class of the application, contains the controls The way I've got it here does it all on the base class and is just to demonstrate more or less what it ought to look like if I could figure it out. The part where I tried to make it work using Class1 is commented out. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Containers { public partial class Form1 : Form { public Form1() { InitializeComponent(); Button b1 = new Button(); Button b2 = new Button(); UserControl u = new UserControl(); u.Controls. ...Show All

  • CJ_1234 Is it possible to use DataGridViewRowCollection.List.RemoveRange?

    Is it possible to use DataGridViewRowCollection.List.RemoveRange instead of DataGridViewRowCollection.RemoveAt to improve performance I tried the following, but it did not work: class AlphaRowCollection : DataGridViewRowCollection { public AlphaRowCollection(DataGridView dataGridView) : base(dataGridView) { } public void RemoveRange(int index, int count) { List.RemoveRange(index, count); //this works fine: /* for (int i = 0; i < count; ++i) { RemoveAt(index); } */ } } Hi, There is a remark in the MSDN : The List unshares all the rows in the D ...Show All

  • 2V. How to sort a datagridview by two columns

    Most of you are probably familiar with Windows interface. I need help with sorting my datagridview which has the same idea with what Windows Explorer does. When you choose to "View -> Details" then if you sort by "Type" Windows will sort by type and also it will for each type sort by name Example :   Filename                                   Type         (Sorted By FileName) aFile.mp3                       &nb ...Show All

  • michaelp Value not appearing in textbox

    In a nutshell... I'm new to working with C# in Visual Studio and I have a dilemma. I am populating an arraylist with datetime values via a winform. When I click a certain button on that form I want to see the second arraylist item appear in a textbox. The code I'm using to do that is: ReturnedTimesheetTextBox.Text = theCurrentEmployee.Timesheet[1].ToString(); However, clicking the button produces this text in the textbox: EmployeeProject.Timesheet Now, "Timesheet" is the name of a property which is of a type ArrayList and which resides in another class. "EmployeeProject" is, of course, the name of the VS project this exists in. Can anyone offer any help as to why I'm not seeing my datetime value app ...Show All

  • zuoliang System.Windows.Forms.Message in C#

    I created a message with: "Message msg = Message .Create(( IntPtr )iAsyncResult.AsyncState, WM_CUSTOMMSG, ( IntPtr ) null , ( IntPtr ) null );" How do I send it Thanks I've often wondered why SendMessage and PostMessage are not supported within a .NET assembly. This PInvoke isn't too bad, but it would have been more convenient just to use a method in Message. Does anyone know the reason why the .NET Framework dudes didn't support SendMessage It's possibly to low level to be provided in the .NET Framework. The .NET Framework doesn't want people to use SendMessage to do their stuff. PInvoke.net has a nice reference on how to include the native method "SendMessage" ...Show All

  • niroshanonline Alter the Close_button event on form

    Hi, I want when the user clicks on the Closing button(red cross) of my form, that my Form isn't closed but made unvisible(frm.visible=false). Is this possible and how would this be done Grtz Annihil8 I believe what Paul said would be good in this situation as a "patch" or workaround. To paul: Your answer does work indeed. Thnx To ahmedilyas : I have a parent form and a child form. On the parent form there is a button which opens the child parent. ParentFrm = drawing of coordinates ChildFrm = datagridview of coordinates. You should open and close the ChildFrm. But if you change the datagridcell of the datasource the drawing is updated immediatly and viceversa. I do this ...Show All

  • Erik BN Binding array into datagrid column

    Dear All, I have a dynamic array generated. So what I want to do is to keep the array as part of a grid column. I cant afford to put each of the array value as individual row as this list will be a long one. So I am doing grouping and keeping the all the ID into an array and later I want to store this array as column value. So how can I store an array as a datagrid column Hi, Exactly you got me right. Ok let me explain the data is just simple numbers. So let say for row 1 the array is consist of IDs 1,2,3,4 and row consist of IDs 2,3 and row 3 consist of IDs 4,5,6,7,8,9 etc. So how can you help me on this. Thanks. Hi, Firsy of all I would say thx for ...Show All

  • Timmy0614 watching the port of printer

    I installed a virtual printer in a local port. How can i watch this port that every time someone prints (i.e from Word or Paint) to the virtual printer my application to be informed. Thank You. ...Show All

  • jchau Stupid question about changing controls

    what im having trouble is when i create a new void in a form class, im having trouble changing controls (ex. labels, listboxes) from that void. I can access them but when i go to change something about them it doesnt work. (no error) for some reason it works if i call that void in Form_Load any one know why oops nvm i said that wrong.... what im doing is having another form pop up that u enter information in then it calls the void in the origional form to add it to a listbox. ok in form1 public void addItem( string a) { listBox1.Items.Add(a); }   and in form2 private void button1_Click( object sender, EventArgs e) { Form1 test = new Form1(); test.addIt ...Show All

  • viveque Progress Bar Redraw With New Value

    I am trying to write a program which calls a new thread to do the bulk of the processing. I have set it up so that the main class has a progress bar which updates as the program runs. The only problem is that the progressbar stops working once the program loses focus on my computer. Also, rather then updating the progressbar on a timer, I would prefer if the new thread could update it every time it updates 100 records. Is there any way to fix this problem, and is there any way for the new thread to tell the original when to do the update A snippet of the code I am using is below: Thanks, Russ Original Thread: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ private void button1_Click(object sender, ...Show All

  • emericbart MAJOR Bug? In Webbrowser Control

    There is a major bug in the webbrowser control, OR I am doing something wrong. I'm hoping its the second. Whenever you navigate directly to a flash application (ex. www.microsoft.com/flash.swf) in the webbrowser control, buttons in the flash application do not work unless the application is unfocused. 1) Is this supposed to happen What properties could be screwing this up 2) Are there any fixes for it if it is indeed a bug Also, are there any workarounds I can use for this Indeed. Microsoft, this needs to be fixed immediately. This is absolutely horrendous! I think it may be a bug, according to this previous post... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152285&SiteID=1 ...Show All

  • Derek Comingore datagridview SelectionMode Question

    Question about: datagridview = DataGridViewSelectionMode.XXXX I have datagridview (unbounded) where I modify the background color to indicate a date that someone is scheduled on. When they click on the (xx.S ctionMode = DataGridViewSelectionMode.FullRowSelect) I don't really want a full row select (although that is what action I wan't to perform), I just don't want the row highligheted because it obscures the background colors, any suggestions Thanks What I want: An event that acts the same as a fullrowsellect without highlighting all the cells in the row. Is this possible with datagridivewcontol I don't want to obscure the background color of any cell in the row (which happens upon a row select). S ...Show All

  • Mike Lee Han Ming Microsoft Visual Studio 2005 crashes after opening the designer

    Microsoft Visual Studio 2005 crashes after opening the designer of an visual inharited form. The whole project compiles with no errors or warnings and i experience this problem not from the beginning of the inharitance. I have a user control that is inharited. The base control opens fine but when i try to open the inheritor Visual Studio crashes saying "Microsoft Visual Studio has encountered a problem and needs to close ". Has anybody encountered such a problem I looked also in the event log but the error there is completely infamiliar for the google engine. Do you have any ideas how to solve this problem if it's a huge Microsoft Bug - we all wouldnt be running VS2005 since last year...Microsoft DO make sure products ar ...Show All

92939495969798990123456789

©2008 Software Development Network

powered by phorum