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

Software Development Network >> Windows Forms

Windows Forms

New Question

ToolBox Tab
New to DataGrids - Simple Question!
Use the KILL command to delete a file or set of files in a folder.
How To: User Dynamically Resizing Controls at Runtime
Deployment Project - Install to Framework Folder
Refreshing combobox after updating list referenced by datasource
non-visible column in gridview does not expose data
Add an Installer withinh my installer
OnPaint Overflow Exception
Closing ChildForm in an MDI Application

Top Answerers

TapasChoudhury
IamHuM
gmaenrile
Nirth
Kamii47
Anil Vemu
pierreg
donbox5
FedorSteeman
Lavee
sitemap
Only Title

Answer Questions

  • VBAddict Inherited controls moves

    Hi all, ok, my big big problem is that the two buttons that was inherited from my base form moves to the right everytime I open the form. I’d tried to modify the Initializecomponent method by adding the code to change the location of both but nothing happens. The buttons only show in the correct location the first time but when I reopen the form designer it moves rigth so on and so forth. Can anybody explain me the way to avoid this problem Best regards. piccolo2101 wrote: Ok, anybody can explain me this mystery. Why the inherited buttons move everytime I load my form I move it ti the right position, save the file, close the file and when I try to reopen it again...YEAHHH the button moves again. ...Show All

  • Martin00 Visual Studio just trashed my toolstrips!!

    I deleted a resource that I (thought I) wasn't using and all of a sudden visual studio craps out some message boxes telling me all it can't find a certain file, etc, and it wouldn't shut up so i put the file back into the resources directory manually and it finally stopped beeping at me, but when I went back to my form, my menu strip, tool strip and context strip were all empty! I checked the .Designer.cs file and all of the definitions for the items were still there, but all of the AddRange()s were gone! This is unbelievably frustrating, my file is a complete mess now because I've had to go back and manually create these AddRange() calls, and half of the 20 or so toolstrip separators i don't know where they should go so most of them are j ...Show All

  • Matt Penfold Dataset & DataGrid???

    I have a dataset that holds some data, and when i show it in the data grid i would like it to be editable, and changed in my dataset, can anyone send me a link or shed some light on how i should get this done The changes are not be commited to the SqlServer, and this code below does not change my results......what am i missing here, I am using the Northwind DB in SqlServer to test this code..... private void button1_Click( object sender, System.EventArgs e) { try { string connect = System.Configuration.ConfigurationSettings.AppSettings["connstring"]; SqlConnection connectionstring = new SqlConnection(connect); string str = "Select * From Customers"; SqlCommand scmd = new SqlComman ...Show All

  • Nick Colebourn ComboBox SelectedValue

    Hi, i have a doubt, I have a combobox and I'm binding it using BindingSource. The problem is that I show in the combobox the name of the field that is in the data base, but I store the key number in the database. My problem is that I can't insert the SelectedValue inside the database and it returns me that this field cannot be null, I really don’t know what to do, any ideas I tried setting the key using ValueMember, but this didn’t worked either. Please show your code, and give an idea of the structure of your tables. Then we can give you some more help :) Thank you so much, that was the missing part. I'm new to C#, so sometimes I have some dificulties, thanks for the ...Show All

  • Stokh Custom lists into a PropertyGrid dropdown

    Hi, I'm working with a PropertyGrid class, and I want one of the selected object's properties to show as a list of strings. As far as I can tell the naive StringConverter derived class will not do for me since I want the list of strings to be supplied dynamically at runtime. How do I get around this Hi, The TypeConverter is the way to go. But you must override GetStandardValuesSupported (return true) and GetStandardValues (return your collection of possible values). You can look at the BooleanConverter in Reflector and see how it returns the true/false strings. Of course you must have the right set of Convert methods to ensure that the strings can be converted to your type (you didn't mention the type of your property). Hope this he ...Show All

  • VoiceOfExperience Binding to custom types

    I have a class that exposes several properties. One of those is a custom type. I wrapped a DateTime to provide custom behavior. I can bind it manually to textboxes and datagridview columns and everything works fine. Problem is, the Data Sources window won't let me use drag and drop to setup the binding. When I drop this property on a blank form, I get a textbox for each public property of the custom type and trying to drop it on an existing textbox doesn't work either (mouse cursor indicates an invalid drop zone) I tried implementing IConvertible, IFormattable and providing a TypeConverter and still the custom type won't work with drag and drop databinding. Is there another interface that needs to be implemented or is this just not p ...Show All

  • Krutika user control property using a generic list

    Hello First, sorry about my bad english... that's because I'm from Argentina, so I speak spanish, not english. But I'll do my best so you can understand me... thanks. I'm developing an user control (similar to a sidebar), and one of its propertys is a list of the options that the control shows. Every option is defined by an object of the class "Opcion" defined on the same namespace of the control. Following the standar practice, I have defined a private generic list of the type "Opcion" that contains the options that the control must show, and a public get-set method to access this list, of the same type (generic List of "Opcion"). So, when I add a control on a form, on its property page there i ...Show All

  • Dcoder85 Watermark TextBox in winform

    Trying to create a control like Atlas control that will put a watermark inside a textbox while it is empty. My original idea was use UserControl1_Enter and UserControl1_Leave and set this.Text appropriately, but this method could foul up other code using the Text property. My next idea was to use the Paint method, but I am not even sure that TextBox has a OnPaint event at all. Any tips Have any of you guys work implemented a Watermark textbox that also supports the PasswordChar property Great solution to the problem.. I had to make a few tweaks to fit, but it was close enough to get me there. Here is my end code: public partial class Waterm ...Show All

  • shawn957376 Horizontal scrolling with SHIFT and MouseWheel

    I would like to change the behavior of ScrollableControl that it is able to scroll horizontal with SHIFT and MouseWheel. This behavior is seen in some applications like the Visual Studio Class Designer. My idea was: protected override void OnMouseWheel( MouseEventArgs e) { if (ModifierKeys == Keys .Shift) { // Scroll horizontal ... } else { // Scroll vertical ... } // Don't call the base method because it would call the default implementation of ScrollableControl // base.OnMouseWheel(e); // Fire the event to all listeners if (MouseWheel != null ) { MouseWheel(e); } } The problem is that I am not able to fire the Event MouseWheel. Only the base class Control is able to fire this event. Ha ...Show All

  • Anpiro VS2005 MyApplication_Shutdown not getting fired.

    We are developing windows application in VS2005 (VB.Net). I have placed resource clearing and audit entry in the "MyApplication_Shutdown" event. But this event is not getting fired when our application exits. When I tired with the sample application, in our system it works fine. I don't know whether I have disabled any setting so that this event does get fired. Note: I have checked application framework checkbox in application settings. Project + properties, Application tab, Shutdown mode = When last form closes. You can now close your login form without ending your app and the Shutdown event should fire when you close your main form. Hi, did you follow this sample: http://msdn2.microsoft.com/en-us/library/03 ...Show All

  • Ahmadreza .NET RichTextBox Bugs

    I'm running Visual Studio 2005. I have a RichTextBox control with WordWrap set to False and Right Margin set to 1000000. With Courier New 10pt font, these settings should allow me to enter over 100,000 characters on a row. When I reach around twenty thousand characters or so, the following behavior develops: 1. Horizontal scroll bar stops acting properly. It keeps jumping to the right. 2. Text at the end of the line begins to dissappear. Interestingly, when this invisible text is highlighted, it appears I know this is a very wide row. However, I see many applications that will allow me to enter over 2 million characters on a row. That's what I want to do. Are these bugs in the RichTextBox control Any workarounds Any suggest ...Show All

  • Don Isenor expression in a StronglyTyped Dataset returns only the default value

    Hi. I have a stronglytyped dataset that contains column from where the data is made from an expression. When I preview the data in the designer I get correct results but when I call the function from a client I get columns default value. Why is there a difference between these two and how can I fix it ...Show All

  • Chrishuang Error on object Timer????

    I have windows form and I have placed a timer to show date & time in my status bar. i put the following code in my timer.. StsBar_Config.Panels(1).Text = DateTime.Now.ToShortDateString I keep getting the following exception! why somebody..anybody please Exception Text ************** System.Exception: Exception of type System.Exception was thrown. at Projeto_DataConnect.Frm_Config.Timer1_Tick(Object sender, EventArgs e) in E:\VisualStudio\Projeto_DataConnect\Frm_Config.vb:line 212 at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime) It is probably because the Tick event is running in another ...Show All

  • Dorfer flexgrid again

    hi , i want to use in vb.net , something like flexgrid , not for database data , but a) to make a grid with randomize data to display (lottary data) b) to read a text file and to show the data in grid format with cols and rows (import data from other programm) i try to find a solution but i not find anything , i want to make addrow , romoverow , and all the other commands from flexgrid i dont want to import the control from vb6 , except if is the only way to work i am new in .net , and i want to begin from easy things Thanx Makfor Hi, I have a customer whose software is written in VB6. I would not personaly port that thing to .NET just for the fun of it. My point is, unless you REALLY must convert to .NET, or it's only a ...Show All

  • Michael Thorn UserControl with ComboBox

    My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All

2345678910111213141516171819

©2008 Software Development Network

powered by phorum