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

Software Development Network >> Windows Forms

Windows Forms

New Question

Changing DataGridViewButtonColumn's Button Text Per Row
Help with Login Coding
Sharing
drag&drop doesn't work at first try
Images do not appear in listview
admin and user combobox problem
When Form.Load() will be called...?
Module based system, need advise
Prerequisite not working?
Control the creation docked objects

Top Answerers

Manaxter
Mike Batton
crazyabtdotnet
Geshem
Mike Turner - MSFT
Alex Yakhnin - MSFT
shmulik_segal
mneedham
shmulik_segal
saint168
sitemap
Only Title

Answer Questions

  • leo1 Customizing ItemState

    My ItemState property of the GridView displays lots of characters. I want to display only the first 60 characters (but the EditItemState property should display all the characters). Where should I write the code, in HTML view or in Code-behind file In HTML view I tried both Remove() and Substring() methods, but both did not work. How can I get only the first 60 characters in ItemState Advance Thanks. create a method in your code like:- protected string WhateverYouWantToCallThis! (string strIn) { return strIn.Length<60 strIn: strIn.SubString(0, 60); } Then in you data grid turn the column into a template column, edit the item one and change it to custom databinding, then add WhateverYouWantToCallThis!(Ev ...Show All

  • SimonS_ What control to use for dynamic display of tabular data??

    Hi, Ive come from the HTML world where I can do a <table><tr><td>...</td></tr></table> for each table of data. This table can be anywhere from 1 to an unlimited amount of rows. I want to place a control on a form that will grow or shrink based on the amount of data rows. Should I use a tablelayoutpanel like I can do in HTML or a datagrid Basically, i want the "table" to grow based on the number of rows without ever displaying a scroll bar on the control. Any ideas Thanks thanks but is the repeater for asp code I would like the table be an actual windows application rather than an asp program. TIA Hi Basically DataGrid ...Show All

  • Palmi Custom types in application settings

    Hi, I think I am missing something here so any pointers I'd be grateful... Using the custom settings designer in VS2005 to define application settings, there is a type column. When creating a setting and choosing a type you can select "browse" and "Select a Type" dialog box is shown. A list of usable types is displayed.. how do I get my own custom types into this list I have defined a simple data entity class in the same project as the settings and I want to use it as a type in the settings designer (.. I don't want to be able to edit it in the designer ... yet). Thanks! Hi, Could you please try out this link. Hope this helps. http://msdn.microsoft.com/library/default.asp url=/lib ...Show All

  • steveprogressing Picture_Box1 Click

    If I have a picture of, say, an ON/OFF switch imported onto my Form. I know that I can create a picture_box click event for the image. But what if I wanted the top half of the image to be ON and the bottom half of the image to be OFF Can you create an area of a bitmap or image where if the user clicks it it does something specific and if they click a different area it does something else To clarify, I know how to create a click event of a bitmap image, I was just wondering if you could define specific click areas of an image You could use the picturebox's MouseDown event to get the location where user clicked and then check if this location falls into certain area of this picturebox: privat ...Show All

  • MA2005 Label with invisible background.

    I have a form with a label in it. I want to show the label, covering the whole form, with a number in it. The app is a multii screen image viewer, I'm trying to show which monitor is which. I've set the style to allow transparent background ( I'm interested to know what genius came up with that idea ), I've set the deprecated 'DrawTransparent' property, I've set the background color to Color.Transparent, but no matter what I do, including downloading several controls on the web for transparent labels, I cannot get a label that doesn't erase it's own background to the color of a general dialog box. Does anyone have any suggestions Thanks OK. It's exactly has I described it. I have a form. It contains custom controls that show im ...Show All

  • B.Stark Form Controls Not Respond To Mouse Click

    I have an msn style c# windows application with a form and a panel on it. A list is drawn from the database and dynamically added via labels, link labels during form loading. At run time the list is generated again as the filtering criteria changes. So I clear the controls(labels) on the panel, get the list from the database and generate the list again. The list is created but the links, buttons on the form do not respond to mouse clicks. Only mouse over and mousemove events work. Does anybody have suggestions on why this happens I found the solution :) I called Panel.Controls.Clear() method to remove the labels and links. That is why the controls were not disposed and their even ...Show All

  • Peto_SVK get datagrid column name/number and sorting order

    Hello everyone, I am new to VB.NET and to this forums. I have a simple question and I need your expertise. I want to get the column name, number, and sorting order when a user clicks on the column header in the DataGrid. The data are sorted whenever a user clicks on the column header, ASC or DESC. I need this information to create a text file output. Maybe there is a way you can export the data to a text file from a Datagrid, or something Can anyone help Thanks btran yep and furthermore, Me .PurchaseOrdersDataGridView.SortOrder Me .PurchaseOrdersDataGridView.SortedColumn will be useful you can try something like this For Each c As System.Windows.Forms.DataGridVie ...Show All

  • AcrossThePond DataView Sorting

    Hi, I have two combo boxes and a DataGridView. The two combo boxes are going to serve as filters for the DataGridView. When the form loads a stored procedure is called to return a number of records to be displayed in the DataGridView. The grid can then be filtered by using either one of the combo boxes. If the selected index changes on either combo box a DataView is created from the DataTable holding the data from the stored procedure and a Row Filter is a applied depending on what the Selected Item Value is. All this works great but the problem I have I need to combine the two filters into one. I.e. if you want to filter the data to show only today’s events and then filter it again to only show a certain type of event. ...Show All

  • Aleniko29139 Creating installation setup

    How shall I create an installation setup program for my application What program should I use. I want to deploy my application into various directories and such. Is there something built into Visual Studio take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=827924&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=829203&SiteID=1 hope it gives you a starting point ...Show All

  • ggolub Printing DatagridView

    Hi, I'd like to print only certain columns of a DataGridView. How would something like this be done I couldn't find any code examples. Thanks Wow, I haven't see that, unless you are using TextRenderer.DrawText for your printing. Unfortunitely TextRenderer.DrawText uses GDI while Graphics.DrawString uses GDI+. GDI drawing with our current print engine doesn't work correctly, so you'll need to use Graphics.DrawString. Let me know if that works. If that isn't the case then can you file a bug and we'll investigate it Thanks -mark DataGridView Program Manager Microsoft This post is provided "as-is" The MSDN library provides the following guidance for printing a DataGrid... ...Show All

  • Dmitry Pavlov Mouseover anywhere on a user control

    Problem: I want my control to return an event when the mouse enters the control and when it leaves the control. However because i have objects on the form i've had to attach the events to them as well (as the MouseLeave event is fired when the mouse goes over a subcontrol). This means that i could receive 5 or 6 events when a user rolls their mouse over my control. Does anyone know how i can get these events to fire only once Thanks Jim I haven't tried it but here is an idea: Try to put all control you want on your on mouse enter/leave in a custom user control and set the event only to this new control ...Show All

  • yxxng Sample Code: DataGridView progress bar column

    I have a column that has integer data in it, I want to display it as a progress bar in the column so the user can quickly identify lagging processes.   I just started with 2005 and it looks great but does anyone know a quick way to do this I would also like to change the color of the progress bar based on the cells value. I found in the data sources toolbox where I can change the column to progress bar but that does not pass through to the grid.   Thanks for ANY help with this Thanks.... THAT IS SWEET! Here is my dilemma, to make this happen in all grids in my app I would I have to create a descendant DatGridView and put the code in it, correct If this is not correct ...Show All

  • Novice in C&amp;#35; Cant change ListView sub items fore color !!

    I'm trying to change the fore color of a sub item but the code has no effect: listItems = albumList.Items.Add(table.Rows [0].ToString()); listItems.SubItems.Add(status).ForeColor = Color.Green; Thanks Hi,Raihan Iqbal Make sure the item's UseItemStyleForSubItems property is set to false . Regards. Ye ...Show All

  • SharpRan Columns in DatTable???

    If i have some data associated with a dataset and in that data I was pulling data from 3 different tables but I only wanted my datagird to show specified columns that I choose could i do that Anyone got any links on how i could get that done That is, now these data are in one table. I think hiding columns is a easy way, you can do it like this, datagridview.Columns[1].visiable.false; Otherwise, you may remove columns like this datagridview.Columns.Remove(column1); Hope this is helpful. Is the datagridview control in .net 1.1 or that a new control in .net 2.0 I have not seen it or is it a property of method of the DataGrid control I use the .net 2.0. It is the property of DataGridViewColumn. DataGridvi ...Show All

  • Dave Koehler Display ANSI characters?

    I'm wondering how I can display ANSI characters in a windows form label through code. You know, stuff like this: ? · ° c Thanks Since .NET is Unicode you would have to use the Unicode characters. For example the following string will give something like the text you have posted: string t = "\u25cf\u2022\u00b0\u00a9\u2122" \u followed by 4 hexadecimal digits generates an Unicode character with the specified hexadecimal code. One simple way to find these codes is to use the Charater Map tool that comes with every version of Windows. where are you obtaining the characters from If you are obtaining it from a file for example, you need to adjust the encoding used to read the ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum