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

Software Development Network >> Windows Forms

Windows Forms

New Question

Create 1 dataset from 2 datasets and showing in Datagridview
IsMdiContainer
Scrolling Panel with graphics
Setup Project, prerequisite set to .net 3.0 wil not build
Scrollbar.value cant be set to scrollbar.maximum
datagridview
Passing secure parameters / info to client
How to remove the foremost column of DGV?
Best Component for the job?
DataGridView CellValidating error forcing focus problem.

Top Answerers

shahrul
LuisGarcia
Indigo Cowboy
sroughley
thejez
PMancini
Walter Luszczyk
Richard Berg MSFT
Mateusz Rajca
thukralz
Medical Buzz
Only Title

Answer Questions

  • Michael Dawson openFileDialog filename problem

       In my application, Users can uplaod picture. Therefore I used openfileDialog.  And also in my database I have two fields imageName and imageLocaiton. When I use openFileDialog I get the imageLocation and sent to the database. But I can't get imageName.  Does anybody know that how i can get imageName     private void Form6_Load( object sender, EventArgs e) { this .uploadbindingSource.EndEdit(); this .uploadbindingSource.AllowNew = true ; this .uploadbindingSource.AddNew(); } private void browse_Click( object sender, EventArgs e) { this .openFileDialog1.Filter = "JPG files(*.jpg)|*.jpg|All files(*.*)|*.*" ; this .openFileDialog1. ...Show All

  • xbrady Iterating through the DataSource property via a Foreach Loop

    I've created a custom drop down list control which inherits from DropDownList: public partial class CustomDropDownList : DropDownList I need to add a method to this class which will iterate through the items contained in the DataSource property via some sort of loop (foreach or for) and attempt to match one of the items to a variable value that is set earlier. But I can't figure out to loop through the DataSource property. If anybody can show me how to do that I'd be very grateful. Thank you in advance. Sean. Your question seems a little strange at first, since most objects only have one DataSource property, rather than a collection to iterate through. However, the Micr ...Show All

  • erikkl2000 WSuS Deployment Problem

    Hi, This is in connection with WSUS installation. Server OS - win2k3 Ent + sp1 Sql - sqol 2000 + sp 4 Once the installation is over , the update is happening the event viewer throws the following error : " Content file download failed. Reason: The server does not support the necessary HTTP protocol. Background Intelligent Transfer Service (BITS) requires that the server support the Range protocol header. Source File: /msdownload/update/v3-19990518/cabpool/windows2000-kb922582-x86-enu_b184762ae6115013bd0e769309ea0b48d64de4df.exe Destination File: c:\WSUS\WsusContent\DF\B184762AE6115013BD0E769309EA0B48D64DE4DF.EXE. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . " I am ...Show All

  • Behrooz PB DataGridViewComboBox dropdown list issue

    I've got a DataGridView containing a combobox cell of type DataGridViewComboBoxColumn. I have to click twice to get the dropdown list to appear.- once on the cell, then on the down arrow. Is there an easy way to force the drop down list on a single click The DataGridViewcomboBox doesn’t have a DropDown property like the regular combobox does. I don’t want to have to draw a textbox with an arrow like one example I saw. And, it appears that the only event to test the dropdown is with EditingControlShowing(). Implement Single click navigation to a DataGridView Combo Box Cell SendKeys.Send( "{F4}" ) works. Thanks! ...Show All

  • BeaverMan what will happen if i use command builder

    hi my program raise concurrency violation exception and i read all of the articals that MSDN says about that exception but at lastt one of my friends says that i need to use the command builder to make the update statment manually instead of using wizards in vb 2005 to generate sql statements so if i use the command builder is the concurrency violation exception will disappear if not what is the solution for that exception i need help really i disappointed thanks in advance. thanks for reply i read the page you gave me and it says If you want the UPDATE or DELETE to complete regardless of original values, you must explicitly set the UpdateCommand for the DataAdapter and not rely on automatic command generation. and yo ...Show All

  • Elango311325 ;how to update all at a time

    hey am binding the datarow values in a texbox using this code.. asp:gridview id="gvFoo" runat="server" autogeneratecolumns="false"> <columns> <asp:templatefield> <itemtemplate> <asp:textbox id="tbFoo" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "foo") %>' /> </itemtemplate> </asp:templatefield> </columns> </asp:gridview> but how to update the values at a stretch with a single button i would like to update the values show in the textbox with a single update button how to do this.. please help meout how to do this.. I'm afraid that ASP.NET questions ...Show All

  • Shrek.NET Password text box...

    hi... I want to display small circles in place of '*' ( Asterisks ) in the password text box , as it is there in WindowsXP Login window... So can anybody help me in this... Thanks, Vinay thanks i got it... Thanks a TOn for imeegiate reply... Vinay Always Welcome ;) PLease, always leave a feedback when you get a right reply to your question by click the Yes button under "Was this post helpful" Thanks a Lot. Best Regards, TextBox has a proprty named "PasswordChar" use this property to set Circles like this. textBoxPassword.PasswordChar = ' ● '; use Character Map in Windows XP to find a similiar symbols. ...Show All

  • Darren M. Bork Need help with SendInput function

    Hi, this piece of code is supposed to print a letter, but nothing happens. Can anyone help me to find what's wrong Thanks. // Structures for keyboard input public struct KEYBDINPUT { public int vkCode; public int scanCode; public int flags; public int time; public int dwExtraInfo; } public struct INPUT { public int type; public KEYBDINPUT ki; } // Declaration of SendInput [DllImport("User32.dll")] public static extern int SendInput( int nInputs, ref INPUT pInputs, int cbSize); // Function that outputs the letter public void PrintMyKey( int vkCode) { INPUT input = new INPUT(); input.type = INPUT_KEYBOARD; input.ki.vkCode = vkCode; SendInput(1, ref input, 28); } // Call that function PrintMyKey(65 ...Show All

  • Tryst Deploying with a Setup package and using ClickOnce for Updates?

    I have created a setup packed for a windows application in VB.NET I have written and I will install the application on a user location.  How can I, if able to at all, use ClickOnce to keep this application up to date   I want the application to check for updates at the start and if a new manifest/program/msi/etc is available, then I want it to download and install. Is this do-able   I've been reading through this forum and other resources and haven't found anything say that it is definitly not possible but also nothing saying it was.  I have been playing with it trying to see what I can figure out still but any input would be great :) or if I missed a link or article, please let me know. Thanks EDIT: After the pos ...Show All

  • shivali.sadavarte exception occuring while closing the form

    HI In my application i have two forms form1 and form2, from form1 i'm calling form2 in the form load method i'm loading the list of the webcams attached to the PC. to capture a photo. when i close that form without captureing or without even previewing the image displayed on the picturebox the system will giving an exception. An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll Additional information: Invalid parameter used. and application is closing. can anyone help in this issue. GRK yeah, I have tried with the Try catch but the execption was not cought. here i'm giving the code. The following code is to call the photo capture form Dim frm1 As New Form1 ...Show All

  • SDH2007 Custom serialization of extender properties

    I'm performing a custom serialization of a designer host, but can't figure out how to serialize extender properties. I.e., if I add a TableLayoutPanel and then some Buttons to the TLP, each Button gets Row, Column, etc properties from the TLP. However these properties don't show up in the Button's PropertyDescriptorCollection from TypeDescriptor.GetProperties(). How can I get at these properties to add them to my serialization code It turns out that I can get the TableLayoutPanel extender properties (Row, Column, etc) when I don't filter the attributes, however they are failing a test that I should be making. Assume I have the property descriptor (prop) for RowSpan and that I got this through TypeDescr ...Show All

  • jewelfire WebBrowser Control

    Hi ! I am new to Framework 2.0. I have a small query. I know it is possible but I need help. I have tried every way out but not working. I want to auto click on the form/button on any website inside my application. HtmlDocument doc = webBrowser2.Document; HtmlElement element = doc.GetElementById( "Save" ); I dont know how to move from here for auto clicking of the button or auto submission of form. I am using C# language. Please help me. I am just doing for learning purpose. I have this function of code when my document is loaded. So once the document is loaded in webbrowser control, I retreive the HtmlElement based on the id. In one of those element, I retrieve form ele ...Show All

  • Mark McFarlane how to remove focus from a button

    i designed a cool button giving a 3d effect when the mouse enters or leaves the buttons but when the button is clicked, it is focused and a line appears around the border of the button. how do i de-focus the button after it is clicked to remove the focus. the flatstyle property is set to Flat. thanks for reading! If you don't want your button show the focus rectangle, create your own button control, which would derive from Button class, and override ShowFocusCues: public class CustomButton : Button {     protected override bool ShowFocusCues     {         get { return false ;}     } } Andrej ...Show All

  • kennm Disabling TextBox fires Leave event

    Hi, i have a winform designed using Visual Studio 2005 Express Edition. There is one textBox with Leave event for validation purpose. When i programmatically disable the textBox, the textBox's Leave event is fired which is very surprising and not desirable. However, when the textBox is enabled programmatically, the textBox's Leave event isn't fired. Why does textBox's Leave is fired on disabling this control and is there a way to make these two independant Thanks, -srinivas yelamanchili Hi Nidheesh, consider Form1.vb with two textBoxes and one Button1 On running the application, the TextBox1 will have focus, when you focus on TextBox2, the TextBox1 Leave event is fired which is okay. Now, please keep th ...Show All

  • DerekSG Date Range for Data Grid

    Hello Could anyone please help me. I have a form and a datagrid. I want to attach a query to the data grid so that it displays content between 1 date range and another. Firstly I am using an access database so on the query I use for teh filter I use = for teh date field which then creates a toolbar an a little text box to enter the date. What I need to do is have an option to pull data into the grid using a date range instead. If anyone can help it would be great. Thanks Joe no worries Joe, im glad I could help. It's a bit of a relief for me too since recently been having a bad time giving correct answers! Thanks for restoring faith ;-) yes you can also do what you have stated. B ...Show All

686970717273747576777879808182838485

©2008 Software Development Network

powered by phorum