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

Software Development Network >> Windows Forms

Windows Forms

New Question

How to set Text to DataGridViewRowHeaderCell dynamically?
folderbrowserdialog
How to compare values from two databases.
How to get Datagridvieweditingcontrol programmatically
Change the default install directory
Restore combobox items
how to to fill a combobox diplay property with multiple columns not only one datafield
using datagridview with a mySQL server
how to open MdiChild from another MdiChild
no selected cells in the datagridview

Top Answerers

EpicJohn
SpeedOfSPin
Tom_Liu
blackmamba
foomunchoo
Ed Hintz
Bern McCarty
dragoncells
Javahar
Andy Wilbourn
ProgZ.ru
Only Title

Answer Questions

  • Patrick0 ClickOnce with optional dll in subdirectory gets incorrect version

    If I have a application directory structure with application core parts in the base directory and a plugin part in a subdirectory and both directories have a file 'A.dll' the .\plugin\A.dll is put there immediately upon installation with wrong version. My reproduce example has the following directory layout. .\ClickOnceTest.exe.manifest .\Executable.exe.config .\Executable.exe .\SharedDll.dll .\PluginDllClass1\PluginDllClass1.dll .\PluginDllClass1\SharedDll.dll Note that the SharedDll.dll files are of different versions and not compatible. I create the application and deployment manifest in mage and set the two plugin files as optional. Then when installing the clickonce application I can see in the cache that .\PluginDllClass1\Sh ...Show All

  • nesrine Datagridview problem

    HI, i am having a problem with datagridview while adding new records. if the row being added loses focus (clicking elsewhere on the grid), the row being added is lost. Is that a property of the datagridview! or is there a way to prevent this from happening. i guess i need something like If ( in rowadd mode ) then onmouseclicks events do nothing... or ignore that event such that nothing is done and my row will remain there. anyone got the idea of how this is to be achieved or know the real solution. I handled both the dataerror and the defaultvaluesneeded events, still the same problem. I still lose the row if it is completely filled if save button is not yet pressed. The hic is that.. see code : groupbox 1 ...Show All

  • salah1980 When is GetStandardValues called?

    The following code implements a simple derived control with a public property called "MyProp". This property has a drop-down list with valid values: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.ComponentModel; using System.Collections; namespace DefaultValuesTest2 { public class MyTypeConv : TypeConverter { public override bool GetStandardValuesSupported( ITypeDescriptorContext context) { return true ; } public override bool GetStandardValuesExclusive( ITypeDescriptorContext context) { return true ; } public override StandardValuesCollection GetStandardValues( ITypeDescriptorCon ...Show All

  • Dark Dominion Strange behavior with tooltips

    Hi there, I'm having a strange problem: First I show a dialog form (frmMain). Inside the main form I show a non-dialog child form (frmStatVn) which has a tooltip for a textbox with its IsBalloon property set to true. After I close frmStatVn if I click a menu option of the main form an exception occurs at the frmMain.ShowDialog() line: "Object reference not set to an instance of an object." Details: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.ToolTip.CreateHandle() at System.Windows.Forms.ToolTip.get_Handle() at System.Windows.Forms.ToolTip.WmWindowPosChanging(Message& ...Show All

  • ChenHeng datagrid troubles with stored procedure (vs 2003)

    I have the following code: Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) (a stored proc) Dim dsGrid1 As New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables("top").DefaultView I set the command to a stored proce and fill a dataset, then set the datagrid1 to the dataset table. I can then see the data grid on the form filled out. I need to change the column headings, hide some columns, then click on a row, and get the hidden field and pass it on to another form. I thought I would need a table style for that. But when I try to add one, I get: "The data grid table styles collection already contains a table style with the same mapping name." ...Show All

  • Boulderdude Moving From VS2003.Net To VS2005.Net Via VB.Net, SQL Connections

    Hello All, In VS2K3.Net you were able to drag a database connection on to your form.  It seems in 2K5 you are not allowed to do it.  How do you place a database connection (SQL Server) on your form   Please excuse my ignorance. Shug   In the data menu open up the data source window. Add a datasource and then you can drop it on the form. ...Show All

  • DiegoMC Export table data in Access Database

    Hi, I need to export a table data in Access Database into a text file using C# interface by a press of a button. I need advise on which method is required to use for this Tks. You should indicate the namespace, for example, to use the StreamWriter and server class, you should add using System.IO; using Microsoft.SqlServer.Management.Smo; This is the error I get if I quote the //using Microsoft.SqlServer.Management.Smo; I have a MS Access Database with a Table name "Login" and Column 1 "User_ID" and "Password". The User_ID and Password is the actual column name I used in the MS Access. -------------- StreamWriter sw = new StreamWriter(&quo ...Show All

  • mbr_rptusr How can we achieve Scroll lock type functionality in text box Or Richtextbox (c#)

    I have a multiline textbox/RTB where text is appended every 20 ms. I want to copy some text in between and see what i have received. But whenever I click on RTB, It scrolls to down and I am not able to copy related text. So How can I achieve scroll lock functionality. I want the same behaviour as dot net IDE output window where text keeps on appending but whenever we want to copy it allows us to do. My dear friend, I dont have timer, based on observer pattern my textbox is getting updated. I am receiving data in textbox externally, which I am listening and attaching to textbox. my client want same behaviour as of output window of VS 2005 IDE, where whenver user interacts it doesn't scroll but data keeps appending. dont we have any su ...Show All

  • Daniel Hardjosuwito DataGridViewTextBoxCell that supports 'overflow'...

    Hello, I'm looking for a way to support 'large' text value in TextBoxCells so you get the overflow/excel effect and the string is displayed over the surrounding cells... I've tried to override the Paint method (by manipulating the clipbounds and cellbounds) but that alone is not enough.. (since the next cell method will paint over).... Ok, i finally got it working (the POC anyway) I simply extended DGVTextBoxCell with a public ExtendedPaint method (a simple call to the base.Paint). Then i extended DGVRow with a PaintPrivate method that does the following: call the base.PaintPrivate and then redo the looping over visible columns,allocate additional space for cells that are of my extended DGVTextBoxCell Type and call their ExtendedPai ...Show All

  • edozio update textbox binding

    i drag'dropped a datasource (detail-view of a table of a typeddataset) on a form. during formload i get and set the bindingsource.DataSource = myDataRow; i want to programmatically change one of the fields' values. the result should be that the datarow contains the new value, and the control shows the new value how do i do the change field1Textbox.Text = "newvalue"; or myDataRow.field1 = "newvalue"; how do i trigger the updating Use statement like this: this .textBox1.DataBindings.Add( "Text" , bs, "YourFieldInTable" , true , DataSourceUpdateMode .OnPropertyChanged); Hope it helps. Best Regards. Ye ...Show All

  • Steve Hoff Reading from XML and bound to DatagridView : Adding rows dynamically

    Hi All, .NET 2.0, Win Forms, C#.NET, DataGridView control, XML datasource. I am using XML as a Data Source and try to bind the source into the DataGridView control in WIN forms. I have the XML source which has something like this... < EventsGroups > < Event > < EventName > Event </ EventName > < EventDescription > Event description </ EventDescription > </ Event > </ EventsGroups > The description should bound to the Description column which i defined in the datagridview control...how to do that ... moreover i want to CREATE ROWS with description reading from the XML dynamically .... It would be great ...if anyone help me in this regard.... you please share t ...Show All

  • Knvb1123 Localize messageboxbuttons

    Is there a way that i can localize messageboxbuttons meaning if my form is frensh: messageboxbuttons instead of "Yes" and "No" should be "Oui" and "Non" and so on Thank you .NET uses Windows to generate and display the message box. Windows localizes it to the installed language so all message boxes in every app use the same language. So, to get Oui or Non, you need to run the French version of Windows. If that's not good enough, you'll have to make your own. That's not as easy as it looks... I dont want to create a messagebox form, isnt there anyway to localize the messageboxbuttons Thank you Hi, One option i ...Show All

  • explode Change second form's selected tabPage in tabControl

    Hello, Any advice or suggestions are appreciated! I'm trying to change the selected tabPage in a tabControl in a second form depending on an option chosen in the main form. So far, I have this in the main form (and tabControlDetail is on the frmDetail form): frmDetail myForm = new frmDetail (); myForm.SelectNextControl( TabPage ); ... I know--not much. The tabControl.tabPage property doesn't appear in anything I've tried so far. I'd like to do something like: myForm.tabControlDetail.SelectedTabPage(1) where 1 (or n) is the selected tabPage. Thanks for any advice, Tess Thanks very much! I modified your suggestion slightly to: this .tabControlDetail.SelectTab(sTab);   and it works ...Show All

  • jsstone When does Form.Load event get raised?

    When is the Form.Load event getting fired I cannot find explicit information about this from the web. Is the event handler of this supposed to be the best place for changing the state of any controls, like aTextBox.Text Will this event get fired by the VS.NET designer Will this event get fired in _any_ other occasions I would like more information about the raising of this event. I need to find out basically what the difference is between putting code in Load event's handler, versus putting code in the Form's constructor after the InitializeComponents() line, and try to avoid the code to be excuted inadvertently more often than intended should I put it in the event handler. Thanks a bunch! - Load event ...Show All

  • DalekDAW Help on working with services

    Hi, I would really appreciate if someone can enlight me with this matter. I have never developed a service, suddenly I needed to have one of my processes running as a service, this process is quite complex since it download files from several servers, read the files, manipulate contents, insert the content into a database, create logs of every movement, etc. I tried to convert my project (which is an exe file with a dll dependency file) into a service with the exact code of my exe file, it looked ok now but it seems to work unpredictably and erratically, the manual process never have any problem so far. My question is if the service model has limitations against a manual process, like connections to other servers, database connection, depe ...Show All

404142434445464748495051525354555657

©2008 Software Development Network

powered by phorum