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

Software Development Network >> Windows Forms

Windows Forms

New Question

datagrid hide row
Recovering Designer Info after Hard Drive Problem
DataGridView ComboBox Selected Value Not Retained
why the return type as.....
"Type not defined' errors after adding DataSource
Bound Text Box not Updateing Underlying Data Set
OnSizeChanged called twice when changing the property Size on a UserControl
INI files
How do I display a PDF file in a VC++ .NET Windows Form application?
How to set scrollable TextBox into bottom position if it has multiple lines.

Top Answerers

KyawAM
Mystagogue
Sandro Peixoto
systech
mhelie
Flap
Albert Dillon
Ayukawa
NemanjaTheLost
Radith
Mark Curlanis Consulting
Only Title

Answer Questions

  • Blkbird Extension Snap-in for MMC 3.0 (clipboardFormatId)

    I'm Creating an Active Directory Users And Computers PropertySheetExtension Snap-in using the Microsoft.ManagementConsole Namespace for MMC 3.0 I could manage to create a PropertySheetExtention Class, Display A PropertySheet with controls, but i bumped into a problem, being unable to read the data coming from the Parent Node..(and of course write it back). From what I get, the data is sent through the SharedData Property of the PropertySheetExtension object, from which I tried to parse the data using the GetItem method.. but I didn't know what to put in the "string clipboardFormatId" parameter of the SharedData.GetItem() method.. I read in the MMC 2.0 Documentation on the MSDN, specifically the article: Extending the A ...Show All

  • mcnamaragio How do I get the number of lines in a text file without already knowing how many there are or its contents?

    Visual C# 2005 The topic title is pretty self explanatory. I want to create a method that will read a text file and return the number of lines in the text file. I need a method that can be implemented in plain code and inside its own function. I am combining this with another method I have to get a list of commands, which should be easier than using a dictionary array/collection. Any help is appreciated. Thanks. That worked like a charm. Thank you very much. If its a standard text file, a brute force but easy way would be to use a StreamReader and the ReadLine method and count Copied (then modified) from VS2003 help: (should be same in 2005 I would think) int lineCount; using (StreamReader sr = new StreamRea ...Show All

  • Alok Thakkar c# Insert Text into Textbox

    I have a series of textboxes on a Windows Form and a Series of buttons aswell. What I am trying to achieve sounds quite simple but I cannot figure out how to do it. Basically all Im trying to achieve is each button has some predefined text associated with it and when the user clicks the button, it inserts that text into the textbox which has the focus. The problem with this is that when you click on the button you lose the focus from the Textbox. The only way I have figured out is to save which control has focus before the button is clicked. This works but when you have 32 textboxes on a form, surely there is a better way than creating an On_Enter Method or similar to set the value of the Control which needs the text. Any help would be ...Show All

  • ben22 Adding images to DesignerVerbs

    Hello everyone, I have a custom forms designer. I want to add an image to my controls designer verbs menu that comes up in the designer but can't find where to do it. For example, in my designer, I've added copy paste and some custom designer verbs for the menu's that pop up when the control is right clicked. I want to add pictures next to the menu items. Anyone know how to do this Ken the following post may be useful https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=211298&SiteID=1 Thanks, but that wasn't quite what I needed. I actually needed to modify my MenuService class to have an additional method that when I added verbs, I passed in a bitmap that I loaded from the asse ...Show All

  • tlc660 DataGridView Sorting ????

    I have a GridView i am populating the same dynamically....By adding colums and rows. Like DataTable dt = new DataTable (); dt.Columns.Add( "ProjectName" ); dr = dt.NewRow(); .... So in the design view this ProjectName is not visible..i need to enable sorting. So how do i do it. You can call the DataGridView.Sort() method: My_DGV.Sort("MyColumn", ListSortDirection.Ascending); You can also use a DataView to mantain sorted the view, put it like DataGridView.DataSource. http://msdn2.microsoft.com/en-us/library/system.data.dataview.aspx Regards. i am getting an error . GridView fired a sorting event which was not handled.. can u help ...Show All

  • LeoXue force to open all forms inside MDI

    Hi, I am consolidating a number of stand-alone windows application under one MDI application. The development of those stand-alone applications is separated in each different project. Is there a way to force any forms that open inside those applications to be open inside the main MDI form (if the application is callled from the MDI) Thanks, Igor Igor When opening a modal dialog, pass the owner as the MDI parent (e.g. Form.ShowDialog(this.MdiParent) inside myproject.formname) this will constrain the dialog within the bounds of the parent. When opening a non modal dialog, set the MdiParent as you are doing. Sorry I didn't understand your question on the first attempt. HTH Hi Igo ...Show All

  • RiskSrv How to open a form, collect user input from a second form that opens, then display the appropriate data on the original form?

    I am trying to develop my first multi-user program in VB. NET - a language that I don't know, in an object oriented environment which I know very little about. Yay. I have run into a couple of challenges that I am not sure how to approach and figured maybe some of you could point me in the right direction. Both of these issues are related to opening a form, prompting another form to open and gathering information, and then sending that information back to the first form. The first scenario: When I run the application, I have a menu of different screens. I select the "Benefits Management" screen (which has information about an employee's benefits). That screen opens and all of the data fields are blank. I then want to hit a hot-ke ...Show All

  • OasisGames Readonly PropertyGrid

    Hi, either I'm missing something, or it seems to be inordinately difficult to get a (optionally) readonly property grid. I have an application which, using a propertygrid control, displays the properties of my object. Depending upon the user, they might be able to change those properties. My object has collections within it, exposed as properies (such as "Things"). It would seem that, in order to get a read-only version of my grid, all the objects that expose properties have to implement ICustomTypeDescriptor.GetProperties, return a collection of my own derived PropertyDescriptor, which in turn overrides the "readonly" property. Grrr.. That works, but what a lot of code. Things get messy with my collection p ...Show All

  • Allan-Nielsen Unwanted Selectindex event fired up!!

    I have a combobox control in my winform, when the form loads "selectedIndex event handler" fires up with out any reason, how is it posible obviously, this is something bad if you want put some code into the eventhandler block to manage this event. If it helps i heared that this is some kind of frameWork bug. Any Idea about how can I solve this situation This is standard behavior (it is not a bug).  A lot goes on behind the scenes when a form is initially created.  The SelectedIndexChanged event can be raised as many as three times (or more) before the form ever displays. To handle this, every routine you write in a SelectedIndexChanged event handler should always check to see if the SelectedIn ...Show All

  • Ashutosh Kumar DataTable internal index is corrupted: '5'. how to get ride of it ?

    How can make one cells value changed with other cell value same time in DataGridView HI, Bob zhu I get this worked, but i got your problem, I bindiung the dataGridView witha orderDetails table. i can make the "itemAmount" column value changed with the "itemCount" and "ItemPrice" column ,like this the following Message: DataTable internal index is corrupted: '5'. this .dataGridView1.Rows[row].Cells["amount"].Value = convert.toDecimal( (( TextBox )sender).Text) * dataGridView1.Rows[row].Cells["price"].Value convert.toDecimal( (( TextBox )sender).Text) is the itemcount Cell value but ...Show All

  • osamaT Control.DoDragDrop and Exceptions

    Hi, All Exceptions that are thrown by EventHandlers like DragOver, etc. during a DoDragDrop call are not send to my application. So I always have to put a try-catch-block into these EventHandlers to make sure that I'm informed about possible problems. What is the reason for it Is it possible to change this behaviour Luis D. Rojas wrote: If you want manage the exceptions at higher level, hen you should rethrow the exception and catch it out side of the handler That's the point - exceptions that are thrown within the handler are not caught by my try-catch-blocks at higher level. Hi, Can you post your code - snippets - to try to understand what is going on ...Show All

  • S Nesbitt Why does the taskbar lie???

    Ok here is the question, I have an application running in c# 2.0, the application has a main form called mainfrm, i show mainfrm from program.cs by calling Application .Run(new Mainfrm () ); So far so good, the Mainfm opens another form by using newfm.show(), the newfrm has showintaskbar set as true, so it will show. So here is the bit that windows\winforms gets wrong, when i click on newfrm in the taskbar and then click on the mainfrm window, the newfrm button is still selected in the taskbar, ie the button is still shown as depressed in the taskbar, if i then click on the newfrm button in the taskbar the newfrm form minimizes. My problem here is that the user clicks on the button to maximise/active the window, since the progr ...Show All

  • Flip597 Install and uninstall framework,

    I'm new to deply and .net form application. I have some questions about building installation file: 1. If I include framework 2.0 within my installation file ( through check prerequisites), will the framework be uninstalled when the user uninstall my application If yes, is there a way to prevent this 2. I need user register the product even before they can install the application, after registration, they will get a registration code, how I can valid this code before the installation. It seems the custom action on install is happened after the files are copied. 3. When the CD was inserted into the driver, I'd like a movie played first, then run the installation either after the movie is done or the user click "Skip". Ho ...Show All

  • GraceCai DataGridView AutoFilter whitepaper and sample

    Are you spoiled by the AutoFilter feature in Excel Do you want the same functionality in the DataGridView control Then my new whitepaper and sample are for you. See: http://msdn.microsoft.com/netframework/windowsforms/default.aspx pull=/library/en-us/dnwinforms/html/DtGrdVwAF.asp The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique value in a column, and updates the filter of the bound data source when a value is selected from the list. A custom DataGridViewColumn is also provided to make using the AutoFilter header cell easier, particularly in the Windows Forms Designer. Customizing DataGridView column header cells is not as easy as customizi ...Show All

  • DCosta Datagridview Master / Detail Highlight Rows

    Hey Guys, I currently have a master / detail form with two datagridviews, which is working nicely. However the main grid shows transactions, and the child grid shows comments. Not all transactions carry comments, infact very few do. I decided to separate the grids by a splitter and hide the child grid. I'm trying to find a way to flag / highlight the parent grid if it contains child rows so the user knows there is a comment if they wish to view it. Does anyone have any ideas how to do this I thought there may have been a hasChildRows boolean value but appears not! Just on the cell formatting event, I tried changing the highlight feature to add a picture to a datagridview unbound image column to indicate a comment. When I d ...Show All

8910111213141516171819202122232425

©2008 Software Development Network

powered by phorum