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

Software Development Network >> Windows Forms

Windows Forms

New Question

C# Respond to Windows Shutdown
Windows Application and Access Database
ListView Mouse button Up
Limit rows in datagridview
MDI Child maximise
AutoIncrement in SQL identity column only working with Int16/32/64 ??
Data Entry Problem In Asp.Net 2.0
[1.1] Trouble between Title bar and taskbar
Scrolling larger "canvas"
designer not showing localized exceptionmessages

Top Answerers

CruzPedro
jrx
Chris Howarth
sql server2000
Samant B Jain
ivanchain
newtoc#484467
Banhnam
praveench2k
Ernie Thomason
sitemap
Only Title

Answer Questions

  • John Petritis 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

  • kundalani View images in a Image List - List View

    Hi, I've a folder in my disc with images, and I'd like to see all the images in my application. I'm using a List View with an Image List, it seems to work, but it takes a lot of time to charge all images in the view. What can I do I think it can works more faster My code: public void CargarImagenesEnVista() { ImageList IL_Imagenes = new ImageList(); IL_Imagenes.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; IL_Imagenes.ImageSize = new System.Drawing.Size(16, 16); IL_Imagenes.TransparentColor = System.Drawing.Color.Transparent; LV_Directorio = new ListView(); LV_Directorio.Visible = false; LV_Directorio.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.Anch ...Show All

  • mikewo Updating bound Custom entity properties only if the user clicks Ok

    When I create my custom entity: Customer class for example, I bind the customer properties to my Form textboxes using: txtName, txtBorthDate..... For that I use: txtName.Databindings.add("Text",oCustomer,"Name") .....etc So, When the user types in the texboxe Name for example, my Customer properties get updated automatically in my custom class. The problem: I need to update the customer properties : Name, date of birth.... only when the user clicks Ok. And if the user clicks Cancel, i shouldn t replicate the new textbox values to the customer properties. How do i implement that pls. Thanks. If you don't want automatic value propogation, you probably shouldn't use databinding; just copy the value ...Show All

  • moondaddy Form Drawing

    Hi, I just started working with Visual Studio and C# and I'm trying to build a simple application. I'm spawned a few balls and made them move around. After hours of trying to figure out how to use the double buffer feature I just figure it out. My Problem: Now My problem is that the application is very slow when the form window is expanded.I was running all my tests in a 200*200 window. There is a huge performance issue between 200*200 and 800*800. My guess is that Graphics g.Clear(Color.Black); is taking too much resources. But I don't know, I'm new to this stuff Question: Can I NOT re-draw the background but still clear the balls Thank You Here's a poriton of my code: private void Form1_Paint(Graphics e) { Graphics g; ...Show All

  • TimStspry Populating a treeview recursively

    Hello, I have a self joined table named: Category. It contains 3 columns only: CAT_ID, PARENT_CAT_ID and Title. I'm using a data reader to get the categories from the database as follow: while (dbReader.Read()) { Title = (string)dbReader["Title"]; CAT_ID = (int)dbReader["CAT_ID"]; PARENT_CAT_ID = (int)dbReader["PARENT_CAT_ID"]; // MessageBox.Show(Title); <- Working!!! } Can anyone please tell me how can I populate a treeview recursivley with the data I pulled from the database Please note: 1. PARENT_CAT_ID = 0 for the root records. 2. Child records doesn't always follow parent record in the database query result, they can be mixed. I would appreciate any help. ...Show All

  • shihad ClickOnce WinForm application - How can I apply a number of T-SQL scripts to my Sql Server database?

    Could anybody please help me with my dilemma I’ve developed a winforms application in VB.NET which uses a local Sql Server Express database to store my application data. My application connects to the database using the new user instance option available in SQL Server Express. I have successfully managed to deploy the application using ClickOnce so that the application installs and runs on a clients PC. I have just finished version 2 of my application so when I publish the new version to my web site using ClickOnce, the clients will notice the new version and automatically download and install it. Excellent! My problem is I need version 2 of my application to apply several T-SQL scripts to the local SQL Server Express databas ...Show All

  • Wintallo 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 Well, as I've stated the naive solution is pretty understandable. My problem was having my TypeConverter figure out which strings to return at runtime . The problem is the class that I attach the TypeConverter attribute to is a data class, which by design does not reference the class which decides at runtime the list of possible values. To do what I want would mean that when the type converter is activated, I need to supply it with an in ...Show All

  • dobauer where i can edit update statement for table adapter?

    hi im using vb 2005 where i can edit update statement for table adapter since there is no such a property for table adapter for doing this. unlike vb 2003 thanks in advance. If you click on the show all files button in the solution explorer you will see a file name datasetName.Designer.vb. If you scroll through that file you will find your tableadapter. In the InitAdapter procedure for the table adapter you will find the commands. Remember to back up the file before you make any changes in case you break the table adapter. ...Show All

  • slein How to validate date in the text box?

    Hi I have textbox in a windows form. If the user enter the date higher than the present date (today) then message box should display (warning message) to the user. I am using VB.net I don't want to use datetimepicker or calender. The code will be more appreciatable Advance thanks And with exactly which part are you having problems What have you tried so far (Eg: show us code where you handle the TextChangedEvent, DateTime.Parse the text and MessageBox.Show("problem").. (Or add an ErrorProvider to your form...)) you can change the date to int,for example ,2006.12.21,you can changge this date to "20061221",and you can compare this number with today number. ...Show All

  • HeathM what do I do if I want some code to execute after the installation

    Where do I put it pls Thanks What kind of installer are you using ClickOnce or a Setup Project thanks a lot man setup project While Setup Projects offer far more customizability over a ClickOnce installer, they still leave much of the power of MSI outside of your reach... you may want to look into some custom code within the overall process ... even if it does not occur at the absolute end. can I execute code after the finished Dialog. What I need exactly is to display a link to a web site at the very end of the installation. Thanks a lot. In the Custom Actions editor, add your own ...Show All

  • Michael Ruminer Converting Text to UPPER case in a datagridview control

    Hi, I've tried everything but don't seem to be able to get this to work. The seniario is this. A user inputs some text in a cell of a datagridview control and I want the text to be converted into upper case before it is stored in the database. This data is a KEY field to a table. I've tried the format method of the defaultcellstyle and the onvalidate row, and cell events but can't seem to be able to figure this out. Has anyone ever needed to do this before And, would you mind tell me how to do it Thanks, Dave Thank you very much for posting this. I found it very useful in a project I am working on currently. I asked a few other developers around here, and no one knew how to do it. You ar ...Show All

  • watch is How to deal with file system permissions when recursing file system

    I am working on a module for an app the recurses the file system. As the program recurses the "C:\" drive I get the follow exception System.UnauthorizedAccessException was caught Message="Access to the path 'C:\System Volume Information' is denied." What is the correct way to deal with this exception and continue to recurse the drive thanks, Luis Bear with me. I'm fairly new to vb. Here is what I tried Try ''Directory recursion loop here Catch ex as UnauthorizedAccessException End Try While debugging I saw the exception throw for the "System Volume Information" directory. However, instead of continuing to loop through the rest of the directories the subroutine stopped processing. ...Show All

  • Haashole tool windows

    I am writing an application for my company and I would like to have a tool window similar to the solution explorer in VS that remains docked on the left side of the main application form. So far, I have created a very simple form called ToolWindowForm and set it's FormBorderStyle to SizeableToolWindow and in the Shown event of the main window I have the following code: private void ManagementStudioForm_Shown( object sender, EventArgs e) {      ToolsWindowForm toolsWindow = new ToolsWindowForm ();      toolsWindow.MdiParent = this ;      toolsWindow.Dock = DockStyle .Left;      toolsWindow.Show(); } The window is displayed fine and docked the ...Show All

  • dnweb How can I pass datas from a windows form to a webpage in a AxWebBrowser

    I put a AxWebBrowser into a windows form. How can I pass the data of windows form into the webpage.Thank you. If you use .Net 2 they come with Web browser control use it instead to pass value to item in web bage you need to get reference to it you can write some thing like //Get the Document HtmlDocument hd = webBrowser1.Document; //Get the inpute which has id= txtID of course change it yours HtmlElement he = hd.GetElementById( "txtID" ); //Set the value attribute to the value in winforms textBox1 he.SetAttribute( "value" ,textBox1.Text); ...Show All

  • JeevesIndia OnClick preceding OnEnter

    VS 2005 / XP Pro -- both with all service packs It is my understanding that the OnEnter event should precede most (all ) other events for a control but... Our application has a form on which is a Tab-control. We load a number of controls dynamically onto this Tab-control -- ComboBoxes, CheckListBoxes, and TextBoxes. We haven't checked all the Tabs, but on at least one of the Tabs the OnClick/OnMouseClick event precedes the OnEnter event for the ComboBoxes and CheckListBoxes (but not the TextBoxes). Controls that are added at design-time on other Forms' Tab-controls have the events fire in the expected order -- OnEnter and then OnClick/OnMouseClick. Is my understand of the sequence of events erroneous or can someone g ...Show All

96979899012345678910111213

©2008 Software Development Network

powered by phorum