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

Software Development Network >> Windows Forms

Windows Forms

New Question

DataGridView Cell click problem
Capturing MouseWheel Event - Different mouse, different behavior
Hi!!!!how can i create 3*3 ...means 3 rows n 3 columns of textbox dynamicallly for taking the input of matrices
Beta 2 Publish help needed
Setting the currentcell to the cell with an error
Window form with C# help
how to know that a user control is in design mode
datagrid odbc
Run application after installation.
StartPosition in Windows Forms

Top Answerers

Butch Roy
Jassim Rahma
Vikas Pradhan
Ljhopkins
Bernaridho
Daniel Gary
phoenix11
socko
anita punjabi
Kevin Hoffman
ASPPlayground Forum
Only Title

Answer Questions

  • Moahmad Change cursor problem

    Hi, i got problem when i tried to build and run this: this .Cursor = new Cursor (GetType(), "pen.cur" ); or this .Cursor = new Cursor (GetType(), "Resources/pen.cur" ); I got thrown by NullReferenceException I have embed it under resources, change its Build Action properties to Embedded Resource . And it is under Resources folder that i have created. What's happenning I think i have to change the question. How can i change a cursor of the form to the cursor i have added to my project I found in some website like this: Cursor .Current = new Cursor (Properties. Resources .MyCursor.Handle); But i can't get .Handle properties when i use mine. So.. anyone thanks ...Show All

  • Josh Dugan How to fill an object with a red backslash's pattern?

    Hi, I need fill a component (in a winform running like design-time) with a red backslashe's pattern when the end user press the [DEL] key. This 'effect' will be to use to indicate that the control was delete. I hope that someone help me. Thanks in advance. CFQueb Thank you a lot for the code!. Only applied an override to the Paint event and place a condition for execute the code. Here is the C# version of your code: #region OVERRIDE'S CLASS protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (VisibleEnProduccion == false) { Graphics l_graphics = e.Graphics; Rectangle l_rec = e.ClipRectangle; Point l_pt1 = new Point(0, l_rec.Width); Point ...Show All

  • EoF System Tray Icon

    i want put an icon in system tray with c#. how can i do it Hi, this link will give you all the information you need, it is a tutorial on creating a system tray icon: http://www.developer.com/net/csharp/article.php/3336751 Mark. ...Show All

  • Sam Bendayan icon associated with file type,C#

    hi! I want to show a folder content in a ListView. And I want to show near each file an icon associated with its type. is there a way to do this You'll know it's a folder. So just add your own image to the ImageList. yes, it is it. thank you. but how can I get an icon for a folder Icon.ExtractAssociatedIcon() can do this. Check this thread for code. If you don't mind a little P/Invoke (some people avoid it like the plague, some people don't mind including a little in their managed code..), the other thing you can do is use the IconExtractor object found included in this project at CodeProject: http://www.codeproject.com/cs/miscctrl/FilesListBox.asp It ...Show All

  • programmer01 Controls move differently when scroll bars appear

    I have some controls I am creating at runtime within a panel....when i click my buttons the controls is created in this format equally spaced between them control1 control2 control3 when the scroll bars become visible and I scroll down the the most recent control that was created.....and try to create another one....the controls is spaced waaaaaaayyy further than its set to do......... I know this because if I just add controls without moving the scroll bar at all they line up nicely and no extra spacing is added but if i move the scroll bar the controls spacing goes crazy........Is there a property that keeps my controls the same with or without the scrolling of the scroll bars..... MyControl.Top = ( this ._MyList.Coun ...Show All

  • mhawb removing ApplicationExit event handlers

    In the help : Application.ApplicationExit Event Because this is a static event, you must detach any event handlers attached to this event in the ApplicationExit event handler itself. If you do not detach these handlers, they will remain attached to the event and continue to consume memory. so i have Application.ApplicationExit += new EventHandler( Application_ApplicationExit ); and in Application_ApplicationExit Application.ApplicationExit -= Application_ApplicationExit ; is that right I'm using it to release some unmannaged resources. And I was wondering about -= because i don't have the variable so using -= new EventHandler(Application_ApplicationExit") is kind of weird. And in the doc it is ...Show All

  • vaioks Best Component for the job?

    Hi, I'm not sure if the header is the right one, so if it's confusing, I'm sorry. I come from Sun's Java world and don't know my way around the GUI programming in C# yet. When I want to display a tabular data structure in Java, I use the JTable object, which is suitable for any type of tabular data, and can be provided with a 2 dimensional array of objects that can be placed in the table using the toString() method, regardless of the data source that is used for that table. I'm trying to do something similar in c#, and I'm having trouble working with the DataGridView, which is simple only if you connect it to a datasource. I have a TCP server program written in c# that needs to display data about connected clients. I need to ...Show All

  • jkushiner Designer Support when Control has abstract base class

    We have a set of user Controls that must derive from an abstract base class BaseControl. BaseControl itself is derived from UserControl. Is there a way enable designing and modifying those user Controls in the VS 2005 Forms designer AND have them derived from an abstract base class Currently we get this Excpetion when trying to open those user controls in the designer: The designer must create an instance of type XYZ.Controls.BaseControl' but it cannot because the type is declared as abstract. at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSe ...Show All

  • dzimmy Control values do not refresh

    I have 2 projects: Project 1: A strongly typed dataset with a table etc. I have some code in the ColumnChanged event that looks like this: Select Case e.Column.ColumnName Case Me.columnDISCOUNT.ColumnName Dim r As REQUEST_LINERow = CType(e.Row, REQUEST_LINERow) r.UNIT_COST = r.LINE_PRICE * r.DISCOUNT End Select Project 2: A windows form that has the above dataset placed on it, a BindingSource (bound to the dataset) and several textboxes (bound to the BindingSource). When the user changes the discount text box (by tying a new value). I would expect the Unit Cost text box to update with the newly calculated value as a result of the ColumnChanged event. However the new value does not appear. The new value howev ...Show All

  • hutchbrew How to create Bitmap of a Web Browser Control?

    Hi Guys! Im new to C#. How can I create a Bitmap of the Web Browser Control using the CreateGraphics Method Thanks! Matt 2 more errors Error 1 The best overloaded method match for 'System.Drawing.Graphics.CopyFromScreen(System.Drawing.Point, System.Drawing.Point, System.Drawing.Size)' has some invalid arguments C:\Documents and Settings\HP_Owner\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs 22 13 WindowsApplication1 Error 2 Argument '3': cannot convert from 'System.Drawing.CopyPixelOperation' to 'System.Drawing.Size' C:\Documents and Settings\HP_Owner\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs 22 96 WindowsApplication1 Something is wrong with this line: g.CopyFromScr ...Show All

  • lnkaye Settings.Default.Save( ) won't save!!!

    Hey guys, I'm using the built in Application Settings datastore in VS 2005. I am running into two problems though. The first one is that it does not save when I call Settings.Default.Save( ). I have tried putting in this on the form close event and even tried it on a button click all to no avail.. Any ideas Problem #2: For some reason by default the property it creates is readonly ! I have to actually go into the studio generated code and add a set method in the property. Thanks guys for any help, Chris Hello! I did as you suggested and it still won't save. Does it have to be in a FormClosing( ) event or can it be called on a button click (which is what I am doing). Thanks, Chris Here's my code: pub ...Show All

  • Dave Waterworth Step by step instruction. Open Form2 from Button on form1 C#

    Hi, anyone able to tell me please how to.. Click on a Button i named Next on Form1.. it will then open Form2 page not as an extra page.. but as though its a new page on the same window. ty Are you using a TabControl or are you wanting an MDI style design Hi, Woody There 3 ways: tabcontrol containing two tabpages, two panels in one form, two forms M1: Drag a tabcontrol in which lies two tabpages this .tabControl1.Dock = DockStyle .Fill; this .tabControl1.Region = new Region ( new RectangleF ( this .tabPage1.Left, this .tabPage1.Top, this .tabPage1.Width, this .tabPage1.Height)); Switch the panels by tabPage1.Hide( ...Show All

  • Vayse_Dev Some chars can't be typed when using EditingControl

    Hi, I’m using DataGridView control, and try to use EditingControl for special editting, but I found there are some chars can’t be typed. Follows codes are copied from MS web site, and I only replace DateTimePicker with TextBox. When running, such chars: "!","#","$","%","&","(","q", "." , can’t be typed. Thanks! using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication12 { public class CalendarColumn : DataGridViewColumn ...Show All

  • A Barber flexgrid and vs 2005

    hi plz let me know. is there any simple provosion for flex grid navigation. currently we re on vb6 and using flexgrid navigation. we checked vs2005 few months back and done grid navigation with vs 2005. the only problem was the dropdown combo was on readonly. we could only select from it. our secenario demands a combobox with selection and new entry. plz tell me is it possible. if your answer is YES plz tel me some links discussing it. Regards Pramod Vijayan ...Show All

  • AndyMc setup project and satelitte assembly

    I have problem in build setup project. I have SomeExeProject that have referense to 3party multilanguage assembly, it placed on some net share like \\someWarehouse\3partyAssembly.dll So when i build SomeExeProject, it copy to bin folders like ru-RU/3partyAssembly.resource.dll and it works fine. But when i create setup project(SomeSetup) for SomeExeProject and add PrimaryOutput of SomeExeProject and Localized resources of SomeExeProject it not copy to msi folders ru-RU/3partyAssembly.resource.dll And so when i run SomeExe installed from SomeSetup it not work, because application can't find ru-RU/3partyAssembly.resource.dll. I can add File (ru-RU/3partyAssembly.resource.dll) because 3partyAssembly periodically changed and Setup Project i ...Show All

545556575859606162636465666768697071

©2008 Software Development Network

powered by phorum