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

Software Development Network >> Windows Forms

Windows Forms

New Question

DataGridViewComboBoxColumn - Need to allow for values not in list
Height of Title bar and more?
DataGridView wont show new entry..until i run it again
VS 2003, false data concurrency error
MDI windows.
Communication between usercontrols and event delegates
DataGridView and Update/Insert/Delete data in MS Access
ListView column header height in .NET Framework 2.0
Screensaver Events and performing functions just prior to ss execution.
The Connection has been disabled

Top Answerers

SQL2K5
Pikker1981
bishoycom
LuisGarcia
Seraphino
&#169&#59; Ţĩмό Şąļσмāĸ
Peter Pallos
Simone1
Dan Heile
Akshay Saini
sitemap
Only Title

Answer Questions

  • AdeptBlue ClickOnce Deployment Fails to Load Library after Impersonation

    I have an application that accesses a database that lives in a different Win2K3 domain. The application creates a windows Identity and authenticates the credentials and then does impersonation so that the database access happens in the context of this impersonated users credentials. Everything works great except the impersonation breaks clickOnce deployment. I am not totally sure exactly where or why but the app deploys and starts up but after the impersonation it tries to load an assembly and fails because the impersonated user does not have the necessary permissions. The application is running with Full Trust so I am not sure why it fails. If I install the application on the machine the old fashion way it works fine and if ...Show All

  • LeoXue Editing Window Styles

    I'm working on a MDI program in C# and I need to change the way that the child windows look (ie changing the look of the border, minimize button, maximize button, etc). I've looked through a few books and done some searching online, but I haven't found anything on changing the look of a window. Is this possible Thanks! Well, i think you had to use SetWindowLong API with GWL_STYLE const int GWL_STYLE = -16; const uint WS_MAXIMIZEBOX = 0x00010000; const uint WS_MINIMIZEBOX = 0x00020000; uint style = (uint)GetWindowLong(this.Handle, GWL_STYLE); style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX); SetWindowLong(this.Handle, GWL_STYLE, (int)style); const uint SWP_FRAMECHANGED = 0x0020; const uint SWP_NOSIZE = 0x0001; con ...Show All

  • SP534 Problem in accessing data from DataGridView cells

    hello every one! well I got this query here, I'm really stuck in this error. I'm working oin a master detail form in .net 2.0 C# in Windows Forms. its a System.ArgumentException that I'm getting here. I've these dataGridview on the form. I've made a typed dataset for it. the tables are these PurchBill(PurchBillID, VendID, Bookno, BillDate) Purch(purchID,purchbillID,Serial, ModelID, PresentAt,PurchWarranty,PurchPrice) ProdLine ProdModel and vu_manNames thats a view I've set up seperate dataGridViews for Purch, ProdLine and ProdModel and for selecting the manufacturer name here. Look at this code private void saverecord() { try ...Show All

  • djshades2004 Loading Image (Visual C# 2005)

    Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) PictureBox1.Image.Save(<filename> , System.Drawing.Imaging.ImageFormat.Jpeg) oh..thats why...lol ok it works, butanother runtime error, now when I load a .gif and then save it as a .jpg I get a runtime error on the same line of ...Show All

  • jam281 UserControl as Container

    Hi all, Just a quick question and I am sure there is a simple solution but I just haven't found it yet. I know how to make my UserControl a container by using ParentControlDesigner etc. This works fine and I can drag and drop Windows Forms Controls at design time. However, if I add a Panel to my UserControl Class, compile it and then try to drag and drop another control on the Panel, the Panel does not act as a container. So my question is: If I have a UserControl which consist of a single Panel, which is a pretty lame control I know, how can you get the Panel to act as a container at design time Any help in this would be greatly appreciated. Kind Regards AM PS. The UserControl that I have written does not consist of a ...Show All

  • Sam Gentile MVP - Solutions Arch DataGridView Column Header Cell Style not working

    The backcolor for row header and column header does not work. e.g. Grid.Column(0).HeaderCell.Style.BackColor=Color.Blue Grid.Rows(0).HeaderCell.Style.BackColor=Color.Blue Grid.TopLeftHeaderCell.Style.BackColor=Color.Blue You could always just remove the theming on the headers. Set EnableHeadersVisualStyles to false and the header coloring will be honored. -mark Program Manager Microsoft This post is provided "as-is" Sorry you will have to draw the column or row headers yourself if you want to change the color. Paint in Column Header or Paint in Row header If we do so, then column sorting feature gets lost. The sorting arrow at corner of column header d ...Show All

  • Duncan McC Accesing selected text in other application

    I'm running a Tray Application which gets on focus when a hotKey is pressed. In a few words, the user will select a piece of text in any application (IE, word, acrobat, or any custom application), press the hotkey registered by my application, and the application should be able to read and display the selected text. Could anybody guide me to accomplish this Is it possible Thanks, Seb. The following thread will have a good jump-start for you: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687550&SiteID=1 Look at the sample code and the suggested PInvokes. As for the Active window, you can use: //USER32 [DllImport("user32.dll")] public static extern int GetActiveWindo ...Show All

  • ks06 Minimum Height for Form?

    I can't seem to get a form of mine to draw at a height of 16 pixels. It always seems to add on an extra 16, I have FormBorderStyle set to None, not sure what's causing this A little weird that it wants to draw to 32...strange. No problems with a 1 pixel form here (VS2K5) Unfortuneately neither method worked, the form already set AutoSize to false, or not, as that is the default for a new form in vs2k5. The post seemed a bit odd, basically talking about putting the FormBOrderStyle declaration prior to the Font property, however I have no need for changing the default Font so it's not even defined. The way I'm working around the issue right now is just using a TransparencyKey, although that's a b ...Show All

  • sej Increase Winforms open performance

    I have designed a main winform with some controls (from Infragistics presentation layer). When I run the application, it paint the windows very slow. Hoy can I improve the performance (I have tried ngen) i think this article may help you Practical Tips For Boosting The Performance Of Windows Forms Apps ...Show All

  • Peter Haik Get Rid of Warning Screen in Setup Program

    If I use the setup.exe that comes with the publish, a warning dialog comes up saying that "Publisher cannot be verified. Are you sure you want to install this application " Is there anyway I can get rid of that screen But Verisign costs money. So basically my only option is to live with it or ditch that installer and use NSIS or the VS deployment installer..., right If you clicked 'More information...', then you saw description of your colored shield icon and UAC's description for that item. Only way you to overcome the 'warning dialog' is disable the UAC alltogether, what I don't recommend. More UAC informations is in the Windows Vista: User Account Control Regards Peca Hey David. Could you ...Show All

  • J A Y How to add the .net setup file into a project setup file?

    We have developed the project using c#. We have created the setup file of our project, while installing the project, first it should check in that system, wthr .net framework is there or not, if it is not there means automatically it has to install the .net framework. so for that purpose how to add the .net setup file into my project setup file hi, i think once the setup install .net framework 2.0 it requires reboot .that may be the reason why it is not able to install sqlexpress .what should i do to reboot the system and then continue the installation.pls send me ur suggestion .thanks in advance. If you are using Studio 2005 it is incredibly easy. Select the Setup project in the Solution Explorer, right-clic ...Show All

  • Comandante Serge no registry keys are created on x64

    I have a Setup Project created by using Microsoft Visual Studio 2005 Version 8.0.50727. This setup project creates several registry entries. The registry editor is used to specify which entries should be created. By setting the project's "TargetPlatform" property to x86 and executing the wizard on 32bit platforms everything works correctly. Ecch registry entry is created. The problems begin when I try to execute the wizard on x64 platforms. More details about the platform: Windows Server 2003 R2 Standard x64 Edition with SP1, Intel Xeon 3.4GHz CPU. On this x64 box, the system path environment variable begins with the 32bit related entries (e.g. C:\Windows\System32) and follows with the 64bit related ones. It seems to be ...Show All

  • Lita123 Custom Usercontrol

    Hi, i want to make a usercontrol that contains a dgv and a binding manager. the user control should provide the normal properties windows of both the binding manager and the dgv. how should i go about doing that, what is to be implemented and inherited From the top of mu head I'm on net 2003 so it might be a little diff, Imports System.Windows.forms Public Class DGV Inherits DataGridview Public ReadOnly Property Internalbindingmanager() As BindingManagerBase Get Return CType (BindingContext( Me ), BindingManagerBase) End Get End Property End Class object reference not set to an ...Show All

  • Tony Robyn Changing Color of Single DataColumn in DataGrid

    Hi, I m working on a WindowsForms Project where I need to implement the DataGrid in which some Columns are Editable and the rest stay uneditable. I need to distinguish these editable columns from the rest by coloring the HeaderText(or may be the Header ForeColor) of the Editable column with a specific color.Can anyone provide me with a sample of how this can be done Note that I already use a GridTableStyle in the Code. I add the GridTableStyle I used here under... Public Shared Function GridViewTableStyle(ByVal MappingName As String) As DataGridTableStyle Dim dgTableStyle As New DataGridTableStyle dgTableStyle.MappingName = MappingName dgTableStyle.AlternatingBackColor = System.Drawing.SystemColors.Info dgTa ...Show All

  • roy.wanglifeng BindingSource setting RowState.Modified on unchanged rows!

    I have a VB.Net 2.0 app with a readonly DataGridView and a BindingSource  and BindingNavigator which allows the user to edit, add and delete rows via my own custom controls (combobox, textbox etc). The table to edit is read in successfully then bound to (and displayed in) the DGV and I can do all the BindingNavigator stuff like editing fields from selected rows and adding/deleting rows as you'd expect. The problem I'm getting is that if I click on a row in the DGV but do not make any changes it is still marked as being changed (ie: RowState = Modified). I would have expected that only the rows that actually changed would have this status - otherwise what's the point So I guess my question is why is the BindingSource (or BindingNaviga ...Show All

596061626364656667686970717273747576

©2008 Software Development Network

powered by phorum