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

Software Development Network >> Windows Forms

Windows Forms

New Question

datagrid selecting rows
flickering dgv
Form position with drag/drop
checkedlistbox
Expose ComboBox.Items property outside UserControl?
Conditionally adding a button to a form
DataGridViewComboBoxCell how to select a value?
Data bind an object (not a control)
select item in a dropdownlist in datagrid
Version property for MSI Files

Top Answerers

BALASUBRAMANI
ajAZZ
Vladimir Chtepa
Kamii47
pratyusha kothi
Susana Guedes
simon burgess
donbox5
MLG_CSE
tolily
Schmitti's Page
Only Title

Answer Questions

  • leovernazza Listview gridlines overwriting text in Details view - SP1

    Having installed SP1 of VS2005, I am now seeing gridlines over the centre of text when in Details List view when scrolling. Is there a patch or workaround yet It is extremely unlikely this is caused by SP1. The ListView control is implemented by Windows. Moreover, the framework wasn't updated. Turn off application visual styles. The bug is in Comctl32.dll. See KB KB813791 ...Show All

  • Participant Setup file creattion using c# and outlook Add-in

    I have created two projects, i developed one project using c#,and another one i created in outlook Add-in using VSTO. Now i created the setup files for c# project and the outlook adding individually. But i want to create only one setup file. it should include both means the c# setup and the outlook setup file. how to create In the new setup project have the primary output from both projects be used, instead of only one. If the original projects are in two seperate solutions, create a new solution and add both into it and create a new setup project. thread moved to the appropriate forum. I think you may need to create some custom action in this case to run your setup files within your main setup file although this is a bad ...Show All

  • R Raghu Changing the Location of control created at RUnTIME

    I create a panel by clicking a button while my application is running....When i click the button the 2nd time to create a new panel i want the new panel to be placed below the previous control that was created...Is there somthing i need to change in the "Location Property" Try this: int counter=1; //at start ... Panel pnlData = new Panel(); pnlData.Name = "pnlDate" + counter; pnlData.Size = new System.Drawing.Size(536,56); pnlData.Location = new System.Drawing.Point(8*counter,8); pnlData.BackColor = System.Drawing.Color.Gray; TextBox txtName = new TextBox(); txtName.Name = "txtName" + counter; txtName.Size = new System.Drawing.Size(96,21); txtName.Location = new System.Drawing.Point(8,8) ...Show All

  • Gosatu Unable to get the window handle for the 'WebBrowser' control. Windowless ActiveX controls are not supported

    Hi! I'm trying to load asynchronously a web page in a embedded webbrowser, but i get this Exception: "Unable to get the window handle for the 'WebBrowser' control. Windowless ActiveX controls are not supported" My code: public partial class Buscador : Form { private delegate void InicializarWeb_( string url); InicializarWeb_ IW; public Buscador() { InitializeComponent(); IW = new InicializarWeb_(InicializarWeb); } private void InicializarWeb( string url) { webBrowser1.Navigate(url); } private void FinInicializacionWeb(IAsyncResult IA) { try { IW.EndInvoke(IA); } catch (Exception Ex) { MessageBox.Show(Ex.Me ...Show All

  • brymer Exporting a Datagrid to Excel

    Hi all, I've been trying to export a datgrid to excel and having been using the code that many people recommend and use themselves and it seems to work grand for them but not for me. This is the code i am using: Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.xls"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); DataGrid1.RenderControl(htmlWrite); Response.Write(stringWrite.ToString()); Response.End(); But when click the button to export the file i always get the follo ...Show All

  • xhy_China Checking for special characters in text control

    I have an IP address text box that takes in multiple IP addresses (space separated). I would like to restrict the user to enter only - numbers, "." and whitespace. How should I do it i mean, without having to do a strchr check on every alphabet (lower and upper case, special characters like "! @ # $ %.....". Is there an easy way for me to do this check Advise please... try this: if (!Char.IsNumber(e.KeyChar) && !e.KeyChar.Equals('.') && !e.KeyChar.Equals(' ') && !e.KeyChar.ToString().Equals("\b")) { e.Handled = true; //we handled it so it won't show/accept the input but ignore it } the \b is the character that identifies th ...Show All

  • RussP Hosting the designer

    I don't know whether hosting the Windows Forms Designer is the best solution for me, but before I dive into the topic more deeply, I would like to get an overview of what is possible. The program I develop should be able to switch to some kind of design mode, so that specific controls (some buttons, a listbox) can be resized or moved around on the form by the user (The form itself should not be editable). I would like to know whether this is possible to implement by hosting the Windows Forms Designer. Another approach would be to implement some of the behaviour myself, although I'm not quite sure about the best way. Some thoughts: I could derive from the standard button and provide a design-time button that enables the editing functionalit ...Show All

  • Dan Fergus DataGridView ComboBox

    Hi all, I'm facing a big problem in my development in C#. I'm a newbie I would be needing all the help you can give me. I would like to add a combobox column in my DataGridView control. How can I do it Assuming I have this table detail... MyDatabase MyTable, with fields myID, myItemDescription I would like the field myItemDescription be in a combo box in my DataGridView. How can I do that Please help. Much as possible please start with the database connection .... Thanks, Beast This thread may be helpful http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=136972&SiteID=1 In Paul's example, I guess the the table1 and table2 have a parent-child relation, and t ...Show All

  • chakravarthy_b Movie Collection Kit - Need Help

    Hi I am brand new to C# and learning bits each day (or trying to!). I have started to basically understand how this movie collection works and need some assistance in the way this works online with Amazon. Is it possible to change where it gets its DVD info from Amazon.com to Amazon.co.uk And if so where/what do I need to change in the code/controls. Many Thanks Neil Yes, this can actually be done fairly easily. Using the Solution Explorer, open up the "Properties\Settings.settings" file, which specifies the default settings for the application. Change the Value of the AmazonLocale field from "EN" to "UK". That's all there is to it. It is probably well worth you ...Show All

  • humbroll Sources of knowledge on Designer Support and Services provided by Net 2.0

    Recently I read an article on Designer Support by Net 2.0. ( http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/default.aspx ). It was pretty useful for start understanding the Designer Support provided by Net 2.0. I am working on a project in which i am developing an IDE . Our IDE is basically inspired by VS 2005 and aligned with VS terminology too. i am now in scarcity of proper documentation of Designer Support provided by Net 2.0. The only source i found is @ ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconnetframeworkdesign-timearchitecture.asp ). i believe having been in touch of similar work and stuff, you all would be able to guide us to differe ...Show All

  • Suman Ghosh Can I launch an installed ClickOnce App from a web link?

    I am currently deploying an application using ClickOnce that is marked as having to be installed, and it works great. But the one thing I would love to do is add a link on my website that would fire up the app on the user's computer if they already have it installed. And I would really, really love it if I could also pass in some parameters, maybe in the query string. I know you can do these things if the Click Once App is configured to run in the browser, but I think my app is too large for that to be successful long term. So is there any way to do these things with an installed ClickOnce app I tried adding a link to the .Application file. But when I click it after installing the app, I get the followin ...Show All

  • jwadew Passing an Object through a webservice

    I'm having some difficulties retrieving an object from a webservice that I have made. The error message (below) mentions that the Authentication.User was not expected... yet I return UserInfo (that's the base class of Authentication.User). Below is the sample code I work with, can anyone help me with this Thank you Here is how I call the Web Service: ----------         private void btnLogin_Click(object sender, EventArgs e)         {             //Call the webservice to autheticate the user. Then do the ninja dance of joy and kill a smurf!              try ...Show All

  • .net sukbir Form validation - Please help

    HI I have a form with many tabs and textboxs. I have a button in the form to validate the fields , If its validation sucessfull it will save to the database OR it has to be directed to the relevant textbox in the TABPAGE. How I can direct the user to the relevant field if validation fails. (Note: I have many tabs in the form) I am using following code Private Sub Submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Submit.Click ValidateCertAgent() (----If the above validation Fails, then user directed to the relevant text box or should be passed to the next validation---and so on---) ValidateCertProperty() ValidateCertPurchaser() ValidateAgentName() ValidateTrustee() If txtold.Text = "" Then ...Show All

  • Krutika How to create lable with rounded corners ?

    Hi All, I'm looking for a designed lable to add into my form (windows application ). I'm a C# developer. Thanks In Advance Boaz Shalev. Start by looking at the Control.Region property and you'll probably have to handle the Paint event, or override OnPaint(). ...Show All

  • Peter Huber determine combobox item is selected

    if i populate combobox with sqldataadapter and sqldatatable then how can i determine weather combobox has selected item or empty Extra info: myCombo.SelectedIndex will be -1 if nothing is selected. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog Check this: if (myCombo.SelectedItem == null ) {     //item not selected, do something, set error in error provider for combo, set the focus to the como or something else like message box. }   ...Show All

747576777879808182838485868788899091

©2008 Software Development Network

powered by phorum