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

Software Development Network >> Windows Forms

Windows Forms

New Question

Module based system, need advise
memory mangement in windows user control
How to detect the changes on listview
Databindings - urgent Help needed
Change the language in the install.msi-file
datagridview: remove column sorting from datagrid when re-binding
ComboBox Binding Problem
ClickOnce Fails with "Value does not fall within the expected range."
Click Once + Active Directory Deployment
How to make currently selected row invisible ?

Top Answerers

krubug
ZopoStyle
Pavan Apuroop
Pramod Gujjar
JZavala
prad_kav
Mamta M
TDays
Kalos
BortNE24
sitemap
Only Title

Answer Questions

  • brohans Dynamic User Interface

    Hi, I'm starting to work a new windows forms application (.net 2.0), the problem is that the Interface needs to built dynamically. I have no idea how to achive this, can anyone recommend an approach My first, and only, idea is to use an XML file with one element representing a single control However I'm unsure how efficient this is. Any help would be much appreciated. Mark Hello All. Mark: No, I can't say that I've run across anything, but that's not to say that there isn't anything out there, as I haven't really been looking. Sorry. As I say, from what I understand, WPF uses XML as a basis for the UI elements, so you might want to get the .NET 3.0 SDK and look through the WPF and se ...Show All

  • thukralz Validate Field - Help

    Hi, I am stuck... 1. Can I declare the OLEDB Connection in class or just within the button 2. I validate empty fields first, then with the login database. The open connection is supposed to be placed where ----------------------------------- public class LoginForm : System.Windows.Forms.Form { private System.Data.OleDb.OleDbCommand oleDbSelectCommand1; private System.Data.OleDb.OleDbConnection oleDbConnection1; private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1; private System.Windows.Forms.Label labelID; private System.Windows.Forms.Label labelPwd; private System.Windows.Forms.TextBox txtUserID; private System.Windows.Forms.TextBox txtPassword; private System.Windows.Forms.Button btnLogin; private System.Windows.Forms.Button b ...Show All

  • LeoXue Combo Box In DataGridView

    Hello All, I'm facing some problem while using a combo box in a datagrid view cell. Let me discuss what i'm trying to implement... Suppose i've a datagrid which have some rows. I want that one of the column of that datagrid will be a combo box. But couldn't implement finally as i am very novice in C#. Like, i've 3 columns,like... Booking Id ---- Description ---- Status 1 Test1 "Accept" 2 Test2 "Deny" 3 Test3 "Pending" **** I want that the "Status" column will be a combo box so that i can choose the status("Accept","Deny","Pending" in the above example) from a drop-down list and set ...Show All

  • Praveen Dayanithi Inherits MyUsercontrol don't generate event code on myform

    example: Class MyTextBox inherits system.windows.forms.TextBox .... .... end class Class MyTextBox2 inherits MyTextBox end class ---------------------------------------------- Now if i create a new Application Form, and drag "MyTextBox2" from Toolbox on a Form, the object created is without event!!! why Inherits clausole don't inherits event too if i drag "MyTextBox" also the object created contain withevents clausole and it work. Any solution ty to all :) don't show anyone event! ok i paste all code: ------ New Class Library Solution (Classlibrary1) Public Class MyTextBox Inherits System.Windows.Forms.TextBox End Class ...Show All

  • Jkumar Suppress Script Error in WebBrowser control

    Hi, I use a WebBrowser control to navigate to a html page which contains JavaScript. When I open this page in the IE browser no JavaScript error is shown and the page is displayed and functions perfectly. But when navigating to the same page with the WebBrowser control, a pop-up appears to inform about a Script error. I have tried to suppress the script error with the ScriptErrorsSuppressed property but now another pop-up comes up with the title "Visual Studio Just-In-Time Debugger" and proposes to debug... Why is the WebBrowser control not behaving like the 'normal' IE browser and how can I suppress these pop-ups Thanks for any hint! Claudia http://support.microsoft.com/kb/279535/ ...Show All

  • Nico Vuyge ClickOnce Application cannot be Started, help!!

    Hello everyone, I'm trying to Deploy the application and im getting this error now: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file://pc1/Shared/Program A/MyProgram.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of \\pc1\Shared\Program A\MyProgram.application resulted in exception. Following failure messages were detected: + Access is denied. (Exception from HRESULT: 0x80070005 (E ...Show All

  • JeremyAtGosub add 2 DataTables into 1 DataGrid

    hi, I have 2 dataadapters that fills 2 datatables i want to show them both in 1 datagrid How do i do it How do I do it Why not create a new table combined by those two tables I think detail steps to combine two tables depend on the logic how you want to combine them. If you just want to create a new table with all columns in those original two tables, use following code for example DataTable dt = new DataTable(); foreach (DataColumn column in northwindDataSet.Customers.Columns) dt.Columns.Add( new DataColumn(column.ColumnName,column.DataType,column.Expression)); foreach (DataColumn column in northwindDataSet.Employees.Col ...Show All

  • JoshKorn How to resize a TextBox to fit the text in it?

    OK, I'm hitting a very unexpected stumbling point here. I've got a series of Textboxes displayed in a TableLayoutPanel. Each of these textboxes shares a row with a button. The button is of fixed width and the TextBox fills the remainder of the row. The behavior I want from the TextBox is to automatically resize itself in the Y-axis if the text in it is multi-line. Right now, I'm automatically resizing the TextBox on the TextChanged event. This works partially. I can get the number of lines of text with a GetLineFromCharIndex call that takes the Index of the last character of text in the TextBox. I then multiply the number of lines by the height of the font, and add the difference between the Bounds.Height and ClientSize.Height to figur ...Show All

  • Ghoort Basic Web Browser

    Ok, I'm very new to C++ and would like to start building my knowledge by example and repetition. I have been getting myself used to working with the the Visual C++ 'designer' and would like to try making a basic web browser with 1 Textbox, 1 Button, and 1 WebBrowser control. I've done everything that I know to get the WebBrowser's Url to be set with the Textbox's value. I've tried this 'syntax', which works with other events (on other projects). webBrowser1->Url=String::Format("{0}", toolStripTextBox1->Text); error C2664: 'System::Windows::Forms::WebBrowser::Url::set' : cannot convert parameter 1 from 'System::String ^' to 'System::Uri ^' I've tried other things, trying to get around the errors...with no luck. webBrow ...Show All

  • crino Designer error

    I recieve the following set of errors in the designer tab when I try and compile my program. I am new at using Windows Forms. I know you are not supposed to write code in the automatically generated code, but I don't know where else to put it. Could this be the problem C++ CodeDOM parser error: Internal Error Hide at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationMa ...Show All

  • Fran431916 Slow-paced Tutorial on Cursors

    I intend to create and use custom cursors in my application, but most information on creating and using cursors and, more generally, creating and using resources, goes much too fast. I am looking for an 'absolute beginners' tutorial on how to incorporate a custom cursor in my application. Hi Martijin, It really great to hear from you.. You may use SetCursor API function.. Its reference available at http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors/cursorreference/cursorfunctions/setcursor.asp Hi Ahmad, you are very helpful today (you also answered my question on PrintScreen SysRq in another forum). This tutorial is not wha ...Show All

  • xhead Application.ThreadException and AppDomain.CurrentDomain.UnhandledException events

    Hi My code looks like the following: static void Main( string [] Args) { // Creates an instance of the methods that will handle the exception. CustomExceptionHandler eh = new CustomExceptionHandler (); // Adds the event handler to to the event. Application .ThreadException += new ThreadExceptionEventHandler (eh.OnThreadException); // Set the unhandled exception mode to force all Windows Forms errors to go through // our handler. Application .SetUnhandledExceptionMode( UnhandledExceptionMode .CatchException); // Add the event handler for handling non-UI thread exceptions to the event. AppDomain .CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler (e ...Show All

  • Cosmin Nicolaescu Navigators addnewitem

    hi, i am adding a bindingnavigator at run time. now the addnewitem will run twice , i would set it to none before and it wud work, but programmatically i do not see it working. i need to prevent the standard click method of the addnewbutton to occur, and instead this one here shud run. thanks NvNavigator.Dock = DockStyle .Top; NvNavigator.AddStandardItems(); NvNavigator.AddNewItem = null ; NvNavigator.Items.AddRange( new ToolStripButton [] { TSBSave, TSBRefresh }); NvNavigator.AddNewItem.Click += new EventHandler (AddNewItem_Click); Controls.Add(NvNavigator); } void AddNewItem_Click( object sender, EventArgs e) { if (NvNavigator.BindingSource != null ) { try { NvNaviga ...Show All

  • livehed Set SelectedIndex for a DataGridViewComboBoxColumn

    Hello, How can I set the SelectedIndex for a DataGridViewComboBoxColumn in a DataGridView Are the DataGridView and the DataGridViewComboBoxColumn bound to a data source You can do somethign like this Private Sub dgv_CellBeginEdit( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles dgv.CellBeginEdit If Me .dgv.Columns(e.ColumnIndex).HeaderText = "HeaderText" Then Me .dgv.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = SomeValue End If You will need to catch the cell of the dgv that need to be changed ...Show All

  • DavidThi808 Restoring the UI (width) changes in datagrid after refresh

    Hi, How to restore the UI changes like explicit change of width by user in data grid after refresh data In List view, when user change width, and data refreshed, width remains same. but for datagrid, it restores to original(default) width. save the original width on load: Dim SavedWidth As Integer = 0 Private Sub Form1_Load ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Load SavedWidth = Me . DataGridView1 . Width End Sub Reset the width in the prefered method with: Me . DataGridView1 . Width = SavedWidth ...Show All

333435363738394041424344454647484950

©2008 Software Development Network

powered by phorum