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

Software Development Network >> Windows Forms

Windows Forms

New Question

Get Response From Web Browser
I cannot get designer view....
Check box in datagrid.
ListView size limit?
why are the forms properity reset itself?
Slow painting, flickering on complex forms
Creating a 30-day trial (How to?)
flipping tabpages programmatically
Can you get to the open project or solution files while in a Designer in Design mode
Update an application

Top Answerers

James. L.
SoniaJulka
art crazy
Vinodonly
chakravarthy_b
Suncho
Flamin
lee d
SomeGuyOnAComputer
brother14th
TalkSpread
Only Title

Answer Questions

  • Bertrand Caillet VB .NET DataSet adding unknown number of DataTables

    I am trying to load from another class unknown number of datatables into one dataset. VB .NET dim dsTmpSet as dataset for i = 0 to count -1 Dim dtTmp as datatable = new datatable(i) dtTmp = a data table returned by another class dsTmpSet.tables.add(i) next This just crashes the for loop. What would be correct way to read my tables to the dataset. Oh already forgot posting this until the alert message came. Acctually I don't know if this is funny or not. As I was told there was this class I was talking about with the method. And I did call around the developers to ensure what it does. Funny part of the story is that I went some trouble to find the source and discovered that there was method coded b ...Show All

  • Andrea Yap List Box not updating it's datasource

    I am having a problem with updating the datasouce of the listbox. I have a list box and I bind to an ArrayList of strings. When I add a new string to the arraylist, and rebind it to the listbox, the listbox doesn't show the new string I have added. I tried the update, refresh method in the list box, but none worked. Anyone know why Following is the code I tried to bind and refresh the list box : ltbFilters.DataSource = filters; ltbFilters.Update(); ltbFilters.Refresh(); I found the problem. Just in case if anyone is having the same problem, the solution is simply clear the datasource first then reassign the new datasource to it. That will cause the listbox to update it's element. ...Show All

  • Artie Sluka DataGridView with DataGridViewComboBoxColumn: How to single click for dropdown list?

    Hello, I have DGV on a form that is working perfectly well, except I want a single click on the cell to begin editing rather than clicking two times. For example, I would like a single click on a DataGridViewComboBoxColumn's cell to cause the dropdown list to appear and a single click on a DataGridViewTextBoxColumn to permit the user to start editing the contents. I have the written the following code, which is attached to the MouseUp event, but I am not certain what I should have it do to the cell to achieve my goals. I've tried setting focus on mouse up, but to no avail. Thanks in advance for the help! Mike private void dataGridView_MouseUp(object sender, MouseEventArgs e) { DataGridView.HitTestInfo hti = dataGridView.HitTest(e ...Show All

  • Kris Nye EventHandlers for dynamically created controls.

      I am trying to subscribe to the click event raised by the dynamically created LinkButtons in MyCustomTable class. I want to handle these events in the code behind of my webform. In my webform.aspx.cs I instantiate this custom control and pass it in a populated sqldatareader and it returns a table which I then add to the  to a placeholder control on my page. This is a very simplified version of my actual control, but it serves the purpose for what I am looking for.   I know how to add the event handler in this same class. myLinkButton.Click+=new System.EventHandler(myLinkButton_Click); where myLinkButton_Click is a method name in the MyCustomTable class.   I want to define the method to handle the instance Click ...Show All

  • Rykin Poe return type

    hi all, we all write the functions with return type as int,double but why we need return type as another class name e.g public class abc() { some code here } public abc functionname() { } why we want return type as name of the class also why we need the return type of function as an object any help......... Hi, 1. Person p = new Person(); 2. Person p; The difference between the two is that with the first, you declare a variable of type Person and instantiate it. The second only declares the variable but doesn't instantiate it yet. You can not request an object 's properties as long as it is not instantiated. Greetz, Geert Geert Verhoeven ...Show All

  • Leaf. CheckBox Checked

    Hi there I have a class that derives from Checkbox and is basically a toggle button. I also have the ability to group the class instances so that they behave a bit like radio buttons and reset the checked state of any other buttons of this class on the form. Trouble is, changing Checked to false also triggers the CheckedChange delegate. Can anyone think of a way to temporily stop the CheckChanged event from firing from with the class itself. To explain a little further, the class has a method ResetChecked and this sets Checked to false, but in doing so it fires the CheckChanged delegate. I can't remove the delegate and add it after because I just can't find a way to do that Any ideas anyone Thanks Dave H ...Show All

  • rolandpish DataViewGrid - duplicate row on Dataset update.

    If I Insert into my Sql database from the data on the last row of a dataviewgridControl I have no problem, but when I go to update the Dataset, I get 2 rows on the bottom of the DataViewGrid, each with exactly the same data. It then locks up and doesn't let me add another row for another insert. -Updates based on changes in cells are fine. Help. -John S post some code ...Show All

  • Larsenal Modeless window does not lose focus

    Hello, How can I make a modeless window not release focus once the user clicks on another form in the application I tried using Deactivate event or LostFocus with no success. I basically need the functionality of a modal form, (i.e. ShowDialog, so it does not lose focus) but the code execution must continue after the form is shown . I also tried running ShowDialog from another thread, but this doesnt really make sense, and actually does not preserve the modality. Thanks! You do need to ask yourself first why "execution must continue". ShowDialog() starts a new message loop that keeps all events alive. Other forms in your app will keep painting themselves, they are just disabled so th ...Show All

  • elwood Slow performance of DataSet.Clear() in .Net 2.0?

    I want to clear the DataSet and call GC to release memory from my application when the form is closed. ds.Clear(); ds.Dispose(); GC.Collect(); GC.WaitForPendingFinalizers(); However, I found that performance of calling Clear() is very slow for large DataSet in .Net 2.0, any workarounds or solution to this performance problem Thank you very much!!! I would remove the GC.WaitForPendingFinalizers() because it will cause the program to stop until all the trash is taken out. GC.Collect will get the job done in the background. ...Show All

  • Ahoapap 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

  • Bernd Wechner Dynamically changing properties of menuStrip

    I have a menuStrip on my form which its structure may be described as below:   menuStripMainItem1    |->menuStripMainItem1SubItem1    |->menuStripMainItem1SubItem2    |->menuStripMainItem1SubItem3 menuStripMainItem2    |->menuStripMainItem2SubItem1    |->menuStripMainItem2SubItem2    |->menuStripMainItem2SubItem3 menuStripMainItem3    |->menuStripMainItem3SubItem1    |->menuStripMainItem3SubItem2    |->menuStripMainItem3SubItem3   I (again ) would like to access and change the properties of SubItems under each and all Ma nItems. Is there an easy way to address the subite ...Show All

  • EGutierrez91 Minimize up the chain to the Parent Form

    Question I have windows application in which the user has the ability to edit data in a modal dialog(1). During that time other modal dialogs (2) may spring up for the first modal window (1). The behavior I see is that if the any of the child modal windows (2 | 3) are minimized, that there direct parents (1 | 2) are not minimized as well. How can one move the minimize message up the chain of command WHY There are circumstances where the minimize of the modal child is needed and the user wants to view the parent, but there are also other times when all items need minimizing. Platform .Net 2 C# The first modal dialog (2) has its owner property set the the main form. advTHANKSance Hi Hans, I think you see the dilemma faced. If ...Show All

  • Ingenious VS2005 PDF reader ocx load file from URL?

    Can the PDF reader ocx control that comes with VS2005 load a file from a URL If so how I have been trying to do it but It seems there is not a constructor to load a file from URL or Stream Thanks Yeap exactly anyway this ocx is not useful because one requirement of my application is not to have the acrobat reader installed on the client machine. thks I'm not sure if it makes sense to require some other component to be installed on the PC to avoid installing Acrobat Reader. You'll have an awfully hard time finding one, few companies try to compete with a very capable product that is given away for free. Maybe Open Source, ghostscript tries to do some Postscript stuff, iirc. VS2005 has a PDF ...Show All

  • Bern McCarty Draw on rich text box

    Hi Every one, I'd like to know that it is possiable to draw on the richtext box control or not and if it's possiable how can I do it thanx Hi Mubshir. i can't tell you how happy i'm to know that the drawing on the rich text box is possiable and greatfull for your concern but i need a code for VB .NET 2003 , i'm sorry but i forgot to say that in my question , can you and all of our forums members please help me with this issue thanx to all of you for your time Here is the code in C# for an extended RichTextBox,which allows you to draw on a richtextBox.You can convert this code to VB.Net. using System; using System.Drawing; using System.Runtime.InteropServices; using System. ...Show All

  • Mutola Is it possible to capture events in a modal form

    Hi, Does anyone know first whether or not it is possible to capture events from a form shown modally using .ShowDialog() If it is possible how can I do it Thanks, Nathan Bingo...it's the KeyPreview property that was causing the problem. Thanks nobugz, I appreciate it. Nathan ShowDialog() runs in it's own messaging loop and I can't get certain events to fire because of that. If I put a KeyUp event on one of the controls on the form it will fire, but if I try to put a KeyDown or KeyUp event on the form itself the event will not fire. I even tried to start a timer with a 5 second interval to see if it's Elapsed event would fire and that wouldn't fire ...Show All

171819202122232425262728293031323334

©2008 Software Development Network

powered by phorum