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

Software Development Network >> Windows Forms

Windows Forms

New Question

Context Menu Strip
Glass effects with .net
sqldatasource call oracle store procedure
Deploying detected assembly in multiple folders
HyperLink Column in GridView
Forms with different templates for data entry
Why won't label background actually set to transparent?
Using a Form app's classes in another app
last ditch effort.... DatagridView Array to contain a group?
How do I change the download location in the boostrapper?

Top Answerers

Mar_GP
sic0198
yahu_Hugh
GT_MSDN
shruti.makwana
Cammyr
XNA Rockstar
Computer Guy69146
prad_kav
Komandur.Kannan
sitemap
Only Title

Answer Questions

  • Moim Hossain Drawing on[/underneath!] Controls

    Is it possible to draw a line as shown in the pic on a single form The line in the image is drawn on a second form which is transparent so form1 is visible. Can we then create the line as a control and set its background to transparent so the list box is visible through Because this.BackColor = Color.Transparent; doesn't realy work as expected. Thats a really working one thanks. BTW, could you please explain what it does in the CreateParams As indicated, it turns on the WS_EX_TRANSPARENT window style. With this style set, Windows ensures that all windows "below" the window get painted ...Show All

  • Charles Tam Error installing .Net Framework 2.0 from bootstrap

    Hello, This is my first post, so be gentle with me. I have created my first VB VS 2005 project. I have successfully published and can run the project on my machine. I am using ClickOnce FullTrust with .Net Framework 2.0. I have the project signed and the prerequiste of the .Net Framework 2.0 to be installed from the vendor's website. However, when I try to run the setup.exe to install the project on another machine I get the following error in the install.log: The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string} Property: [VersionNT] = 5.0.4 {version} Running checks for package '.NET Framework 2.0', phase BuildList Error: Unable to locate file 'd' require ...Show All

  • Nicolas Barry DataGridView set row header color

    I have a win form with an unbound DataGridView on it. Due to the nature of the data being displayed in it, everything is manually built programmatically. I have data base with employees that I retrieve then loop through to build all the rows in the grid. I need to have each employee's row header a different color, depending on thier assigned department. However, when building the rows when I set the HeaderCell.Style.BackColor attribute, it doesn't take. For that matter, if I set the Back Color attribute for the DataGridView DefaultRowHeaderStyle from the VS designer that won't take either. Same thing applies to columns. No Header styles seem to apply (colors, fonts, spacing, etc). Can anyone give me an idea why I can't change the styles H ...Show All

  • Amos Soma FAQ for Winforms designer section

    shouldn't there be an FAQ for this section i have participated in this section when it was under windowsforms.net and i noticed that the same questions has been asked (like how to notify the designer host for a particular component property change, etc.) i know that online resources for designer related articles are scarce and it will really be helpful for starters to know where these links are. Certainly a good idea. The people who moderate these forums are volunteers; this particular forum may not have warm Microsoft body with ownership. j2associates wrote: Hello Joey, Check this link, one of the most helpful that I have found: George Shephers's Windows Forms FAQ http://www.syncfusion.com/faq/windowsforms/De ...Show All

  • Marcoss Data Validation on the DataGridView -- or, when does setting CurrentCell actually work :-)

    I have a data grid view bound to a data table. The data table's column changing event contains the validation logic as there are multiple users of the class that contains the data table. The user enters a value. The cell is validated. The cell validated event fires. What the client wants at this point is a message box that shows the user what they did wrong -- and then focus needs to stay on that cell. One would think that the following would work: void newDataGrid_CellValidated( object sender, DataGridViewCellEventArgs e) { DataGridView Grid = ( DataGridView )sender; if (Grid[e.ColumnIndex, e.RowIndex].ErrorText.Length > 0) { MessageBox .Show("Error Message..." ) ; Grid.CurrentCell = Gri ...Show All

  • Daniel TIZON DataGridView Events Between Forms

    How do you handle events (if possible) between two DGV's that are on separate forms DGV1 is on Form1, DGV2 is on Form2 Code fragment "DGV2.GiveFeedback" produces an error as does using "Form2.DGV2.GiveFeedback" [code langauage="VB"] Public Sub DGVs_GiveFeedback(ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.GiveFeedbackEventArgs) _ Handles DGV1.GiveFeedback, DGV2.GiveFeedback e.UseDefaultCursors = False System.Windows.Forms.Cursor.Current = textcursor End Sub [/code] Public Class Form1 'Example: 'Form1 is like a menu that 'where form2 and form3 are instantiated(they both have a datagridview). 'then the event feedback is handled for both data ...Show All

  • clint 2 tablelayoutpanel flicker / performance

    We are finding that the tablelayoutpanel control is causing a lot of flicker, especially flicker when resizing. We have an windows forms architecture based on user controls and tablelayoutpanels (we use the CAB). Our major flicker issues happen on our detail UI elements, such as a single row data maintenance user control of the pattern: Page Title Label A: TextBoxA Label B: TextBoxB Save Button / Cancel Button These control are organised in a tablelayoutpanel with 2 columns (one for the labels and one for the textboxes) and the desired amount of rows (one for the Page Title, a spacer row, one for row A, one for row B, a spacer row, a row for Save and Cancel buttons). The 1st column is AutoSize and the 2nd column is set to a Size Ty ...Show All

  • Jan Byvaly Forms with different templates for data entry

    Im working on a small database application that creates records. Each record is based on a template. Most of the templates are static and dont change. There are some templates that might change based on the input of certain feilds of the template. Of the data will be typed in, and where possible, the user can use dropdown menus or checkboxes. I was thinking i could make a different form for each template but that wouldnt be too efficient or visually aesthetic. I was wondering is there something i could do with datagrids that would allow me to have a form that looks something like the properties grid for an object in VS .NET. Im new to C# and MSDN. Any help would be greatly appreciated. A UserControl ...Show All

  • Weste TabControl always disturbed by custom control in same project?

    Hi, Using Visual Studio pro 2005, C#. I thought to have discovered a nice IDE feature: Step 1: create a basic windows application. Step 2: add a class to the project. Step 3: have this class derived from System.Windows.Forms.Panel (this is the only manual change you do). The class looks like this: namespace WindowsApplication1 { class Class1 : System.Windows.Forms. Panel { } } That's all. After "Build solution" a new tab appears In the ToolBox called "WindowsApplication1 Components". Great, because now I can drag and drop my on-the-fly control like all other controls. However: Step 4: dragdrop a "Class1" control onto your form (no problem there). Step 5: dragdrop a TabControl onto yo ...Show All

  • Tryin2Bgood Working with TreeView and ListView

    Hi @ all ;) i have a tool, where is (like the Windows Explorer) on the left side a TreeView and on the right side a Listview. Now, when i click on a node the ListView shows correctly the right path of the Node. Eg.: C:\windows. Thats ok ;) But now my Problem: How do i open the right path in the TreeView, when i click an Item in the Listview I think it goes with ListView1.SelectedIndexChanged, but i don't how. I searched for it mor than 3 month *smile*, and no body can help me ! cu Alex this is the recursive function that I beleive would work for private void SelectNodeWithTag(TreeNodeCollection nodes, string path) { foreach (TreeNode current in nodes) { string nodePath = ...Show All

  • TonyMan - MSFT 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 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 Inherit from dgv add public bindingmanager property which maps to a private bindingmanager instance That should be it Remco double post is a nono  I aswerd here http:/ ...Show All

  • ambe how to print a dataGridView

    Hi I want to print a dataGridView but when i try msdn's code(which is below) gridview is in normal size but records are very small and not in the gridview. How can i print dataGridView with records as seen in form private void printDocument1_PrintPage( object sender, PrintPageEventArgs e) { PaintEventArgs myPaintArgs = new PaintEventArgs (e.Graphics, new System.Drawing. Rectangle ( new System.Drawing. Point (0, 0), dataGridView1.ClientSize)); this .InvokePaint(dataGridView1, myPaintArgs); } private void bYazdir_Click( object sender, EventArgs e) { printDocument1.Print(); } I'd go with Uglydragon79 advise.. But take into consideration that the DGV might h ...Show All

  • PremZ Basics: How do I 'Setup & Deploy' in VS 2005?

    Hi: I've looked high and low and can't find docs on how to use a setup and deployment project. I've got a straightforward C# 2005 EXE file. It connects to a SQL Server database. I can't figure out how to create a Setup file for it. Also, I don't know if the user will be responsible for installing the framework or if my setup will be able to detect the need and initiate that setup. I've seen docs in msdn library but nothing that explains how to actually do it. I know you can create a setup and deployment project but have no Earthly idea what to do with it. I tried right clicking, then clicked add, then 'Project Output' but there aren't any projects to select from. I'm just trying stuff in the dark. How can I learn to create a se ...Show All

  • asalcedo Obtaining key field from a selected DataViewGrid row

    Hi, How do you obtain a value of a selected DataViewGrid item when the item isn't displayed in the dataviewgrid Err, to explain... I have a dataviewgrid bound to a SQL table. One of the fields in the underlying binding is fldMsgID. I've taken this out, by removing the column from the column collection, from the user view of the grid as it's useless to them. When a user clicks on a row, I need to get this value. I've tried Dim i As Integer = Me .DataGridView1.CurrentRow.DataBoundItem( "fldMsgID" ) But I get a "option strict on disallows late binding". Any ideas Many thanks John Thanks for the help. John Instead of ...Show All

  • Sniper167 How-to change default publish.htm?

    I do not want to manually change my publish.htm everytime I publishes. After all if that is the case then the auto generated page just turn useless. How do I customize the default publish.htm Let's say I need it localized or something for example. I don't know if it's possible, but if you want a localized launchpage, I think you've build an ASP.NET page for it yourself. To launch the application, you just have to link to the *.application file. To be honest, I feel Microsoft doesn't think about this. I understand I can edit the page but then I have to edit it everytime anyway to update the version information and so forth. I would be much happier if they provide the template where the ...Show All

97989901234567891011121314

©2008 Software Development Network

powered by phorum