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

Software Development Network >> Windows Forms

Windows Forms

New Question

How to read all surviving DataGridView rows subsequent to user deleting rows
How to do a new line return on a rich text field
Stored Procedure shows resultset one pc, not on the other.
pagination in windows forms?
Toolstrip: strange behaviour after items adding programmatically and at design time
DataGridView - stop changing current row - when using the 'Enter' button
wat is the actual way to open & close window form?
Object Construction and the firing of Events...
the executable file becomes too large.
Validating data in DataGridView

Top Answerers

saibhuvan
BenK95781
DesignerX
Dr. Pastor.
Francis Shum
christine21
DotNetFireball
Shiva3Al!3n
Seth Livingston
Colin Reid
Accuracer Database System
Only Title

Answer Questions

  • NetPochi KeyDown Event, IsInputKey not working (C#)

    (C#, VS 2005) - I have a form, with a few radiobuttons on it. I want to do some stuff when the arrow keys are pressed but the event isn't raised. I found on MSDN that you should override IsInputKey, but I did that and it doesn't work (IsInputKey is never called). Another problem (may have something to do with it) is that i can't find a way to stop the arrow keys from scrolling through the radiobuttons. thanks in advance It works actually but thats not what i need, I want the event fired multiple times when the user holds down the key longer. Edit: I added other controls and disabled the tabstops for the radiobuttons, now it works :/ make sure your set the forms key ...Show All

  • QiSheng Need to get the .MainWindowHandle

    I am trying to get the mainWindowHandle and store it for later; however, i can not seem to get the handle back from the new process. Before someone suggest , i will let you know that i have also tried the p.WaitForInputIdle(); however, this not only does not work it will throw and error..   private IntPtr mainHandle = IntPtr .Zero; private void button1_Click( object sender, EventArgs e) { Process p = new Process (); ProcessStartInfo ps = new ProcessStartInfo (); ps.FileName = "explorer.exe" ; ps.Arguments = "" ; p.StartInfo = ps; p.Start(); mainHandle = p.MainWindowHandle; } Can someone tell me how to get the mainWindowHandle   Erik Yes, I do think you might run int ...Show All

  • BinFolder Need help with a deployment.

    I would like to first say thank-you in advance for any help you may provide here. I am not sure if this is the proper location to post this but... How do I get the MSinstaller to remove a previous version of an application and install the latest version without adding additional application listings in the registry The project details are below. Using Visual Studio 2005 I am working with a C# non web solution using the single solution model, the solution has multiple project components that are ultimatly built into an msi file that utilizes a bootstrapper setup.exe with dependencies of .Net and SQL Server 2005 Express. Below are the Properties settings for the deployment. Setup:Deployment Project Propertie ...Show All

  • MicMit I can't figure this "Enter" thing out! Please help.

    Ok, so I am creating a web browser. Everything is fine and dandy, except I wanted the capability of the user pressing "Enter" after they type in the URL instead of having to go click on "GO" button. Thats nice... So I go to the properties of the combobox, select "Keydown" and create a new keydown event. In that event, I write: webBrowser1.navigate(combobox1.Text); I run the program... and It works alright! However, it automaticly tries to connect the the URL before I even get it typed... So by the time I type in www.yahoo.com , it's already navigated there without me pressing the enter key. This is a neat little thing, but I don't want it to work that way. Is there some kind of Break I can use to stop the URL in the U ...Show All

  • boston_sql92 Html Control with data binding on HTML property

    Hello all I took the Html control and tried to add a databinding to it using Html property I added. Now for loading it work great. The problem starts when oushing back the value back to the datasource. assume the next things: I have: an object with two properties 1 color name and the second is the html representation of the color "Red", "<span style=\"Color: Red;\">Item Red</span>" etc... I have a datagridview presenting all color names and next to it a text box with the current color name below it I have the Html conrol presenting the current object color representation. All worked great even when I change the selected row the selected html content and color name changed (using binding surce off cour ...Show All

  • Ravel i want when i press "Enter" Key "Down Arrow" keyDown event fire

    i want when i press "Enter" Key "Down Arrow" keyDown event fire, as we know when we bind a combobox with data, and we write text in it, and press down arrow key it reaches to text record which is related to that text what we write in combobox. so i want to take this work from Enter Button. Thanks I'm not sure what you mean by this: >>as we know when we bind a combobox with data, and we write text in it, and press down arrow key it reaches to text record which is related to that text what we write in combobox. so i want to take this work from Enter Button.<< but, anyway, to answer your question, in the KeyDown event handler in your ComboBox sub-class, do this: protected virtual ...Show All

  • Pradeep Gupta VB.NET - prevent bad user input

    Hi, How can I prevent the user to insert some caracters on a textbox I want to prevent letters, all non numerical. I want to allow inserting numbers, decimal separator, backkey(delete), arrow keys (left and right), etc. How can I "see" if the number inserted has alredy one decimal separator, and prevent the user to insert another Regards, Pedro Hi, I cannot confirm if the MaskedTextBox is the solution. I want to try still the textbox control. Besides, this textbox is binded to a DataSet. I don't want the user to insert a specific format... I just want to allow the user to insert a decimal number, but also want to "filter" and garantee a correc ...Show All

  • pst_grant Performance of a fully transparent brush

    I have a simple performance question about transparency (.NET 2.0, WinXp). Does GDI+ handle zero alpha transparency as a special case What is the cost of graphics.FillRectangle(Brushes.Transparent, myRectangle) compared to graphics.FillRectangle(someSemiTransparentSolidBrush, myRectangle) and graphics.FillRectangle(myFullyOpaqueSolidBrush, myRectangle) I ask because I am designing an application with possibly thousands of small interactive outlined shapes. I only want to fill the selected ones and from a design point of view it would be more elegant to fill the shapes with a zero alpha brush instead of checking the state of the shape when drawing it. Soren I could apply some reverse engineering timing a ...Show All

  • Michael Schreyer The requested URI is invalid for this FTP command.

    Hi, I keep getting the error "The requested URI is invalid for this FTP command." when trying to upload a file from local machine to the FTP server using code below in C# 2.0. I am getting error on the bold line below. I would appreaciate if someone can guide me to proper solution. thanks Mahesh public void Deliver() { FtpWebRequest request = (FtpWebRequest)WebRequest.Create(destinationHost); //destination host is ftp://actual IP address/ request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential(userId, password); // Copy the contents of the file to the request stream. StreamReader sourceStream = new StreamReader (sourceDirectory + sourceFil ...Show All

  • houtexwebdev Is it possible to simulate a property for databinding on an object using ITypedList

    Is it possible to simulate properties on an object and have the simulated property bound to a windows form control I have seen examples using ITypedList to do this. But all the samples simulate the property on a collection of business objects and never on the business object itself. When i tried to do this on an object by adding a new property to the PropertyDescriptorCollection being returned, i get an ArgumentException when setting the datasource saying "Cannot bind to the property or column Company on the DataSource. Parameter name: dataMember". I will be happy to provide the source code if required. Thank You, Vish ...Show All

  • Rod at Work Reading data from another form

    Everything I have read on the web says I can do this. I have followed the setup of others that seemed to have solved their issue, but it still fails for me. I want to read data from a textbox on form1 from form2. Since I declared frmVendor_list as public and I set the textbox1 on that form to have a modifier of public, I assumed I would be able to access the text in the textbox. But it will not build, throws an error 'Textbox1 is not a member of system.windows.forms.form If I add the line: dim vendor_list as form1 right above the call to the textbox from form2 and refer to the textbox as vendor_list.textbox1.text - the error goes away and it compiles. But it throws an error at runtime that the textbox1 contains a null reference ...Show All

  • WayneSpangler How to check Windows Form is completely shown on the screen

    Actually the reason for this is: i want to do printscreens within my application(like after i press a button on my form, this button press will run a method with printscreen function), therefore at first i had Application.DoEvents(); System.Threading.Thread.Sleep(1000); but i read up on application.doevents() and there is an issue that it may go into an event twice.. Is there a way to check when the windows form is completely loaded or repainted as i run my application Or is there suggestions to let the application wait while continuing to load cos if using thread.sleep only, the whole application will pause and the form loading will also pause. Or is there any alternative to application.doevents() Let me clarify that i am not using this ...Show All

  • KAAU Manipuation of Binding Navigator in Runtime

    Hi everyone, I am facing difficult with binding navigator to use in run time. I am using connection string to connect with database in runtime and all dml(data manipulation language) operations are performed using this connection. However i am unable to connect a binding navigator in runtime using same connectionstring. Thus i want a solution anyone can help me with suggestion. Rojan Shrestha ...Show All

  • VOC Draw grid?

    Is there a way to draw a grid using Graphics I need the lines 39Pixels apart. (1 CM) Thanks, Check this thread ... Hi, I don't know any function that would draw a grid for you but you could do a for to draw several lines using Graphics.DrawLine . ...Show All

  • Ola Berntsson alert a user "To Save changes or ignore changes" when editing records in VB 2005

    How can i alert a user "To Save changes or ignore changes" when editing records in VB 2005. I need to display a Message Box saying" Do you want to save changes or ignore changes --------YES NO...............buttons I am using DATASETS, TABLEADAPTERS Alex good point! Completely forgot about that :-) If you are using a DataSet, how about DataSet.HasChanges() Hi ahmedilyas, Thanks for your inputs. But how do i determine if a record value has changed ...... Only if the record has been edited & changes not saved, then only the messagebox should be displayed. Alex I believe ...Show All

363738394041424344454647484950515253

©2008 Software Development Network

powered by phorum